maint: update copyright
[gnulib.git] / ChangeLog
1 2014-01-01  Eric Blake  <eblake@redhat.com>
2
3         version-etc: new year
4         * lib/version-etc.c (COPYRIGHT_YEAR): Bump to 2014.
5         * all files: run 'make update-copyright'
6
7 2013-12-24  Eric Blake  <eblake@redhat.com>
8
9         passfd: give nicer error for recvfd at eof
10         * lib/passfd.c (recvfd): Fake ENOTCONN if other end closes early.
11         * tests/test-passfd.c (main): Enhance test to cover this.
12
13 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
14
15         gettimeofday: port recent C++ fix to Emacs
16         Without this further patch, Emacs won't build due to
17         the portcheck failing.  Also, this simplifies the patch a bit.
18         * lib/time.in.h (localtime, gmtime): Don't replace unless
19         GNULIB_GETTIMEOFDAY.  Treat them more like mktime.
20         * lib/time.in.h (localtime, gmtime):
21         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME):
22         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
23         * modules/time (time.h):
24         Don't worry about about the possibility of localtime and gmtime
25         being absent; they're present in all C libraries we know about.
26         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
27         Don't assume sys_time is present and has been initialized.
28         Instead, use a hack that should work even if it hasn't been.
29         Don't use a portcheck for gmtime or localtime; this supports
30         the hack.
31         * modules/time (time.h): Substitute GNULIB_GETTIMEOFDAY.
32
33 2013-12-17  John W. Eaton  <jwe@gnu.org>
34
35         gettimeofday: fix C++ crosscompilation
36
37         Never replace gmtime and localtime by macros when compiling with
38         C++, this prevents <ctime> from being included.
39
40         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Do not
41         define gmtime and localtime as preprocessor macros.  Instead
42         define some HAVE_GMTIME, HAVE_LOCALTIME, REPLACE_GMTIME, and
43         REPLACE_LOCALTIME substitutions.
44         * lib/time.in.h: Declare gmtime and localtime when needed.
45         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): AC_SUBST HAVE_GMTIME,
46         HAVE_LOCALTIME, REPLACE_GMTIME, and REPLACE_LOCALTIME.
47         * modules/time: Depend on gettimeofday, and substitute the above
48         variables in time.h.
49
50 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
51
52         qacl: port to Windows better
53         See Eli Zaretskii in
54         <http://lists.gnu.org/archive/html/emacs-devel/2013-12/msg00593.html>.
55         * lib/file-has-acl.c (acl_access_nontrivial):
56         Return -1 and set errno if !HAVE_ACL_FIRST_ENTRY &&
57         !HAVE_ACL_TO_SHORT_TEXT && !HAVE_ACL_FREE_TEXT.
58
59 2013-12-12  Alexander V. Lukyanov  <lav@netis.ru>
60
61         md5, sha1, sha256, sha512: fix (trivial) compile error in c++ mode.
62         * lib/gl_openssl.h: Cast void pointers to a specific type.
63
64 2013-12-07  Pádraig Brady <P@draigBrady.com>
65
66         open-tests: fix build failure with -Werror=old-style-declaration
67         * tests/test-open.h: Reorder the inline to avoid the issue.
68
69 2013-12-07  Pádraig Brady <P@draigBrady.com>
70
71         md5, sha1, sha256, sha512: fix link error with partial libcrypto
72         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Only clear LIB_CRYPTO at
73         init time, so that if early checks find crypto routines,
74         while the last does not, then @LIB_CRYPTO@ is replaced correctly,
75         avoiding link failures.
76
77 2013-12-07  Paul Eggert  <eggert@cs.ucla.edu>
78
79         md5, sha1, sha256, sha512: add gl_SET_CRYPTO_CHECK_DEFAULT
80         This provides a new way to specify the default for
81         gl_CRYPTO_CHECK, one that is reflected in the --help message.
82         Emacs uses this, as well as the old way.
83         This attempts to implement a suggestion by Pádraig Brady in
84         <http://lists.gnu.org/archive/html/coreutils/2013-12/msg00080.html>.
85         * m4/gl-openssl.m4(gl_SET_CRYPTO_CHECK_DEFAULT): New macro.
86         (gl_CRYPTO_CHECK): Use it.  Mention the default in --help output.
87
88         md5, sha1, sha256, sha512: add 'auto', and a way to specify default
89         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK):
90         Add support for a new option, --with-openssl=auto, which causes
91         the library to be used if available and silently ignored if not.
92         Add support to allow allow configure.ac to specify its own
93         default, by setting with_openssl_default before invoking gl_INIT.
94
95 2013-12-05  Paul Eggert  <eggert@cs.ucla.edu>
96
97         open-tests: port to glibc with _FORTIFY_SOURCE and -O1
98         Problem reported by Daiki Ueno in:
99         http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00052.html
100         * tests/test-open.h (__always_inline):
101         New macro, if not already defined.
102         (test_open): Use it.
103
104 2013-12-04  Eric Blake  <eblake@redhat.com>
105
106         include_next: minimize code duplication
107         * modules/include_next (Depends-on): Add absolute-header.
108         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Reuse
109         gl_ABSOLUTE_HEADER_ONE instead of open-coding it.
110
111 2013-12-04  Pádraig Brady <P@draigBrady.com>
112
113         getcwd: fix compile error in configure check
114         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Include errno.h
115
116 2013-12-04  Pádraig Brady <P@draigBrady.com>
117
118         regex: suppress core dumps from detection code
119         * m4/regex.m4 (gl_REGEX): Catch the SIGABRT and convert to SIGTERM
120         to suppress core dumps that may well occur on glibc systems.
121         These core dumps might not be cleaned up automatically, or could
122         trigger some system core dump handling logic.
123
124 2013-12-03  Pádraig Brady <P@draigBrady.com>
125
126         md5, sha1, sha256, sha512: support mandating use of openssl
127         * m4/gl-openssl.m4 (gl_crypto_check): Adjust the --with-openssl
128         description, to list the now 3 separate options.  also don't
129         mention the default=no, since this is implicit given the option
130         is described as --with-openssl rather than --without-openssl.
131         If projects change the default they're free to document that.
132         with --with-openssl[=yes] we now error out when the specified
133         hash algorithm is not available in libcrypto.
134
135 2013-12-03  Ivailo  <xakepa10@gmail.com>
136
137         test-xvasprintf: (trivial) fix to disable some -Wformat-security diags
138         * tests/test-xvasprintf.c: Disable -Wformat-zero-length and
139         -Wformat-nonliteral checks, as these edge cases are part of the test.
140
141 2013-12-03  Eric Blake  <eblake@redhat.com>
142
143         regex: avoid glibc deadlock during configure
144         * m4/regex.m4 (gl_REGEX): Avoid recursive malloc deadlock when
145         glibc bug 15078 in turn triggers bug 16159.
146         Reported by Michal Privoznik.
147
148 2013-12-02  Pádraig Brady <P@draigBrady.com>
149
150         md5, sha1, sha256, sha512: use openssl routines if available.
151         --with-openssl the libcrypto md5, sha1, sha224, sha256, sha384, sha256
152         routines will be used if available, requiring apps to link @LIB_CRYPTO@
153         * lib/gl_openssl.h: Provide wrappers for specified openssl hash.
154         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): New function to lookup libcrypto
155         in the standard system location.
156         * m4/sha1.m4: Call gl_CRYPTO_CHECK() for SHA1.
157         * m4/sha256.m4: Likewise with SHA256.
158         * m4/sha512.m4: Likewise with SHA512.
159         * m4/md5.m4: Likewise with MD5.
160         * m4/gc.m4: Ensure @LIB_CRYPTO@ set for tests.
161         * lib/sha1.h: Include wrappers if HAVE_OPENSSL_SHA1.
162         * lib/sha256.h: Likewise with SHA256.
163         * lib/sha512.h: Likewise with SHA512.
164         * lib/md5.h: Likewise with MD5.
165         * lib/sha1.c: Exlude functionality if HAVE_OPENSSL_SHA1.
166         * lib/sha256.c: Likewise with SHA256.
167         * lib/sha512.c: Likewise with SHA512.
168         * lib/md5.c: Likewise with MD5.
169         * modules/crypto/sha1 (Link:): Add the new optional lib.
170         (Depends-on:): Add dependency on extern-inline.
171         * modules/crypto/sha256: Likewise.
172         * modules/crypto/sha512: Likewise.
173         * modules/crypto/md5: Likewise.
174         * modules/crypto/sha1-tests: Reference the lib here too.
175         * modules/crypto/md5-tests: Likewise.
176         * modules/crypto/gc-des-tests: Likewise.
177         * modules/crypto/gc-hmac-md5-tests: Likewise.
178         * modules/crypto/gc-hmac-sha1-tests: Likewise.
179         * modules/crypto/gc-hmac-sha256-tests: Likewise.
180         * modules/crypto/gc-hmac-sha512-tests: Likewise.
181         * modules/crypto/gc-md5-tests: Likewise.
182         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
183         * modules/crypto/gc-sha1-tests: Likewise.
184         * modules/crypto/gc-tests: Likewise.
185         * modules/crypto/hmac-md5-tests: Likewise.
186         * modules/crypto/hmac-sha1-tests: Likewise.
187         * modules/crypto/hmac-sha256-tests: Likewise.
188         * modules/crypto/hmac-sha512-tests: Likewise.
189
190 2013-11-29  RV1971  <rv1971@web.de>
191
192         base64: (trivial) fix compilation regression on some compilers
193         * lib/base64.c: Don't return the void function,
194         instead split to a separate return statement.
195
196 2013-11-28  Paul Eggert  <eggert@cs.ucla.edu>
197
198         ignore-value: revert previous code change
199         * lib/ignore-value.h (ignore_value): Use __extension__ and
200         __typeof__ only for GCC 3.4 and later.  Reported by Eric Blake in
201         <http://lists.gnu.org/archive/html/bug-gnulib/2013-11/msg00102.html>.
202         Change the comment to try to explain this better.
203
204 2013-11-27  Pádraig Brady <P@draigBrady.com>
205
206         selinux-h: improve stub types and add more stub functions
207
208         * lib/se-selinux.in.h: Change security_context_t to a typedef
209         rather than a define, as it's a pointer type and so is better
210         as a typedef to avoid issues declaring multiple variables
211         with the comma operator.  Also add stub for string_to_security_class().
212         * lib/se-context.in.h: Add stub functions for
213         context_{type,range,role,user}_get().
214
215 2013-11-27  Paul Eggert  <eggert@cs.ucla.edu>
216
217         ignore-value: prefer GCC version back through 2.0
218         The code didn't match the comments, so I did a bit of software
219         archaeology.  GCC 2.0 seems to support __extension__ and
220         __typeof__, so fix both code and comments to use 2.0.
221         * lib/ignore-value.h (ignore_value): Use __extension__ and
222         __typeof__ for GCC 2.0 through 3.3, too.
223
224 2013-11-25  Mats Erik Andersson  <gnu@gisladisker.se>
225
226         pty: Activate the signature wrapper of forkpty.
227         The intended preprocessor macro HAVE_FORKPTY is
228         never defined, yet `lib/forkpty.c' depends on it.
229
230         * m4/pty.m4 (gl_FUNC_FORKPTY): At completed analysis,
231         apply AC_DEFINE_UNQUOTED to HAVE_FORKPTY with value
232         $HAVE_FORKPTY for access to wrapper in `lib/forkpty.c'.
233
234 2013-11-18  Jim Meyering  <meyering@fb.com>
235         and Paul Eggert  <eggert@cs.ucla.edu>
236
237         quotearg: don't attempt to store 1 << 31 into an "int"
238         * lib/quotearg.c (quotearg_buffer_restyled): Building coreutils with
239         gcc's new -fsanitize=undefined and running its tests triggered some
240         new test failures due to undefined behavior, all with this diagnostic:
241           lib/quotearg.c:629:62: runtime error: left shift of 1 by 31 places \
242             cannot be represented in type int
243         Rather than shifting "1" left to form a mask, shift the bits right and
244         simply use "1" as the mask.
245
246 2013-11-21  Paul Eggert  <eggert@cs.ucla.edu>
247
248         error: depend on stdio
249         Problem reported by Nikos Mavrogiannopoulos in
250         <http://lists.gnu.org/archive/html/bug-gnulib/2013-11/msg00084.html>
251         * modules/error (Depends-on): Add stdio.
252
253 2013-11-18  Ben Pfaff  <blp@cs.stanford.edu>
254
255         * doc/relocatable-maint.texi (Supporting Relocation): Improve
256         wording.
257         Reported by Reuben Thomas <rrt@sc3d.org>.
258
259 2013-11-13  Paul Eggert  <eggert@cs.ucla.edu>
260
261         * lib/getgroups.c (posix_getgroups, getgroups) [__APPLE__]:
262         New function and macro, to work around _DARWIN_C_SOURCE problem.
263         Reported by Jack Howarth in <http://bugs.gnu.org/14463>.
264
265 2013-11-11  Pádraig Brady <P@draigBrady.com>
266
267         base64: provide a fast path for encoding well sized buffers
268         Avoid conditionals in the base64 encoding loop,
269         which was seen to give 60% better throughput.
270         * lib/base64.c (base64_encode_fast): A new function to be called
271         when we don't want to NUL terminate, and we have enough space
272         in the output to encode the given input.
273         (base64_encode): Call the _fast() version when appropriate.
274         Also remove a redundant mask with 0x3F on the first encoded byte.
275
276 2013-11-08  Paul Eggert  <eggert@cs.ucla.edu>
277
278         extern-inline: port better to OS X 10.9
279         * m4/extern-inline.m4: Omit serial number; this file doesn't use them.
280         (gl_EXTERN_INLINE): Do not suppress the use of extern inline on
281         OS X 10.9, except for g++ where the bug is still present.
282         See <http://trac.macports.org/ticket/41033>.
283
284 2013-11-08  Eric Blake  <eblake@redhat.com>
285
286         fpending: fix regression on DragonFly BSD
287         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for declaration.
288         * lib/fpending.h (__fpending): Don't declare twice.
289         Reported by GW in
290         <https://lists.gnu.org/archive/html/bug-m4/2013-11/msg00000.html>
291
292 2013-11-05  Jim Meyering  <meyering@fb.com>
293
294         hash: relax license to LGPLv2+, for libguestfs
295         * modules/hash (License): Change from GPL to LGPLv2+.
296
297 2013-11-03  Paul Eggert  <eggert@cs.ucla.edu>
298
299         intprops: port to Oracle Studio c99
300         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__SUNPRO_C && __STDC__]:
301         Define to 0, to avoid diagnostics when Oracle Studio is pedantic.
302
303 2013-10-31  Paul Eggert  <eggert@cs.ucla.edu>
304
305         obstack: pacify HP C
306         * lib/obstack.h (obstack_free) [!__GNUC__]: Rewrite to avoid
307         warning "conversion from pointer to smaller integer" from HP
308         C-ANSI-C - cc version B9007AA/B3910B A.06.26.  It's safe to assume
309         C89 or later nowadays, so cast to void instead of int.  Privately
310         reported by H.Merijn Brand.  Also, change header to match glibc's,
311         to make checking against glibc easier.
312
313 2013-10-29  Jim Meyering  <meyering@fb.com>
314
315         maint.mk: prefer gpgv2 over gpgv
316         * top/maint.mk (gpgv): Use gpgv2 if present, else gpgv.
317         (gpg_key_ID): Use $(gpgv), rather than hard-coding "gpgv".
318         Reported by Gary Vaughan.
319
320 2013-10-30  Paul Eggert  <eggert@cs.ucla.edu>
321
322         isnan: port to VAX
323         Reported by John Klos for NetBSD-5/VAX in
324         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00133.html>.
325         * lib/isnan.c (IEEE_FLOATING_POINT): New macro, stolen from Emacs.
326         (FUNC): Use it.
327
328 2013-10-28  Jim Meyering  <meyering@fb.com>
329
330         gnulib-tool: protect against CDPATH
331         * gnulib-tool: Many "cd" built-in functions print a directory name
332         to stdout when CDPATH is set, e.g.,
333           $ bash -c 'CDPATH=/; cd tmp'
334           /tmp
335         Unset it, when possible.  Prompted by a comment from Bruce Korb.
336
337         maint.mk: restore functionality removed by recent change...
338         Sunday's change, v0.0-8062-g6b24f60, may have appeared correct from
339         the context of a shallow-cloned gnulib repository: "git describe"
340         would fail in such a directory.  However, that change made it so
341         the reported gnulib revision no longer includes the version number
342         or a commit count, even when run from a full clone.
343         * top/maint.mk (gnulib-version): Use the full "git describe"
344         output when possible, e.g., the form above, rather than the
345         abbreviated, no-tag, no-commit-count string, and fall back to
346         using a 10-byte hash, rather than the default minimal-length
347         hash prefix, since while the minimal-length one may be fine today,
348         it is likely not to be unique for very long.
349
350 2013-10-26  Jim Meyering  <meyering@fb.com>
351
352         maint.mk: fix "release" target to build _version
353         This fixes a bug in README-release whereby following the outlined
354         steps, one would publish a tarball whose programs would report
355         --version output not consistent with the package version number.
356         This bug caused grep-2.15 to produce a grep program whose
357         --version option made it print 2.14.56-1e3d rather than 2.15.
358         * top/maint.mk (release): Making this target build "_version"
359         ensures that the new version number is reflected in configure.
360
361 2013-10-21  Ben Pfaff  <blp@cs.stanford.edu>
362
363         install-reloc: Support multi-binary installation.
364         * build-aux/install-reloc: Support installing multiple programs in
365         one invocation, as done by Automake starting with commit
366         4295fe33eb23f (Multi-file install for PROGRAMS.).  From Bruno
367         Haible <bruno@clisp.org>, archived at
368         http://lists.debian.org/debian-bsd/2012/05/msg00032.html.
369         Reported by Sylvain <beuc@gnu.org>.
370
371 2013-10-21  Michael Haubenwallner <michael.haubenwallner@salomon.at>
372
373         selinux-h: Really build without selinux when library is missing.
374         * m4/selinux-selinux-h.m4: When the selinux library is missing, really
375         continue without selinux, as already told in the warning message.
376
377 2013-10-21  Jim Meyering  <meyering@fb.com>
378
379         regex: also remove dependency on HAVE_WCSCOLL
380         * lib/regex_internal.h: Remove final vestige of the wcscoll dependency.
381
382 2013-10-21  Reuben Thomas <rrt@sc3d.org>
383
384         xfreopen: Fix typo. s/frepoen/freopen/
385         * lib/xfreopen.c: Fix description.
386         * modules/xfreopen: Likewise.
387
388 2013-10-21  Jim Meyering  <meyering@fb.com>
389
390         regex: don't depend on wcscoll
391         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wcscoll.
392         It is no longer used.
393
394 2013-10-20  Jim Meyering  <meyering@fb.com>
395
396         error: add the printf attribute to a static function
397         * lib/error.c (error_tail): Add the printf attribute, to placate
398         gcc's -Werror=suggest-attribute=format option.
399
400 2013-09-30  Jim Meyering  <meyering@fb.com>
401
402         fpending, obstack, strerror-override: use pure+const function attrs
403         * lib/fpending.h (__fpending): Declare with the "pure" attribute.
404         * lib/obstack.c (_obstack_allocated_p): Likewise.
405         * lib/obstack.h (_obstack_memory_used): Likewise.
406         (_obstack_memory_used): Likewise.
407         * lib/strerror-override.h (strerror_override): Declare with
408         the "const" attribute.
409
410 2013-10-18  Eric Blake  <eblake@redhat.com>
411
412         extern-inline: make safe for -Wundef usage
413         Reported by Vladimir 'phcoder' Serbinenko in
414         https://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00078.html
415         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Port to older gcc.
416
417 2013-10-16  Paul Eggert  <eggert@cs.ucla.edu>
418
419         mkfifo-tests, etc.: allow HP-UX 11.11 bug
420         Problem reported by Daniel Richard G. in
421         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00068.html>.
422         * doc/posix-functions/mkfifo.texi (mkfifo):
423         * doc/posix-functions/mkfifoat.texi (mkfifoat):
424         * doc/posix-functions/mknod.texi (mknod):
425         * doc/posix-functions/mknodat.texi (mknodat):
426         Document the HP-UX 11.11 bug.
427         * tests/test-mkfifo.h (test_mkfifo):
428         Allow the HP-UX 11.11 bug.
429
430 2013-10-14  Paul Eggert  <eggert@cs.ucla.edu>
431
432         acl: allow cross-compilation to Gentoo
433         Problem reported by Gabriel Marcano in
434         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00058.html>.
435         * m4/acl.m4 (gl_ACL_GET_FILE): When cross-compiling,
436         test only whether it links.
437
438 2013-10-13  Paul Eggert  <eggert@cs.ucla.edu>
439
440         mgetgroups: remove dependency on realloc-gnu
441         The dependency violates the comment in realloc-gnu, which
442         says that tests can't depend on realloc-gnu; some tests depend
443         on mgetgroups, so mgetgroups can't depend on realloc-gnu.
444         Problem reported by Daniel Richard G. in
445         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00056.html>.
446         * lib/mgetgroups.c (mgetgroups): Don't call realloc (NULL, 0).
447         * modules/mgetgroups (Depends-on): Depend on realloc-posix,
448         not realloc-gnu.
449
450 2013-10-12  Paul Eggert  <eggert@cs.ucla.edu>
451
452         regex-tests: port to HP-UX 11.11
453         Problem reported by Daniel Richard G. in
454         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00052.html>.
455         * modules/regex-tests (test_regex_LDADD): Add LIBTHREAD, LIB_PTHREAD.
456
457 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
458
459         verify: document some 'assume' pitfalls
460         * doc/verify.texi (Compile-time Assertions):
461         Mention that 'assume (E)' can sometimes slow things down.
462         Use CHAR_MAX + 1, not UCHAR_MAX + 1.
463
464 2013-10-10  Eric Blake  <eblake@redhat.com>
465
466         strtoumax: fix typo in previous commit.
467         * modules/strtoumax (Depends-on): Fix typo.
468         * modules/strtoimax (Depends-on): Likewise.
469
470 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
471
472         strtoumax: port to Solaris 8
473         This problem was introduced in the recent HP-UX patch.
474         Reported by Tom G. Christensen in
475         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00037.html>.
476         * modules/strtoumax (Depends-on): Test HAVE_STRTOUMAX
477         and REPLACE_STRTOUMAX rather than ac_cv_func_strtoumax.
478
479 2013-10-09  Paul Eggert  <eggert@cs.ucla.edu>
480
481         strtoimax, strtoumax: port to HP-UX 11.11
482         Problem reported by Daniel Richard G. in
483         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00023.html>.
484         * lib/inttypes.in.h (strtoumax): Replace strtoumax if
485         REPLACE_STRTOUMAX, thus treating it consistently with strtoimax.
486         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Add default for
487         REPLACE_STRTOUMAX.
488         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX):
489         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX):
490         Replace the function if defined as a macro but not as a function.
491         * modules/inttypes-incomplete (inttypes.h): Substitute
492         REPLACE_STRTOUMAX.
493         * modules/strtoumax (configure.ac): Replace strtoumax if
494         REPLACE_STRTOUMAX.
495
496 2013-10-08  Paul Eggert  <eggert@cs.ucla.edu>
497
498         strtoimax: port to HP-UX 11.11
499         Problem reported by Daniel Richard G.
500         * lib/strtoimax.c (Strtoimax, Strtol, Strtoll): New macros.
501         (strtoimax, strtol, strtoll) [UNSIGNED]: Remove, since
502         they might clash with inttypes.h.
503
504 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
505
506         New module 'count-trailing-zeros'.
507         * MODULES.html.sh: Mention it.
508         * lib/count-trailing-zeros.c, lib/count-trailing-zeros.h:
509         * m4/count-trailing-zeros.m4, modules/count-trailing-zeros:
510         * modules/count-trailing-zeros-tests:
511         * tests/test-count-trailing-zeros.c:
512         New files.
513
514         count-leading-zeros: port to MSC; support types wider than 64 bits
515         The ideas behind the MSC port are stolen from Emacs.
516         * lib/count-leading-zeros.h:
517         Don't include verify.h: it's no longer needed, as types wider than
518         64 bits are now supported.
519         (COUNT_LEADING_ZEROS): New arg MSC_BUILTIN, for better
520         performance with MSC.  All uses changed.  Do not assume that TYPE
521         has at most 64 bits.
522         (count_leading_zeros_32): Assume 0 < X < 2**32, for speed.
523         All uses changed.  Fold the subtraction from 31 into the table.
524
525         count-one-bits: port to MSC; support types wider than 64 bits
526         The ideas behind the MSC port are stolen from Emacs.
527         * lib/count-one-bits.c (popcount_support) [_MSC_VER]: New variable.
528         * lib/count-one-bits.h: Include limits.h, for CHAR_BIT.
529         Don't include verify.h: it's no longer needed, as types wider than
530         64 bits are now supported.
531         (COUNT_ONE_BITS_GENERIC): New macro.
532         (popcount_supported) [_MSC_VER]: New inline function.
533         (COUNT_ONE_BITS): Use it.  New arg MSC_BUILTIN, for better
534         performance with MSC.  All uses changed.  Do not assume that TYPE
535         has at most 64 bits.
536         * modules/count-one-bits (Depends-on): Do not depend on 'verify'.
537
538 2013-10-06  Andrew Borodin  <aborodin@vmail.ru>
539
540         mountlist: fix resource leak with MOUNTED_INTERIX_STATVFS
541         * lib/mountlist.c (read_file_system_list): fix leak of directory
542         streams in case of #ifdef MOUNTED_INTERIX_STATVFS.
543
544 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
545
546         tests: improve diagnostic when an assertion fails
547         * tests/macros.h (ASSERT): Report the assertion that failed.
548
549 2013-10-02  Paul Eggert  <eggert@cs.ucla.edu>
550
551         verify: new macro 'assume'
552         This is taken from Emacs, and should be generally useful.
553         * doc/verify.texi (assume): Document it.
554         * lib/verify.h (assume): New macro.
555         (__has_builtin): Expand to 0 if not defined.
556
557 2013-09-26  Eric Blake  <eblake@redhat.com>
558
559         dup2, dup3: work around another cygwin crasher
560         * m4/dup2.m4 (gl_FUNC_DUP2): Expose the bug.
561         * m4/dup3.m4 (gl_FUNC_DUP3): Likewise.
562         * tests/test-dup2.c (main): Likewise.
563         * lib/dup2.c (rpl_dup2): Use setdtablesize to avoid it.
564         * lib/dup3.c (dup3): Likewise.
565         * doc/posix-functions/dup2.texi (dup2): Document it.
566         * doc/glibc-functions/dup3.texi (dup3): Likewise.
567
568         getdtablesize: work around cygwin issue
569         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Detect problem.
570         * modules/getdtablesize (configure.ac): Build replacement.
571         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set up a witness.
572         * modules/unistd (Makefile.am): Expose the witness.
573         * lib/unistd.in.h (getdtablesize): Declare replacement.
574         * lib/getdtablesize.c (rpl_getdtablesize): Work around it.
575         * tests/test-getdtablesize.c (main): Test it.
576         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Document it.
577
578 2013-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
579
580         pmccabe2html: escaping of special characters
581         Escape all '<', '>', and '&' in HTML output.
582         * build-aux/pmccabe2html (html_fnc): Call gsub()
583         instead of sub() to capture all '<', '>', and '&'.
584         Neither of '<' and '>' is special in a regexp,
585         so first arguments to gsub() are corrected. Also,
586         in replacement strings, ampersand must be escaped.
587         Finally, '&' must be handled first, then '<' and '>'.
588
589 2013-09-24  Eric Blake  <eblake@redhat.com>
590
591         manywarnings: enable nicer gcc warning messages
592         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Older gcc requires
593         some -f options for optimal warnings.
594
595 2013-09-21  Jim Meyering  <meyering@fb.com>
596
597         timespec: use the new TIMESPEC_RESOLUTION in a few more places
598         * lib/timespec-add.c (timespec_add): Also replace 999999999
599         with TIMESPEC_RESOLUTION - 1.
600         * lib/timespec-sub.c (timespec_sub): Likewise.
601
602 2013-09-23  Paul Eggert  <eggert@cs.ucla.edu>
603
604         warnings: port --enable-gcc-warnings to Solaris Studio 12.3
605         Problem reported by Dagobert Michelsen via Eric Blake in
606         <http://lists.gnu.org/archive/html/bug-gnulib/2013-09/msg00052.html>.
607         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use AC_LINK_IFELSE,
608         not AC_COMPILE_IFELSE.
609
610 2013-09-23  Eric Blake  <eblake@redhat.com>
611
612         configmake: support new --runstatedir option
613         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Substitute runstatedir
614         even if autoconf was too old to provide the command line option.
615         * modules/configmake (Makefile.am): Propagate it to .h file.
616
617 2013-09-22  Paul Eggert  <eggert@cs.ucla.edu>
618
619         ctype, string: depend on extern-inline
620         This is needed to complete the recent OS X fixes.
621         Also, fix related documentation as suggested by Eric Blake.
622         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
623         * doc/posix-functions/isascii.texi, doc/posix-functions/iscntrl.texi:
624         * doc/posix-functions/isdigit.texi, doc/posix-functions/isgraph.texi:
625         * doc/posix-functions/islower.texi, doc/posix-functions/isprint.texi:
626         * doc/posix-functions/ispunct.texi, doc/posix-functions/isspace.texi:
627         * doc/posix-functions/isupper.texi, doc/posix-functions/isxdigit.texi:
628         * doc/posix-functions/toascii.texi, doc/posix-functions/tolower.texi:
629         * doc/posix-functions/toupper.texi:
630         List the 'ctype' gnulib module.
631         * doc/posix-functions/strcat.texi, doc/posix-functions/strcpy.texi:
632         * doc/posix-functions/strncpy.texi:
633         List the 'string' gnulib module.
634         * modules/memcpy, modules/memmove, modules/memset (Depends-on):
635         Add string.
636         * modules/ctype, modules/string (Depends-on): Add extern-inline.
637
638 2013-09-19  Pádraig Brady  <P@draigBrady.com>
639
640         userspec: support optional parameters to parse_user_spec()
641         * lib/userspec.c (parse_user_spec): If the GID param is NULL,
642         then avoid group processing and treat the full spec as a user.
643         (parse_with_separator): Allow the USERNAME and GROUPNAME to
644         be optional params (NULL), in which case they're ignored.
645
646 2013-09-19  Paul Eggert  <eggert@cs.ucla.edu>
647
648         timespec: new function make_timespec, and new constants
649         * lib/timespec.h: Incorporate recent changes on the Emacs trunk.
650         (TIMESPEC_RESOLUTION, LOG10_TIMESPEC_RESOLUTION): New constants.
651         (make_timespec): New function.
652         * lib/dtotimespec.c (dtotimespec):
653         * lib/timespec-add.c (timespec_add):
654         * lib/timespec-sub.c (timespec_sub):
655         * lib/utimens.c (validate_timespec):
656         * lib/utimensat.c (rpl_utimensat):
657         Use these new constants and functions.
658
659         stdio: OS X port of putc_unlocked + extern inline
660         * lib/stdio.in.h (putc_unlocked): #undef on problematic Apple platforms.
661         * doc/posix-functions/putc_unlocked.texi:
662         * doc/posix-functions/putchar_unlocked.texi:
663         Document this portability problem.
664
665         signal: OS X port of sigaddset etc. + extern inline
666         * lib/signal.in.h (sigaddset, sigdelset, sigemptyset, sigfillset)
667         (sigismember): #undef on problematic Apple platforms.
668         * doc/posix-functions/sigaddset.texi:
669         * doc/posix-functions/sigdelset.texi:
670         * doc/posix-functions/sigemptyset.texi:
671         * doc/posix-functions/sigfillset.texi:
672         * doc/posix-functions/sigismember.texi:
673         Document this portability problem.
674
675         extern-inline: do not always suppress extern inline on OS X
676         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Suppress the use of
677         extern inline on Apple only if the particular compile-time
678         configuration is known to have the problem.
679         (_GL_EXTERN_INLINE_APPLE_BUG): New private macro, to implement this.
680         (_GL_EXTERN_INLINE_IN_USE): New macro, intended for use by
681         other Gnulib modules.
682
683         extern-inline: document fixes for ctype and wctype macros
684         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
685         * doc/posix-functions/isascii.texi, doc/posix-functions/isblank.texi:
686         * doc/posix-functions/iscntrl.texi, doc/posix-functions/isdigit.texi:
687         * doc/posix-functions/isgraph.texi, doc/posix-functions/islower.texi:
688         * doc/posix-functions/isprint.texi, doc/posix-functions/ispunct.texi:
689         * doc/posix-functions/isspace.texi, doc/posix-functions/isupper.texi:
690         * doc/posix-functions/iswalnum.texi, doc/posix-functions/iswalpha.texi:
691         * doc/posix-functions/iswcntrl.texi, doc/posix-functions/iswctype.texi:
692         * doc/posix-functions/iswdigit.texi, doc/posix-functions/iswgraph.texi:
693         * doc/posix-functions/iswlower.texi, doc/posix-functions/iswprint.texi:
694         * doc/posix-functions/iswpunct.texi, doc/posix-functions/iswspace.texi:
695         * doc/posix-functions/iswupper.texi, doc/posix-functions/iswxdigit.texi:
696         * doc/posix-functions/isxdigit.texi, doc/posix-functions/toascii.texi:
697         * doc/posix-functions/memcpy.texi, doc/posix-functions/memmove.texi:
698         * doc/posix-functions/memset.texi, doc/posix-functions/stpcpy.texi:
699         * doc/posix-functions/stpncpy.texi, doc/posix-functions/strcat.texi:
700         * doc/posix-functions/strcpy.texi, doc/posix-functions/strncat.texi:
701         * doc/posix-functions/strncpy.texi:
702         * doc/posix-functions/tolower.texi, doc/posix-functions/toupper.texi:
703         * doc/posix-functions/towlower.texi, doc/posix-functions/towupper.texi:
704         Document that Gnulib fixes portability problems with these
705         functions on OS X 10.8 and earlier when called from plain inline
706         or extern inline functions.
707
708 2013-09-17  Kevin Cernekee  <cernekee@gmail.com>
709
710         fflush, freadahead, fseeko: Fix for Android
711         Suggested by Bruno Haible in:
712         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00306.html>
713         * lib/stdio-impl.h: Use local __sfileext definition.
714
715 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>
716
717         pmccabe2html: Portability to other awk versions.
718         The functions systime() and strftime() are available
719         in Gawk only.  Properly close two HTML-tags 'style'
720         and 'span'.
721         * build-aux/pmccabe2html (BEGIN): Store timing
722         strings in EPOCH_TIME and CHRONOS_TIME.  Replace
723         systime() in HTML_COMMENT.
724         (html_header): Correctly close tag 'style'.
725         (END): Replace strftime() by CHRONOS_TIME.  Close
726         tag 'span' correctly, not as 'div'.
727
728 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
729
730         getgroups: statement without effect
731         * lib/getgroups.c (rpl_getgroups) [HAVE_GETGROUPS]:
732         Change equality conditional to expected assignment.
733
734 2013-09-09  Eric Blake  <eblake@redhat.com>
735
736         glob: fix compilation
737         * lib/glob.in.h (__THROW): Fix missing line in previous commit.
738
739 2013-09-07  Eric Blake  <eblake@redhat.com>
740
741         glob: fix build for platforms without __THROW
742         * lib/glob.in.h (__THROW): Add definition again.
743
744 2013-09-04  Anton Ovchinnikov  <revolver112@gmail.com>  (tiny change)
745
746         regex-quote: fix buffer access out of bounds
747         http://lists.gnu.org/archive/html/bug-gnulib/2013-09/msg00001.html
748         * lib/regex-quote.c (regex_quote_spec_pcre):
749         Fix typo that resulted in an out-of-bounds read.
750
751 2013-09-04  Eric Blake  <eblake@redhat.com>
752
753         glob: avoid -Wattribute warnings on glibc
754         * lib/glob.c (next_brace_sub, prefix_array, collated_compare): Use
755         __THROWNL, not __THROW, on static functions.
756         * lib/glob.in.h (__THROW): Adjust...
757         (__THROWNL): ...accordingly.
758
759 2013-08-28  Paul Eggert  <eggert@cs.ucla.edu>
760
761         headers: check that _GL_INLINE_HEADER_BEGIN is defined
762         Suggested by Bruce Korb in:
763         http://lists.gnu.org/archive/html/bug-gnulib/2013-08/msg00070.html
764         * doc/extern-inline.texi (extern inline):
765         Suggest checking that _GL_INLINE_HEADER_BEGIN is defined.
766         * lib/acl-internal.h, lib/argp-fmtstream.h, lib/argp.h:
767         * lib/binary-io.h, lib/bitrotate.h, lib/count-leading-zeros.h:
768         * lib/count-one-bits.h, lib/eealloc.h, lib/execinfo.in.h:
769         * lib/gethrxtime.h, lib/gl_list.h, lib/gl_oset.h, lib/gl_xlist.h:
770         * lib/gl_xoset.h, lib/gl_xsublist.h, lib/glthread/cond.h:
771         * lib/glthread/thread.h, lib/math.in.h, lib/mbchar.h, lib/mbfile.h:
772         * lib/mbiter.h, lib/mbuiter.h, lib/openat.h, lib/pipe-filter-aux.h:
773         * lib/priv-set.h, lib/pthread.in.h, lib/savewd.h, lib/se-context.in.h:
774         * lib/se-selinux.in.h, lib/sig-handler.h, lib/stat-time.h:
775         * lib/sys_socket.in.h, lib/timespec.h, lib/u64.h, lib/unistd.in.h:
776         * lib/utimens.h, lib/wctype.in.h, lib/xalloc.h, lib/xsize.h:
777         * lib/xtime.h:
778         Check that _GL_INLINE_HEADER_BEGIN is defined.
779
780 2013-08-29  Pádraig Brady  <P@draigBrady.com>
781
782         bootstrap: remove the --version requirement from ancillary tools
783         * build-aux/bootstrap (check_exists): A new refactored function to
784         determine if a command exists.
785         (find_tool): Use the new function which does not require the
786         --version option to be supported.
787         (check_versions): Use the new function.
788
789 2013-08-26  Simon Josefsson  <simon@josefsson.org>
790
791         gc: support HMAC-SHA256 and HMAC-SHA512.
792         * lib/gc.h: Add gc_hmac_sha256 and gc_hmac_sha512.
793         * lib/gc-libgcrypt.c (gc_hmac_sha256, gc_hmac_sha512): New
794         functions.
795         (gc_hmac_md5): Use symbolic constant.
796         * lib/gc-gnulib.c: Include hmac.h for HMAC-SHA256/512 too.
797         (gc_hmac_sha256, gc_hmac_sha512): New functions.
798         * lib/hmac.h: Add hmac_sha256 and hmac_sha512 prototypes.
799         * m4/sha256.m4: Protect against empty expansion.
800         * m4/sha512.m4: Likewise.
801         * lib/hmac-sha256.c: New file.
802         * lib/hmac-sha512.c: Likewise.
803         * m4/gc-hmac-sha256.m4: Likewise.
804         * m4/gc-hmac-sha512.m4: Likewise.
805         * m4/gc-sha256.m4: Likewise.
806         * m4/gc-sha512.m4: Likewise.
807         * modules/crypto/gc-hmac-sha256: Likewise.
808         * modules/crypto/gc-hmac-sha256-tests: Likewise.
809         * modules/crypto/gc-hmac-sha512: Likewise.
810         * modules/crypto/gc-hmac-sha512-tests: Likewise.
811         * modules/crypto/hmac-sha256: Likewise.
812         * modules/crypto/hmac-sha256-tests: Likewise.
813         * modules/crypto/hmac-sha512: Likewise.
814         * modules/crypto/hmac-sha512-tests: Likewise.
815         * tests/test-gc-hmac-sha256.c: Likewise.
816         * tests/test-gc-hmac-sha512.c: Likewise
817         * tests/test-hmac-sha256.c: Likewise.
818         * tests/test-hmac-sha512.c: Likewise
819
820 2013-08-24  Daiki Ueno  <ueno@gnu.org>
821
822         * m4/intl.m4: Update from gettext-0.18.3.1, which fixes a misuse
823         of AC_CHECK_DECLS.
824
825 2013-08-23  Paul Eggert  <eggert@cs.ucla.edu>
826
827         selinux-at: omit unnecessary include
828         * lib/selinux-at.c: Don't include dosname.h; not needed, since
829         this source file doesn't use its macros, and subsidiary files that
830         use the macros already include it.
831
832 2013-08-21  Eric Blake  <eblake@redhat.com>
833
834         d-ino: avoid false negative on symlink
835         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use lstat.
836         Reported by Stephane Chazelas.
837
838 2013-08-12  Mike Miller  <mtmiller@ieee.org>  (tiny change)
839
840         bootstrap: port to OpenBSD sed
841         * build-aux/bootstrap (insert_if_absent): Port to OpenBSD sed which
842         does not interpret `-' as a file argument to mean stdin.
843
844 2013-08-15  Eric Blake  <eblake@redhat.com>
845
846         warnings: minor optimization
847         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use fewer processes.
848
849         warnings: check -Wfoo rather than -Wno-foo
850         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): If name begins with
851         -Wno-, test if the compiler recognizes the positive form instead.
852
853 2013-08-15  Karl Berry  <karl@gnu.org>
854
855         * config/srclist-update: add option "doclicense" to placate
856         pulling *.texi files from Emacs.  Write terse usage
857         documentation at the top.
858
859 2013-08-13  Paul Eggert  <eggert@cs.ucla.edu>
860
861         xvasprintf-tests: port to GCC with hardening flags
862         * tests/test-xvasprintf.c (test_xasprintf): Pass another arg to
863         xasprintf, to pacify GCC.  Reported by Santiago Vila in:
864         http://lists.gnu.org/archive/html/bug-diffutils/2013-08/msg00002.html
865
866 2013-08-11  Paul Eggert  <eggert@cs.ucla.edu>
867
868         fpending: port to recent Cygwin change to stdio_ext.h
869         Reported by LRN in
870         <http://lists.gnu.org/archive/html/bug-gnulib/2013-08/msg00028.html>.
871         * lib/fpending.h: Don't worry about HAVE_DECL___FPENDING;
872         just declare __fpending unless it's a macro.
873         A duplicate decl shouldn't hurt.
874         * m4/fpending.m4 (gl_FUNC_FPENDING): Check that an __fpending
875         call compiles and links, instead of separately checking for
876         decl and lib function.
877         * modules/fpending (configure-ac):
878         Adjust to fpending.m4's renaming of shell variable.
879
880 2013-08-10  Paul Eggert  <eggert@cs.ucla.edu>
881
882         sys_time: port to OpenBSD
883         * lib/sys_time.in.h: Simply delegate to the system's header
884         in the BSDish cases as well.  Problem reported by Mike Miller in
885         <http://lists.gnu.org/archive/html/bug-gnulib/2013-08/msg00016.html>.
886         * tests/test-sys_select.c, tests/test-sys_time.c (verify_tv_sec_type):
887         Allow platforms like 64-bit OpenBSD where timeval's tv_sec is
888         wider than time_t.
889
890 2013-08-09  Pádraig Brady <P@draigBrady.com>
891
892         bootstrap: support checksum utils having -c but not --status
893         * build-aux/bootstrap: Only look for sha1sum if updating po files.
894         Add sha1 to the list of supported checksum utils since it's now
895         supported through adjustments below.
896         (update_po_files): Remove the use of --status
897         in a way that will suppress all error messages, but since this is
898         only used to minimize updates, it shouldn't cause an issue.
899         Exit early if there is a problem updating the po file checksums.
900         (find_tool): Remove the check for --version support as this
901         is optional as per commit 86186b17.  Don't even check for the
902         presence of the command as if that is needed, it's supported
903         through configuring prerequisites in bootstrap.conf.
904         Prompt that when a tool isn't found, one can define an environment
905         variable to add to the hardcoded search list.
906
907 2013-08-05  Jim Meyering  <meyering@fb.com>
908
909         regex: port to non-glibc/lock-using systems
910         Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc
911         system with GNULIB_LOCK would fail due to absence of the
912         included "glthread/lock.h".  This would affect any package
913         for which the "lock" module is used only by the regex module,
914         and not explicitly used.
915         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21.
916         * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]:
917         Add a dependency on the "lock" module.
918
919 2013-07-20  Daiki Ueno  <ueno@gnu.org>
920
921         localecharset: make locale_charset thread-safe on Mac OS X
922         * lib/localcharset.c (locale_charset) [DARWIN7]: Use MB_CUR_MAX_L
923         instead of MB_CUR_MAX.
924
925 2013-07-20  Daiki Ueno  <ueno@gnu.org>
926
927         gettext: update to version 0.18.3
928         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.3.  In particular,
929         require AC_PROG_SED to allow user to specify custom sed command when
930         generating en@quot PO file.
931
932 2013-07-18  Werner Lemberg <wl@gnu.org>  (tiny change)
933
934         bootstrap: use correct source when copying build-aux files
935         * build-aux/bootstrap (gnulib_extra_files): This variable is
936         relative to upstream gnulib layout, not downstream.
937
938 2013-07-17  Paul Eggert  <eggert@cs.ucla.edu>
939
940         tmpdir: fix bug in VMS port
941         * lib/tmpdir.c (path_search) [__VMS]: Never add slash.
942         See Steven M. Schweda in
943         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00026.html>.
944
945 2013-07-15  Paul Eggert  <eggert@cs.ucla.edu>
946
947         tmpdir: port to VMS, to // != /, and to long dirs
948         * lib/tmpdir.c (__libc_secure_getenv) [!_LIBC]: Rename from
949         __secure_getenv, so that we're more like the glibc version.
950         All uses changed.
951         (path_search): Don't put slash after directory if __VMS.
952         Problem reported by Steven M. Schweda in
953         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00019.html>.
954         Simplify code to add slash; no need for a loop.
955         Do not remove trailing slash from "//".
956         Do not assume dlen <= INT_MAX.
957
958 2013-07-09  Paul Eggert  <eggert@cs.ucla.edu>
959
960         regex: port to --with-included-regex --enable-gcc-warnings non-threaded
961         * lib/regex_internal.h (lock_fini, lock_lock): Rework to avoid
962         gcc warnings in the non-threaded case.  Reported by Charlie Brown in
963         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00015.html>.
964
965         accept4, dup3, pipe2: port to Cygwin
966         Problem reported for Emacs by Ken Brown in <http://bugs.gnu.org/14821>.
967         * lib/accept4.c (accept4) [O_BINARY]:
968         * lib/dup3.c (dup3) [O_BINARY]:
969         * lib/pipe2.c (pipe2) [O_BINARY]:
970         Use set_binary_mode, not setmode.
971         * lib/pipe2.c [!GNULIB_BINARY_IO]: Include binary-io.h.
972         * modules/binary-io (Depends-on): Remove module indicator.
973         These last two bits undo the previous change to pipe2 and binary-io.
974
975 2013-07-09  Pádraig Brady  <P@draigBrady.com>
976
977         mountlist: add support for deallocating returned list entries
978         * lib/mountlist.c (free_mount_entry): A new exported function
979         to deallocate a mount list entry.
980         (read_file_system_list): Refactor to use the new deallocation function.
981         Suggested by Anton Ovchinnikov.
982
983 2013-07-07  Paul Eggert  <eggert@cs.ucla.edu>
984
985         stdalign, verify: port to FreeBSD 9.1, to C11, and to C++11
986         Problem reported by Ulrich Mueller in <http://bugs.gnu.org/14812>.
987         * lib/stdalign.in.h (_Alignas, _Alignof):
988         Port to FreeBSD 9.1, and to C11 and C++11.
989         (_Alignas): Also support ICC.
990         * lib/verify.h (_Static_assert): Undef if <stddef.h> defines it.
991         * m4/stdalign.m4 (gl_STDALIGN_H): Port to ICC and to C++11.
992
993 2013-07-06  Paul Eggert  <eggert@cs.ucla.edu>
994
995         fnmatch: don't goto over declaration
996         * lib/fnmatch_loop.c (FCT): Hoist local up one level, to avoid
997         undefined behavior for goto over a declaration.
998         Problem reported by Charlie Brown in
999         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00009.html>.
1000
1001         pipe2: decouple from binary-io a bit
1002         This is for Emacs, which needs pipe2 but not binary-io.
1003         * lib/pipe2.c [!GNULIB_BINARY_IO]: Don't include binary-io.h.
1004         * modules/binary-io (Depends-on): Add module indicator.
1005
1006 2013-07-03  Eric Blake  <eblake@redhat.com>
1007
1008         mgetgroups: relax license to LGPLv2+
1009         * modules/getugroups (License): Change from GPLv3+.
1010         * modules/mgetgroups (License): Likewise.
1011         * modules/getgroups (License): Change from LGPLv3+.
1012
1013         xalloc-oversized: relax license to LGPLv2+
1014         * modules/xalloc-oversized (License): Change from GPLv3+.
1015
1016         nproc: relax license to LGPLv2+
1017         * modules/nproc (License): Change from LGPLv3+.
1018
1019         bootstrap: honor --no-git
1020         * build-aux/bootstrap: Don't even try to use git when user is
1021         pointing to a static checkout.
1022
1023 2013-06-23  Paul Eggert  <eggert@cs.ucla.edu>
1024
1025         ignore-value: port to gcc -pedantic
1026         * lib/ignore-value.h (ignore_value):
1027         Port to gcc -pedantic, by using __extension__.
1028         Reindent as per usual gnulib style nowadays.
1029         Simplify GCC version check.
1030
1031 2013-06-21  Paul Eggert  <eggert@cs.ucla.edu>
1032
1033         extern-inline: port to gcc -std=c89
1034         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
1035         Do not use __gnu_inline__ if pedantic and pre-C99.
1036
1037 2013-06-18  Paul Eggert  <eggert@cs.ucla.edu>
1038
1039         doc: document extern-inline
1040         * doc/extern-inline.texi: New file.
1041         * doc/gnulib.texi (alloca-opt): Include it.
1042         * m4/extern-inline.m4: Move some comments to documentation,
1043         and others closer to what they describe.
1044
1045         doc: chatter less
1046         * doc/Makefile (NEWEST_GNULIB_TEXI_FILE): New macro.
1047         (updated-stamp): Use it.  This causes 'make' to output just
1048         one file name rather than zillions.
1049
1050         fflush, fseeko: port to musl cross-compiles
1051         * lib/fseeko.c (fseeko): Assume that fflushing stdin works if
1052         on some implementation that (1) is not known to be buggy,
1053         (2) claims conformance to POSIX.1-2008 or later, and (3) is being
1054         cross-compiled to so we can't easily check for lack of
1055         conformance.  This is for cross-compiling to musl.
1056         Reported by Rich Felker in
1057         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00043.html>.
1058         * m4/fclose.m4 (gl_FUNC_FCLOSE):
1059         * m4/fflush.m4 (gl_FUNC_FFLUSH):
1060         * m4/fseeko.m4 (gl_FUNC_FSEEKO):
1061         Adjust to above change.
1062         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Set gl_cv_func_fflush_stdin
1063         to 'cross', not to 'no', when cross-compiling.  AC_DEFINE
1064         FUNC_FFLUSH_STDIN to 1, 0, -1 if fflushing stdin is known to work,
1065         known not to work, or unknown.
1066
1067 2013-06-15  Paul Eggert  <eggert@cs.ucla.edu>
1068
1069         msvc-inval: port to mingw-w64
1070         * lib/msvc-inval.c (gl_msvc_invalid_parameter_handler):
1071         Use __cdecl, not cdecl, for mingw-w64.  Reported by LRN in
1072         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00039.html>.
1073
1074 2013-06-11  Paul Eggert  <eggert@cs.ucla.edu>
1075
1076         getcwd-lgpl: port to Tru64
1077         * lib/getcwd-lgpl.c: Include <stdlib.h>, for malloc etc.
1078         Problem reported by Steven M. Schweda in
1079         <http://lists.gnu.org/archive/html/bug-gzip/2013-06/msg00010.html>.
1080
1081         tests: port large-fd POSIX spawn tests to OS X
1082         Problem reported by Daiki Ueno in
1083         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00031.html>.
1084         * tests/test-posix_spawn_file_actions_addclose.c:
1085         * tests/test-posix_spawn_file_actions_adddup2.c:
1086         * tests/test-posix_spawn_file_actions_addopen.c:
1087         Include <limits.h>, for OPEN_MAX, if available.
1088         (big_fd): New static function.
1089         (main): Use it.
1090
1091 2013-06-04  Bernhard Voelker  <mail@bernhard-voelker.de>
1092
1093         tests/nap.h: use an adaptive delay to avoid ctime update issues
1094         The recent change in nap.h (5191133e) decreased the probability of lost
1095         races to about a third, however such problems could still be observed
1096         in virtual machines and openSUSE's OBS.
1097         Before, nap() detected the needed time once empirically and then used
1098         that delay (together with a small correction multiplier) in further
1099         calls.  This problem has been reported and discussed several times,
1100         including guesses about possible kernel issues:
1101         https://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00071.html
1102         http://lists.gnu.org/archive/html/coreutils/2012-03/msg00088.html
1103         https://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00226.html
1104         http://bugs.gnu.org/12820
1105         https://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html
1106         https://lists.gnu.org/archive/html/bug-gnulib/2009-11/msg00007.html
1107         Now, nap() avoids the race alltogether by verifying on a reference
1108         file whether a timestamp difference has happened.
1109         * tests/nap.h (nap_fd): Define file descriptor variable for the
1110         witness file.
1111         (nap_works): Change return value to bool.  Change passing
1112         the old file's status by value instead of by reference as this function
1113         does no longer update that timestamp; rename the function argument from
1114         st to old_st.  Remove the local variables cdiff and mdiff because that
1115         function now returns true/false instead of the precise delay.
1116         (guess_delay): Remove function.
1117         (clear_tmp_file): Add new function to close and unlink the witness file.
1118         (nap): Instead of re-using the delay which has been calculated during
1119         the first call, avoid the race by actually verifying that a timestamp
1120         difference can be observed on the current file system.  Use an adaptive
1121         approach for the delay to minimize execution time.  Assert that the
1122         maximum delay is <= ~2 seconds, more precisely sum(2^n) from 0 to 30
1123         = 2^31 - 1 = 2.1s.
1124         Use atexit to call clear_tmp_file when the process terminates.
1125
1126 2013-06-02  Paul Eggert  <eggert@cs.ucla.edu>
1127
1128         sig2str: port to C++
1129         * lib/sig2str.h (sig2str, str2sig): Declare as extern "C".
1130         Reported by Daniel J Sebald in
1131         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00000.html>.
1132
1133 2013-05-30  Eric Blake  <eblake@redhat.com>
1134
1135         docs: mention cygwin shortcoming in <sys/un.h>
1136         * doc/posix-headers/sys_un.texi (sys/un.h): Mention problem.
1137
1138         vasnprintf: silence mingw compiler warning
1139         * lib/vasnprintf.c (VASNPRINTF): Avoid unused variable warning.
1140
1141 2013-05-29  Paul Eggert  <eggert@cs.ucla.edu>
1142
1143         c-ctype, regex, verify: port to gcc -std=c90 -pedantic
1144         Avoid constructions that are rejected by gcc -std=c90 -pedantic.
1145         This fixes a porting bug I recently reintroduced in regex, and
1146         some other instances that I discovered while testing the fix.
1147         * lib/c-ctype.h [__STRICT_ANSI__]: Avoid ({ ... }).
1148         * lib/regcomp.c (utf8_sb_map) [__STRICT_ANSI__]: Avoid [0 ... N] = E.
1149         * lib/regex_internal.h [!_LIBC && GNULIB_LOCK]: Do not use a macro
1150         with an empty argument if this is a pedantic pre-C99 GCC.
1151         * lib/verify.h: Do not use _Static_assert if this is a pedantic
1152         pre-C11 GCC.
1153
1154         regex: adapt to locking regime instead of depending on pthread
1155         Instead of depending on pthread, adapt to whatever thread
1156         modules are in use.  Problem reported by Ludovic Courtès in
1157         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00082.html>
1158         and by Mats Erik Andersson in
1159         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00100.html>.
1160         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
1161         Support either the 'lock' module, or the 'pthread' module, or
1162         no module.
1163         (lock_lock, lock_unlock): New macros.
1164         * lib/regexec.c (regexec, re_search_stub): Use the new macros.
1165         * modules/lock, modules/pthread (configure.ac): Add module indicator.
1166         * modules/regex (Depends-on): Remove pthread.
1167
1168 2013-05-22  Eric Blake  <eblake@redhat.com>
1169
1170         getgroups: document portability issues
1171         * doc/glibc-functions/initgroups.texi (initgroups): Mention
1172         multithread safety.
1173         * doc/posix-functions/getpwuid.texi (getpwuid): Likewise.
1174         * doc/posix-functions/getpwuid_r.texi (getpwuid_r): Likewise.
1175         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Mention
1176         getugroups.
1177         * doc/posix-functions/getgroups.texi (getgroups): Mention
1178         multithread safety and mgetgroups.
1179
1180 2013-05-22  Bernhard Voelker <mail@bernhard-voelker.de>
1181
1182         test-lchown, test-chown: also skip test if chown fails with EPERM
1183         * tests/test-lchown.h (test_lchown): Add EPERM to the condition to
1184         skip this test, to handle FAT file systems.
1185         * tests/test-chown.h (test_chown): Likewise.
1186
1187 2013-05-19  Paul Eggert  <eggert@cs.ucla.edu>
1188
1189         regex: fix dfa race in multithreaded uses
1190         Problem reported by Ludovic Courtès in
1191         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00058.html>.
1192         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
1193         New macros.  All uses of __libc_lock_define, __libc_lock_init
1194         changed to use the first two of these.
1195         (__libc_lock_lock, __libc_lock_unlock): New macros, for
1196         non-glibc platforms.
1197         (struct re_dfa_t): Define the lock unconditionally.
1198         * lib/regexec.c (regexec, re_search_stub): Remove some now-incorrect
1199         '#ifdef _LIBC"s.
1200         * modules/regex (Depends-on): Add pthread, if we use the
1201         included regex.
1202
1203         * lib/regcomp.c: Do actions that are not needed for glibc,
1204         but may be needed elsewhere.
1205         (regfree, re_compile_internal): Destroy the lock.
1206         (re_compile_internal): Check for lock-initialization failure.
1207
1208         malloca: port to compilers that reject size-zero arrays
1209         This fixes a bug introduced in my previous patch.
1210         * lib/malloca.c (struct preliminary_header): Use an int
1211         rather than a character array of size int; that's simpler.
1212         (struct header): Remove, replacing with ...
1213         (union header): New type.  This avoids the need for declaring a
1214         character array of size zero, which is not allowed on some platforms.
1215         All uses changed.
1216
1217 2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
1218
1219         parse-datetime, tests: don't use "string" + int
1220         Recent versions of 'clang' complain about C source code that
1221         uses expressions of the form '"string literal" + integer',
1222         I guess on the theory that it's confusing for readers who are
1223         used to C++.  On those grounds I suppose it's OK to make this
1224         minor style change.
1225         * lib/parse-datetime.y (parse_datetime):
1226         * tests/test-fchdir.c (main):
1227         * tests/test-snprintf-posix.h (test_function):
1228         * tests/test-snprintf.c (main):
1229         * tests/test-vasnprintf-posix.c (test_function):
1230         * tests/test-vasnprintf.c (test_function):
1231         * tests/test-vsnprintf.c (main):
1232         * tests/unistdio/test-ulc-asnprintf1.h (test_function):
1233         Rewrite '"str" + E' to '&"str"[E]'.
1234
1235 2013-05-17  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
1236
1237         argmatch: port to C++
1238         * lib/argmatch.h [__cplusplus]: Add extern "C".
1239
1240         argp: typo fix
1241         * lib/argp-help.c: Typo in comment.
1242
1243 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
1244
1245         manywarnings: update for GCC 4.8.0
1246         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
1247         Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
1248         are new to GCC 4.8.  Remove -Wformat=2, -Wmissing-format-attribute,
1249         -Wmissing-noreturn, as they are duplicates of other warnings.
1250         Remove -Wunreachable-code, as it is removed in GCC 4.8 and
1251         was documented to be flaky in earlier versions of GCC.
1252
1253         spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
1254         * tests/test-spawn.c (main):
1255         * tests/test-sys_socket.c (main):
1256         * tests/test-sys_wait.c (main):
1257         Don't have a switch value that isn't covered by a case.
1258
1259         getaddrinfo-tests: port --enable-gcc-warnings to clang
1260         * tests/test-getaddrinfo.c (simple):
1261         Avoid casts from looser to stricter-aligned pointers.
1262
1263         thread: port --enable-gcc-warnings to clang
1264         * lib/glthread/thread.h [__clang__ && USE_POSIX_THREADS_WEAK]:
1265         Include <signal.h>, to pacify a warning about pthread_sigmask.
1266
1267         stdio: use __REDIRECT for fwrite, fwrite_unlocked
1268         * lib/stdio.in.h (fwrite):
1269         When working around bug 11959, use __REDIRECT rather than '#define
1270         fwrite(...) ... fwrite (...) ...'.  This is a more-targeted way to
1271         fix the -Wunused-value issue with clang, and it works with GCC too.
1272         Problem with targeting reported by Eric Blake in
1273         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00067.html>.
1274         (fwrite_unlocked): Treat like fwrite.  I ran into this issue while
1275         debugging the fwrite issue.
1276
1277         stdio: port --enable-gcc-warnings to clang
1278         * lib/stdio.in.h (fwrite) [__clang__]: Ignore -Wunused-value entirely,
1279         since the GCC workaround for fwrite does not pacify clang.
1280
1281         sig2str: port --enable-gcc-warnings to clang
1282         * lib/sig2str.c (sig2str): Avoid warning about unused printf argument.
1283
1284         obstack: port --enable-gcc-warnings to clang
1285         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
1286         Avoid casts from looser to stricter-aligned pointers.
1287
1288         memchr2: port --enable-gcc-warnings to clang
1289         * lib/memchr2.c (memchr2):
1290         Avoid casts from looser to stricter-aligned pointers.
1291
1292         mbsstr: port --enable-gcc-warnings to clang
1293         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
1294         Avoid casts from looser to stricter-aligned pointers.
1295
1296         malloca: port --enable-gcc-warnings to clang
1297         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
1298         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
1299
1300         inttostr: port --enable-gcc-warnings to clang
1301         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
1302
1303         warnings: port to clang
1304         Problem reported by Daniel P. Berrange via Eric Blake in
1305         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00055.html>.
1306         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
1307         (gl_WARN_ADD): Use it.
1308
1309 2013-05-11  Jim Meyering  <meyering@fb.com>
1310
1311         quotearg: do not read beyond end of buffer
1312         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
1313         end of an ARG for which no length was specified.  With an N-byte
1314         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
1315         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
1316         via coreutils' misc/sort-debug-keys.sh test and detected by running
1317         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
1318         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
1319         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
1320         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
1321         characters correctly."
1322
1323 2013-05-11  Daiki Ueno  <ueno@gnu.org>
1324
1325         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
1326         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
1327         compilation target is Mac OS X 10.6.
1328         Problem reported by parafin and Andoni Morales in
1329         <http://savannah.gnu.org/bugs/?37844> and
1330         <http://lists.gnu.org/archive/html/bug-gettext/2013-05/msg00007.html>.
1331
1332 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
1333
1334         mkdir-p: remove assumptions about umask and mode
1335         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
1336         umask is 0, or that MODE is a subset of MODE_BITS.
1337
1338 2013-05-10  Eric Blake  <eblake@redhat.com>
1339
1340         maint.mk: catch more abuse of HAVE_DECL in syntax-check
1341         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
1342
1343 2012-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
1344
1345         deps: require Automake >= 1.9.6 in generated Makefile fragments
1346
1347         That is the same minimal version required in the DEPENDENCIES file.
1348         Moreover, the old code generated a requirement of Automake >= 1.5,
1349         and that is an insanely outdated version.
1350
1351         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
1352         * tests/havelib/rpathlx/Makefile.am: Likewise.
1353         * tests/havelib/rpathly/Makefile.am: Likewise.
1354         * tests/havelib/rpathlyx/Makefile.am: Likewise.
1355         * tests/havelib/rpathlz/Makefile.am: Likewise.
1356         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
1357         * tests/havelib/rpathx/Makefile.am: Likewise.
1358         * tests/havelib/rpathy/Makefile.am: Likewise.
1359         * tests/havelib/rpathz/Makefile.am: Likewise.
1360
1361 2013-05-08  Eric Blake  <eblake@redhat.com>
1362
1363         bootstrap: AC_INIT may have more than four parameters
1364         * build-aux/bootstrap (extract_package_name): Correctly extract
1365         non-empty tarname field.  Avoid range in regex.
1366         Based on a report by Sami Kerola <kerolasa@iki.fi>.
1367
1368 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
1369
1370         qacl: port to MS-Windows port of GNU Emacs
1371         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
1372         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
1373         port of GNU Emacs.  Problem reported by Eli Zaretskii in
1374         <http://bugs.gnu.org/14295#14>.
1375
1376 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
1377
1378         acl: include quote.h
1379         * lib/copy-acl.c: Include quote.h.
1380         * lib/set-acl.c: Likewise.
1381
1382 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
1383
1384         fchownat, renameat, unlinkat: update statat dependencies
1385         These modules use statat and lstatat, not fstatat; so depend on
1386         the statat module, which was split out recently from fstatat.
1387         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
1388         * modules/renameat: Likewise.  Also delete fstat.
1389         URL: http://bugs.gentoo.org/468790
1390
1391 2012-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
1392
1393         Assume gnulib is checked out from Git, not CVS
1394
1395         In fact, access to the gnulib repository through CVS has been
1396         disabled, or more precisely, got broken and was never restored; see:
1397         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00008.html>
1398
1399         Note that support for CVS is not removed completely and unthinkingly
1400         by this change: only support for CVS checkouts of gnulib itself is
1401         removed.  For example, the 'bootstrap' script still cater to .cvsingore
1402         files and CVS directories, for the benefit of those poor gnulib clients
1403         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
1404
1405         * gnulib-tool: Simplify accordingly.
1406         * posix-modules: Likewise.
1407         * MODULES.html.sh: Likewise.
1408         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
1409         repository.
1410         * doc/gnulib-intro.texi: Likewise.
1411         * doc/gnulib-readme.texi: Likewise.
1412         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
1413         sample '.gitignore' file rather than a sample '.cvsignore'.
1414         * NEWS: Update.
1415         * m4/extensions.m4: While at it, remove a comment mistakenly referring
1416         to "CVS Autoconf" rather than "git Autoconf".
1417
1418 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
1419
1420         utimensat-tests, etc.: try to fix some races
1421         Problem reported by Bernhard Voelker in
1422         <http://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00071.html>.
1423         I don't know whether this patch fixes that race condition, but it
1424         fixes *some* race conditions, so it should be a win.
1425         * modules/chown-tests (Depends-on):
1426         * modules/fchownat-tests (Depends-on):
1427         * modules/fdutimensat-tests (Depends-on):
1428         * modules/futimens-tests (Depends-on):
1429         * modules/lchown-tests (Depends-on):
1430         * modules/stat-time-tests (Depends-on):
1431         * modules/utimens-tests (Depends-on):
1432         * modules/utimensat-tests (Depends-on):
1433         Depend on nanosleep, not usleep.
1434         * modules/chown-tests (test_chown_LDADD):
1435         * modules/lchown-tests (test_lchown_LDADD):
1436         * modules/stat-time-tests (test_stat_time_LDADD):
1437         New macro.
1438         * modules/fchownat-tests (test_fchownat_LDADD):
1439         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
1440         * modules/futimens-tests (test_futimens_LDADD):
1441         * modules/utimens-tests (test_utimens_LDADD):
1442         * modules/utimensat-tests (test_utimensat_LDADD):
1443         Add $(LIB_NANOSLEEP).
1444         * modules/stat-time-tests (Files): Add tests/nap.h.
1445         * tests/nap.h: Include <limits.h>, for INT_MAX.
1446         (lt_mtime): Remove.
1447         (diff_timespec): New function.
1448         (get_stat): Rename from get_mtime.  All callers changed.
1449         (nap_works): Determine the needed delay by inspecting the
1450         file system's timestamp jumps; this should be more reliable.
1451         Look at both mtime and ctime, and take the maximum of the two jumps.
1452         (nap_works, guess_delay):
1453         Return a nanosecond cound, not a microsecond count.
1454         All callers changed.
1455         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
1456         failure.
1457         (nap): Multiply the guess by 1.125, to accommodate the case where
1458         the file system's clock is a bit slower than nanosleep's clock.
1459         * tests/test-stat-time.c (BASE): New macro.
1460         Include nap.h.
1461         (nap): Remove; nap.h now defines this.  This removes a duplicate
1462         implementation of 'nap'.
1463
1464         utimens, utimensat: work around Solaris UTIME_OMIT bug
1465         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
1466         Linux kernel 2.6.32 does.  Work around it in the same way.
1467         * doc/posix-functions/futimens.texi (futimens):
1468         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
1469         * lib/utimens.c (fdutimens, lutimens):
1470         * lib/utimensat.c (rpl_utimensat): Work around the bug.
1471
1472         gettext: now it's your responsibility to add -I$(top_builddir)/intl
1473         Formerly, it was your responsibility to do this for all Makefile.ams
1474         other than Gnulib's.  Now it's your responsibility to do it for
1475         Gnulib's Makefile.am, too.
1476         * NEWS: Document this.
1477         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
1478
1479         acl: include errno.h to get errno
1480         Reported by Daiki Ueno in
1481         <http://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00073.html>.
1482         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
1483
1484 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
1485
1486         tests: don't assume getdtablesize () <= 10000000
1487         * modules/cloexec-tests:
1488         * modules/dup2-tests:
1489         * modules/dup3-tests:
1490         * modules/nonblocking-tests:
1491         * modules/posix_spawn_file_actions_addclose-tests:
1492         * modules/posix_spawn_file_actions_adddup2-tests:
1493         * modules/posix_spawn_file_actions_addopen-tests:
1494         * modules/unistd-safer-tests:
1495         Depend on the getdtablesize module.
1496         * tests/test-cloexec.c:
1497         * tests/test-dup-safer.c:
1498         * tests/test-dup2.c:
1499         * tests/test-dup3.c:
1500         * tests/test-fcntl.c:
1501         * tests/test-nonblocking.c:
1502         * tests/test-posix_spawn_file_actions_addclose.c:
1503         * tests/test-posix_spawn_file_actions_adddup2.c:
1504         * tests/test-posix_spawn_file_actions_addopen.c:
1505         Don't assume getdtablesize () <= 10000000.
1506
1507 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
1508
1509         extern-inline: work around bug in Sun c99
1510         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
1511         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
1512
1513 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
1514
1515         qacl: new module, broken out from the acl module
1516         This is for GNU Emacs, which wants the acl functions but does
1517         not want 'error' invoked when they fail.
1518         * lib/acl-internal.h: Do not include error.h, quote.h.
1519         (ENOSYS, ENOTSUP): Remove; no longer needed.
1520         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
1521         * lib/acl.h: Include <stdbool.h>.
1522         (acl_errno_valid): New function.
1523         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
1524         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
1525         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
1526         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
1527         (ACL_INTERNAL_INLINE): Remove; no longer needed.
1528         * lib/file-has-acl.c (file_has_acl):
1529         * lib/qcopy-acl.c (qcopy_acl):
1530         * lib/qset-acl.c (qset_acl):
1531         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
1532         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
1533         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
1534         lib/file-has-acl.c, m4/acl.m4 to qacl module.
1535         Add lib/set-acl.c.
1536         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
1537         Add qacl.
1538         (configure.ac): Move gl_FUNC_ACL to qacl module.
1539         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
1540         Rename set-mode-acl.c to set-acl.c.
1541         * lib/acl-errno-valid.c: New file.
1542         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
1543         copy_acl function remains in copy-acl.c.
1544         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
1545         (_): Remove; not needed.
1546         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
1547         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
1548         * modules/qacl: New file, moved from the old modules/acl.
1549         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
1550         Remove set-mode-acl.c, copy-acl.c.
1551         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
1552
1553         alignof, intprops, malloca: port better to IBM's C compiler
1554         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
1555         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
1556         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
1557
1558 2013-04-25  Daiki Ueno  <ueno@gnu.org>
1559
1560         wctype-h: fix gettext link error on mingw
1561         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
1562         <https://lists.gnu.org/archive/html/bug-gettext/2013-03/msg00086.html>.
1563         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
1564         rpl_towupper and rpl_towupper.
1565
1566 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
1567
1568         regex-tests, regex: allow glibc re_search behavior
1569         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
1570         re_search input data to make the multi-character collating element
1571         in it clearly visible, and treat re_search return code 0 as valid.
1572         * m4/regex.m4 (gl_REGEX): Likewise.
1573
1574 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
1575
1576         stdalign: doc fix
1577         * doc/posix-headers/stdalign.texi (stdalign.h):
1578         Gnulib doesn't support '_Alignof expr'.
1579
1580 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
1581
1582         stdalign: port to stricter ISO C11
1583         ISO C11 says that _Alignof's operand must be a parenthesized type.
1584         Problem reported by Eli Zaretskii in
1585         <http://lists.gnu.org/archive/html/emacs-devel/2013-03/msg00960.html>.
1586         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
1587         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
1588
1589 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
1590
1591         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
1592         Problem reported by Marco Atzeri in
1593         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00000.html>.
1594         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
1595         Simply delegate to the system <sys/select.h> in this case too.
1596         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
1597         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
1598         be needed on Solaris either.
1599         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
1600         Simply delegate to the system <sys/time.h> in this case.
1601
1602 2013-03-19  Karl Berry  <karl@gnu.org>
1603
1604         * build-aux/gnupload: check for erroneous (with gnupload) use of
1605         ftp-upload.gnu.org, tweak help.
1606
1607 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
1608
1609         copy-file, rpmatch: fix problems found by cppcheck
1610         Reported by Arno Onken in
1611         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00069.html>.
1612         * lib/rpmatch.c (try): Fix memory leak.
1613         * lib/copy-file.c: Include "ignore-value.h".
1614         (qcopy_file_preserving): Ignore chown value.
1615         * modules/copy-file (Depends-on): Add ignore-value.
1616
1617 2013-01-27  Jim Meyering  <jim@meyering.net>
1618
1619         prefix-gnulib-mk: give better diagnostics
1620         * build-aux/prefix-gnulib-mk: Don't just "die".
1621         Give better diagnostics upon failure.
1622
1623 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
1624
1625         putenv: port to Solaris 10
1626         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
1627         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
1628         is not what is wanted here.
1629         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
1630         declaration, not for its existence.
1631
1632 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
1633
1634         mktime: fix configure typo
1635         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
1636
1637 2013-03-12  Eric Blake  <eblake@redhat.com>
1638
1639         regex-tests: skip UTF-8 test on mingw
1640         * modules/regex-tests (Depends-on): Add localcharset.
1641         * tests/test-regex.c (main): Use it to skip test on mingw.
1642
1643 2013-03-11  Eric Blake  <eblake@redhat.com>
1644
1645         tests: make it easier to bypass alarm time in debugger
1646         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
1647         * tests/test-memmem.c (main): Likewise.
1648         * tests/test-passfd.c (main): Likewise.
1649         * tests/test-ptsname.c (main): Likewise.
1650         * tests/test-ptsname_r.c (main): Likewise.
1651         * tests/test-strcasestr.c (main): Likewise.
1652         * tests/test-strstr.c (main): Likewise.
1653
1654         regex: port to mingw's recent addition of undeclared alarm
1655         * doc/posix-functions/alarm.texi (alarm): Document that alarm
1656         exists but still doesn't work in newer mingw.
1657         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
1658         not existence.  Ensure SIGALRM is not trapped.
1659         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
1660         * m4/regex.m4 (gl_REGEX): Likewise.
1661         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
1662         * tests/test-regex.c (main): Use correct probe for alarm.
1663
1664         putenv: avoid compilation warning on mingw
1665         * lib/putenv.c (_unsetenv): Protect variable declaration.
1666         (putenv): Fix indentation.
1667
1668 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
1669
1670         unistd: don't prevent Tru64 Unix from using gnulib strtod.
1671         * lib/unistd.in.h: be careful not to include un-needed system
1672         stdlib.h from here, because that prevents gnulib stdlib.h from
1673         defining rpl_strtod correctly.
1674
1675 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
1676
1677         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
1678         changesets, but for the 'precision 0' test.
1679         * tests/test-vasprintf-posix.c (test_function): Don't insist on
1680         round-to-even, since POSIX says rounding is implementation-defined
1681         and OS X 10.8.2 rounds 1.51 to 1 here.
1682
1683         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
1684         changeset.
1685         * tests/test-vasprintf-posix.c (test_function): Don't insist on
1686         round-to-even, since POSIX says rounding is implementation-defined
1687         and OS X 10.8.2 rounds 1.5 to 1 here.
1688
1689 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
1690
1691         vasnprintf-posix-tests: allow rounding 1.5 to 1
1692         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
1693         round-to-even, since POSIX says rounding is implementation-defined
1694         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
1695         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00019.html>.
1696
1697         bootstrap: port to FreeBSD
1698         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
1699         that treat '--' differently.  Reported by Mats Erik Andersson in
1700         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00012.html>.
1701
1702 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
1703
1704         regex: rename remaining __attribute calls to __attribute__.
1705         2012-02-25 changed definition of __attribute, but left some uses
1706         unchanged, preventing compilation of regex module on most non-gcc
1707         environments.
1708         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
1709         (lookup_collation_sequence_value, build_range_exp)
1710         (build_collating_symbol): Set attributes with newly renamed
1711         __attribute__ decorator.
1712         * lib/regex_internal.c (re_string_peek_byte_case)
1713         (re_node_set_compare, re_node_set_contains): Likewise.
1714         * lib/regexec.c (acquire_init_state_context): Likewise.
1715
1716 2013-03-06  Bruno Haible  <bruno@clisp.org>
1717
1718         execute: Revert last change, but use a different condition.
1719         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
1720         on Windows.
1721
1722 2013-03-05  Eric Blake  <eblake@redhat.com>
1723
1724         execute: drop dead code
1725         * lib/execute.c (nonintr_close, nonintr_open): Delete.
1726
1727 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
1728
1729         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
1730         * m4/non-recursive-gnulib-prefix-hack.m4
1731         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
1732         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
1733         <http://bugs.gnu.org/10305#237>.
1734
1735 2013-03-04  Eric Blake  <eblake@redhat.com>
1736
1737         test-getsockopt: avoid compiler warning
1738         * tests/test-getsockopt.c (includes): Ensure close is declared.
1739
1740 2013-03-02  Bruno Haible  <bruno@clisp.org>
1741
1742         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
1743         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
1744
1745 2013-03-02  Bruno Haible  <bruno@clisp.org>
1746
1747         gettext: Update to version 0.18.2.
1748         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
1749         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
1750                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
1751
1752 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
1753
1754         regex: merge patches from libc
1755
1756         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
1757         * lib/regex_internal.h (__attribute__): Rename from __attribute.
1758         All uses changed.
1759         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
1760         (re_string_wchar_at, re_string_elem_size_at):
1761         Mark function as possibly unused.
1762
1763         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
1764         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
1765         elements compare against the byte sequence of it, not its name.
1766
1767 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
1768
1769         putenv: port better to native Windows
1770         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
1771         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
1772         (_unsetenv): Use _putenv if available.
1773         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
1774         a bit less likely to cause damage.
1775         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
1776         Fix the wrong value with SetEnvironmentVariable.
1777         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
1778         code better.
1779
1780 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
1781
1782         regex: ignore old-style-definition warnings
1783         * lib/regex.c: Add pragma to ignore these warnings.
1784         Problem reported for GNU tar by Pavel Raiskup.
1785
1786 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
1787
1788         getcwd: support coreutils better
1789         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
1790         but this might not be correct in coreutils, which disables
1791         the raw decl checks.  Problem reported by Nagendra in
1792         <http://bugs.gnu.org/10305#192>.
1793         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
1794         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
1795         Test the getcwd function, not any macro, since getcwd.c wants the
1796         function.
1797         * m4/getcwd.m4 (gl_FUNC_GETCWD):
1798         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
1799         compile, as might happen if there's a macro but no function.
1800
1801         strtod: support coreutils better
1802         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
1803         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
1804         disables the raw decl checks.  This assumes there is an underlying
1805         strtod, but that's a safe assumption these days.
1806         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
1807
1808         mountlist: port to HP NonStop
1809         Reported by Joachim Schmitz in
1810         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00084.html>.
1811         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
1812         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
1813
1814 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
1815
1816         extern-inline: avoid compilation error with HP-UX cc
1817         Reported by Richard Lloyd in
1818         <http://lists.gnu.org/archive/html/bug-texinfo/2013-02/msg00030.html>.
1819         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
1820         Suppress extern inline with HP-UX cc.  This should be safe,
1821         though it may hurt performance.  Perhaps someone with some HP-UX
1822         experience can come up with a higher-performance fix.
1823
1824 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
1825
1826         putenv: fix heap corruption with mixed putenv/_putenv
1827         Problem reported by Michael Goffioul in
1828         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00061.html>.
1829         * lib/putenv.c (putenv) [HAVE__PUTENV]:
1830         Rely on _putenv to allocate the new environment.
1831         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
1832         * modules/putenv (configure.ac): Use it.
1833
1834 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
1835
1836         unsetenv etc.: port to Solaris 11 + GNU Emacs
1837         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
1838         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
1839         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
1840         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
1841         idea but is too painful to fix right now), and without this gnulib
1842         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
1843         compiling unsetenv.c on Solaris 11.  Fix the problem for
1844         unsetenv.c, and fix other similar occurrences.
1845
1846 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
1847
1848         secure_getenv: fix C++ declaration typo
1849         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
1850         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
1851         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00057.html>.
1852
1853 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
1854
1855         careadlinkat: stop exporting careadlinkatcwd
1856         Only Emacs used it directly, and Emacs no longer needs it.
1857         * NEWS: Document this simplification.
1858         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
1859         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
1860         for readlink.
1861         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
1862         Don't include stdlib.h; no longer needed.
1863         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
1864         * lib/relocwrapper.c: Adjust comment to match new dependencies.
1865         * modules/areadlink (Depends-on): Add readlink.
1866         (Maintainer): Add self.
1867         * modules/careadlinkat (Depends-on): Remove readlink.
1868
1869         extensions: port better to HP-UX
1870         This is merged from git Autoconf.
1871         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
1872         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
1873         so that it's compatible with the value used when compiling.
1874
1875         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
1876         Problem reported by Mats Erik Andersson in
1877         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00051.html>.
1878         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
1879         openpty function exists, not merely when we intend to replace it.
1880         This corrects the 2013-01-31 patch, which mistakenly defined
1881         HAVE_OPENPTY even on hosts that lacked it.
1882
1883 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
1884
1885         secure_getenv: fix include typo
1886         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
1887
1888         secure_getenv: port better to FreeBSD and Solaris
1889         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
1890         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
1891         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
1892         This works better on BSDish platforms.
1893         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
1894         Test for issetugid if __secure_getenv is missing.
1895
1896 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
1897
1898         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
1899         Some of these changes are merged in from git Autoconf.
1900         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
1901         When deciding whether to define _XOPEN_SOURCE, inspect the
1902         preprocessor macro __hpux instead of the more-heavyweight
1903         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
1904         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
1905         as the key for __EXTENSIONS__.
1906
1907         unistd: avoid namespace pollution on non-glibc systems
1908         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
1909         This avoids namespace pollution on non-glibc systems, by causing
1910         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
1911         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
1912         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00027.html>.
1913
1914 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
1915
1916         tmpdir: use secure_getenv
1917         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
1918         Define to secure_getenv, not getenv.
1919         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
1920         as that's now secure_getenv's job.
1921         * modules/tmpdir (Depends-on): Add secure_getenv.
1922
1923         tempname: use secure_getenv
1924         * lib/tempname.c (__secure_getenv) [!_LIBC]:
1925         Define to secure_getenv, not getenv.
1926         * modules/tempname (Depends-on):
1927         Add secure_getenv.
1928
1929         secure_getenv: new module
1930         * MODULES.html.sh (Extra functions based on ANSI C 89):
1931         Add secure_getenv.
1932         * doc/glibc-functions/secure_getenv.texi: New file.
1933         * doc/gnulib.texi: Include it.
1934         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
1935         New files.
1936         * lib/stdlib.in.h (secure_getenv): New decl.
1937         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
1938         * modules/stdlib (stdlib.h):
1939         Add secure_getenv checks.
1940
1941 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
1942
1943         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
1944         Reported for OS X 10.8.2 by Assaf Gordon in
1945         <http://bugs.gnu.org/13516>.
1946         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
1947         !HAVE_OPENAT && !HAVE_FDOPENDIR.
1948         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
1949         so that they can be kept in sync more easily.  Avoid PATH_MAX
1950         test on the Hurd.  Sync from test-getcwd.c for errno tests after
1951         mkdir or chdir failure.
1952         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
1953         lib/getcwd.c.
1954         (test_abort_bug): Do not test for the deep directory bug unless we
1955         have openat support.  Avoid PATH_MAX test on the Hurd.
1956
1957         regex-tests, regex: fix bug: memset undeclared
1958         * tests/test-regex.c: Don't include regex.h twice.  Include
1959         string.h, to declare memset.  Christensen's report also mentioned
1960         this issue.
1961         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
1962         test-regex.c, to avoid future problems like this.  Remove
1963         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
1964         twice.
1965
1966         regex-tests: fix link errors on older Solaris
1967         These need to link with @LIBINTL@ to get libintl_gettext.
1968         Problem reported by Tom G. Christensen in
1969         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00003.html>.
1970         * modules/regex-tests (test_regex_LDADD): New macro.
1971
1972 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
1973
1974         regex-tests: new module
1975         * modules/regex-tests, tests/test-regex.c: New files.
1976
1977         regex: fix off-by-one error in configure test
1978         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
1979
1980 2013-01-31  Eric Blake  <eblake@redhat.com>
1981
1982         regex: avoid infinite configure test
1983         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
1984
1985 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
1986
1987         openpty: fix bug where HAVE_OPENPTY wasn't defined
1988         See the thread starting at:
1989         http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00185.html
1990         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
1991         openpty function exists, not merely when we intend to replace it.
1992
1993 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
1994
1995         sys_time: port to Solaris 2.6
1996         There is a circularity problem on Solaris 2.6, where <time.h> includes
1997         <sys/time.h> for struct timespec.  The include nesting is gnulib
1998         <time.h>, system <time.h>, gnulib <sys/time.h>, system
1999         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
2000         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
2001         <sys/siginfo.h>; the last, innermost file needs struct
2002         timestruc_t, which is defined in <sys/time.h>, which has not been
2003         fully parsed.  Problem reported by Tom G. Christensen in
2004         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00113.html>.
2005         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
2006         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
2007         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
2008         uses split double-inclusion guards.
2009
2010 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
2011
2012         regex: test for buffer overrun
2013         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
2014         for the just-fixed regex bug.
2015
2016 2013-01-29  Andreas Schwab  <schwab@suse.de>
2017
2018         regex: fix buffer overrun in regexp matcher [BZ #15078]
2019         * lib/regexec.c (extend_buffers): Add parameter min_len.
2020         (check_matching): Pass minimum needed length.
2021         (clean_state_log_if_needed): Likewise.
2022         (get_subexp): Likewise.
2023
2024 2013-01-28  Pádraig Brady  <P@draigBrady.com>
2025
2026         mountlist: don't consider "devtmpfs" as dummy
2027         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
2028         as there is storage associcated with it.
2029
2030 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
2031
2032         futimens-tests, utimens-tests: Depend on gettext.
2033         This works around a problem introduced in my 2013-01-12 patch,
2034         which added @LIBINTL@ to these modules.
2035         * modules/futimens-tests (Depends-on):
2036         * modules/utimens-tests (Depends-on): Add gettext.
2037
2038 2013-01-26  Eric Blake  <eblake@redhat.com>
2039
2040         test-getpeername: fix typo
2041         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
2042
2043 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
2044
2045         bootstrap: remove the need for a sorted .gitignore file
2046         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
2047         rename to insert_if_absent(), so that we don't need or generate
2048         a sorted .gitignore file.  We do require a .gitignore with no
2049         existing duplicate entries and enforce that.
2050         (sort_patterns): Remove this function as we now use the simpler
2051         technigue of inserting blacklist entries at the top of the file,
2052         assuming gnulib won't be inserting !whitelist entries.
2053
2054 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
2055
2056         readlinkat: don't depend on gl_FUNC_OPENAT
2057         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
2058         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
2059         renameat.m4, symlinkat.m4; but one thing at a time.
2060
2061         statat: new module, split out from fstatat
2062         GNU Emacs needs the POSIX-specified fstatat, but not the
2063         gnulib-specified statat and lstat.  Split the latter two into a
2064         new module 'statat'.
2065         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
2066         * lib/openat.h, lib/statat.c (STATAT_INLINE):
2067         Rename from FSTATAT_INLINE. All uses changed.
2068         * modules/fstatat (Files): Remove lib/statat.c.
2069         (gl_MODULE_INDICATOR([fstatat])): Remove.
2070         (lib_SOURCES): Remove.
2071         (Maintainer): Add self.
2072         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
2073         * tests/test-fstatat.c (BASE): Don't define if already defined.
2074         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
2075
2076 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
2077
2078         tests: don't assume fd 99 is closed
2079         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
2080         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
2081         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
2082         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
2083         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
2084         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
2085         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
2086         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
2087         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
2088         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
2089         * tests/test-fwrite.c, tests/test-getpeername.c:
2090         * tests/test-getsockname.c, tests/test-getsockopt.c:
2091         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
2092         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
2093         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
2094         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
2095         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
2096         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
2097         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
2098         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
2099         * tests/test-unlinkat.c, tests/test-unlockpt.c:
2100         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
2101         Close file descriptor 99, instead of assuming it's already closed.
2102
2103 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
2104
2105         stpncpy: port to OS X 10.8
2106         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
2107         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
2108
2109 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
2110
2111         unistd: port to recent mingw
2112         * lib/unistd.in.h: Remove special invocation convention for mingw,
2113         which breaks for the latest mingw version.  See John W. Eaton in
2114         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00100.html>.
2115
2116         largefile: port better to Mac OS X 10.5
2117         This patch is backported from Autoconf git.
2118         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
2119         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
2120         with ino_t size being different for configuration time versus
2121         build/run time.  Problem reported by PHO in
2122         <http://lists.gnu.org/archive/html/bug-autoconf/2013-01/msg00040.html>.
2123
2124 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
2125
2126         doc: clarify -Werror
2127         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
2128         clarify that it's intended for developers, not for ordinary builds,
2129         and mention --enable-gcc-warnings as one possible use.
2130
2131 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
2132
2133         stdint: fix build with Android's Bionic fox x86
2134         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
2135         was already included as _SSIZE_T_DEFINED_ might also be defined
2136         in include/machine/_types.h, which is included by stdio.h
2137
2138 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
2139
2140         net_if-tests: port to Solaris 7 + GCC 3.4.6
2141         Problem reported by Tom G. Christensen in
2142         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00091.html>.
2143         * tests/test-net_if.c (ni): Move to next the code that uses it,
2144         so that it's declared only if needed.
2145
2146 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
2147
2148         net_if-tests: port to older Solaris
2149         Problem reported by Tom G. Christensen in
2150         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
2151         * modules/net_if-tests (NET_IF_LIB): New substitution.
2152         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
2153         (HAVE_IF_NAMEINDEX): New C macro.
2154         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
2155
2156         system-quote-tests: port to older Solaris
2157         Problem reported by Tom G. Christensen in
2158         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
2159         * tests/test-system-quote-child.c (fopen, fread): Undef.
2160
2161         c-xvasprintf etc.: fix link errors on older Solaris
2162         These need to link with @LIBINTL@ to get libintl_gettext.
2163         Problem reported by Tom G. Christensen in
2164         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
2165         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
2166         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
2167         * modules/futimens-tests (test_futimens_LDADD):
2168         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
2169
2170 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
2171
2172         locale: port to Solaris 2.6 and 7 + GNU gettext
2173         * lib/locale.in.h: Just include_next <locale.h> when
2174         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
2175         when combining the localename module with GNU gettext 0.18.2.
2176         Problem reported by Tom G. Christensen in
2177         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00084.html>.
2178
2179 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
2180
2181         stdlib: port to Solaris 2.6
2182         Also, the code worked on Solaris 7 through 9 only by accident.
2183         Problem reported by Tom G. Christensen in
2184         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00059.html>.
2185         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
2186         simply include the system stdlib.h.
2187         * lib/getopt.in.h (__need_system_stdlib_h):
2188         * lib/pthread.in.h (__need_system_stdlib_h):
2189         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
2190         Define when including <stdlib.h>, to avoid problems at least for
2191         the pthread case on Solaris 2.6 and 7.  These .h files can get by
2192         with the system stdlib.h.
2193
2194 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
2195
2196         doc: update main copyright year
2197         * doc/gnulib.texi: Update copyright date.
2198
2199         doc: improve ISO 8601 discussion
2200         * doc/parse-datetime.texi (Combined date and time of day items):
2201         Specify more carefully what formats are supported and what is
2202         done with excess precision.
2203
2204 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
2205
2206         doc: avoid small caps
2207         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
2208         they're more trouble than they're worth.  Suggested by Karl Berry
2209         in <http://bugs.gnu.org/13360>.
2210
2211         regex: conform to strict C
2212         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
2213         From Aharon Robbins.
2214
2215         gnulib-tool: fix incompatibility with autopoint 0.18.2
2216         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
2217         Problem reported by Tom G. Christensen in
2218         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00053.html>.
2219
2220 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
2221
2222         fprintftime: bring back and reword fwrite comment
2223         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
2224
2225         stdio: remove now-unnecessary stdio.c
2226         Since stdio.in.h no longer uses inline functions, we no longer
2227         need to compile the extern versions.
2228         * lib/stdio.c: Remove.
2229         * modules/stdio (Files): Remove lib/stdio.c.
2230         (lib_SOURCES): Remove.
2231
2232         unicodeio: depend on stdio, not ignore-value
2233         * lib/unicodeio.c: Do not include ignore-value.h.
2234         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
2235         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
2236
2237         fprintftime: depend on stdio, not ignore-value
2238         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
2239         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
2240         since the stdio module arranges to silence that warning now.
2241         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
2242
2243 2012-10-04  Simon Josefsson  <simon@josefsson.org>
2244
2245         stdint-tests: Fix expanded-before-required-warning.
2246         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
2247
2248 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
2249
2250         fwrite: silence __wur only for older glibc versions
2251         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
2252         This will help us remove this workaround some time in the far future.
2253
2254 2013-01-03  Eric Blake  <eblake@redhat.com>
2255
2256         fwrite: silence __wur without using inline
2257         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
2258         just gcc, and in a way that avoids inline issues.
2259         * modules/stdio (Depends-on): Drop extern-inline.
2260
2261 2013-01-03  Jim Meyering  <jim@meyering.net>
2262
2263         update-copyright: avoid copyright notice date corruption
2264         Given a sequence of copyright year numbers in which the final
2265         one was a two-digit number that happened to be a substring of
2266         a preceding four-digit year number, we would mistakenly update
2267         the substring (from two- to four-digit) rather than the two-digit
2268         number at the end, which, combined with the addition of the current
2269         4-digit year number would yield two 5-digit year numbers, e.g.,
2270         here, it would convert the first "99" to "1999, 2013" rather than
2271         the final one:
2272           1991, 99
2273           11999, 20131, 1999
2274         * build-aux/update-copyright: Tighten a regexp.
2275         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
2276         Reported by Joseph Myers in
2277         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
2278
2279 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
2280
2281         regex: omit needless signed-pointer casts
2282         * lib/regcomp.c (build_charclass, build_charclass_op):
2283         Use char *, not unsigned char *, for class name and extra.
2284         The char values are always nonnegative so there's no need to
2285         insist on unsigned char * here, and using char * removes the need
2286         for casts.  Reported by Aharon Robbins in
2287         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2288
2289         regex: support Gawk, which never uses alloca
2290         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
2291         Do not include in this case.  Gawk doesn't supply a substitute
2292         alloca.h and doesn't need one.
2293
2294         regex: port __libc_lock_define usage to C89
2295         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
2296         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
2297         does not conform to C89, as it has an empty macro argument.
2298         Reported by Aharon Robbins in
2299         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2300
2301 2013-01-01  Eric Blake  <eblake@redhat.com>
2302
2303         maint: update all copyright year number ranges
2304         Run "make update-copyright".
2305
2306         version-etc: bump copyright year reported in --version
2307         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
2308
2309 2012-12-31  Eric Blake  <eblake@redhat.com>
2310
2311         sigprocmask-tests: skip test if pid is unexpectedly large
2312         * tests/test-sigprocmask.c (main): Add range check.
2313
2314         git-version-gen: avoid test -z portability glitch
2315         * build-aux/git-version-gen: Prefer portable test spelling, since
2316         git-version-gen is run on more than just developer machines.
2317
2318 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
2319
2320         git-version-gen: add --fallback option to use if git is not present
2321         * build-aux/git-version-gen: Add support for the new option --fallback,
2322         which comes into play when there is no $tarball_version_file and
2323         git is not working.
2324         (scriptversion): Update.
2325
2326         maint.mk: handle missing git with more grace
2327         * top/maint.mk (no-submodule-changes, public-submodule-commit):
2328         Quietly proceed if git is not present.
2329
2330 2012-12-31  Eric Blake  <eblake@redhat.com>
2331
2332         dup2: work around cygwin bug
2333         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
2334         * lib/dup2.c (rpl_dup2): Work around it.
2335         * doc/posix-functions/dup2.texi (dup2): Document it.
2336
2337 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
2338
2339         regex: remove unnecessary dependency on localcharset.h
2340         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
2341         hasn't been needed for years.
2342         * modules/regex (Depends-on): Remove localcharset.
2343
2344         regex: revert single-byte change
2345         * lib/regexec.c (check_node_accept_bytes): Revert previous change
2346         to this function.  This was alredy fixed in a different way, at
2347         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
2348         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
2349         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
2350
2351         regex: simplify based on Gawk version
2352         * lib/regex_internal.c (re_dfa_add_node): Simplify.
2353         Reported by Aharon Robbins in
2354         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2355
2356 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
2357
2358         regex: check that pattern char is single-byte
2359         Reported by Aharon Robbins in
2360         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2361         * lib/regexec.c (check_node_accept_bytes):
2362         Return 0 if the pattern string has a multibyte character here.
2363
2364         regex: implement rational ranges
2365         Reported by Aharon Robbins in
2366         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2367         * lib/regcomp.c (build_range_exp) [!_LIBC]:
2368         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
2369         Implement rational ranges.
2370
2371         regex: avoid redefining __wctype
2372         Reported by Aharon Robbins in
2373         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2374         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
2375         #undef before defining.
2376
2377         regex: port to hosts where malloc (0) == NULL
2378         Reported by Aharon Robbins in
2379         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2380         * lib/regex_internal.c (re_node_set_alloc):
2381         Don't assume that malloc (0) yields nonnull.
2382         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
2383         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
2384         * modules/regex (Files): Add m4/eealloc.m4.
2385
2386         regex: port to C89
2387         Reported by Aharon Robbins in
2388         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2389         * lib/regcomp.c (init_word_char): Declaration before statement.
2390
2391         regex: merge glibc changes
2392         Also, copy the license wording from glibc.  This simplifies
2393         merging changes.  gnulib-tool will change the wording to GPL as
2394         appropriate, when importing it to other packages.  The only
2395         glibc change made since the last merge, which needs merging, is:
2396         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
2397         * lib/regex_internal.h (gettext): Remove use of INTUSE.
2398
2399         * users.txt: Add Emacs.
2400
2401         doc: omit mention of version when not needed
2402         * doc/gnulib-intro.texi (Portability and Application Code):
2403         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
2404         Don't mention particular dates or versions when not necessary, so
2405         that the documentation won't go out of date so quickly.
2406
2407         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
2408
2409 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
2410
2411         bootstrap: pass --force to autoreconf.
2412         * build-aux/bootstrap (AUTORECONFFLAGS): New.
2413         Add "--force" so that Automake's ylwrap and other such tools
2414         be updated at each bootstrap invocation.
2415         Use it.
2416
2417 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
2418
2419         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
2420         The earlier patch forgot to update one of the #if conditions, causing
2421         a problem on Debian testing i386 reported by Mats Erik Andersson
2422         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00124.html>.
2423         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
2424         (__argp_fmtstream_puts, argp_fmtstream_puts)
2425         (__argp_fmtstream_write, argp_fmtstream_write)
2426         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
2427
2428         * doc/gnulib-readme.texi: Minor fixups.
2429         (Portability guidelines): Modernize URLs.  Remove some repetition.
2430         (Indent with spaces not TABs): Reword to avoid too-long lines.
2431         Remove some '@ifset standalone' stuff that isn't used.
2432
2433         * doc/gnulib-readme.texi (Portability guidelines):
2434         ctype.h, not ctime.h.
2435
2436         Correct name of POSIX.1-2001.
2437         * doc/posix-functions/fgetc.texi (fgetc):
2438         * doc/posix-functions/fgets.texi (fgets):
2439         * doc/posix-functions/fread.texi (fread):
2440         * doc/posix-functions/fscanf.texi (fscanf):
2441         * doc/posix-functions/getc.texi (getc):
2442         * doc/posix-functions/getchar.texi (getchar):
2443         * doc/posix-functions/scanf.texi (scanf):
2444         POSIX.1-2001, not POSIX-2001.
2445
2446         doc: move README into manual
2447         * README: Move contents to new file doc/gnulib-readme.texi.
2448         Replace with a one-line summary.
2449         * doc/gnulib.texi (Brief Overview): New section,
2450         with old intro preface.  Include gnulib-readme.texi for contents.
2451         (Philosophy): Rename from "Introduction", since this
2452         section no longer introduces the rest.  Write a new preface.
2453         * doc/gnulib-readme.texi: New file, with the old contents of
2454         README texinfo-ized.  This way, the README info appears
2455         in the online and printed manual.
2456
2457 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
2458
2459         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
2460         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
2461         c_vasprintf() prototype.
2462
2463 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
2464
2465         c-vasprintf: Fix "empty declaration" warning reported by GCC.
2466         * lib/c-vasprintf.h: Remove stray semicolon.
2467
2468 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
2469
2470         gettext: avoid obsolete macro AM_PROG_MKDIR_P
2471         It is obsolete and is planned to be removed from Automake 1.14; see
2472         <http://lists.gnu.org/archive/html/automake/2012-12/msg00029.html>.
2473         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
2474         (installdirs-data, installdirs-data-yes):
2475         Use $(MKDIR_P), not $(mkdir_p).
2476         * m4/intl.m4 (AM_INTL_SUBDIR):
2477         * m4/po.m4 (AM_PO_SUBDIRS):
2478         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
2479
2480 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
2481
2482         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
2483         On this platform, we are not optimizing but we are using
2484         the substitute for extern inlines, so compile as if
2485         C99-style extern inline, or a substitute, is available.
2486         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
2487         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
2488         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
2489         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
2490         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
2491         Declare as ARGP_FS_EI, not as extern.
2492         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
2493         (__option_is_short, _option_is_end, __option_is_end)
2494         [!_LIBC && __USE_EXTERN_INLINES]:
2495         Declare as ARGP_EI, not as extern.
2496
2497 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
2498
2499         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
2500         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
2501         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
2502         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
2503         ...), as the latter is fatal with older Autoconfs.
2504         Problem reported and fix suggested by Eric Blake in thread starting at
2505         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00097.html>.
2506
2507 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
2508
2509         AC_PROG_MKDIR_P: don't workaround if not buggy
2510         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
2511         Define only for Autoconf versions before 2.62.
2512         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
2513         undocumented m4_PACKAGE_VERSION, for consistency with the
2514         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
2515         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
2516         was introduced in 2.62.
2517
2518 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
2519
2520         New 'c-*printf' modules for formatted output in C locale.
2521
2522         New module 'c-vasnprintf'.
2523         * modules/c-vasnprintf: New file.
2524         * lib/c-vasnprintf.c: New file.
2525         * lib/c-vasnprintf.h: New file.
2526
2527         New module 'c-snprintf'.
2528         * modules/c-snprintf: New file.
2529         * modules/c-snprintf-tests: New file.
2530         * lib/c-snprintf.c: New file.
2531         * lib/c-snprintf.h: New file.
2532         * tests/test-c-snprintf.c: New file.
2533         * tests/test-c-snprintf.sh: New file.
2534
2535         New module 'c-vsnprintf'.
2536         * modules/c-vsnprintf: New file.
2537         * modules/c-vsnprintf-tests: New file.
2538         * lib/c-vsnprintf.c: New file.
2539         * lib/c-vsnprintf.h: New file.
2540         * tests/test-c-vsnprintf.c: New file.
2541         * tests/test-c-vsnprintf.sh: New file.
2542
2543         New module 'c-vasprintf'.
2544         * modules/c-vasprintf: New file.
2545         * modules/c-vasprintf-tests: New file.
2546         * lib/c-asprintf.c: New file.
2547         * lib/c-vasprintf.c: New file.
2548         * lib/c-vasprintf.h: New file.
2549         * tests/test-c-vasprintf.c  +: New file.
2550         * tests/test-c-vasprintf.sh: New file.
2551
2552         New module 'c-xvasprintf'.
2553         * modules/c-xvasprintf: New file.
2554         * modules/c-xvasprintf-tests: New file.
2555         * lib/c-xasprintf.c: New file.
2556         * lib/c-xvasprintf.c: New file.
2557         * lib/c-xvasprintf.h: New file.
2558         * tests/test-c-xvasprintf.c: New file.
2559         * tests/test-c-xvasprintf.sh: New file.
2560
2561 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
2562
2563         argp: better 'inline'
2564         Use extern-inline module to declare extern inline functions.
2565         This avoids some bogus warning diagnostics.  Problem discovered
2566         when modifying GNU tar to use the manywarnings module.
2567         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
2568         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
2569         Define based on extern-inline.
2570         * modules/argp (Depends-on): Add extern-inline.
2571
2572 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
2573
2574         filemode, sys_stat: Handle MPX files a la AIX.
2575         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
2576         * lib/sys_stat.in.h (S_ISMPX): New macro.
2577         * tests/test-sys_stat.c: Add tests for MPX files.
2578
2579 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
2580
2581         x-to-1: honor $PERL
2582         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
2583         a chance to use his preferred version of Perl.  This is typically
2584         required by Darwin users whose default /usr/bin/perl does not have all
2585         the libraries required by help2man, and who need to use their MacPorts
2586         installation of Perl instead.
2587
2588 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
2589
2590         gnu-web-doc-update: add all the new files, even in new directories
2591         See http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00057.html
2592         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
2593         Use it.
2594         (main): Don't use cvsutils to get the list of unknown files,
2595         just add all the existing files and directories.
2596
2597 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
2598
2599         gnu-web-doc-update: improve --help
2600         * build-aux/gnu-web-doc-update: Move comments into --help.
2601
2602 2012-12-07  Eric Wong  <normalperson@yhbt.net>
2603
2604         mountlist: recognize more "dummy" file systems
2605         * lib/mountlist.c (ME_DUMMY_0):
2606         Add these dummy FS names to the list:
2607         - "debugfs" virtual filesystem for kernel debugging
2608         - "devpts" PTY slave filesystem
2609         - "devtmpfs" device filesystem on top of tmpfs/ramfs
2610         - "fusectl" control filesystem for FUSE
2611         - "mqueue" enumerates POSIX message queues
2612         - "rpc_pipefs" kernel <-> userspace bridge for NFS
2613         - "sysfs" is for exporting kernel objects
2614         - "devfs" device filesystem for Linux 2.4 and FreeBSD
2615
2616 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
2617
2618         extern-inline: avoid incompatibility with Darwin Libc
2619         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
2620         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
2621         Problem reported by Akim Demaille in
2622         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00023.html>.
2623
2624 2012-12-11  Simon Josefsson  <simon@josefsson.org>
2625
2626         gnupload: Work with GnuPG using gpg-agent (for smartcards).
2627         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
2628         let it handle password prompting.
2629
2630 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
2631
2632         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
2633         * lib/canonicalize.c (canonicalize_filename_mode):
2634         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
2635         fetching the current directory.  Don't overrun the beginning of
2636         rpath if there's no slashes after the MS-Windows drive letter.
2637
2638 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
2639
2640         maint.mk: avoid extra forks
2641         * top/maint.mk (_cfg_mk): The GNU make manual documents that
2642         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
2643         So use that instead of "$(shell test -f FILE && echo FILE)".
2644
2645 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
2646
2647         vasnprintf: fix ASCII_ONLY typo
2648         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
2649         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
2650         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
2651         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
2652         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00021.html>.
2653
2654 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
2655
2656         list, oset, xlist, xoset: fix extern inline issue with C99
2657         This was introduced by my recent changes for 'inline'.
2658         Problem reported for gettext by Daiki Ueno in
2659         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00000.html>.
2660         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
2661         (gl_list_nx_create, gl_list_size, gl_list_node_value)
2662         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
2663         (gl_list_previous_node, gl_list_get_at)
2664         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
2665         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
2666         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
2667         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
2668         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
2669         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
2670         (gl_list_iterator_free, gl_sortedlist_search)
2671         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
2672         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
2673         (gl_sortedlist_remove):
2674         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
2675         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
2676         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
2677         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
2678         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
2679         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
2680         (gl_list_add_at, gl_sortedlist_add):
2681         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
2682         Wrap these extern decls inside "#if 0", because they are implemented
2683         as inline functions, and extern inline is not what's wanted here.
2684         It would simplify these .h files to remove the extern decls entirely,
2685         although a downside would be less-clear separation between
2686         specification and implementation.
2687
2688 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
2689
2690         sys_stat: no 'static inline'
2691         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
2692         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
2693
2694         extern-inline: no 'static inline'
2695         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
2696         Do not require AC_C_INLINE.
2697         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
2698         'static inline', for older compilers.
2699
2700         snippet/warn-on-use: no 'static inline'
2701         * build-aux/snippet/warn-on-use.h:
2702         Remove unnecessary 'inline' in comment.
2703
2704         rbtree-list, rbtreehash-list: no 'static inline'
2705         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
2706         * lib/gl_anytree_list2.h (node_at):
2707         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
2708         (gl_oset_first, add_nodes_to_buckets):
2709         Now static, not static inline.
2710
2711         regex: no 'static inline'
2712         * lib/regex_internal.c (calc_state_hash):
2713         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
2714         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
2715         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
2716         Now static, not static inline.
2717         (inline) [__GNUC__ < 3 && _LIBC]:
2718         Remove macro; no longer needed.
2719
2720         xvasprintf: no 'static inline'
2721         * lib/xvasprintf.c (xstrcat):
2722         Now static, not static inline.
2723         * m4/xvasprintf.m4 (gl_XVASPRINTF):
2724         Do not require AC_C_INLINE.
2725
2726         parse-datetime, parse-duration: no 'static inline'
2727         * lib/parse-datetime.y (to_uchar):
2728         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
2729         (scale_n_add):
2730         Now static, not static inline.
2731         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
2732         * modules/parse-duration (configure.ac):
2733         Do not require AC_C_INLINE.
2734
2735         getaddrinfo: no 'static inline'
2736         * lib/getaddrinfo.c (validate_family):
2737         Now static, not static inline.
2738         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
2739         Do not require AC_C_INLINE.
2740
2741         ftruncate, fts, lstat, openat, raise: no 'static inline'
2742         * lib/ftruncate.c (chsize_nothrow):
2743         * lib/fts.c (opendirat, diropen):
2744         * lib/lstat.c (orig_lstat):
2745         * lib/openat.c (orig_openat):
2746         * lib/raise.c (raise_nothrow):
2747         Now static, not static inline.
2748         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
2749         * m4/fts.m4 (gl_FUNC_FTS_CORE):
2750         * m4/lstat.m4 (gl_PREREQ_LSTAT):
2751         * m4/openat.m4 (gl_PREREQ_OPENAT):
2752         * m4/raise.m4 (gl_PREREQ_RAISE):
2753         Do not require AC_C_INLINE.
2754
2755         fflush, stat: no 'static inline'
2756         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
2757         (clear_ungetc_buffer, disable_seek_optimization)
2758         (restore_seek_optimization, update_fpos_cache):
2759         * lib/stat.c (orig_stat):
2760         Now static, not static inline.
2761         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
2762         (update_fpos_cache):
2763         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
2764         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
2765         * m4/stat.m4 (gl_PREREQ_STAT):
2766         Do not require AC_C_INLINE.
2767
2768         error, filevercmp: no 'static inline'
2769         * lib/error.c (is_open, flush_stdout):
2770         * lib/filevercmp.c (order):
2771         Now static, not static inline.
2772         * m4/error.m4 (gl_PREREQ_ERROR):
2773         * modules/filevercmp (configure.ac):
2774         Do not require AC_C_INLINE.
2775
2776         dup, execute, fatal-signal, etc.: no 'static inline'
2777         * lib/dup.c (dup_nothrow):
2778         * lib/execute.c (nonintr_close, nonintr_open):
2779         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
2780         * lib/fopen.c (orig_fopen):
2781         * lib/freadseek.c (freadptrinc):
2782         * lib/freopen.c (orig_freopen):
2783         * lib/fstat.c (orig_fstat, fstat_nothrow):
2784         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
2785         (get_rusage_as_via_iterator):
2786         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
2787         * lib/getdtablesize.c (_setmaxstdio_nothrow):
2788         * lib/isatty.c (_isatty_nothrow):
2789         * lib/open.c (orig_open):
2790         * lib/read.c (read_nothrow):
2791         * lib/sigprocmask.c (signal_nothrow):
2792         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
2793         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
2794         * lib/wait-process.c (unregister_slave_subprocess):
2795         * lib/write.c (write_nothrow):
2796         Now static, not static inline.
2797         * lib/spawn-pipe.c (nonintr_open): Define only if
2798         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
2799         * m4/dup.m4 (gl_PREREQ_DUP):
2800         * m4/execute.m4 (gl_EXECUTE):
2801         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
2802         * m4/fopen.m4 (gl_PREREQ_FOPEN):
2803         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
2804         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
2805         * m4/fstat.m4 (gl_PREREQ_FSTAT):
2806         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
2807         * m4/isatty.m4 (gl_PREREQ_ISATTY):
2808         * m4/open.m4 (gl_PREREQ_OPEN):
2809         * m4/read.m4 (gl_PREREQ_READ):
2810         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
2811         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
2812         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
2813         * m4/wait-process.m4 (gl_WAIT_PROCESS):
2814         * m4/write.m4 (gl_PREREQ_WRITE):
2815         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
2816         Do not require AC_C_INLINE.
2817
2818         c-strtod, memcoll, readutmp: no 'static inline'
2819         * lib/c-strtod.c (c_locale):
2820         * lib/memcoll.c (strcoll_loop):
2821         * lib/readutmp.c (desirable_utmp_entry):
2822         Now static, not static inline.
2823         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
2824         * m4/memcoll.m4 (gl_MEMCOLL):
2825         * m4/readutmp.m4 (gl_READUTMP):
2826         Do not require AC_C_INLINE.
2827
2828         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
2829         * lib/arctwo.c (to_uchar):
2830         * lib/md4.c (set_uint32):
2831         * lib/md5.c (set_uint32):
2832         * lib/sha1.c (set_uint32):
2833         * lib/sha256.c (set_uint32):
2834         * lib/sha512.c (set_uint64):
2835         Now static, not static inline.  This is a bit simpler, and doesn't
2836         affect performance with GCC and default optimization.
2837         * m4/arctwo.m4 (gl_ARCTWO):
2838         * m4/md4.m4 (gl_MD4):
2839         * m4/md5.m4 (gl_MD5):
2840         * m4/sha1.m4 (gl_SHA1):
2841         * m4/sha256.m4 (gl_SHA256):
2842         * m4/sha512.m4 (gl_SHA512):
2843         Do not require AC_C_INLINE.
2844
2845         cond, lock, thread: better 'inline'
2846         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
2847         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
2848         New macros.  Use them instead of static inline, for header functions.
2849         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
2850         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
2851         * lib/glthread/lock.c (gl_waitqueue_init)
2852         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
2853         * lib/glthread/thread.c (get_current_thread_handle):
2854         Change 'static inline' to 'inline'.
2855         * lib/glthread/cond.h, lib/glthread/thread.h:
2856         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2857         * m4/cond.m4 (gl_COND):
2858         * m4/lock.m4 (gl_PREREQ_LOCK):
2859         * m4/thread.m4 (gl_THREAD):
2860         Do not require AC_C_INLINE.
2861         * modules/cond, modules/thread (Depends-on): Add extern-inline.
2862
2863         chdir-long, cycle-check, savewd: better 'inline'
2864         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
2865         (find_non_slash):
2866         * lib/cycle-check.c (is_zero_or_power_of_two):
2867         * lib/savewd.c (savewd_delegating):
2868         Change 'static inline' to 'inline'.
2869         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
2870         Replace all remaining uses of 'static inline' with it.
2871         * lib/savewd.h:
2872         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2873         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
2874         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
2875         * m4/savewd.m4 (gl_SAVEWD):
2876         Do not require AC_C_INLINE.
2877         * modules/savewd (Depends-on): Add extern-inline.
2878
2879         base32, base64: no need for 'inline'
2880         * lib/base32.c (to_uchar, get_8, decode_8):
2881         * lib/base64.c (to_uchar, get_4, decode_4):
2882         Change 'static inline' to 'inline'.
2883         * m4/base32.m4 (gl_PREREQ_BASE32):
2884         * m4/base64.m4 (gl_PREREQ_BASE64):
2885         Do not require AC_C_INLINE.
2886
2887         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
2888         * lib/gl_array_oset.c (gl_array_nx_add_at):
2889         (gl_array_remove_at):
2890         * lib/gl_linkedhash_list.c (hash_resize_after_add)
2891         (add_to_bucket, remove_from_bucket):
2892         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
2893         Change 'static inline' to 'static', as it's simpler to omit
2894         'inline' unless there's a significant performance advantage.
2895
2896         list, oset, xlist, xoset, xsublist: simplify via extern inline
2897         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
2898         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
2899         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
2900         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
2901         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
2902         New macro.  Replace all uses of 'static inline' with it.
2903         [HAVE_INLINE]: Implement functions as *_INLINE functions,
2904         instead of as macros FOO that are defined to static inline
2905         functions FOO_inline.
2906         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
2907         * lib/gl_xsublist.c:
2908         Reimplement from scratch, by defining the corresponding *_INLINE
2909         macro and including the corresponding .h file.  This is simpler.
2910         * modules/list, modules/oset, modules/xlist, modules/xoset:
2911         (Files): Remove m4/gl_list.m4.
2912         (configure.ac): Remove gl_LIST.
2913         * m4/gl_list.m4: Remove.
2914         * modules/list, modules/oset, modules/xlist, modules/xoset:
2915         * modules/xsublist:
2916         (Depends-on): Depend on extern-inline, not inline.
2917
2918         xalloc: better 'inline'
2919         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
2920         New macro.  Replace all uses of 'static inline' with it.
2921         (static_inline): Remove.
2922         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
2923         Let 'extern inline' do the work automatically, instead of doing
2924         it by hand.
2925         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
2926         Remove.  All uses removed.
2927         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
2928
2929         gethrxtime: better 'inline'
2930         * lib/xtime.c: New file.
2931         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
2932         * lib/xtime.h (XTIME_INCLUDE):
2933         New macros.  Replace all uses of 'static inline' with them.
2934         * lib/gethrxtime.c (gethrxtime): Define only if
2935         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
2936         this source file is now always compiled, because of the extern inline.
2937         * lib/gethrxtime.h, lib/xtime.h:
2938         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2939         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
2940         if gethrtime works, as they're not needed in that case.
2941         (gl_XTIME): Do not require AC_C_INLINE.
2942         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
2943         compiled now.  Move the check into gl_GETHRXTIME.
2944         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
2945         (Depends-on): Add extern-inline.
2946         (configure.ac): gethrxtime is always compiled now.
2947         (lib_SOURCES): Add gethrxtime.c.
2948
2949         wctype-h: better 'inline'
2950         * lib/wctype-h.c: New file.
2951         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
2952         New macro.  Replace all uses of 'static inline' with it.
2953         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2954         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
2955         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
2956         (Depends-on): Add extern-inline.
2957
2958         unistd: better 'inline'
2959         * lib/unistd.c: New file.
2960         * lib/unistd.in.h (_GL_UNISTD_INLINE):
2961         New macro.  Replace all uses of 'static inline' with it.
2962         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2963         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
2964         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
2965         (Depends-on): Add extern-inline.
2966
2967         sys_socket: better 'inline'
2968         * lib/sys_socket.c: New file.
2969         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
2970         New macro.  Replace all uses of 'static inline' with it.
2971         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2972         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
2973         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
2974         (Depends-on): Add extern-inline.
2975
2976         stdio: better 'inline'
2977         * lib/stdio.c: New file.
2978         * lib/stdio.in.h (_GL_STDIO_INLINE):
2979         New macro.  Replace all uses of 'static inline' with it.
2980         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2981         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
2982         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
2983         (Depends-on): Add extern-inline.
2984
2985         sigaction: better 'inline'
2986         * lib/sig-handler.c: New file.
2987         * lib/sig-handler.h (SIG_HANDLER_INLINE):
2988         New macro.  Replace all uses of 'static inline' with it.
2989         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2990         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
2991         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
2992         (Depends-on): Add extern-inline.
2993
2994         selinux-h: better 'inline'
2995         * lib/se-context.c, lib/se-selinux.c: New files.
2996         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
2997         * lib/se-context.in.h (SE_CONTEXT_INLINE):
2998         New macro.  Replace all uses of 'static inline' with it.
2999         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3000         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
3001         New macro.  Replace all uses of 'static inline' with it.
3002         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3003         * modules/selinux-h (Files, lib_SOURCES):
3004         Add lib/se-context.c, lib/se-selinux.c.
3005         (Depends-on): Add extern-inline.
3006         (configure.ac): Do not require AC_C_INLINE.
3007
3008         pthread: better 'inline'
3009         * lib/pthread.c: New file.
3010         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
3011         New macro.  Replace all uses of 'static inline' with it.
3012         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3013         * m4/pthread.m4 (gl_PTHREAD_CHECK):
3014         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
3015         * modules/pthread (Files): Add lib/pthread.c.
3016         (Depends-on): Add extern-inline.
3017
3018         math: better 'inline'
3019         * lib/math.c: New file.
3020         * lib/math.in.h (_GL_MATH_INLINE):
3021         New macro.  Replace all uses of 'static inline' with it.
3022         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3023         * m4/math_h.m4 (gl_MATH_H):
3024         Do not require AC_C_INLINE.
3025         * modules/math (Files, lib_SOURCES):
3026         Add lib/math.c.
3027         (Depends-on): Add extern-inline.
3028
3029         count-one-bits: better 'inline'
3030         * lib/count-one-bits.c: New file.
3031         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
3032         New macro.  Replace all uses of 'static inline' with it.
3033         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3034         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
3035         Do not require AC_C_INLINE.
3036         * modules/count-one-bits (Files, lib_SOURCES):
3037         Add lib/count-one-bits.c.
3038         (Depends-on): Add extern-inline.
3039
3040         count-leading-zeros: better 'inline'
3041         * lib/count-leading-zeros.c: New file.
3042         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
3043         New macro.  Replace all uses of 'static inline' with it.
3044         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3045         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
3046         Do not require AC_C_INLINE.
3047         * modules/count-leading-zeros (Files, lib_SOURCES):
3048         Add lib/count-leading-zeros.c.
3049         (Depends-on): Add extern-inline.
3050
3051         bitrotate: better 'inline'
3052         * lib/bitrotate.c: New file.
3053         * lib/bitrotate.h (BITROTATE_INLINE):
3054         New macros.
3055         Replace all uses of 'static inline' with them.
3056         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3057         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
3058         (Depends-on): Add extern-inline.
3059         (configure.ac): Do not require AC_C_INLINE.
3060
3061 2012-11-20  Theophile Ranquet <ranquet@lrde.epita.fr>
3062
3063         maint.mk: avoid gratuitous failure
3064         Reported by Stefano Lattarini in
3065         <http://lists.gnu.org/archive/html/bug-bison/2012-11/msg00022.html>
3066         * top/maint.mk (public-submodule-commit): Quote more safely.
3067
3068 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
3069
3070         canonicalize, canonicalize-lgpl: support MS-Windows file names
3071         See <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00074.html>
3072         for test cases, which it'd be nice to add at some point.
3073         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
3074         * lib/canonicalize.c (canonicalize_filename_mode):
3075         * lib/canonicalize-lgpl.c (__realpath):
3076         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
3077         slash is at the beginning of the file name.  Use ISSLASH, instead
3078         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
3079         the first character with '/'.  Test for
3080         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
3081         with a drive letter.
3082         * lib/canonicalize.c (SLASHES): New macro.
3083         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
3084
3085 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
3086
3087         fts: introduce FTS_VERBATIM
3088         * lib/fts_.h (FTS_VERBATIM): New bit flag.
3089         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
3090         * lib/fts.c (fts_open): Honor it.
3091
3092 2012-11-09  Pádraig Brady  <P@draigBrady.com>
3093
3094         getlogin-tests: allow errno == ENXIO
3095         * tests/test-getlogin.c (main): Skip tests if getlogin fails
3096         with errno == ENXIO (No controlling tty).
3097         getlogin_r-tests: Likewise. Also allow errno == ENOENT
3098         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
3099         with errno == ENOENT.  This was reported to happen in various
3100         situations on GNU/Linux.
3101
3102 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
3103
3104         getlogin-tests: allow errno == ENOENT
3105         * tests/test-getlogin.c (main): Skip tests if getlogin fails
3106         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
3107         when running a test in an Emacs shell buffer.
3108
3109 2012-11-08  Jim Meyering  <jim@meyering.net>
3110
3111         tests/nap.h: avoid warning about unused variable
3112         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
3113
3114         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
3115         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
3116         white space before each of the special-cased file names, to avoid
3117         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
3118         in http://bugs.gnu.org/12830.
3119
3120 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
3121
3122         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
3123         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
3124         fails with errno == EBADF when fd is opened with O_PATH.
3125         Reported by Jim Meyering in
3126         <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00026.html>.
3127         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
3128         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
3129
3130 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
3131
3132         test-utimens: speed up by taking shorter naps
3133         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
3134         New functions.
3135         (nap): Use them, to do a better job of guessing the delay.
3136         On Fedora 17 with ext4 atop md atop hard disks, this made
3137         test-utimens run 10x faster, because the test napped for
3138         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
3139         <http://bugs.gnu.org/12820#11>.
3140
3141 2012-11-07  Jim Meyering  <jim@meyering.net>
3142
3143         mountlist.c: fix a compilation failure
3144         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
3145         I introduced while transforming commit v0.0-7683-g613bcb6
3146
3147 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
3148
3149         errno: port to LynxOS 178 2.2.2
3150         Problem reported by Joel Brobecker in
3151         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00088.html>.
3152         * doc/posix-headers/errno.texi (errno.h): Document this.
3153         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
3154         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
3155         Supply a string for EILSEQ.
3156         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
3157
3158 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
3159
3160         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
3161         Linux kernel 2.6.39 introduced O_PATH (see
3162         <http://lwn.net/Articles/433854/>) and this is a better fallback
3163         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
3164         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
3165         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
3166         * lib/fcntl.in.h (O_ACCMODE):
3167         * tests/test-fcntl-h.c (main):
3168         Do not reject O_ACCMODE merely because it has more than the
3169         minimal number of bits, as POSIX allows extensions here.
3170
3171 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
3172
3173         mountlist: do not classify a bind-mounted dir entry as "dummy"
3174         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
3175         the "none"-testing clause.
3176         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
3177         exception for bind-mounted directories.
3178
3179 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
3180
3181         quote: provide a means to escape strings with nul characters
3182         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
3183         (quote, quote_n): Rename formal arguments for consistency with
3184         quotearg.
3185
3186 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
3187
3188         test-raise: don't assume 199 is an invalid signal
3189         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
3190
3191         sh-quote-tests: port to Solaris 9
3192         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
3193         Problem reported by Dagobert Michelsen in
3194         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00114.html>.
3195
3196 2012-10-28  Jim Meyering  <jim@meyering.net>
3197
3198         maint.mk: rename a new configurable variable
3199         * top/maint.mk (_gl_translatable_string_re): Rename from
3200         translation-markers: _gl_ prefix to insulate from user Makefile code,
3201         and the _re suffix to inform that it's a regular expression.
3202
3203 2012-10-26  Eric Blake  <eblake@redhat.com>
3204
3205         maint.mk: let packages tweak sc_po_check pattern
3206         * top/maint.mk (sc_po_check): Add translation-markers, to allow
3207         finding files with other translation markers.
3208
3209 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
3210
3211         euidaccess: speed up 'configure' on GNU hosts
3212         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
3213         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
3214         it's needed only in this case.  Use AC_CHECK_DECLS, not
3215         AC_CHECK_DECLS_ONCE.
3216         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
3217         or AC_REQUIRE for AC_FUNC_GETGROUPS.
3218
3219         * lib/regexec.c (re_search_internal): Fix grammar in comment.
3220
3221 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
3222
3223         fchmodat, fchownat, fstatat: port to non-inlining compilers
3224         Problem reported for FreeBSD 9 by Jim Meyering in
3225         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00070.html>.
3226         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
3227         New files, which define FCHMODAT_INLINE etc.
3228         * lib/fchmodat.c (FCHMODAT_INLINE):
3229         * lib/fchownat.c (FCHOWNAT_INLINE):
3230         * lib/fstatat.c (FSTATAT_INLINE):
3231         Remove, as chmodat.c etc. now do this.
3232         * modules/fchmodat (Files): Add lib/chmodat.c.
3233         * modules/fchownat (Files): Add lib/chownat.c.
3234         * modules/fstatat (Files): Add lib/statat.c.
3235
3236 2012-10-15  Jim Meyering  <jim@meyering.net>
3237
3238         fchmodat.c, fchownat.c: compile-impeding typos
3239         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
3240         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
3241         Introduced in commit v0.0-7636-gd202279.
3242
3243 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
3244
3245         fcntl-h: support GNU flags like O_IGNORE_CTTY
3246         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
3247         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
3248         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
3249         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
3250         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
3251         Define to 0 if not already defined.
3252         * tests/test-fcntl-h.c: Test these new flags.
3253
3254 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
3255
3256         faccessat, etc.: support AT_FDCWD-only use
3257         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
3258         this function only if its first argument is AT_FDCWD.
3259         Emacs wants faccessat for AT_EACCESS but not for any first-arg
3260         values other than AT_FDCWD, so it doesn't want all the openat
3261         machinery with fchdir etc.
3262         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
3263         * modules/fstatat, modules/mkdirat, modules/openat (Files):
3264         * modules/unlinkat (Files):
3265         Remove lib/openat-priv.h, as at-internal supplies this file.
3266         Removing this file here allows us to support programs like Emacs
3267         that avoid at-internal.
3268
3269         faccessat: speed up 'configure' on mainstream hosts
3270         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
3271         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
3272         since it's only on unusual platforms that we need to check for
3273         'access', and it's better not to slow 'configure' down on all
3274         platforms.
3275
3276         faccessat: port to Solaris 10
3277         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
3278         Needed on Solaris 10, which doesn't have AT_EACCESS,
3279         so we need the Gnulib fcntl.h, which defines it.
3280
3281 2012-10-14  Pádraig Brady  <P@draigBrady.com>
3282         canonicalize: fix C89 compilation
3283         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
3284         declarations so C89 is supported.  Also remove the comment
3285         referencing memorty allocation as the suggested feature could
3286         not be implemented as suggested.
3287         Reported by Michael Goffioul.
3288
3289 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
3290
3291         group-member: omit unnecessary dependencies
3292         This is for Emacs, which has its own allocator and where we
3293         don't want to use xalloc.
3294         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
3295         since we no longer use xmalloc.  Do not include stdbool.h, since
3296         the changes below happen to remove the only use of bool.
3297         (GROUPBUF_SIZE): New constant.
3298         (struct group_info): Remove n_groups member.  Add groupbuf member.
3299         This lets us get the groups without using malloc, usually.
3300         (free_group_info, get_group_info): Adjust to this.
3301         (get_group_info): Return the number of groups found, or -1 on error.
3302         Use plain malloc not xmalloc, and treat its failure as if there
3303         are no groups, as the user already loses in case of error.
3304         (group_member): Simplify, based on changes to get_group_info.
3305         * modules/group-member (Depends-on): Remove dependencies on
3306         xalloc and stdbool.  Add dependency on xalloc-oversized.
3307
3308 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
3309
3310         gethrxtime: port to C++
3311         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
3312
3313 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
3314
3315         ptsname: fix macro-name typo
3316         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
3317
3318 2012-10-03  Simon Josefsson  <simon@josefsson.org>
3319
3320         inttostr: Relax license.
3321         * modules/inttostr (License): Change from LGPL to LGPLv2+.
3322
3323 2012-10-03  Eric Blake  <eblake@redhat.com>
3324
3325         ptsname_r: support ptys returned by FreeBSD posix_openpt
3326         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
3327         lives in /dev/pts/.
3328
3329 2012-10-02  Eric Blake  <eblake@redhat.com>
3330
3331         pselect: reject invalid file descriptors
3332         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
3333         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
3334         * modules/pselect (Depends-on): Add dup2.
3335         * doc/posix-functions/pselect.texi (pselect): Document this.
3336
3337         select: reject invalid file descriptors
3338         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
3339         * lib/select.c (rpl_select) [!win32]: Work around it.
3340         * modules/select (Depends-on): Add dup2.
3341         * doc/posix-functions/select.texi (select): Document this.
3342
3343         select: enhance test
3344         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
3345         New functions.
3346         (test_function): Enhance test.
3347         (do_select_bad_fd): Avoid any stale errno values.
3348
3349         ptsname: reject invalid file descriptors
3350         http://www.austingroupbugs.net/view.php?id=503
3351         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
3352         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
3353         * modules/stdlib (Makefile.am): Replace witness.
3354         * lib/stdlib.in.h (ptsname): Allow for replacement.
3355         * modules/ptsname (configure.ac): Trigger replacement.
3356         * doc/posix-functions/ptsname.texi (ptsname): Document this.
3357
3358 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
3359
3360         hash-pjw-bare: new module
3361         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
3362         * lib/hash-pjw-bare.h: Likewise.
3363         * modules/hash-pjw-bare: New file.
3364         * MODULES.html.sh (Misc): Add it.
3365
3366 2012-10-02  Eric Blake  <eblake@redhat.com>
3367
3368         manywarnings: cater to more gcc infelicities
3369         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
3370         -Wuninitialized without -O.
3371
3372 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
3373
3374         select, poll tests: Make setsockopt invocation effective.
3375         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
3376         the bind() call.
3377         * tests/test-select.h (open_server_socket): Likewise.
3378
3379 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
3380
3381         sockets, sys_stat: restore AC_C_INLINE
3382         This undoes the 2012-09-22 patch.
3383         * m4/sockets.m4 (gl_SOCKETS):
3384         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
3385         Restore AC_C_INLINE, since MSVC requires __inline or _inline
3386         and does not support plain 'inline'.  Reported by Bruno Haible in
3387         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00183.html>.
3388
3389 2012-09-30  Bruno Haible  <bruno@clisp.org>
3390
3391         localeconv tests: Avoid test failure on OpenIndiana.
3392         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
3393         skip the 'grouping' and 'mon_grouping' tests.
3394         Reported by Jim Meyering.
3395
3396 2012-09-30  Bruno Haible  <bruno@clisp.org>
3397
3398         havelib: Follow libtool developments.
3399         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
3400         Suggested by Simon Josefsson.
3401
3402 2012-09-29  Jim Meyering  <meyering@redhat.com>
3403
3404         fstatat.c: fix a compile-impeding typo
3405         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
3406         Introduced in commit v0.0-7636-gd202279.
3407         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
3408
3409 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
3410
3411         extern-inline: provide a -Wundef safe config.h
3412         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
3413         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
3414         to produce a -Wundef warning free config.h.
3415
3416 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
3417
3418         hash-pjw: relax license to LGPLv2+
3419         * modules/hash-pjw (License): Relax, with consent of author.
3420
3421 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
3422
3423         maint.mk: fix strict vs. lazy variable issues with RELEASE
3424         * top/maint.mk (_equal): New function.
3425         (member_check): Strip the result to avoid spurious spaces.
3426         (url_dir_list): Do not use ifeq, which is strict, as it will
3427         require RELEASE_TYPE to be defined.
3428         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
3429         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
3430         (announcement_Cc_alpha,announcement_mail_headers_alpha)
3431         (announcement_Cc_beta,announcement_mail_headers_beta)
3432         (announcement_Cc_stable,announcement_mail_headers_stable): these.
3433         (release): Do not depend on $(release-type), as it forces its
3434         evaluation.  Bounce to it.
3435
3436 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
3437
3438         maint.mk: formatting changes
3439         * top/maint.mk: Indent bodies of if's.
3440
3441 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
3442
3443         maint.mk: factor the validation of RELEASE_TYPE
3444         With help from Jim Meyering.
3445         http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00132.html
3446         * top/maint.mk (_empty, _sp): Move their definition earlier.
3447         (member-check, release-type): New.
3448         Use the latter instead of $(RELEASE_TYPE).
3449         Remove now useless local checks.
3450
3451 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
3452
3453         maint.mk: provide "make upload" to ease uploading
3454         See
3455         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00028.html>.
3456         Do not depend simply on the current $(VERSION), as there may have been
3457         new commits since the tarball generation.  Rather, rely on $(RELEASE),
3458         as "make release-commit" already does.
3459
3460         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
3461         "make TYPE".
3462
3463         * top/maint.mk (upload_command, upload, release): New.
3464         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
3465         (VERSION): first word of $(RELEASE) is always right.
3466         (emit_upload_commands): Adjust.
3467         * top/README-release: Update.
3468
3469 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
3470
3471         maint.mk: silent rules
3472         With help from Stefano Lattarini.
3473         * top/maint.mk (writable-files): Use $(AM_V_GEN).
3474         (announcement): Use $(AM_V_at).
3475
3476 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
3477
3478         localename: port gl_locale_name_thread_unsafe to FreeBSD
3479         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
3480         and use the simpler FreeBSD implementation on Mac OS X as well.
3481         Original idea suggested by Ed Maste in
3482         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00094.html>.
3483
3484 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
3485
3486         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
3487         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
3488         * lib/mbuiter.c, lib/xsize.c: New files.
3489         * lib/binary-io.h (BINARY_IO_INLINE):
3490         * lib/eealloc.h (EEALLOC_INLINE):
3491         * lib/mbfile.h (MBFILE_INLINE):
3492         * lib/mbiter.h (MBITER_INLINE):
3493         * lib/mbuiter.h (MBUITER_INLINE):
3494         * lib/xsize.h (XSIZE_INLINE):
3495         New macros.
3496         Replace all uses of 'static inline' with them.
3497         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3498         * m4/eealloc.m4 (gl_EEALLOC):
3499         * m4/mbfile.m4 (gl_MBFILE):
3500         * m4/mbiter.m4 (gl_MBITER):
3501         * m4/xsize.m4 (gl_XSIZE):
3502         Do not require AC_C_INLINE.
3503         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
3504         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
3505         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
3506         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
3507         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
3508         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
3509         * modules/binary-io, modules/eealloc, modules/mbfile:
3510         * modules/mbiter, modules/mbuiter:
3511         (Depends-on): Add extern-inline.
3512
3513         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
3514         * lib/pipe-filter-aux.c: New file.
3515         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
3516         Replace all uses of 'static inline' with it.
3517         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3518         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
3519         (filter_retcode): No real need for inline here.
3520         * modules/pipe-filter-gi, modules/pipe-filter-ii:
3521         (Files): Add lib/pipe-filter-aux.c.
3522         (Depends-on): Add extern-inline.
3523         (configure.ac): Do not require AC_C_INLINE.
3524         (lib_SOURCES): Add pipe-filter-aux.c.
3525
3526         fdutimensat: omit unnecessary AC_C_INLINE
3527         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
3528
3529         fchmodat, fchownat, fstatat: use extern-inline
3530         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
3531         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
3532         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
3533         New macros.
3534         * lib/openat.h:
3535         Replace all uses of 'static inline' with them.
3536         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3537         * modules/fchmodat, modules/fchownat, modules/fstatat:
3538         * modules/openat-h:
3539         (Depends-on):
3540         Add extern-inline.
3541         (configure.ac): Remove AC_C_INLINE.
3542
3543         acl, mbchar, priv-set: use extern-inline
3544         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
3545         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
3546         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
3547         New macros.
3548         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
3549         Replace all uses of 'static inline' with it.
3550         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3551         * m4/acl.m4 (gl_FUNC_ACL):
3552         * m4/mbchar.m4 (gl_MBCHAR):
3553         * m4/priv-set.m4 (gl_PRIV_SET):
3554         Remove AC_C_INLINE, since 'inline' is no longer used directly.
3555         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
3556         Add extern-inline.
3557
3558         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
3559         * m4/sockets.m4 (gl_SOCKETS):
3560         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
3561         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
3562         environments where it's already guaranteed to work, so we needn't
3563         check for it at 'configure'-time.
3564
3565         tls-tests: omit unnecessary 'inline'
3566         * tests/test-tls.c (perhaps_yield): No longer inline.
3567         Simplicity and portability trump efficiency in test cases.
3568
3569         utimens-tests: avoid unnecessary 'inline'
3570         * modules/fdutimensat-tests (configure.ac):
3571         * modules/futimens-tests (configure.ac):
3572         * modules/utimens-tests (configure.ac):
3573         * modules/utimensat-tests (configure.ac):
3574         Remove AC_C_INLINE.
3575         * tests/test-utimens-common.h (ctime_compare):
3576         No longer inline.  Simplicity and portability trump efficiency here.
3577
3578         misc: don't limit commentary to inline functions
3579         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
3580         * lib/xalloc-oversized.h, lib/xsize.h:
3581         Contrast macros to functions in general, not just to inline functions,
3582         when the commentary does not apply only to inline functions.
3583
3584 2012-09-20  Jim Meyering  <meyering@redhat.com>
3585
3586         non-recursive-gnulib-prefix-hack: new module
3587         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
3588         the file that originated in Bison.
3589         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
3590         largely copied from a snippet that resided in bison's configure.ac.
3591         * modules/non-recursive-gnulib-prefix-hack: New file.
3592         * MODULES.html.sh (Support for maintaining and releasing projects):
3593         Add it.
3594
3595 2012-09-18  Jim Meyering  <meyering@redhat.com>
3596
3597         maint.mk: generalize _gl_tight_scope for non-recursive make
3598         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
3599         that *.h would describe additional .h files in the directory
3600         specified by $(_gl_TS_dir).  I.e., add this...
3601         (_gl_TS_other_headers): New variable.
3602
3603         maint.mk: exempt trailing blanks found in "binary" files
3604         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
3605         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
3606         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
3607
3608 2012-09-17  Jim Meyering  <meyering@redhat.com>
3609
3610         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
3611         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
3612         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
3613         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
3614
3615 2012-09-17  Jim Meyering  <meyering@redhat.com>
3616
3617         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
3618         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
3619         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
3620         It is not in the same category as "exit (0)" or "exit (1)", and
3621         besides, I know of no symbolic name for that 77.  Reported by
3622         Richard W.M. Jones in
3623         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
3624
3625 2012-09-17  Jim Meyering  <meyering@redhat.com>
3626
3627         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
3628         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
3629         all uses of #define, not just those that start in column 1.
3630         Richard W.M. Jones reported a false positive in
3631         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
3632
3633 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
3634
3635         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
3636         * lib/localcharset.c (locale_charset) [DARWIN7]:
3637         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
3638         as these two values are incompatible.  Problem reported by Max Horn.
3639         For more discussion, please see
3640         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00061.html>.
3641
3642         doc: document sticky-EOF issue
3643         * doc/posix-functions/fgetc.texi (fgetc):
3644         * doc/posix-functions/fgets.texi (fgets):
3645         * doc/posix-functions/fread.texi (fread):
3646         * doc/posix-functions/fscanf.texi (fscanf):
3647         * doc/posix-functions/getc.texi (getc):
3648         * doc/posix-functions/getchar.texi (getchar):
3649         * doc/posix-functions/scanf.texi (scanf):
3650         Mention that glibc and default Solaris do not conform to
3651         C99 and POSIX-2001 or later, with respect to how getchar
3652         etc. behave when feof reports nonzero.
3653
3654 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
3655
3656         poll: fix poll(0, NULL, msec)
3657         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
3658         but nfd is 0.  In that case poll should behave like select.
3659
3660 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
3661             Paolo Bonzini <bonzini@gnu.org>
3662
3663         poll: fix for systems that can't recv() on a non-socket
3664         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
3665         is readable.  In this case POLLHUP will not be supported.
3666         * doc/posix-functions/poll.texi: Document this.
3667
3668 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
3669
3670         poll/select: document portability problems not fixed by Gnulib.
3671         * doc/posix-functions/poll.texi: poll does not work well on
3672         pipes under Windows.  It has the same limitations as select on
3673         BeOS.
3674         * doc/posix-functions/select.texi: select does not work well
3675         on pipes under Windows.
3676
3677 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
3678
3679         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
3680         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
3681         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
3682         <http://lists.gnu.org/archive/html/bug-tar/2012-07/msg00018.html>.
3683
3684 2012-09-06  Eric Blake  <eblake@redhat.com>
3685
3686         net_if: give more details about the bug being fixed
3687         * doc/posix-headers/net_if.texi: Add clarification.
3688
3689 2012-09-05  Eric Blake  <eblake@redhat.com>
3690
3691         net_if: new module
3692         * modules/net_if: New module, borrowing ideas from netinet_in.
3693         * m4/net_if_h.m4: New file.
3694         * lib/net_if.in.h: Likewise.
3695         * doc/posix-headers/net_if.texi (net/if.h): Document it.
3696         * MODULES.html.sh (lacking POSIX:2008): Likewise.
3697         * tests/test-net_if.c: Make function checks conditional.
3698         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
3699
3700 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
3701
3702         readutmp: fix non-portable UT_PID use
3703         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
3704         Use `UT_PID (u) > 0' as absolute condition.
3705
3706 2012-09-04  Jim Meyering  <meyering@redhat.com>
3707
3708         fts: reduce two or more trailing spaces to just one, usually
3709         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
3710         or more slashes, trim all but the final one.  But if a name consists
3711         solely of two slashes, don't modify it.  If it consists solely of
3712         three or more slashes, strip all but one.
3713
3714         This is part of the solution to a minor problem with rm:
3715         it would print a bogus ELOOP diagnostic when failing to remove
3716         the slash-decorated name of a symlink-to-directory:
3717
3718             $ mkdir d && ln -s d s && env rm -r s/
3719             rm: cannot remove 's': Too many levels of symbolic links
3720
3721         With the change below and a trivial don't-trim-trailing-slashes
3722         adjustment to remove.c, it does this:
3723
3724             $ env rm -r s/
3725             rm: cannot remove 's/': Not a directory
3726
3727         Improved by: Eric Blake
3728
3729         fts: when there is no risk of overlap, use memcpy, not memmove
3730         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
3731
3732 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
3733
3734         stdbool: be more compatible with mixed C/C++ compiles
3735         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
3736         Define to bool, true, false, respectively, as GCC's builtin
3737         stdbool.h does.  Problem reported by Michael Goffioul in
3738         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00143.html>.
3739
3740 2012-08-28  Jim Meyering  <meyering@redhat.com>
3741
3742         revert last change: it was not needed
3743         * tests/test-vc-list-files-git.sh: There's already a test for
3744         a working git, just below.
3745
3746 2012-08-28  Jim Meyering  <meyering@redhat.com>
3747
3748         tests: test-vc-list-files-git.sh: skip if git is not available
3749         * tests/test-vc-list-files-git.sh: Skip this test when git is
3750         not available.
3751
3752 2012-08-26  Bruno Haible  <bruno@clisp.org>
3753
3754         gnulib-tool: Remove no-op option --no-changelog.
3755         * gnulib-tool (func_usage): Don't mention --no-changelog.
3756         (do_changelog): Remove variable.
3757         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
3758
3759 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
3760
3761         doc: remove fdl-1.2.texi
3762         It is no longer used or maintained, and its use of @acronym
3763         is problematic.  See the thread containing
3764         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00134.html>.
3765         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
3766         * doc/old-licenses/fdl-1.2.texi: Remove.
3767
3768         execinfo: port to FreeBSD
3769         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
3770         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
3771         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00113.html>.
3772         * modules/execinfo (Link): Add $(LIB_EXECINFO).
3773
3774 2012-08-23  Jim Meyering  <meyering@redhat.com>
3775
3776         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
3777         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
3778         to placate gcc's -Wold-style-declaration.
3779
3780 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
3781
3782         doc: do not use @acronym
3783         * doc/inet_ntoa.texi (inet_ntoa):
3784         * doc/parse-datetime.texi (Seconds since the Epoch)
3785         (Specifying time zone rules):
3786         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
3787         Don't use @acronym.  Problem reported by John Darlington in
3788         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00124.html>.
3789
3790 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
3791
3792         stdnoreturn: port to newer GCCs
3793         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
3794         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
3795         Problem reported by Jim Meyering in
3796         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00121.html>.
3797         Also, rename the 'test' function to a void a clash with the
3798         already-supplied 'main' function; this fixes a bug that incorrectly
3799         rejected GCC 4.7.1's <stdnoreturn.h>.
3800         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
3801         Document GCC problem.
3802
3803 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
3804
3805         pipe-filter: fix comment typo
3806         * lib/pipe-filter.h: Mention correct function.
3807
3808 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
3809
3810         execinfo: new module
3811         This is for Emacs.  Currently, it provides a no-effect stub
3812         on all platforms where it does not already work.
3813         It already works on glibc-based systems, and on Solaris 11.
3814         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
3815         New files.
3816         * doc/glibc-headers/execinfo.texi (execinfo.h):
3817         * MODULES.html.sh (Misc): Document it.
3818
3819 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
3820
3821         extern-inline: support old GCC 'inline'
3822         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
3823         if available.  This applies to GCC versions 2.7 through 4.2, or
3824         when newer GCC is using -fgnu89-inline.  The goal is to address
3825         some of the performance issues mentioned by Bruno Haible in
3826         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00097.html>.
3827
3828 2012-08-20  Eric Blake  <eblake@redhat.com>
3829
3830         maint.mk: avoid redundant file name in message
3831         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
3832         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
3833         (sc_makefile_path_separator_check): Remove bogus $(ME).
3834
3835 2012-08-20  Mike Frysinger <vapier@gentoo.org>
3836
3837         timer-time: fix link order when static linking on glibc
3838         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
3839         _after_ -lrt so that it's significant.
3840
3841 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
3842
3843         timespec: omit unnecessary AC_C_INLINE
3844         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
3845
3846         stat-time: omit unnecessary AC_C_INLINE
3847         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
3848         Do not require AC_C_INLINE.
3849
3850         ignore-value: omit unnecessary AC_C_INLINE
3851         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
3852
3853         sys_select: avoid 'static inline'
3854         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
3855
3856         mktime: avoid 'static inline'
3857         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
3858         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
3859
3860 2012-08-19  Bruno Haible  <bruno@clisp.org>
3861
3862         gnulib-tool: Improve coding style.
3863         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
3864         func_emit_lib_Makefile_am.
3865         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
3866
3867 2012-08-19  Bruno Haible  <bruno@clisp.org>
3868
3869         gnulib-tool: Fix indentation.
3870         * gnulib-tool (func_import): Fix indentation.
3871
3872 2012-08-19  Bruno Haible  <bruno@clisp.org>
3873
3874         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
3875         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
3876         on the list of removed files.
3877
3878 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
3879
3880         test-parse-datetime: avoid glibc leap-second glitch
3881         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
3882         with the 2012 rules.  Problem reported by Bruce Dubbs in
3883         <http://bugs.gnu.org/12206>.
3884
3885 2012-08-14  Bruno Haible  <bruno@clisp.org>
3886
3887         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
3888         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
3889         from argument.
3890         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
3891
3892 2012-08-14  Eric Blake  <eblake@redhat.com>
3893
3894         ldexp: relax license
3895         * modules/ldexp (License): Trivial relax, since the module only
3896         provides a permissively licensed m4 file.
3897
3898 2012-08-13  Bruno Haible  <bruno@clisp.org>
3899
3900         gnulib-tool: Fix persistence of --witness-c-macro option.
3901         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
3902         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
3903
3904 2012-08-11  Eric Blake  <eblake@redhat.com>
3905
3906         count-leading-zeros: use a lookup table on non-gcc compilers
3907         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
3908         alternate implementation, suggested by Jim Meyering.
3909
3910 2012-08-10  Eric Blake  <eblake@redhat.com>
3911
3912         count-leading-zeros: new module
3913         * modules/count-leading-zeros: New module.
3914         * m4/count-leading-zeros.m4: New file.
3915         * lib/count-leading-zeros.h: Likewise.
3916         * modules/count-leading-zeros-tests: New test.
3917         * tests/test-count-leading-zeros.c: New file.
3918         * MODULES.html.sh (Integer arithmetic functions): Document it.
3919
3920 2012-08-07  Simon Josefsson  <simon@josefsson.org>
3921             Jim Meyering  <meyering@redhat.com>
3922
3923         maintainer-makefile: Fix syntax error with dash.
3924         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
3925         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
3926
3927 2012-08-05  Jim Meyering  <meyering@redhat.com>
3928
3929         extern-inline: also ignore -Wmissing-declarations
3930         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
3931         required with gcc-4.8.0-to-be.
3932
3933         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
3934         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
3935         for /error ?([^,]*)/.  This avoids false-positives for strings like
3936         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
3937
3938 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
3939
3940         gnumakefile: better interaction with Automake-NG
3941         * modules/gnumakefile [Makefile.am]: The makefiles generated by
3942         Automake-NG always contain a definition of VPATH, even in non-VPATH
3943         builds (its value being simply '.' in that case).  So, in the
3944         'clean-GNUmakefile' rule, to determine whether running under a
3945         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
3946         '$(VPATH)' expands to the empty string.
3947
3948 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
3949
3950         base64: Use extern C scope in header file, for C++.
3951         * lib/base64.h: Add C++ namespace protection.
3952
3953 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
3954
3955         stat-time, timespec, u64: support naive out-of-dir builds
3956         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
3957         Use '#include "foo.h"', not '#include <foo.h>', when including
3958         one's own interface.  This works better when configuring with
3959         out-of-directory builds, since packages need not add an
3960         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
3961
3962 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
3963
3964         utimens: use extern-inline
3965         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
3966         * lib/utimens.h: Add copyright notice, since this is now large enough
3967         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3968         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
3969         * modules/utimens (Depends-on): Add extern-inline.
3970
3971         u64: use extern-inline
3972         * lib/u64.c: New file.
3973         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3974         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
3975         * modules/u64 (Files): Add lib/u64.c.
3976         (Depends-on): Add extern-inline.
3977         (configure.ac): No need to require AC_C_INLINE, since extern-inline
3978         does that now.
3979         (lib_SOURCES): Add u64.c.
3980
3981         timespec: use extern-inline
3982         * lib/timespec.c: New file.
3983         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3984         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
3985         * modules/timespec (Files): Add lib/timespec.c.
3986         (Depends-on): Add extern-inline.
3987         (lib_SOURCES): Add timespec.c.
3988
3989         stat-time: use extern-inline
3990         * lib/stat-time.c: New file.
3991         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3992         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
3993         * modules/stat-time (Files): Add lib/stat-time.c.
3994         (Depends-on): Add extern-inline.
3995         (lib_SOURCES): Add stat-time.c.
3996
3997         extern-inline: new module
3998         * modules/extern-inline, m4/extern-inline.m4: New files.
3999         This is for better support of 'extern inline' a la ISO C99,
4000         with a portable alternative on compilers that do not support
4001         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
4002         of the Emacs executable, when compiled with debugging disabled,
4003         which is a typical way that Emacs is built while developing.
4004
4005 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
4006
4007         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
4008         * build-aux/do-release-commit-and-tag: Move variable definitions
4009         together.
4010         ($branch): Instead of defaulting to "master", default to the current
4011         branch (as gnu-web-doc-update does).
4012         (help): Display the current values of the option arguments.
4013         * top/maint.mk (release-commit): New.
4014         * top/README-release: Simplify the corresponding step.
4015
4016 2012-07-30  Eric Blake  <eblake@redhat.com>
4017
4018         passfd: fix comment on recvfd
4019         * lib/passfd.c (recvfd): Fix comment.
4020         Reported by Jann Horn <jannhorn@googlemail.com>.
4021
4022 2012-07-30  Jim Meyering  <meyering@redhat.com>
4023
4024         maint.mk: avoid a sub-shell
4025         * top/maint.mk (release-prep): Remove unneeded sub-shell.
4026
4027 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
4028
4029         maint.mk: use silent-rules support from Automake
4030         * top/maint.mk (news-check, vc-diff-check, announcement)
4031         (no-submodule-changes, alpha beta stable, release-prep)
4032         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
4033
4034 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
4035
4036         maint.mk: provide a web-manual-update target
4037         * top/maint.mk: here.
4038         * top/README-release: Use it to simplify the web manual update step.
4039
4040 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
4041
4042         README-release: shorten the circuit to post a news
4043         * top/README-release: Point directly to the news submission form.
4044
4045 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
4046
4047         gnu-web-doc-update: fix --help
4048         * build-aux/gnu-web-doc-update: The information "top level" was written
4049         twice.
4050
4051 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
4052
4053         maint.mk: absolute VPATH issue
4054         * top/maint.mk (release-prep): Help Git find .git/.
4055         From Jim Meyering.
4056
4057 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
4058
4059         gitlog-to-changelog: fix previous change
4060         * build-aux/gitlog-to-changelog: Fix condition.
4061         Add missing ";".
4062
4063 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
4064
4065         gitlog-to-changelog: don't expect .git to be in $srcdir
4066         Reported by Bruno Haible.
4067         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00265.html>
4068         * build-aux/gitlog-to-changelog (&git_dir_option): New.
4069         Use it.
4070
4071 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
4072
4073         maint.mk: absolute VPATH build fix
4074         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
4075         $(srcdir) is not a parent of $(builddir).
4076
4077 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
4078
4079         clean-temp: Fix memory leak.
4080         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
4081         'files' members of tmpdir.
4082
4083 2012-07-27  Jim Meyering  <meyering@redhat.com>
4084
4085         maint.mk: new rule: refresh-gnulib-patches
4086         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
4087         Use this rule to refresh them.
4088         * top/maint.mk (refresh-gnulib-patches): New rule.
4089
4090 2012-07-24  Bruno Haible  <bruno@clisp.org>
4091
4092         gnulib-tool: Fix handling of inctests variable.
4093         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
4094         Reported by Nick Bowler <nbowler@elliptictech.com>.
4095
4096 2012-07-22  Bruno Haible  <bruno@clisp.org>
4097
4098         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
4099         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
4100         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
4101         Remove exemption for getpass.h.
4102         Suggested by Eric Blake.
4103
4104 2012-07-20  Eric Blake  <eblake@redhat.com>
4105
4106         verify: document conflict with -Wnested-externs
4107         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
4108
4109         maint.mk: forbid exit(-1)
4110         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
4111
4112 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
4113
4114         fsusage: port back to Solaris
4115         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
4116         error (fsd not declared) on Solaris 10.  Reported privately by
4117         Andrew Borodin.
4118
4119 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
4120
4121         gnu-web-doc-update: fix error messages
4122         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
4123
4124         gnu-web-doc-update: check the requirements.
4125         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
4126         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
4127         * build-aux/bootstrap (find_tool): Comment change.
4128
4129 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
4130
4131         maint.mk: minor simplication.
4132         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
4133         for default values.
4134
4135 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
4136
4137         gitlog-to-changelog: VPATH build issues
4138         If builddir is not a subdirectory of srcdir, running git from it will
4139         fail.
4140         * build-aux/gitlog-to-changelog (--srcdir): New option.
4141
4142 2012-07-15  Bruno Haible  <bruno@clisp.org>
4143
4144         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
4145         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
4146         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
4147         Remove exemption for fpending.h.
4148         Suggested by Eric Blake.
4149
4150 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
4151
4152         pthread_sigmask: fix bug on FreeBSD 9
4153         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
4154         Include string.h.
4155         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
4156         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
4157         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
4158         but pthread_sigmask (1729, NULL, NULL) returns zero.
4159         See <http://bugs.gnu.org/11884>.
4160         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
4161         by inspecting whether the main call changed the old mask.
4162
4163 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
4164
4165         README-release: make it more legible
4166         * top/README-release: Improve typography slightly.
4167
4168 2012-07-15  Jim Meyering  <meyering@redhat.com>
4169
4170         maint: require that each sc_... command start with "@"
4171         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
4172         "make sc_maint" helps us avoid this nit.
4173
4174 2012-07-15  Jim Meyering  <meyering@redhat.com>
4175
4176         maint.mk: add leading "@" to quiet new "make syntax-check" rule
4177         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
4178
4179 2012-07-13  Eric Blake  <eblake@redhat.com>
4180
4181         maint.mk: new syntax check for HAVE_DECL checks
4182         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
4183         * cfg.mk
4184         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
4185         Exempt some false positives.
4186         Based on a report by Karel Zak.
4187
4188         argp: make HAVE_DECL usage consistent
4189         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
4190         macros, not whether they are defined.
4191         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
4192         convention with other declaration checks.
4193         Reported by Karel Zak, with suggestions from Paul Eggert.
4194
4195         stat-time: relax license to LGPLv2+
4196         * modules/stat-time (License): Relax, with consent of all authors.
4197
4198         strndup: fix m4 usage error
4199         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
4200         defined, to either 0 or 1.
4201         Reported by Karel Zak.
4202
4203 2012-07-11  Jim Meyering  <meyering@redhat.com>
4204
4205         maint: enable the sc_avoid_if_before_free syntax-check rule
4206         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
4207         (if_before_free_offenders_): Define.
4208         (if_before_free_basename_re_): Define.
4209         Exempt current files with useless if-before-free.
4210
4211 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
4212
4213         gettext: do not assume '#define ... defined ...' behavior
4214         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
4215         Do not use '#define FOO ... defined BAR ...', as the C standard says
4216         it's not portable to expect that this works after macro expansion.
4217         Problem reported for gzip by Steven M. Schweda in
4218         <http://lists.gnu.org/archive/html/bug-gzip/2012-07/msg00000.html>.
4219
4220 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
4221
4222         getloadavg: clean out old Emacs and Autoconf cruft
4223         See Glenn Morris in <http://bugs.gnu.org/11905>.
4224         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
4225         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
4226         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
4227         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
4228
4229 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
4230
4231         bootstrap: let warn be like tests/init.sh's warn_
4232         Reported by Jim Meyering.
4233         * build-aux/bootstrap (warn): Remove, replaced by...
4234         (warnf_, warn_): these.
4235         Adjust callers.
4236         Shorten messages that no longer fit in 80 columns.
4237
4238 2012-07-09  Bruno Haible  <bruno@clisp.org>
4239
4240         getopt: Simplify after Emacs changed.
4241         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
4242         (gl_GETOPT_IFELSE): Remove macro.
4243
4244 2012-07-09  Jim Meyering  <meyering@redhat.com>
4245
4246         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
4247         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
4248
4249         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
4250         Bugs in both of those conspired to make the
4251         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
4252         _sc_search_regexp's handling of non-empty $in_files would filter
4253         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
4254         choice of in_files value meant there would be no match in most
4255         projects, due to the presence of two or more Makefile.in files.
4256         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
4257         Fix a bug in how a non-empty $$in_files was processed:
4258         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
4259         in spite of the name, it's a regexp, not a list of file names.
4260
4261 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
4262
4263         getloadavg, getopt: fix commentary re configure.in
4264         Autoconf is deprecating the name 'configure.in', so change it to
4265         to the new name 'configure.ac' in a couple of places.
4266         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
4267         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
4268         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
4269         Emacs has renamed it to configure.ac, and it no longer refers
4270         to these macros anyway.
4271
4272         timespec: mark functions with const attributes
4273         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
4274         Mark with _GL_ATTRIBUTE_CONST.
4275
4276 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
4277
4278         canonicalize[-lgpl]: handle "guessing" values when cross-building
4279         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
4280         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
4281         matches "*yes" instead of just "yes".  Regression introduced in commit
4282         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
4283
4284 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
4285             Bruno Haible  <bruno@clisp.org>
4286
4287         canonicalize: make the right guess when cross-compiling to GNU
4288         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
4289         determine whether cross-compiling to glibc systems, so as to
4290         include GNU/Hurd.
4291
4292 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
4293
4294         timespec-sub: avoid duplicate include
4295         * lib/timespec-sub.c: Do not include <config.h> twice.
4296         Reported by Juanma Barranquero.
4297
4298 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
4299
4300         bootstrap: use a more consistent error reporting scheme
4301         * build-aux/bootstrap (warn, die): New.
4302         Use them.
4303
4304 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
4305
4306         sys_time: allow too-wide tv_sec
4307         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
4308         timeval even if tv_sec is wider than time_t.  This allows
4309         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
4310         as without this patch gnulib replaces struct timeval
4311         and OpenBSD futimes therefore has a type mismatch.
4312         * doc/posix-headers/sys_time.texi: Mention this.
4313
4314         pthread: check for both pthread_create and pthread_join
4315         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
4316         alter the check so that it tests for both pthread_create and
4317         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
4318         Suggested by Bruno Haible and Richard Yao in
4319         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00048.html>.
4320
4321         parse-datetime: doc tuneup
4322         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
4323         spacing issues.
4324
4325 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
4326
4327         do-release-commit-and-tag: fix the previous commit
4328         * build-aux/do-release-commit-and-tag: Actually the test was right,
4329         but the comment and the error message were misleading.
4330         Fix comment, and improve error message.
4331         Perform check first, so that NEWS is not modified uselessly.
4332
4333         do-release-commit-and-tag: fix typo
4334         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
4335         _not_ start with a stub.
4336
4337 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
4338
4339         pthread: check for pthread_create, not pthread_join
4340         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
4341         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
4342         pthread_join in libc.  I hope this removes the need for all the
4343         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
4344         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00042.html>.
4345
4346 2012-07-04  Jim Meyering  <meyering@redhat.com>
4347
4348         parse-datetime: fix failure to diagnose invalid input
4349         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
4350         rather than diagnosing the invalid input.  Now it reports this:
4351         date: invalid date '\260'
4352         * lib/parse-datetime.y (to_uchar): Define.
4353         (yylex): Don't sign-extend "other" bytes.
4354         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
4355         Thanks to Bruno Haible for the patch to this file.
4356         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
4357         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
4358
4359 2012-07-03  Jim Meyering  <meyering@redhat.com>
4360
4361         bootstrap: do not require now-removed build-aux/missing
4362         Now that build-aux/missing is, er, missing, bootstrap would
4363         silently fail.
4364         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
4365         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
4366         no longer part of gnulib.
4367         Diagnose the failure.
4368
4369 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
4370
4371         alloca: add support for HP NonStop TNS/E native
4372         * lib/alloca.in.h (alloca): Support the new host.
4373         From a suggestion by Joachim Schmitz in
4374         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00355.html>.
4375
4376 2012-07-02  Pádraig Brady  <P@draigBrady.com>
4377
4378         fsusage: remove code not needed on non GNU/Linux systems.
4379
4380         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
4381         Don't include headers no longer needed in this case.
4382         * lib/fsusage.c [STAT_STATVFS &&
4383         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
4384         STAT_STATFS2_FRSIZE to exclude code not used in this case.
4385
4386 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
4387
4388         fsusage: include files needed for glibc 2.6 fallback
4389         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
4390         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
4391         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
4392         Problem reported by Ludovic Courtès in
4393         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00005.html>.
4394
4395         fsusage: avoid needless check on GNU/Linux
4396         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
4397         on GNU/Linux systems, since it can't possibly work.
4398
4399 2012-07-01  Bruno Haible  <bruno@clisp.org>
4400
4401         log: Fix an autoconf >= 2.64 warning.
4402         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
4403         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
4404
4405 2012-06-28  Bruno Haible  <bruno@clisp.org>
4406
4407         log10f: Fix possible configuration problem.
4408         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
4409         $LOGF_LIBM.
4410         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
4411
4412 2012-06-28  Bruno Haible  <bruno@clisp.org>
4413
4414         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
4415         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
4416         not gl_cv_func_unlink_works.
4417         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
4418
4419 2012-06-27  Eric Blake  <eblake@redhat.com>
4420
4421         config: drop scripts that automake says are not independent
4422         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
4423         * build-aux/elisp-comp: Delete.
4424         * build-aux/missing: Likewise.
4425         * build-aux/ylwrap: Likewise.
4426         * modules/elisp-comp: Likewise.
4427         * MODULES.html.sh: Drop mention of elisp-comp.
4428         * NEWS: Mention this.
4429
4430 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
4431
4432         root-uid: new module
4433         This is for portability to Tandem's NonStop Kernel.
4434         * lib/root-uid.h, modules/root-uid: New files.
4435         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
4436         * lib/write-any-file.c, tests/test-sethostname2.c:
4437         Include "root-uid.h".
4438         * lib/euidaccess.c (euidaccess):
4439         * lib/pt_chown.c (main):
4440         * lib/unlinkdir.c (cannot_unlink_dir):
4441         * lib/write-any-file.c (can_write_any_file):
4442         * m4/mknod.m4 (gl_FUNC_MKNOD):
4443         * tests/test-sethostname2.c (geteuid, main):
4444         Don't assume ROOT_UID == 0.
4445         * modules/euidaccess (Depends-on):
4446         * modules/pt_chown (Depends-on):
4447         * modules/sethostname-tests (Depends-on):
4448         * modules/unlinkdir (Depends-on):
4449         * modules/write-any-file (Depends-on):
4450         Add root-uid.
4451
4452         regex: use locale-independent comparison for codeset name
4453         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
4454         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
4455         for codeset name.
4456         * lib/regex_internal.h: Do not include <strings.h>, since we
4457         no longer use strcasecmp.
4458         * modules/regex (Depends-on): Remove strcase.
4459
4460 2012-06-23  Bruno Haible  <bruno@clisp.org>
4461
4462         getopt-posix: No longer guarantee that option processing is resettable.
4463         * doc/posix-functions/getopt.texi: Drop description of problem with
4464         internal state. Fix info about mingw and msvc9.
4465         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
4466         option processing by getopt(). Run three test programs instead of one.
4467         Simplify cross-compilation guess.
4468         * NEWS: Mention the change.
4469         Reported by Rich Felker <dalias@aerifal.cx>.
4470
4471 2012-06-26  Bruno Haible  <bruno@clisp.org>
4472
4473         argp, regex: Ensure strcasecmp gets declared.
4474         * lib/argp-help.c: Include <strings.h>.
4475         * lib/regex_internal.h: Likewise.
4476         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
4477
4478 2012-06-24  Bruno Haible  <bruno@clisp.org>
4479
4480         ptsname_r: Make it consistent with ptsname on AIX.
4481         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
4482         implementation as for OSF/1.
4483         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
4484         a pty master.
4485
4486         ptsname_r: Make it consistent with ptsname on OSF/1.
4487         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
4488         OSF/1.
4489
4490 2012-06-24  Bruno Haible  <bruno@clisp.org>
4491
4492         ttyname_r: Fix result on OSF/1, Solaris.
4493         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
4494
4495 2012-06-24  Bruno Haible  <bruno@clisp.org>
4496
4497         ptsname_r: Add support for Solaris.
4498         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
4499         Solaris.
4500
4501         ptsname_r: Fix test failure on native Windows.
4502         * modules/ptsname_r (Depends-on): Add isatty.
4503
4504         ptsname_r: Fix test failures on IRIX, Solaris.
4505         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
4506         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
4507         accordingly.
4508         * lib/ptsname_r.c: Include <fcntl.h>.
4509         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
4510         set errno if fd is invalid.
4511         * tests/test-isatty.c (main): Update comments.
4512
4513 2012-06-24  Bruno Haible  <bruno@clisp.org>
4514
4515         ptsname test: Extend test.
4516         * tests/test-ptsname.c: Include <errno.h>.
4517         (main): Test behaviour with invalid file descriptor.
4518
4519 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
4520
4521         time: fix obsolete comment
4522         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
4523         reference to HAVE_STRUCT_TIMESPEC in comment.
4524
4525 2012-06-23  Bruno Haible  <bruno@clisp.org>
4526
4527         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
4528         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
4529         does not handle abbreviated long options with equivalent
4530         disambiguations, set gl_replace_getopt to yes.
4531         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
4532
4533 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
4534
4535         time_r: fix typo that always overrode localtime_r decl
4536         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
4537         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
4538         not in a standard include.
4539
4540 2012-06-22  Bruno Haible  <bruno@clisp.org>
4541
4542         Write "Mac OS X" instead of "MacOS X".
4543         * README: Write "Mac OS X" instead of "MacOS X".
4544         * build-aux/bootstrap: Likewise.
4545         * build-aux/install-reloc: Likewise.
4546         * lib/acl-internal.h: Likewise.
4547         * lib/acl_entries.c: Likewise.
4548         * lib/argp-ba.c: Likewise.
4549         * lib/argp-pv.c: Likewise.
4550         * lib/config.charset: Likewise.
4551         * lib/copy-acl.c: Likewise.
4552         * lib/csharpexec.c: Likewise.
4553         * lib/euidaccess.c: Likewise.
4554         * lib/fbufmode.c: Likewise.
4555         * lib/fflush.c: Likewise.
4556         * lib/file-has-acl.c: Likewise.
4557         * lib/filemode.h: Likewise.
4558         * lib/fpurge.c: Likewise.
4559         * lib/freadable.c: Likewise.
4560         * lib/freadahead.c: Likewise.
4561         * lib/freading.c: Likewise.
4562         * lib/freadptr.c: Likewise.
4563         * lib/freadseek.c: Likewise.
4564         * lib/fseeko.c: Likewise.
4565         * lib/fseterr.c: Likewise.
4566         * lib/fsusage.c: Likewise.
4567         * lib/fwritable.c: Likewise.
4568         * lib/fwriting.c: Likewise.
4569         * lib/get-rusage-as.c: Likewise.
4570         * lib/get-rusage-data.c: Likewise.
4571         * lib/getdomainname.c: Likewise.
4572         * lib/idpriv-drop.c: Likewise.
4573         * lib/idpriv-droptemp.c: Likewise.
4574         * lib/localcharset.c: Likewise.
4575         * lib/locale.in.h: Likewise.
4576         * lib/localename.c: Likewise.
4577         * lib/mbsrtowcs-state.c: Likewise.
4578         * lib/nproc.c: Likewise.
4579         * lib/passfd.c: Likewise.
4580         * lib/posix_openpt.c: Likewise.
4581         * lib/printf-parse.c: Likewise.
4582         * lib/progreloc.c: Likewise.
4583         * lib/safe-read.h: Likewise.
4584         * lib/safe-write.h: Likewise.
4585         * lib/sched.in.h: Likewise.
4586         * lib/set-mode-acl.c: Likewise.
4587         * lib/signal.in.h: Likewise.
4588         * lib/stdint.in.h: Likewise.
4589         * lib/stdio-impl.h: Likewise.
4590         * lib/stdlib.in.h: Likewise.
4591         * lib/strtod.c: Likewise.
4592         * lib/sys_select.in.h: Likewise.
4593         * lib/tcgetsid.c: Likewise.
4594         * lib/unistd.in.h: Likewise.
4595         * lib/unlockpt.c: Likewise.
4596         * lib/vasnprintf.c: Likewise.
4597         * lib/vma-iter.c: Likewise.
4598         * lib/wcsrtombs-state.c: Likewise.
4599         * m4/acl.m4: Likewise.
4600         * m4/acosl.m4: Likewise.
4601         * m4/asinl.m4: Likewise.
4602         * m4/atanl.m4: Likewise.
4603         * m4/c-stack.m4: Likewise.
4604         * m4/cosl.m4: Likewise.
4605         * m4/expl.m4: Likewise.
4606         * m4/extensions.m4: Likewise.
4607         * m4/fdatasync.m4: Likewise.
4608         * m4/fmal.m4: Likewise.
4609         * m4/frexp.m4: Likewise.
4610         * m4/frexpf.m4: Likewise.
4611         * m4/frexpl.m4: Likewise.
4612         * m4/fsusage.m4: Likewise.
4613         * m4/getdomainname.m4: Likewise.
4614         * m4/getloadavg.m4: Likewise.
4615         * m4/getopt.m4: Likewise.
4616         * m4/gettext.m4: Likewise.
4617         * m4/gnulib-common.m4: Likewise.
4618         * m4/intdiv0.m4: Likewise.
4619         * m4/intlmacosx.m4: Likewise.
4620         * m4/largefile.m4: Likewise.
4621         * m4/ldexpl.m4: Likewise.
4622         * m4/link-follow.m4: Likewise.
4623         * m4/locale-ar.m4: Likewise.
4624         * m4/locale-fr.m4: Likewise.
4625         * m4/locale-ja.m4: Likewise.
4626         * m4/locale-tr.m4: Likewise.
4627         * m4/locale-zh.m4: Likewise.
4628         * m4/locale_h.m4: Likewise.
4629         * m4/lock.m4: Likewise.
4630         * m4/logl.m4: Likewise.
4631         * m4/mathfunc.m4: Likewise.
4632         * m4/minus-zero.m4: Likewise.
4633         * m4/mktime.m4: Likewise.
4634         * m4/mmap-anon.m4: Likewise.
4635         * m4/multiarch.m4: Likewise.
4636         * m4/nanosleep.m4: Likewise.
4637         * m4/nocrash.m4: Likewise.
4638         * m4/poll.m4: Likewise.
4639         * m4/printf-frexpl.m4: Likewise.
4640         * m4/printf.m4: Likewise.
4641         * m4/signbit.m4: Likewise.
4642         * m4/sinl.m4: Likewise.
4643         * m4/sqrtl.m4: Likewise.
4644         * m4/strerror_r.m4: Likewise.
4645         * m4/tanl.m4: Likewise.
4646         * m4/threadlib.m4: Likewise.
4647         * m4/ttyname_r.m4: Likewise.
4648         * m4/unlink.m4: Likewise.
4649         * m4/visibility.m4: Likewise.
4650         * m4/wcwidth.m4: Likewise.
4651         * tests/minus-zero.h: Likewise.
4652         * tests/test-alloca-opt.c: Likewise.
4653         * tests/test-copy-acl.sh: Likewise.
4654         * tests/test-copy-file.sh: Likewise.
4655         * tests/test-fdatasync.c: Likewise.
4656         * tests/test-file-has-acl.sh: Likewise.
4657         * tests/test-flock.c: Likewise.
4658         * tests/test-fsync.c: Likewise.
4659         * tests/test-localename.c: Likewise.
4660         * tests/test-malloca.c: Likewise.
4661         * tests/test-nonblocking-pipe.h: Likewise.
4662         * tests/test-nonblocking-socket.h: Likewise.
4663         * tests/test-openpty.c: Likewise.
4664         * tests/test-posix_openpt.c: Likewise.
4665         * tests/test-ptsname.c: Likewise.
4666         * tests/test-ptsname_r.c: Likewise.
4667         * tests/test-sameacls.c: Likewise.
4668         * tests/test-select.h: Likewise.
4669         * tests/test-set-mode-acl.sh: Likewise.
4670         * tests/test-snprintf-posix.h: Likewise.
4671         * tests/test-sprintf-posix.h: Likewise.
4672         * tests/test-strtod.c: Likewise.
4673         * tests/test-time.c: Likewise.
4674         * tests/test-vasnprintf-posix.c: Likewise.
4675         * tests/test-vasprintf-posix.c: Likewise.
4676         * doc/acl-resources.txt: Likewise.
4677         * doc/**/*.texi: Likewise.
4678         Reported by Max Horn <max@quendi.de>.
4679
4680 2012-06-22  Bruno Haible  <bruno@clisp.org>
4681
4682         grantpt: Relax requirement regarding invalid file descriptors.
4683         * lib/grantpt.c: Don't include <fcntl.h>.
4684         (grantpt): Don't verify the validity of the file descriptor.
4685         * modules/grantpt (Depends-on): Remove fcntl-h.
4686         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
4687         file descriptors.
4688         * doc/posix-functions/grantpt.texi: Document more platforms on which
4689         grantpt succeeds for invalid file descriptors.
4690         Reported by Rich Felker <dalias@aerifal.cx>.
4691
4692 2012-06-22  Bruno Haible  <bruno@clisp.org>
4693
4694         fbufmode test: Don't test unportable behaviour.
4695         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
4696         (main): Invoke it three times.
4697         Reported by Szabolcs Nagy <nsz@port70.net>
4698         and Rich Felker <dalias@aerifal.cx>.
4699
4700 2012-06-21  Bruno Haible  <bruno@clisp.org>
4701
4702         gnulib-tool: Refactor inctests variable.
4703         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
4704         (func_modules_transitive_closure,
4705         func_modules_transitive_closure_separately,
4706         func_import, func_create_testdir): Update.
4707
4708         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
4709         * gnulib-tool: Accept option --without-tests.
4710         (func_usage): Document --without-tests option. Rearrange.
4711         (inctests): Normalize according to the mode.
4712         * NEWS: Mention the change.
4713         Suggested by Simon Josefsson.
4714
4715 2012-06-21  Bruce Korb  <bkorb@gnu.org>
4716
4717         parse-duration test: Avoid spurious output.
4718         * tests/test-parse-duration.sh: Reindent with leading tabs.
4719
4720 2012-06-21  Jim Meyering  <meyering@redhat.com>
4721
4722         maint: disable the strncpy prohibition
4723         * cfg.mk: Do not prohibit strncpy here.
4724
4725 2012-06-21  Bruno Haible  <bruno@clisp.org>
4726
4727         nonblocking: Avoid compilation error on mingw64.
4728         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
4729         fscanf.
4730         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
4731         * modules/vfscanf (configure.ac): Likewise.
4732         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
4733         definition only if stdio.h has prepared it.
4734         Reported by Daniel P. Berrange <berrange@redhat.com>.
4735
4736 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
4737
4738         gnulib-tool: Use readlink if it is available.
4739         * gnulib-tool (func_readlink): Choose function more appropriately.
4740
4741 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
4742
4743         posixtm-tests: port to buggy compiler
4744         Problem reported by Simon Josefsson in
4745         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00246.html>.
4746         * modules/posixtm-tests (Depends-on): Add stdint.
4747         * tests/test-posixtm.c (struct posixtm_test.t_expected):
4748         Now of type int_least64_t, not int64_t, both because that's
4749         what INT64_C returns and because int_least64_t works even
4750         on 72-bit hosts.
4751         (T): Use INT64_C on constants outside the traditional int range,
4752         to work around compiler bug noted by Simon.
4753
4754         mktime: fix integer overflow in 'configure'-time test
4755         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
4756         after integer overflow.  Problem reported by Rich Felker in
4757         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00257.html>.
4758         Also, don't look for further instances of a bug if we've already
4759         found one instance; this helps 'configure' run faster.
4760
4761 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
4762
4763         tmpfile, clean-temp: Fix invocation of GetVersionEx.
4764         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
4765         GetVersionEx correctly.
4766         * lib/clean-temp.c (supports_delete_on_close): Likewise.
4767
4768 2012-06-20  Bruno Haible  <bruno@clisp.org>
4769
4770         fdopen: Allow implementations that don't reject invalid fd arguments.
4771         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
4772         succeeds.
4773         Reported by Rich Felker <dalias@aerifal.cx>.
4774
4775 2012-06-20  Simon Josefsson  <simon@josefsson.org>
4776
4777         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
4778         bring in LIBINTL.
4779
4780 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
4781
4782         init.sh: do not rely on autoupated PWD
4783         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
4784         <http://lists.gnu.org/archive/html/bug-gzip/2012-06/msg00008.html>.
4785         Although Nelson's bug was not necessarily fixed by this patch,
4786         it seems wise to make the change for safety.
4787         * tests/init.sh (path_prepend_): Do not rely on PWD updating
4788         automagically after 'cd'; this is not reliable on older shells.
4789         (setup_): Fail if we cannot cd to temporary directory.
4790
4791 2012-06-19  Bruno Haible  <bruno@clisp.org>
4792
4793         stat, fstat: Avoid warnings on mingw64.
4794         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
4795         redefining.
4796         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
4797         Reported by Daniel P. Berrange <berrange@redhat.com>.
4798
4799 2012-06-19  Bruno Haible  <bruno@clisp.org>
4800
4801         stdioext: Add support for musl libc.
4802
4803         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
4804         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
4805
4806         * m4/fseterr.m4: New file.
4807         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
4808         function exists.
4809         * modules/fseterr (Files): Add m4/fseterr.m4.
4810         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
4811         __fseterr does not exist.
4812         (Makefile.am): Remove fseterr.c from lib_SOURCES.
4813
4814         * lib/freadable.h: Update comment.
4815
4816         * lib/fwritable.h: Update comment.
4817
4818         * lib/freading.h: Update comment.
4819
4820         * lib/fwriting.h: Update comment.
4821
4822         * m4/freadahead.m4: New file.
4823         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
4824         that function exists.
4825         * modules/freadahead (Files): Add m4/freadahead.m4.
4826         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
4827         __freadahead does not exist.
4828         (Makefile.am): Remove freadahead.c from lib_SOURCES.
4829
4830         * m4/freadptr.m4: New file.
4831         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
4832         function exists.
4833         * modules/freadptr (Files): Add m4/freadptr.m4.
4834         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
4835         __freadptr does not exist.
4836         (Makefile.am): Remove freadptr.c from lib_SOURCES.
4837
4838         * m4/freadseek.m4: New file.
4839         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
4840         exists.
4841         * modules/freadseek (Files): Add m4/freadseek.m4.
4842         (configure.ac): Invoke gl_FUNC_FREADSEEK.
4843
4844         * lib/fpurge.c (fpurge): Update comment.
4845
4846         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
4847
4848 2012-06-19  Bruno Haible  <bruno@clisp.org>
4849
4850         *printf-posix: Put more info into config.log.
4851         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
4852         exit code into config.log.
4853
4854 2012-06-19  Bruno Haible  <bruno@clisp.org>
4855
4856         getopt-gnu: Fix exit code overflow in autoconf test.
4857         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
4858         to keep them below < 128.
4859
4860 2012-06-17  Jim Meyering  <meyering@redhat.com>
4861
4862         maint.mk: fix typo in code to derive GPG key at release time
4863         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
4864
4865 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
4866
4867         regex: avoid warning when pointers are not long
4868         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
4869         and uintptr_t, not long, for portability to hosts where pointers and
4870         long have different sizes.  Issue noted by Daniel P. Berrange in
4871         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00122.html>
4872         and fix suggested by Bruno Haible in
4873         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00128.html>.
4874
4875 2012-06-17  Bruno Haible  <bruno@clisp.org>
4876
4877         dummy: Relicense into the public domain.
4878         * modules/dummy (License): Set to "public domain".
4879         Suggested by Reuben Thomas.
4880
4881 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
4882
4883         announce-gen: VPATH issues
4884         * build-aux/announce-gen (--srcdir): New option, used to trim the
4885         $srcdir part of the path from $builddir to NEWS.
4886         * top/maint.mk (announcement): Adjust.
4887
4888 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
4889
4890         gnu-web-doc-update: VPATH builds
4891         * build-aux/gnu-web-doc-update (--builddir): New option.
4892         Revamp the handling of options.
4893         Prefer $(...) to `...`.
4894         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
4895         the template, and it is GNU mktemp specific.
4896         Prefer set -e to long series of &&.
4897         Restore the initial git branch, not "master".
4898         Properly initialize submodules (don't rely only on bootstrap).
4899         Do not reconfigure blindly, use config.status.
4900         * top/README-release: Update instructions for gnu-web-doc-update.
4901
4902 2012-06-11  Jim Meyering  <meyering@redhat.com>
4903
4904         maint.mk: revert most of the previous change re "all these"
4905         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
4906         For rationale, see the discussion at
4907         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
4908
4909 2012-06-10  Karl Berry  <karl@gnu.org>
4910
4911         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
4912
4913         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
4914
4915 2012-06-10  Bruce Korb  <bkorb@gnu.org>
4916
4917         parse-duration: Relicense under LGPLv2+.
4918         * modules/parse-duration (License): Change to LGPLv2+.
4919
4920 2012-06-10  Jim Meyering  <meyering@redhat.com>
4921
4922         maint.mk: prohibit common grammar error: "all these"
4923         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
4924         the list of prohibited word sequences.  It should be "all of these".
4925         * lib/tempname.c (__gen_tempname): Fix one of them.
4926
4927 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
4928
4929         do-release-commit-and-tag: support VPATH builds
4930         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
4931         (noteworthy): Defined earlier to factor its value.
4932         (noteworthy_stub): New.
4933         Use it to factor.
4934         (help_version): Split into...
4935         (help, version): these.
4936         Adjust the option processing part.
4937         Support "--option=value" in addition to "--option value".
4938         (builddir): New.
4939         (--builddir): New option.
4940         * top/README-release: Document this.
4941         Reword slightly so that the reader cannot understand that he
4942         has to do these steps before calling do-release-commit-and-tag.
4943
4944 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
4945
4946         readme-release: also require announce-gen and maintainer-makefile
4947         * modules/readme-release (Depends-on): here.
4948         * modules/announce-gen, modules/do-release-commit-and-tag,
4949         modules/gnu-web-doc-update, modules/maintainer-makefile
4950         (Description): Point to readme-release.
4951
4952 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
4953
4954         maint.mk: fix VPATH issues.
4955         * top/maint.mk (news-check): GNU Make understand $< very well.
4956         (release-prep): NEWS is in $(srcdir).
4957
4958 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
4959
4960         readme-release: require the promoted modules.
4961         * modules/readme-release (Depends-on): Add
4962         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
4963         in this text.
4964
4965 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
4966             Bruno Haible  <bruno@clisp.org>
4967
4968         error, strerror-override: Support mingw64 from Fedora 17.
4969         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
4970         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
4971         EINPROGRESS.
4972         * lib/strerror-override.h (strerror_override): Test it.
4973         * lib/strerror-override.c (strerror_override): Likewise.
4974         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
4975
4976 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
4977             Bruno Haible  <bruno@clisp.org>
4978
4979         error, strerror-override: Support mingw64 from Fedora 17.
4980         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
4981         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
4982         * lib/strerror-override.h (strerror_override): Test it.
4983         * lib/strerror-override.c (strerror_override): Likewise.
4984
4985 2012-06-03  Bruno Haible  <bruno@clisp.org>
4986
4987         error, strerror-override: Support new errno values from POSIX:2008.
4988         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
4989         ENOTRECOVERABLE.
4990         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
4991         platforms.
4992         * lib/strerror-override.c (strerror_override): Conditionalize the
4993         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
4994         * lib/strerror-override.h (strerror_override): Declare also if
4995         GNULIB_defined_EOWNERDEAD is defined.
4996         * tests/test-errno.c (e130, e131): New variables.
4997         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
4998         ENOTRECOVERABLE.
4999         Reported by Paolo Bonzini.
5000
5001 2012-05-31  Jim Meyering  <meyering@redhat.com>
5002
5003         savewd: add missing dependency on sys_wait module
5004         * modules/savewd (Depends-on): Add sys_wait, needed at least
5005         for MSVC.  Report and suggested change by Michael Goffioul.
5006
5007 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
5008
5009         system-quote-tests: port to CentOS 5
5010         Problem reported by Tom G. Christensen in
5011         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00255.html>.
5012         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
5013
5014 2012-05-29  Jim Meyering  <meyering@redhat.com>
5015
5016         maint: fix typos in comments and ChangeLog
5017         Culprits identified and fixed mostly automatically using these commands:
5018         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
5019         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
5020         using http://github.com/lyda/misspell-check
5021         * ChangeLog: Fix typos.
5022         * doc/solaris-versions: Likewise.
5023         * lib/regexec.c (re_search_stub): Likewise.
5024         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
5025
5026 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
5027
5028         manywarnings: remove duplicate -Wmultichar entry
5029         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
5030         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
5031         so keep the entry marked as documented.
5032
5033 2012-05-27  Karl Berry  <karl@gnu.org>
5034
5035         * config/srclist.txt (mktime.c): remove last libc sync,
5036         perhaps just temporarily.
5037
5038 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
5039
5040         regex: don't assume uint64_t or uint32_t
5041         * lib/regcomp.c (init_word_char): Don't assume that the types
5042         uint64_t and uint32_t exist.  The C standard doesn't guarantee
5043         them, and on some 32-bit compilers there is no uint64_t.
5044         Problem reported by Gianluigi Tiesi in
5045         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html>.
5046
5047 2012-05-25  Jim Meyering  <meyering@redhat.com>
5048
5049         maint.mk: add strncpy-prohibiting syntax-check rule
5050         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
5051
5052 2012-05-24  Jim Meyering  <meyering@redhat.com>
5053
5054         maint.mk: compute $(gpg_key_ID) more portably
5055         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
5056         That use of sed is not portable to some fringe systems.
5057         Reported by Paul Eggert in
5058         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
5059
5060 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
5061
5062         mktime: sync from glibc
5063         * config/srclist.txt: Uncomment mktime.c.
5064         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
5065         First, indent with tabs, since glibc uses tabs and doesn't want to
5066         change and we'd rather be identical to glibc.  Also, two small
5067         coding changes:
5068         (isdst_differ): Use &&, not &, as && is the usual style.
5069         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
5070         for clarity.
5071
5072 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
5073
5074         announce-gen: du -h is more portable than du --human
5075         * build-aux/announce-gen (sizes): Invoke du with -h instead
5076         of --human.  Accept leading white space in its output.
5077
5078 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
5079
5080         announce-gen: Improve diagnostics.
5081         * build-aux/announce-gen: When parsing command line options,
5082         prefer "announce-gen: option --release-type requires an argument"
5083         to "Option release-type requires an argument".
5084
5085 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
5086
5087         maint.mk: gpg_key_ID: use sed more portably
5088         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
5089         the closing brace.
5090         (refresh-po): Fuse two sed invocations into one.
5091
5092 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
5093
5094         gitlog-to-changelog: support the log message format used in Bison.
5095         * build-aux/gitlog-to-changelog: Support --strip-tab and
5096         --strip-cherry-picked.
5097
5098 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
5099
5100         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
5101         the rest of the current time slice to another thread in the current
5102         process. So if the thread that feeds the file decscriptor we're
5103         polling is not in the current process, we get busy-waiting.
5104         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
5105         Patch from Theodore Leblond.
5106         * lib/select.c: Split polling out of the loop that sets the output
5107         fd_sets.  Check for zero result and loop if the wait timeout is
5108         infinite.
5109
5110 2012-05-21  Simon Josefsson  <simon@josefsson.org>
5111
5112         select: Fix build error on IRIX 6.5.
5113         * lib/select.c: Include stddef.h for NULL.
5114
5115 2012-05-21  Simon Josefsson  <simon@josefsson.org>
5116
5117         gc: fix libgcrypt detection on older machines.
5118         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
5119         copyright years because the file has been distributed every year
5120         since it was created.
5121
5122 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
5123
5124         crypto: fix bug in large buffer handling
5125         Problem reported by Serge Belyshev for glibc in
5126         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
5127         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00226.html>.
5128         * lib/md4.c (md4_process_block):
5129         * lib/md5.c (md5_process_block):
5130         * lib/sha1.c (sha1_process_block):
5131         * lib/sha256.c (sha256_process_block):
5132         Don't assume the buffer length is less than 2**32.
5133         * lib/sha512.c (sha512_process_block): Likewise.
5134         Here, the bug is present only in the rare case where the host does
5135         not support uint64_t or where size_t is wider than 64 bits.
5136         Use u64size to work around the problems.
5137         * lib/u64.h (u64size): New macro.
5138
5139 2012-05-15  Pádraig Brady  <P@draigBrady.com>
5140
5141         fsusage: fix block size returned on older Linux 2.6
5142
5143         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
5144         which is available since Linux 2.6.
5145         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
5146         when the member is available so it can be used as a fallback.
5147         * doc/posix-functions/statvfs.texi: Mention the hang issue
5148         on Linux < 2.6.36.
5149
5150 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
5151
5152         bootstrap: suppress stderr chatter
5153         * build-aux/bootstrap (insert_sorted_if_absent, main program):
5154         Omit unnecessary chatter to stderr.  The main program chatter
5155         was there only inadvertantly.
5156
5157         bootstrap: .gitignore files created by autopoint, libtool
5158         I ran into this problem when bootstrapping the latest diffutils.
5159         After './bootstrap', 'git status' reported lots of untracked files
5160         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
5161         autopoint and do not need to be version-controlled.
5162         * build-aux/bootstrap: Put into .gitignore the files that
5163         autopoint and libtool create, by keeping track of files that exist
5164         after but not before these programs are run.
5165         (version_controlled_file): Move up.  2nd arg is now full file
5166         name, not base name; this is more convenient.  Put CVS at the end,
5167         as it's now somewhat deprecated.
5168
5169 2012-05-14  Jim Meyering  <meyering@redhat.com>
5170
5171         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
5172         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
5173         definition.  Reported by Bruno Haible.
5174
5175 2012-05-13  Bruno Haible  <bruno@clisp.org>
5176             Paul Eggert  <eggert@cs.ucla.edu>
5177
5178         binary-io: Define set_binary_mode function.
5179         * lib/binary-io.h (set_binary_mode): New function.
5180         (SET_BINARY): Define in terms of set_binary_mode.
5181         * modules/binary-io (configure.ac): Require AC_C_INLINE.
5182         * tests/test-binary-io.c (main): Accept an argument, and test either
5183         set_binary_mode or SET_BINARY depending on the argument.
5184         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
5185         argument. Clean up also t-bin-out0.tmp.
5186
5187 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
5188
5189         bootstrap: take advantage of POSIX shell features
5190
5191         The 'bootstrap' script offered by Gnulib script already uses POSIX
5192         shell features (like $((...)) arithmetic expansions) that are not
5193         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
5194         means that bootstrap must already be run using a proper POSIX shell,
5195         which will thus provide more features, like ${var#pattern} parameter
5196         expansion or inversion of a command exit status with '!'.  We can
5197         thus use these features to improve the clarity and the performances
5198         of the bootstrap script.
5199
5200         Suggested by Eric Blake.
5201
5202         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
5203         of sed/expr plus command substitutions, to save some forks.  While
5204         we are at it, prefer the POSIX $(...) form of command substitution,
5205         rather than the legacy form `...` (since the former is visually
5206         clearer and interacts better with quoting), and prefer the idiom:
5207           "if ! CMD; then ACTION ..."
5208         over the idiom:
5209           "if CMD; then :; else ACTION ..."
5210         which was required by legacy Bourne shells not supporting '!'.
5211
5212 2012-05-12  Bruno Haible  <bruno@clisp.org>
5213
5214         system-quote: Add more comments.
5215         * lib/system-quote.h: Add more comments about wilcards and limitations.
5216         Suggested by Eli Zaretskii <eliz@gnu.org>.
5217
5218         sh-quote, system-quote: Add comments about wildcards.
5219         * lib/sh-quote.h: Clarify what happens with wildcard characters.
5220         * lib/system-quote.h: Likewise.
5221         Reported by Eli Zaretskii <eliz@gnu.org>.
5222
5223 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
5224
5225         fsusage: check for GNU/Linux statvfs problem dynamically
5226         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
5227         Define STAT_STATFS2_BSIZE too, since in this case the code now
5228         checks dynamically whether statvfs is reliable, falling back on
5229         Linux-style statfs otherwise.
5230         (statvfs_works): New function, for dynamically testing statvfs.
5231         (get_fs_usage) [STAT_STATVFS]: Use it.
5232         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
5233         statvfs on GNU/Linux hosts, since it's now done dynamically.
5234
5235 2012-05-10  Bruno Haible  <bruno@clisp.org>
5236
5237         system-quote, execute, spawn-pipe: Escape '?' on Windows.
5238         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
5239         '?' character.
5240         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
5241         * tests/test-system-quote-main.c (check_all): Check also strings like
5242         "??????????".
5243         Reported by Eli Zaretskii <eliz@gnu.org>.
5244
5245 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
5246
5247         _Noreturn: port config.h to gcc -Wundef
5248         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
5249         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
5250         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00147.html>.
5251
5252 2012-05-10  Bruno Haible  <bruno@clisp.org>
5253
5254         system-quote: Refactor.
5255         * lib/system-quote.h (system_quote_copy): Fix comment.
5256         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
5257         New functions, extracted from system_quote_copy.
5258         (system_quote_length, system_quote_copy): Use these functions.
5259         Reported by Paul Eggert.
5260
5261 2012-05-08  Bruno Haible  <bruno@clisp.org>
5262
5263         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
5264         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
5265
5266 2012-05-08  Bruno Haible  <bruno@clisp.org>
5267
5268         Tests for module 'system-quote'.
5269         * modules/system-quote-tests: New file.
5270         * tests/test-system-quote.sh: New file.
5271         * tests/test-system-quote-main.c: New file.
5272         * tests/test-system-quote-child.c: New file.
5273
5274         New module 'system-quote'.
5275         * lib/system-quote.h: New file.
5276         * lib/system-quote.c: New file.
5277         * modules/system-quote: New file.
5278
5279 2012-05-08  Bruno Haible  <bruno@clisp.org>
5280
5281         sh-quote: Make C++ safe and allow multiple inclusion.
5282         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
5283         declarations in extern "C".
5284
5285 2012-05-08  Bruno Haible  <bruno@clisp.org>
5286
5287         sh-quote tests: Make tests stricter.
5288         * tests/test-sh-quote.c (check_one): Check the return value of
5289         shell_quote_copy.
5290         (main): Check a string with a CR character. Check a string that
5291         contains UCHAR_MAX.
5292
5293 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
5294
5295         warnings.m4: provide a means to specify the program to compile.
5296         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
5297         (gl_WARN_ADD): here.
5298         Use gl_AS_VAR_APPEND.
5299         Support an argument to specify the program to compile.
5300         (gl_WARN_ADD): Accept an argument to specify the program to compile.
5301         AC_SUBST the WARN_CFLAGS when they are used.
5302         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
5303         leave this to gl_WARN_ADD.
5304
5305 2012-05-08  Eric Blake  <eblake@redhat.com>
5306
5307         doc: recommendations on gettext version
5308         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
5309         choice between versions.
5310         * DEPENDENCIES (gettext): Cover both approaches.
5311
5312 2012-05-08  Jim Meyering  <meyering@redhat.com>
5313
5314         init.sh: explain why EXEEXT support uses aliases rather than functions
5315         * tests/init.sh: Add a comment.
5316
5317         init.sh: don't let bash aliases interfere with tests
5318         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
5319         is bash.  This avoids problems for those who alias standard commands to
5320         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
5321         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
5322
5323 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
5324
5325         stdint: be more consistent with glibc, SunOS libc
5326         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
5327         (gl_int_fast16_t, gl_uint_fast16_t)
5328         (gl_int_fast32_t, gl_uint_fast32_t)
5329         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
5330         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
5331         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
5332         Be consistent with glibc by default, and with SunOS 5.10 and later
5333         if __sun is defined.  This lessens the likelihood of clashes if
5334         code compiled for older hosts is combined with code compiled for
5335         newer ones.  Problem reported by Niels Möller in
5336         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00074.html>.
5337
5338 2012-05-07  Eric Blake  <eblake@redhat.com>
5339
5340         isatty: relax license to LGPLv2+
5341         * modules/isatty (License): Relax license.
5342
5343 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
5344
5345         stat-size: comment fix
5346         * lib/stat-size.h: Remove obsolete comment about indenting.
5347
5348 2012-05-06  Bruno Haible  <bruno@clisp.org>
5349
5350         Tests for module 'sh-quote'.
5351         * modules/sh-quote-tests: New file.
5352         * tests/test-sh-quote.c: New file.
5353
5354 2012-05-06  Bruno Haible  <bruno@clisp.org>
5355
5356         sh-quote: Improve shell_quote_argv's signature.
5357         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
5358         * lib/sh-quote.c (shell_quote_argv): Likewise.
5359
5360 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
5361
5362         stdint: document issues with int_fast8_t etc.
5363         * doc/posix-headers/stdint.texi (stdint.h): Say that other
5364         stdint.h substitutes may define these types differently.  See
5365         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
5366
5367 2012-05-05  Bruno Haible  <bruno@clisp.org>
5368
5369         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
5370         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
5371         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
5372         or 'guessing no (mishandles large arguments)'.
5373
5374 2012-05-05  Bruno Haible  <bruno@clisp.org>
5375
5376         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
5377         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
5378         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
5379         set gl_cv_func_link_follows_symlink to "guessing no".
5380
5381 2012-05-05  Bruno Haible  <bruno@clisp.org>
5382
5383         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
5384         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
5385         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
5386         "guessing no".
5387         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
5388
5389 2012-05-05  Bruno Haible  <bruno@clisp.org>
5390
5391         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
5392         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
5393         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
5394         set gl_cv_struct_dirent_d_ino to "guessing yes".
5395
5396 2012-05-05  Bruno Haible  <bruno@clisp.org>
5397
5398         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
5399         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
5400         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
5401         "guessing yes".
5402
5403 2012-05-05  Bruno Haible  <bruno@clisp.org>
5404
5405         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
5406         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
5407         compiling to a glibc system, set gl_cv_func_signbit and
5408         gl_cv_func_signbit_gcc to "guessing yes".
5409
5410 2012-05-05  Bruno Haible  <bruno@clisp.org>
5411
5412         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
5413         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
5414         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
5415         to "guessing yes".
5416         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
5417         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
5418
5419 2012-05-05  Bruno Haible  <bruno@clisp.org>
5420
5421         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
5422         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
5423         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
5424         gl_cv_func_realpath_works to "guessing yes".
5425
5426 2012-05-05  Bruno Haible  <bruno@clisp.org>
5427
5428         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
5429         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
5430         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
5431
5432 2012-05-04  Bruno Haible  <bruno@clisp.org>
5433
5434         Tweak last commit.
5435         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
5436         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
5437
5438 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
5439
5440         unistd_h: make it easier to avoid sys_types_h
5441         This is useful for Emacs, which has its own method of porting to
5442         Windows, and which therefore does not need the sys_types_h module.
5443         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
5444         code moved here from gl_SYS_TYPES_H.
5445         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
5446         using the code directly.
5447         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
5448         gl_SYS_TYPES_H.
5449         * modules/sys_types (Files):
5450         * modules/unistd (Files): Add m4/off_t.m4.
5451
5452 2012-05-03  Bruno Haible  <bruno@clisp.org>
5453
5454         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
5455         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
5456         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
5457         "guessing yes" or "guessing no".
5458         (gl_FUNC_LSTAT): Update.
5459         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
5460         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
5461         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
5462
5463 2012-05-03  Bruno Haible  <bruno@clisp.org>
5464
5465         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
5466         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
5467         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
5468         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
5469         cross-compiling, choose the first alternative on glibc systems.
5470         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
5471
5472 2012-05-03  Bruno Haible  <bruno@clisp.org>
5473
5474         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
5475         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
5476         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
5477
5478 2012-05-03  Bruno Haible  <bruno@clisp.org>
5479
5480         chown: Avoid "guessing no" when cross-compiling to glibc systems.
5481         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
5482
5483 2012-05-03  Bruno Haible  <bruno@clisp.org>
5484
5485         Avoid "guessing no" guesses when cross-compiling to glibc systems.
5486         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
5487         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
5488         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
5489         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
5490         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
5491         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
5492         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
5493         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
5494         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
5495         compiling to glibc systems, set gl_cv_func_chown_slash_works,
5496         gl_cv_func_chown_ctime_works to "guessing yes".
5497         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
5498         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
5499         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
5500         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
5501         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
5502         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
5503         compiling to glibc systems, set gl_cv_func_open_directory_works to
5504         "guessing yes".
5505         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
5506         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
5507         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
5508         "guessing yes".
5509         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
5510         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
5511         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
5512         compiling to glibc systems, set gl_cv_func_floorf_ieee to
5513         "guessing yes".
5514         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
5515         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
5516         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
5517         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
5518         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
5519         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
5520         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
5521         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
5522         "guessing yes".
5523         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
5524         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
5525         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
5526         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
5527         "guessing yes".
5528         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
5529         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
5530         "guessing yes".
5531         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
5532         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
5533         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
5534         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
5535         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
5536         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
5537         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
5538         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
5539         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
5540         compiling to glibc systems, set gl_cv_func_log10f_ieee to
5541         "guessing yes".
5542         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
5543         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
5544         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
5545         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
5546         "guessing yes".
5547         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
5548         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
5549         "guessing yes".
5550         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
5551         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
5552         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
5553         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
5554         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
5555         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
5556         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
5557         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
5558         compiling to glibc systems, set gl_cv_func_mkfifo_works to
5559         "guessing yes".
5560         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
5561         compiling to glibc systems, set gl_cv_func_mknod_works to
5562         "guessing yes".
5563         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
5564         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
5565         "guessing yes".
5566         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
5567         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
5568         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
5569         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
5570         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
5571         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
5572         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
5573         compiling to glibc systems, set gl_cv_func_svid_putenv to
5574         "guessing yes".
5575         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
5576         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
5577         "guessing yes".
5578         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
5579         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
5580         "guessing yes".
5581         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
5582         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
5583         to "guessing yes".
5584         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
5585         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
5586         to "guessing yes".
5587         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
5588         compiling to glibc systems, set gl_cv_func_rmdir_works to
5589         "guessing yes".
5590         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
5591         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
5592         gl_cv_func_unlink_parent_fails to "guessing yes".
5593         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
5594         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
5595         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
5596         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
5597         gl_cv_func_rename_dest_works to "guessing yes".
5598         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
5599         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
5600         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
5601         compiling to glibc systems, set gl_cv_func_roundf_ieee to
5602         "guessing yes".
5603         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
5604         compiling to glibc systems, set gl_cv_func_roundl_ieee to
5605         "guessing yes".
5606         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
5607         compiling to glibc systems, set gl_cv_func_setenv_works to
5608         "guessing yes".
5609         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
5610         compiling to glibc systems, set gl_cv_func_unsetenv_works to
5611         "guessing yes".
5612         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
5613         compiling to glibc systems, set gl_cv_func_sleep_works to
5614         "guessing yes".
5615         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
5616         compiling to glibc systems, set gl_cv_func_stat_file_slash to
5617         "guessing yes".
5618         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
5619         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
5620         "guessing yes".
5621         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
5622         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
5623         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
5624         compiling to glibc systems, set gl_cv_func_truncf_ieee to
5625         "guessing yes".
5626         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
5627         compiling to glibc systems, set gl_cv_func_truncl_ieee to
5628         "guessing yes".
5629         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
5630         compiling to glibc systems, set gl_cv_func_usleep_works to
5631         "guessing yes".
5632         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
5633         compiling to glibc systems, set gl_cv_func_futimesat_works to
5634         "guessing yes".
5635
5636 2012-05-03  Bruno Haible  <bruno@clisp.org>
5637
5638         Say "guessing yes" or "guessing no" when cross-compiling.
5639         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
5640         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
5641         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
5642         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
5643         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
5644         am_cv_func_working_getline to "guessing yes" or "guessing no".
5645         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
5646         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
5647         (gl_FUNC_MEMMEM): When cross-compiling, set
5648         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
5649         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
5650         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
5651         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
5652         set gl_cv_func_strcasestr_works_always to "guessing yes" or
5653         "guessing no".
5654         (gl_FUNC_STRCASESTR): When cross-compiling, set
5655         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
5656         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
5657         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
5658         (gl_FUNC_STRSTR): When cross-compiling, set
5659         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
5660         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
5661         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
5662         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
5663         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
5664
5665 2012-05-01  Bruno Haible  <bruno@clisp.org>
5666
5667         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
5668         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
5669         * build-aux/reloc-ldflags: Likewise.
5670         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
5671
5672 2012-05-01  Bruno Haible  <bruno@clisp.org>
5673
5674         gnulib-tool: Remove transitional code.
5675         * gnulib-tool: Don't warn about --import with 0 arguments any more.
5676         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
5677
5678 2012-05-01  Bruno Haible  <bruno@clisp.org>
5679
5680         getcwd: Fix misindentation.
5681         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
5682
5683 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
5684
5685         exclude: process exclude and include directives in order
5686         This restores the pre-2009 behavior, and is part of a fix of a
5687         grep bug reported by Quentin Arce in
5688         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
5689         * lib/exclude.c (struct exclude): Remove 'tail' member.
5690         (new_exclude_segment): Prepend the new segment instead of appending.
5691         Return void, since that's now more convenient.
5692         (file_pattern_matches): Renamed from excluded_file_pattern_p.
5693         (file_name_matches): Renamed from excluded_file_name_p.
5694         (file_pattern_matches, file_name_matches):
5695         Return true if the pattern matches, not if it excludes.
5696         All callers changed.
5697         (excluded_file_name): Process the list in reverse order;
5698         since the list is now reversed this restores the pre-2009 behavior.
5699         (add_exclude): Adjust to new reversed-order list.  Use local var
5700         rather than macro, for clarity.
5701         * tests/test-exclude7.sh: Adjust to corrected behavior.
5702
5703         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
5704         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
5705         it's not possible here.  Handle the case of \ at end of pattern
5706         without dumping core.
5707         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
5708
5709         _Noreturn: future-proof non-GNU and non-MSVC compilers
5710         * build-aux/snippet/_Noreturn.h (_Noreturn):
5711         * m4/gnulib-common.m4 (gl_COMMON_BODY):
5712         Do not define _Noreturn if __STDC_VERSION__ indicates this is
5713         C11 or later.  This is more likely to work with random future C
5714         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
5715         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
5716
5717         exclude: handle wildcards with FNM_EXTMATCH
5718         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
5719         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
5720         comment that "has wildcards" really means "has or may have
5721         wildcards".  Simplify by avoiding the need to call strcspn.
5722
5723 2012-04-29  Bruno Haible  <bruno@clisp.org>
5724
5725         gnulib-tool: Fix list of authors.
5726         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
5727
5728 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
5729
5730         bootstrap: support Automake-NG in $buildreq
5731         * bootstrap (check_versions): Handle automake and aclocal from
5732         Automake-NG specially.  They can be specified as respectively
5733         the "automake-ng" and "aclocal-ng" requirements.
5734
5735 2012-04-25  Eric Blake  <eblake@redhat.com>
5736
5737         bootstrap: only force latest Makefile.in.in for gettext module
5738         * build-aux/bootstrap (with_gettext): Only install latest
5739         Makefile.in.in for projects requesting bleeding edge gettext.
5740
5741 2012-04-22  Bruno Haible  <bruno@clisp.org>
5742
5743         doc: Mention reason for replacement on glibc/Linux systems.
5744         * doc/posix-functions/dprintf.texi: Mention the problem with special
5745         'long double' values.
5746         * doc/posix-functions/fprintf.texi: Likewise.
5747         * doc/posix-functions/printf.texi: Likewise.
5748         * doc/posix-functions/snprintf.texi: Likewise.
5749         * doc/posix-functions/sprintf.texi: Likewise.
5750         * doc/posix-functions/vdprintf.texi: Likewise.
5751         * doc/posix-functions/vfprintf.texi: Likewise.
5752         * doc/posix-functions/vprintf.texi: Likewise.
5753         * doc/posix-functions/vsnprintf.texi: Likewise.
5754         * doc/posix-functions/vsprintf.texi: Likewise.
5755         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
5756         platforms with F_DUPFD_CLOEXEC problems.
5757         * doc/posix-functions/glob.texi: Mention which platforms are affected
5758         by the problem with symbolic links.
5759         * doc/posix-functions/linkat.texi: Mention the problem with
5760         AT_SYMLINK_FOLLOW on Linux.
5761
5762 2012-04-22  Bruno Haible  <bruno@clisp.org>
5763
5764         pwrite: Don't replace on all platforms.
5765         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
5766
5767 2012-04-22  Bruno Haible  <bruno@clisp.org>
5768
5769         rint* tests: Avoid gcc warnings.
5770         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
5771         * tests/test-rintf.c (INFINITY, NAN): Likewise.
5772         * tests/test-rintl.c (INFINITY, NAN): Likewise.
5773
5774 2012-04-21  Bruno Haible  <bruno@clisp.org>
5775
5776         users.txt: Update.
5777         * users.txt: Add freedink, wdiff. Update URLs for projects that have
5778         switched from CVS to git, bzr, or svn.
5779
5780 2012-04-21  Bruno Haible  <bruno@clisp.org>
5781
5782         Large File Support for native Windows platforms.
5783
5784         * m4/largefile.m4 (gl_LARGEFILE): New macro.
5785         * modules/largefile (configure.ac): Require gl_LARGEFILE.
5786
5787         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
5788         type.
5789         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
5790         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
5791         * doc/posix-headers/sys_types.texi: Mention the effect of the
5792         'largefile' module.
5793
5794         * lib/fcntl.in.h: Add comments about off_t.
5795         * modules/fcntl-h (Depends-on): Add sys_types.
5796
5797         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
5798         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
5799         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
5800         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
5801         * modules/unistd (Depends-on): Add sys_types.
5802         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
5803
5804         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
5805         instead of lseek.
5806         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
5807         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
5808         * modules/lseek (Depends-on): Add sys_types.
5809
5810         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
5811         msvc-nothrow.h.
5812         (SetFileSize): New function.
5813         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
5814         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
5815         if Large File Support is requested.
5816         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
5817         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
5818
5819         * lib/stdio.in.h: Add comments about off_t.
5820         * modules/stdio (Depends-on): Add sys_types.
5821
5822         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
5823         instead of ftello.
5824         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
5825         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
5826         (gl_PREREQ_FTELLO): New macro.
5827         * modules/ftello (Depends-on): Add sys_types.
5828         (configure.ac): Incoke gl_PREREQ_FTELLO.
5829
5830         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
5831         instead of fseeko.
5832         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
5833         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
5834         (gl_PREREQ_FSEEKO): New macro.
5835         * modules/fseeko (Depends-on): Add sys_types.
5836         (configure.ac): Invoke gl_PREREQ_FSEEKO.
5837
5838         * lib/sys_stat.in.h: Add comments about off_t.
5839         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
5840         64-bit integer for st_size in 'struct stat'.
5841         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
5842         Define _GL_WINDOWS_64_BIT_ST_SIZE.
5843         * modules/sys_stat (Depends-on): Add sys_types.
5844         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
5845
5846         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
5847         instead of stat or _stat.
5848
5849         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
5850         'struct _stati64' instead of fstat and 'struct stat'.
5851         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
5852         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
5853
5854         Reported by Ray Satiro <raysatiro@yahoo.com>.
5855
5856 2012-04-19  Eric Blake  <eblake@redhat.com>
5857
5858         bootstrap: accommodate older libtool
5859         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
5860         Reported by Daniel P. Berrange.
5861
5862 2012-04-19  Jim Meyering  <meyering@redhat.com>
5863
5864         announce-gen: avoid failure due to lack of Digest::SHA1
5865         Even with the preferred Digest::SHA available, this script
5866         would fail when the backup module, Digest::SHA1, was not installed.
5867         * build-aux/announce-gen: Quote the conditional use of "use".
5868         Reported by Reuben Thomas in:
5869         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
5870
5871         bootstrap: don't let a user's CDPATH setting affect this script
5872         When CDPATH is set, cd will sometimes generate output.
5873         When "cd" is run in a subshell whose output matters, that
5874         surprising-to-some output can cause malfunction.
5875         Unsetting CDPATH turns off this shell "feature."
5876         * build-aux/bootstrap (CDPATH): Unset.
5877         Reported by Reuben Thomas in:
5878         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
5879         and inspired by his patch here:
5880         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
5881
5882 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
5883         and Jim Meyering  <meyering@redhat.com>
5884
5885         maint.mk: catch "see @xref{}" and similar
5886         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
5887         prohibit "See also @xref{", "Also see @pxref{", and similar.
5888
5889 2012-04-16  Jim Meyering  <meyering@redhat.com>
5890
5891         bootstrap: really use gnulib's po/Makefile.in.in
5892         * build-aux/bootstrap: Correct the source file name in previous change.
5893         Reported by Akim Demaille.
5894
5895         configmake: correct minor inconsistency in Makefile rule
5896         * modules/configmake (Makefile.am): All other rules like this one
5897         run the final "mv -f ..." in the same backslash-continued command
5898         as the one that does everything else.  This one put the mv -f ...
5899         command on a separate, non-backslash-continued line.
5900         Make it like the others.
5901
5902         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
5903         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
5904         the one from gettext.  Reported by Akim Demaille.
5905
5906 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
5907
5908         Fix recursion of install-* into po directories.
5909         Bison's install-pdf bug reported by Hans Aberg at
5910         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
5911         * build-aux/po/Makefile.in.in (install-dvi, install-html)
5912         (install-info, install-pdf, install-ps): New targets.
5913
5914 2012-04-16  Jim Meyering  <meyering@redhat.com>
5915
5916         maint: avoid spurious "make sc_maint" failure
5917         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
5918         exempt all *.class file names, for lib/javaversion.class.
5919
5920 2012-04-15  Bruno Haible  <bruno@clisp.org>
5921
5922         lseek: Make configure test independent of environment.
5923         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
5924         Windows, we know that lseek() on pipes is broken; skip the runtime
5925         test.
5926
5927 2012-04-14  Bruno Haible  <bruno@clisp.org>
5928
5929         stat: Bypass buggy override in mingw64.
5930         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
5931         * lib/stat.c (stat) [mingw64]: Define to _stat.
5932         * doc/posix-functions/stat.texi: Mention mingw64 bug.
5933
5934 2012-04-14  Bruno Haible  <bruno@clisp.org>
5935
5936         pathmax: Fix compilation error on MSVC 9.
5937         * modules/pathmax (Depends-on): Add unistd.
5938
5939 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
5940
5941         README: document pointer comparison assumption
5942         * README (Portability guidelines): Document assumption about
5943         pointer comparisons, in response to a recent bug-gnulib comment by
5944         Jeffrey Kegler.
5945
5946 2012-04-12  Bruno Haible  <bruno@clisp.org>
5947
5948         Tests for module 'getrusage'.
5949         * modules/getrusage-tests: New file.
5950         * tests/test-getrusage.c: New file.
5951
5952         New module 'getrusage'.
5953         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
5954         warn-on-use.h.
5955         (getrusage): New declaration.
5956         * lib/getrusage.c: New file.
5957         * m4/getrusage.m4: New file.
5958         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
5959         is declared.
5960         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
5961         HAVE_GETRUSAGE.
5962         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
5963         snippet/c++defs, snippet/warn-on-use.
5964         (Makefile.am): Update generation of sys/resource.h. Substitute
5965         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
5966         * modules/getrusage: New file.
5967         * doc/posix-functions/getrusage.texi: Mention the new module.
5968
5969 2012-04-12  Bruno Haible  <bruno@clisp.org>
5970
5971         Tests for module 'sys_resource'.
5972         * modules/sys_resource-tests: New file.
5973         * tests/test-sys_resource.c: New file.
5974
5975         New module 'sys_resource'.
5976         * lib/sys_resource.in.h: New file.
5977         * m4/sys_resource_h.m4: New file.
5978         * modules/sys_resource: New file.
5979         * doc/posix-headers/sys_resource.texi: Mention the new module.
5980
5981 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
5982
5983         ioctl: Fix compilation error on mingw.
5984         * lib/ioctl.c: Include <windows.h>.
5985         Also reported by Ray Satiro <raysatiro@yahoo.com>.
5986
5987 2012-04-04  Jim Meyering  <meyering@redhat.com>
5988
5989         regex: correct #pragma guard expression
5990         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
5991         not 4.3.  Correct its cpp guard expression.
5992
5993 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
5994
5995         regex: remove unnecessary type punning
5996         Problem reported by Vladimir Serbinenko in
5997         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
5998         * lib/regex.h (struct re_pattern_buffer): Change the type of
5999         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
6000         Fix comment to match code.
6001         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
6002         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
6003         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
6004         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
6005         (set_regs):
6006         Omit no-longer-necessary casts.
6007
6008 2012-04-03  Bruno Haible  <bruno@clisp.org>
6009
6010         Tests for module 'ilogbl'.
6011         * modules/ilogbl-tests: New file.
6012         * tests/test-ilogbl.c: New file.
6013
6014         New module 'ilogbl'.
6015         * lib/math.in.h (ilogbl): New declaration.
6016         * lib/ilogbl.c: New file.
6017         * m4/ilogbl.m4: New file.
6018         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
6019         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
6020         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
6021         Split sed invocation, to avoid the limit of 100 substitutions of
6022         HP-UX 'sed'.
6023         * modules/ilogbl: New file.
6024         * tests/test-math-c++.cc: Check the declaration of ilogbl.
6025         * doc/posix-functions/ilogbl.texi: Mention the new module.
6026
6027 2012-04-03  Bruno Haible  <bruno@clisp.org>
6028
6029         Tests for module 'ilogbf'.
6030         * modules/ilogbf-tests: New file.
6031         * tests/test-ilogbf.c: New file.
6032
6033         New module 'ilogbf'.
6034         * lib/math.in.h (ilogbf): New declaration.
6035         * lib/ilogbf.c: New file.
6036         * m4/ilogbf.m4: New file.
6037         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
6038         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
6039         REPLACE_ILOGBF.
6040         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
6041         REPLACE_ILOGBF.
6042         * modules/ilogbf: New file.
6043         * tests/test-math-c++.cc: Check the declaration of ilogbf.
6044         * doc/posix-functions/ilogbf.texi: Mention the new module.
6045
6046 2012-04-03  Bruno Haible  <bruno@clisp.org>
6047
6048         Tests for module 'ilogb'.
6049         * modules/ilogb-tests: New file.
6050         * tests/test-ilogb.c: New file.
6051         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
6052         tests/test-logb-ieee.h.
6053
6054         New module 'ilogb'.
6055         * lib/math.in.h (ilogb): New declaration.
6056         * lib/ilogb.c: New file.
6057         * m4/ilogb.m4: New file.
6058         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
6059         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
6060         REPLACE_ILOGB.
6061         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
6062         REPLACE_ILOGB.
6063         * modules/ilogb: New file.
6064         * tests/test-math-c++.cc: Check the declaration of ilogb.
6065         * doc/posix-functions/ilogb.texi: Mention the new module.
6066
6067 2012-04-03  Bruno Haible  <bruno@clisp.org>
6068
6069         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
6070         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
6071         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
6072         (main): Check their values.
6073         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
6074         problem.
6075
6076 2012-04-03  Bruno Haible  <bruno@clisp.org>
6077
6078         Tests for module 'logbl-ieee'.
6079         * modules/logbl-ieee-tests: New file.
6080         * tests/test-logbl-ieee.c: New file.
6081
6082         New module 'logbl-ieee'.
6083         * modules/logbl-ieee: New file.
6084
6085         Tests for module 'logb-ieee'.
6086         * modules/logb-ieee-tests: New file.
6087         * tests/test-logb-ieee.c: New file.
6088
6089         New module 'logb-ieee'.
6090         * modules/logb-ieee: New file.
6091
6092         Tests for module 'logbf-ieee'.
6093         * modules/logbf-ieee-tests: New file.
6094         * tests/test-logbf-ieee.c: New file.
6095         * tests/test-logb-ieee.h: New file.
6096
6097         New module 'logbf-ieee'.
6098         * modules/logbf-ieee: New file.
6099
6100 2012-04-03  Bruno Haible  <bruno@clisp.org>
6101
6102         Tests for module 'logbl'.
6103         * modules/logbl-tests: New file.
6104         * tests/test-logbl.c: New file.
6105
6106         New module 'logbl'.
6107         * lib/math.in.h (logbl): New declaration.
6108         * lib/logbl.c: New file.
6109         * m4/logbl.m4: New file.
6110         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
6111         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
6112         REPLACE_LOGBL.
6113         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
6114         REPLACE_LOGBL.
6115         * modules/logbl: New file.
6116         * tests/test-math-c++.cc: Check the declaration of logbl.
6117         * doc/posix-functions/logbl.texi: Mention the new module.
6118
6119 2012-04-02  Bruno Haible  <bruno@clisp.org>
6120
6121         Tests for module 'logbf'.
6122         * modules/logbf-tests: New file.
6123         * tests/test-logbf.c: New file.
6124
6125         New module 'logbf'.
6126         * lib/math.in.h (logbf): New declaration.
6127         * lib/logbf.c: New file.
6128         * m4/logbf.m4: New file.
6129         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
6130         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
6131         REPLACE_LOGBF.
6132         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
6133         REPLACE_LOGBF.
6134         * modules/logbf: New file.
6135         * tests/test-math-c++.cc: Check the declaration of logbf.
6136         * doc/posix-functions/logbf.texi: Mention the new module.
6137
6138 2012-04-02  Bruno Haible  <bruno@clisp.org>
6139
6140         logb tests: More tests.
6141         * tests/test-logb.h: New file, based on tests/test-logb.c and
6142         tests/test-frexp.h.
6143         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
6144         (main): Just invoke test_function.
6145         * modules/logb-tests (Files): Add tests/test-logb.h,
6146         tests/minus-zero.h, tests/randomd.c.
6147         (Makefile.am): Add randomd.c to test_logb_SOURCES.
6148
6149         logb: Provide replacement and workarounds.
6150         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
6151         is 1.
6152         * lib/logb.c: New file.
6153         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
6154         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
6155         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
6156         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
6157         * modules/logb (Files): Add lib/logb.c.
6158         (Depends-on): Add isfinite, frexp, isnand.
6159         (configure.ac): Compile the replacement code logb.c if needed.
6160         * tests/test-math-c++.cc: Check the declaration of logb.
6161         * doc/posix-functions/logb.texi: Mention the replacement and the bug
6162         with subnormal numbers.
6163
6164 2012-04-02  Bruno Haible  <bruno@clisp.org>
6165
6166         log10* tests: Speed up.
6167         * tests/test-log10.h (test_function): Reduce amount of random numbers
6168         to test.
6169
6170 2012-04-01  Bruno Haible  <bruno@clisp.org>
6171
6172         logf-ieee: Fix test whether logf works.
6173         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
6174
6175 2012-04-01  Bruno Haible  <bruno@clisp.org>
6176
6177         log10l: Work around log10l-ieee test failure on IRIX 6.5.
6178         * lib/log10l.c: Include <float.h>
6179         (log10l): On IRIX, normalize the +Infinity value.
6180         * modules/log10l (Depends-on): Add 'float'.
6181         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
6182         +Infinity.
6183
6184         log10f-ieee: Work around test failure on NetBSD 5.1.
6185         * m4/log10f-ieee.m4: New file.
6186         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
6187         test whether log10f works with a negative argument. Replace it if not.
6188         * lib/log10f.c (log10f): For negative arguments, return NaN.
6189         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
6190         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
6191         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
6192
6193         log10f-ieee: Work around test failure on Solaris 9.
6194         * modules/log10f-ieee (Depends-on): Add log10-ieee.
6195         (configure.ac): Require gl_FUNC_LOG10F.
6196
6197         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
6198         * m4/log10-ieee.m4: New file.
6199         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
6200         whether log10 works with a negative argument. Replace it if not.
6201         * lib/log10.c (log10): For negative arguments, return NaN.
6202         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
6203         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
6204         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
6205
6206         Tests for module 'log10l-ieee'.
6207         * modules/log10l-ieee-tests: New file.
6208         * tests/test-log10l-ieee.c: New file.
6209
6210         New module 'log10l-ieee'.
6211         * modules/log10l-ieee: New file.
6212
6213         Tests for module 'log10-ieee'.
6214         * modules/log10-ieee-tests: New file.
6215         * tests/test-log10-ieee.c: New file.
6216
6217         New module 'log10-ieee'.
6218         * modules/log10-ieee: New file.
6219
6220         Tests for module 'log10f-ieee'.
6221         * modules/log10f-ieee-tests: New file.
6222         * tests/test-log10f-ieee.c: New file.
6223         * tests/test-log10-ieee.h: New file.
6224
6225         New module 'log10f-ieee'.
6226         * modules/log10f-ieee: New file.
6227
6228 2012-04-01  Bruno Haible  <bruno@clisp.org>
6229
6230         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
6231         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
6232         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
6233         workaround.
6234         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
6235         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
6236         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
6237         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
6238         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
6239         (Depends-on): Update conditions.
6240         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
6241         IRIX 6.5, OSF/1 5.1 problems.
6242
6243 2012-04-01  Bruno Haible  <bruno@clisp.org>
6244
6245         log10f: Work around OSF/1 5.1 bug.
6246         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
6247         * lib/log10f.c (log10f): If logf exists, use it and provide just the
6248         workaround.
6249         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
6250         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
6251         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
6252         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
6253         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
6254         (Depends-on): Update conditions.
6255         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
6256
6257 2012-04-01  Bruno Haible  <bruno@clisp.org>
6258
6259         log10: Work around OSF/1 5.1 bug.
6260         * lib/math.in.h (log10): New declaration.
6261         * lib/log10.c: New file.
6262         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
6263         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
6264         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
6265         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
6266         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
6267         * modules/log10 (Files): Add lib/log10.c.
6268         (Depends-on): Add math.
6269         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
6270         * tests/test-math-c++.cc: Check the declaration of log10.
6271         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
6272
6273 2012-03-31  Bruno Haible  <bruno@clisp.org>
6274
6275         log10l tests: More tests.
6276         * modules/log10l-tests (Files): Add tests/test-log10l.h,
6277         tests/minus-zero.h, tests/randoml.c.
6278         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
6279         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
6280         (main): Invoke test_function.
6281
6282         log10f tests: More tests.
6283         * modules/log10f-tests (Files): Add tests/test-log10.h,
6284         tests/minus-zero.h, tests/randomf.c.
6285         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
6286         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
6287         (main): Invoke test_function.
6288
6289         log10 tests: More tests.
6290         * tests/test-log10.h: New file.
6291         * modules/log10-tests (Files): Add tests/test-log10.h,
6292         tests/minus-zero.h, tests/randomd.c.
6293         (Makefile.am): Add randomd.c to test_log10_SOURCES.
6294         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
6295         (main): Invoke test_function.
6296
6297 2012-03-31  Simon Josefsson  <simon@josefsson.org>
6298
6299         fflush: Fix syntax error.
6300         * lib/fflush.c: Include unused-parameter.h, needed for
6301         _GL_UNUSED_PARAMETER.
6302         * modules/fflush (Depends-on): Add snippet/unused-parameter.
6303
6304 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
6305
6306         regex: pacify GCC when compiling GRUB
6307         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
6308         a diagnostic.  Reported by Vladimir Serbinenko in
6309         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
6310
6311 2012-03-29  Eric Blake  <eblake@redhat.com>
6312
6313         stdio: don't assume gets any more
6314         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
6315         support.
6316         * modules/stdio (Makefile.am): Likewise.
6317         * lib/stdio-read.c (gets): Likewise.
6318         * tests/test-stdio-c++.cc: Likewise.
6319         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
6320         * lib/stdio.in.h (gets): Make warning occur in more places.
6321         * doc/posix-functions/gets.texi (gets): Update documentation.
6322         Reported by Christer Solskogen.
6323
6324         maint.mk: fix syntax checks without exclusions
6325         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
6326         Reported by Daniel P. Berrange.
6327
6328         strerror_r: avoid compiler warning
6329         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
6330         level.
6331
6332         fflush: avoid compiler warning
6333         * lib/fflush.c (update_fpos_cache): Mark variables that are
6334         potentially unused.
6335
6336 2012-03-25  Bruno Haible  <bruno@clisp.org>
6337
6338         Tests for module 'localeconv'.
6339         * modules/localeconv-tests: New file.
6340         * tests/test-localeconv.c: New file.
6341
6342         New module 'localeconv'.
6343         * lib/locale.in.h (localeconv): New declaration.
6344         * lib/localeconv.c: New file.
6345         * m4/localeconv.m4: New file.
6346         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
6347         REPLACE_LOCALECONV.
6348         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
6349         REPLACE_LOCALECONV.
6350         * modules/localeconv: New file.
6351         * modules/nl_langinfo (Depends-on): Add localeconv.
6352         * modules/human (Depends-on): Likewise.
6353         * doc/posix-functions/localeconv.texi: Mention the new module.
6354
6355 2012-03-25  Bruno Haible  <bruno@clisp.org>
6356
6357         locale: Provide a complete 'struct lconv'.
6358         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
6359         'struct lconv' does not contain int_p_cs_precedes.
6360         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
6361         * doc/posix-headers/locale.texi: Update.
6362
6363         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
6364         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
6365         * doc/posix-headers/locale.texi: Update.
6366
6367         locale: Provide a working 'struct lconv'.
6368         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
6369         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
6370         'struct lconv' does not even contain decimal_point.
6371         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
6372         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
6373         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
6374         * doc/posix-headers/locale.texi: Mention the problems with
6375         'struct lconv'.
6376         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
6377
6378 2012-03-24  Bruno Haible  <bruno@clisp.org>
6379
6380         Enable common subexpression optimization in GCC.
6381         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
6382         macros.
6383         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
6384         GCC attribute 'const'.
6385         (uc_locale_language): Declare with GCC attribute 'pure'.
6386         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
6387         with GCC attribute 'const'.
6388         * lib/unictype.in.h (uc_is_general_category_withtable,
6389         uc_combining_class, uc_combining_class_name,
6390         uc_combining_class_long_name, uc_bidi_class_name,
6391         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
6392         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
6393         uc_decimal_value, uc_digit_value, uc_numeric_value,
6394         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
6395         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
6396         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
6397         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
6398         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
6399         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
6400         Declare with GCC attribute 'const'.
6401         (uc_general_category_name, uc_general_category_long_name,
6402         uc_general_category_byname, uc_general_category,
6403         uc_is_general_category, uc_combining_class_byname,
6404         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
6405         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
6406         Declare with GCC attribute 'pure'.
6407         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
6408         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
6409         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
6410         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
6411         with GCC attribute 'pure'.
6412         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
6413         'const'.
6414         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
6415         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
6416         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
6417         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
6418         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
6419         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
6420         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
6421         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
6422         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
6423         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
6424         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
6425         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
6426         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
6427         GCC attribute 'pure'.
6428         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
6429         'const'.
6430         * lib/uniwidth.in.h (uc_width): Simplify declaration.
6431         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
6432         u32_strwidth): Declare with GCC attribute 'pure'.
6433
6434         Enable common subexpression optimization in GCC.
6435         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
6436         (alphasort): Declare with GCC attribute 'pure'.
6437         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
6438         (atoll): Declare with GCC attribute 'pure'.
6439         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
6440         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
6441         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
6442         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
6443         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
6444         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
6445         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
6446
6447 2012-03-24  Bruno Haible  <bruno@clisp.org>
6448
6449         gnulib-tool: Avoid unintended error output from 'cmp'.
6450         * gnulib-tool (func_add_file, func_update_file, func_import): Use
6451         "cmp -s", not "cmp > /dev/null".
6452
6453 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
6454
6455         gnulib-tool: fix imprecise comments w.r.t. an automake bug
6456
6457         It's not just Automake versions < 1.9b that creates an empty
6458         pkgdatadir at installation time if pkgdata_DATA is specified
6459         to empty; modern automake versions do this as well, at least
6460         until automake 1.11.4 (not yet released at the moment of writing,
6461         but soon to appear).  That behaviour was generally considered a
6462         feature rather than a bug, at least until this discussion:
6463         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
6464
6465         See also automake bugs #10997 and #11030.
6466
6467         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
6468         reference to relevant automake bug numbers.
6469         (func_emit_tests_Makefile_am): Likewise.
6470
6471 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
6472
6473         announce-gen: use Digest::SHA when possible
6474         * build-aux/announce-gen: Use Digest::SHA when possible, falling
6475         back to Digest::SHA1 if necessary.
6476
6477 2012-03-20  Jim Meyering  <meyering@redhat.com>
6478
6479         tests: avoid gcc warnings about argv vs. const initializers
6480         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
6481         warnings about discarding 'const' qualifier from pointer target type.
6482         * tests/test-posix_spawn2.c (main): Likewise.
6483
6484 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
6485
6486         README-release: simplify slightly
6487         * top/README-release: Run "git checkout master" only once.
6488
6489 2012-03-15  Mark Wielaard  <mark@klomp.org>
6490
6491         git-merge-changelog: add specific example on how to use with hg.
6492         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
6493
6494 2012-03-18  Mark Wielaard  <mark@klomp.org>
6495
6496         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
6497
6498 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
6499
6500         git-version-gen: don't let "prefix" envvar cause trouble
6501         * build-aux/git-version-gen (prefix): Initialize properly,
6502         so as not to use a value specified via the environment.
6503         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
6504
6505 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
6506
6507         regex: diagnose too-large repeat counts in EREs
6508         Previously, the code did not diagnose the too-large repeat count
6509         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
6510         as if it were 'b\{1000000000}', which is unexpected.
6511         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
6512         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
6513         is a reasonable one for this problem.  Another option would be to
6514         create a new REG_OVERFLOW error for repeat counts that are too large.
6515         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
6516         count is too large, so that the caller can distinguish the two cases.
6517         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
6518         "Too large" return code, and that repeat counts are one example of this.
6519
6520 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
6521
6522         doc: some glibc x32 integer width issues
6523         * doc/posix-headers/sys_types.texi (sys/types.h):
6524         * doc/posix-headers/time.texi (time.h):
6525         Mention that glibc x32 does not conform to POSIX in a couple of
6526         areas related to integer widths.
6527
6528 2012-03-15  Bruno Haible  <bruno@clisp.org>
6529
6530         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
6531         * lib/fma.c (VOLATILE): New macro.
6532         (FUNC): Use it to work around a GCC compiler bug.
6533
6534 2012-03-13  Bruno Haible  <bruno@clisp.org>
6535
6536         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
6537         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
6538         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
6539         REPLACE_HYPOTL to 1.
6540         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
6541
6542 2012-03-13  Bruno Haible  <bruno@clisp.org>
6543
6544         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
6545         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
6546         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
6547         REPLACE_REMAINDERL to 1.
6548         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
6549         bug.
6550
6551 2012-03-13  Bruno Haible  <bruno@clisp.org>
6552
6553         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
6554         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
6555         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
6556         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
6557         too big rounding errors.
6558         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
6559         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
6560         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
6561         (Depends-on): Update conditions.
6562         * tests/test-sqrtl.c (my_ldexpl): New function.
6563         (main): Add test of a particular value.
6564         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
6565
6566 2012-03-13  Pádraig Brady  <P@draigBrady.com>
6567
6568         doc: Update timer_* platform portability notes.
6569         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
6570         that always return ENOSYS.
6571         * doc/posix-functions/timer_delete.texi: Likewise.
6572         * doc/posix-functions/timer_gettime.texi: Likewise.
6573         * doc/posix-functions/timer_settime.texi: Likewise.
6574
6575 2012-03-13  Bruno Haible  <bruno@clisp.org>
6576
6577         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
6578         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
6579         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
6580         REPLACE_CBRTL to 1.
6581         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
6582
6583 2012-03-13  Bruno Haible  <bruno@clisp.org>
6584
6585         remainderl: Avoid compilation error on AIX >= 5.2.
6586         * lib/math.in.h (remainderl): Undefine macro from the system header.
6587
6588 2012-03-13  Bruno Haible  <bruno@clisp.org>
6589
6590         Avoid compilation errors with MSVC option -fp:strict.
6591         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
6592         * lib/cbrtf.c: Likewise.
6593         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6594
6595 2012-03-12  Bruno Haible  <bruno@clisp.org>
6596
6597         uninorm: Don't crash in out-of-memory conditions.
6598         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
6599         gracefully.
6600         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
6601         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
6602
6603 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
6604
6605         quote: fix syntax-check
6606         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
6607         also exports quote_quoting_options.
6608
6609 2012-03-12  Simon Josefsson  <simon@josefsson.org>
6610
6611         Collapse list of copyright years to ranges.  See
6612         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
6613         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
6614         build-aux/csharpexec.sh.in, build-aux/gnupload,
6615         build-aux/install-reloc, build-aux/javacomp.sh.in,
6616         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
6617         build-aux/move-if-change, build-aux/reloc-ldflags,
6618         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
6619
6620 2012-03-11  Bruno Haible  <bruno@clisp.org>
6621
6622         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
6623         * m4/log2f-ieee.m4: New file.
6624         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
6625         whether log2f works with a minus zero argument. Replace it if not.
6626         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
6627         (Depends-on): Add log2-ieee.
6628         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
6629         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
6630
6631         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
6632         * m4/log2-ieee.m4: New file.
6633         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
6634         whether log2 works with a minus zero argument. Replace it if not.
6635         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
6636         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
6637         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
6638
6639         Tests for module 'log2l-ieee'.
6640         * modules/log2l-ieee-tests: New file.
6641         * tests/test-log2l-ieee.c: New file.
6642
6643         New module 'log2l-ieee'.
6644         * modules/log2l-ieee: New file.
6645
6646         Tests for module 'log2-ieee'.
6647         * modules/log2-ieee-tests: New file.
6648         * tests/test-log2-ieee.c: New file.
6649
6650         New module 'log2-ieee'.
6651         * modules/log2-ieee: New file.
6652
6653         Tests for module 'log2f-ieee'.
6654         * modules/log2f-ieee-tests: New file.
6655         * tests/test-log2f-ieee.c: New file.
6656         * tests/test-log2-ieee.h: New file.
6657
6658         New module 'log2f-ieee'.
6659         * modules/log2f-ieee: New file.
6660
6661 2012-03-11  Bruno Haible  <bruno@clisp.org>
6662
6663         Tests for module 'log2l'.
6664         * modules/log2l-tests: New file.
6665         * tests/test-log2l.c: New file.
6666
6667         New module 'log2l'.
6668         * lib/math.in.h (log2l): New declaration.
6669         * lib/log2l.c: New file.
6670         * m4/log2l.m4: New file.
6671         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
6672         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
6673         REPLACE_LOG2L.
6674         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
6675         REPLACE_LOG2L.
6676         * modules/log2l: New file.
6677         * tests/test-math-c++.cc: Check the declaration of log2l.
6678         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
6679         and OSF/1 problems.
6680
6681 2012-03-11  Bruno Haible  <bruno@clisp.org>
6682
6683         Tests for module 'log2f'.
6684         * modules/log2f-tests: New file.
6685         * tests/test-log2f.c: New file.
6686
6687         New module 'log2f'.
6688         * lib/math.in.h (log2f): New declaration.
6689         * lib/log2f.c: New file.
6690         * m4/log2f.m4: New file.
6691         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
6692         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
6693         REPLACE_LOG2F.
6694         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
6695         REPLACE_LOG2F.
6696         * modules/log2f: New file.
6697         * tests/test-math-c++.cc: Check the declaration of log2f.
6698         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
6699         and OSF/1 and Cygwin problems.
6700
6701 2012-03-11  Bruno Haible  <bruno@clisp.org>
6702
6703         Tests for module 'log2'.
6704         * modules/log2-tests: New file.
6705         * tests/test-log2.c: New file.
6706         * tests/test-log2.h: New file.
6707
6708         New module 'log2'.
6709         * lib/math.in.h (log2): New declaration.
6710         * lib/log2.c: New file.
6711         * m4/log2.m4: New file.
6712         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
6713         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
6714         REPLACE_LOG2.
6715         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
6716         REPLACE_LOG2.
6717         * modules/log2: New file.
6718         * tests/test-math-c++.cc: Check the declaration of log2.
6719         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
6720         and OSF/1 and Cygwin problems.
6721
6722 2012-03-11  Bruno Haible  <bruno@clisp.org>
6723
6724         exp2* tests: More tests.
6725         * tests/test-exp2.h (test_function): Test all integral arguments that
6726         don't need to overflow or denormalized numbers.
6727         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
6728         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
6729         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
6730
6731 2012-03-10  Bruno Haible  <bruno@clisp.org>
6732
6733         log1pl-ieee: Work around test failure on AIX 7.1.
6734         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
6735
6736         log1pl-ieee: Work around test failure on IRIX 6.5.
6737         * m4/log1pl-ieee.m4: New file.
6738         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
6739         test whether log1pl works with a minus zero argument. Replace it if
6740         not.
6741         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
6742         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
6743         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
6744         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
6745         (Depends-on): Update conditions.
6746         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
6747         m4/signbit.m4.
6748         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
6749         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
6750
6751         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
6752         * m4/log1pf-ieee.m4: New file.
6753         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
6754         test whether log1pf works with a minus zero argument. Replace it if
6755         not.
6756         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
6757         m4/signbit.m4.
6758         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
6759         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
6760
6761         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
6762         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
6763         (configure.ac): Require gl_FUNC_LOG1PF.
6764
6765         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
6766         * m4/log1p-ieee.m4: New file.
6767         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
6768         whether log1p works with a minus zero argument. Replace it if not.
6769         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
6770         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
6771         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
6772         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
6773         (Depends-on): Update conditions.
6774         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
6775         m4/signbit.m4.
6776         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
6777         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
6778
6779         Tests for module 'log1pl-ieee'.
6780         * modules/log1pl-ieee-tests: New file.
6781         * tests/test-log1pl-ieee.c: New file.
6782
6783         New module 'log1pl-ieee'.
6784         * modules/log1pl-ieee: New file.
6785
6786         Tests for module 'log1p-ieee'.
6787         * modules/log1p-ieee-tests: New file.
6788         * tests/test-log1p-ieee.c: New file.
6789
6790         New module 'log1p-ieee'.
6791         * modules/log1p-ieee: New file.
6792
6793         Tests for module 'log1pf-ieee'.
6794         * modules/log1pf-ieee-tests: New file.
6795         * tests/test-log1pf-ieee.c: New file.
6796         * tests/test-log1p-ieee.h: New file.
6797
6798         New module 'log1pf-ieee'.
6799         * modules/log1pf-ieee: New file.
6800
6801 2012-03-10  Bruno Haible  <bruno@clisp.org>
6802
6803         Tests for module 'log1pl'.
6804         * modules/log1pl-tests: New file.
6805         * tests/test-log1pl.c: New file.
6806
6807         New module 'log1pl'.
6808         * lib/math.in.h (log1pl): New declaration.
6809         * lib/log1pl.c: New file.
6810         * m4/log1pl.m4: New file.
6811         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
6812         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
6813         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
6814         * modules/log1pl: New file.
6815         * tests/test-math-c++.cc: Check the declaration of log1pl.
6816         * doc/posix-functions/log1pl.texi: Mention the new module.
6817
6818 2012-03-10  Bruno Haible  <bruno@clisp.org>
6819
6820         Tests for module 'log1pf'.
6821         * modules/log1pf-tests: New file.
6822         * tests/test-log1pf.c: New file.
6823
6824         New module 'log1pf'.
6825         * lib/math.in.h (log1pf): New declaration.
6826         * lib/log1pf.c: New file.
6827         * m4/log1pf.m4: New file.
6828         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
6829         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
6830         REPLACE_LOG1PF.
6831         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
6832         REPLACE_LOG1PF.
6833         * modules/log1pf: New file.
6834         * tests/test-math-c++.cc: Check the declaration of log1pf.
6835         * doc/posix-functions/log1pf.texi: Mention the new module.
6836
6837 2012-03-10  Bruno Haible  <bruno@clisp.org>
6838
6839         log1p tests: More tests.
6840         * tests/test-log1p.h: New file.
6841         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
6842         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
6843         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
6844         (main): Invoke test_function.
6845
6846         log1p: Provide replacement for Minix and MSVC.
6847         * lib/math.in.h (log1p): New declaration.
6848         * lib/log1p.c: New file.
6849         * m4/log1p.m4: New file.
6850         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
6851         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
6852         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
6853         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
6854         (Depends-on): Add math, isnand, log, round.
6855         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
6856         HAVE_LOG1P is 0.
6857         * tests/test-math-c++.cc: Check the declaration of log1p.
6858         * doc/posix-functions/log1p.texi: Mention the replacement.
6859
6860 2012-03-10  Bruno Haible  <bruno@clisp.org>
6861
6862         math tests: Small simplification.
6863         * tests/test-exp.h (test_function): Use the same err_bound for
6864         'double' on platforms with sizeof (long double) == sizeof (double)
6865         than on platforms with sizeof (long double) > sizeof (double).
6866         * tests/test-exp2.h (test_function): Likewise.
6867         * tests/test-expm1.h (test_function): Likewise.
6868         * tests/test-log.h (test_function): Likewise.
6869
6870 2012-03-10  Bruno Haible  <bruno@clisp.org>
6871
6872         Fix some comments.
6873         * lib/expl.c: Fix an ambiguous comment.
6874         * lib/expm1.c: Likewise.
6875         * lib/expm1l.c: Likewise.
6876         * lib/exp2.c: Likewise.
6877         * lib/exp2l.c: Likewise.
6878
6879 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
6880
6881         regex: allow inclusion of <regex.h> before <limits.h>
6882         Without this patch, portable programs had to include <limits.h> before
6883         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
6884         I ran into this problem with a test version of GNU grep on Solaris 8.
6885         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
6886         This is done conditionally so that this change can be merged
6887         back to glibc.
6888         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
6889         using the included regex.
6890
6891         fts: depend on fdopendir
6892         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
6893         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
6894         problem was introduced when fdopendir was split out.
6895
6896 2012-03-10  Bruno Haible  <bruno@clisp.org>
6897
6898         Remove unused variables.
6899         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
6900         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
6901
6902 2012-03-10  Bruno Haible  <bruno@clisp.org>
6903
6904         isnanf-nolibm: Fix last commit.
6905         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
6906
6907         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
6908         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
6909
6910 2012-03-10  Bruno Haible  <bruno@clisp.org>
6911
6912         logf-ieee: Work around test failure on NetBSD 5.1.
6913         * m4/logf-ieee.m4: New file.
6914         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
6915         whether logf works with a negative argument. Replace it if not.
6916         * lib/logf.c (logf): For negative arguments, return NaN.
6917         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
6918         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
6919         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
6920
6921         logf-ieee: Work around test failure on Solaris 9.
6922         * modules/logf-ieee (Depends-on): Add log-ieee.
6923         (configure.ac): Require gl_FUNC_LOGF.
6924
6925         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
6926         * m4/log-ieee.m4: New file.
6927         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
6928         log works with a negative argument. Replace it if not.
6929         * lib/log.c (log): For negative arguments, return NaN.
6930         * modules/log-ieee (Files): Add m4/log-ieee.m4.
6931         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
6932         * doc/posix-functions/log.texi: Mention the log-ieee module.
6933
6934         Tests for module 'logl-ieee'.
6935         * modules/logl-ieee-tests: New file.
6936         * tests/test-logl-ieee.c: New file.
6937
6938         New module 'logl-ieee'.
6939         * modules/logl-ieee: New file.
6940
6941         Tests for module 'log-ieee'.
6942         * modules/log-ieee-tests: New file.
6943         * tests/test-log-ieee.c: New file.
6944
6945         New module 'log-ieee'.
6946         * modules/log-ieee: New file.
6947
6948         Tests for module 'logf-ieee'.
6949         * modules/logf-ieee-tests: New file.
6950         * tests/test-logf-ieee.c: New file.
6951         * tests/test-log-ieee.h: New file.
6952
6953         New module 'logf-ieee'.
6954         * modules/logf-ieee: New file.
6955
6956 2012-03-10  Bruno Haible  <bruno@clisp.org>
6957
6958         log: Fix bug introduced on 2012-03-09.
6959         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
6960
6961 2012-03-10  Pádraig Brady  <P@draigBrady.com>
6962
6963         timer-time: link explicitly with pthreads on glibc
6964         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
6965         to support static linking, when newer glibc is
6966         detected, as that contains pthread emulation of
6967         POSIX timer functions where required.
6968         * modules/timer-time: Depend on threadlib to
6969         pull in the appropriate library to link.
6970
6971 2012-03-10  Bruno Haible  <bruno@clisp.org>
6972
6973         log* tests: More tests.
6974         * tests/test-log.h: New file.
6975         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
6976         (main): Invoke test_function.
6977         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
6978         (main): Invoke test_function.
6979         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
6980         (main): Invoke test_function.
6981         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
6982         tests/randomd.c.
6983         (Makefile.am): Add randomd.c to test_log_SOURCES.
6984         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
6985         tests/randomf.c.
6986         (Makefile.am): Add randomf.c to test_logf_SOURCES.
6987         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
6988         tests/randoml.c.
6989         (Depends-on): Add 'float'.
6990         (Makefile.am): Add randoml.c to test_logl_SOURCES.
6991
6992 2012-03-09  Bruno Haible  <bruno@clisp.org>
6993
6994         logl: Work around OSF/1 5.1 bug.
6995         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
6996         * lib/logl.c (logl): If logl exists, use it and provide just the
6997         workaround.
6998         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
6999         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
7000         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
7001         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
7002         * modules/logl (configure.ac): Consider REPLACE_LOGL.
7003         (Depends-on): Update conditions.
7004         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
7005
7006 2012-03-09  Bruno Haible  <bruno@clisp.org>
7007
7008         logf: Work around OSF/1 5.1 bug.
7009         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
7010         * lib/logf.c (logf): If logf exists, use it and provide just the
7011         workaround.
7012         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
7013         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
7014         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
7015         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
7016         * modules/logf (configure.ac): Consider REPLACE_LOGF.
7017         (Depends-on): Update conditions.
7018         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
7019
7020 2012-03-09  Bruno Haible  <bruno@clisp.org>
7021
7022         log: Work around OSF/1 5.1 bug.
7023         * lib/math.in.h (log): New declaration.
7024         * lib/log.c: New file.
7025         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
7026         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
7027         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
7028         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
7029         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
7030         * modules/log (Files): Add lib/log.c.
7031         (Depends-on): Add math.
7032         (configure.ac): If REPLACE_LOG is 1, compile an override.
7033         * tests/test-math-c++.cc: Check the declaration of log.
7034         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
7035
7036 2012-03-09  Jim Meyering  <meyering@redhat.com>
7037
7038         readtokens.c: adjust wording in a comment
7039         * lib/readtokens.c: Insert omitted "that" in a comment.
7040
7041 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
7042
7043         modechange: add notations +40, 00440, etc.
7044         * lib/modechange.c (mode_compile): Support new notations
7045         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
7046
7047 2012-03-08  Bruno Haible  <bruno@clisp.org>
7048
7049         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
7050         * m4/exp2l-ieee.m4: New file.
7051         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
7052         test whether exp2l works with a NaN argument and with a negative
7053         infinity argument. Replace it if not.
7054         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
7055         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
7056         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
7057         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
7058         (Depends-on): Update conditions.
7059         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
7060         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
7061         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
7062
7063         Tests for module 'exp2l-ieee'.
7064         * modules/exp2l-ieee-tests: New file.
7065         * tests/test-exp2l-ieee.c: New file.
7066
7067         New module 'exp2l-ieee'.
7068         * modules/exp2l-ieee: New file.
7069
7070         Tests for module 'exp2-ieee'.
7071         * modules/exp2-ieee-tests: New file.
7072         * tests/test-exp2-ieee.c: New file.
7073
7074         New module 'exp2-ieee'.
7075         * modules/exp2-ieee: New file.
7076
7077         Tests for module 'exp2f-ieee'.
7078         * modules/exp2f-ieee-tests: New file.
7079         * tests/test-exp2f-ieee.c: New file.
7080         * tests/test-exp2-ieee.h: New file.
7081
7082         New module 'exp2f-ieee'.
7083         * modules/exp2f-ieee: New file.
7084
7085 2012-03-08  Bruno Haible  <bruno@clisp.org>
7086
7087         Tests for module 'exp2l'.
7088         * modules/exp2l-tests: New file.
7089         * tests/test-exp2l.c: New file.
7090
7091         New module 'exp2l'.
7092         * lib/math.in.h (exp2l): New declaration.
7093         * lib/exp2l.c: New file.
7094         * lib/expl-table.c: New file, extracted from lib/expl.c.
7095         * lib/expl.c (gl_expl_table): New declaration.
7096         (expl): Remove expl_table. Update reference.
7097         * m4/exp2l.m4: New file.
7098         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
7099         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
7100         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
7101         * modules/exp2l: New file.
7102         * modules/expl (Files): Add lib/expl-table.c.
7103         (configure.ac): Compile also expl-table.c.
7104         * tests/test-math-c++.cc: Check the declaration of exp2l.
7105         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
7106         problem.
7107
7108 2012-03-08  Bruno Haible  <bruno@clisp.org>
7109
7110         Tests for module 'exp2f'.
7111         * modules/exp2f-tests: New file.
7112         * tests/test-exp2f.c: New file.
7113
7114         New module 'exp2f'.
7115         * lib/math.in.h (exp2f): New declaration.
7116         * lib/exp2f.c: New file.
7117         * m4/exp2f.m4: New file.
7118         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
7119         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
7120         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
7121         * modules/exp2f: New file.
7122         * tests/test-math-c++.cc: Check the declaration of exp2f.
7123         * doc/posix-functions/exp2f.texi: Mention the new module and the
7124         IRIX problem.
7125
7126 2012-03-08  Bruno Haible  <bruno@clisp.org>
7127
7128         Tests for module 'exp2'.
7129         * modules/exp2-tests: New file.
7130         * tests/test-exp2.c: New file.
7131         * tests/test-exp2.h: New file.
7132
7133         New module 'exp2'.
7134         * lib/math.in.h (exp2): New declaration.
7135         * lib/exp2.c: New file.
7136         * m4/exp2.m4: New file.
7137         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
7138         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
7139         REPLACE_EXP2.
7140         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
7141         REPLACE_EXP2.
7142         * modules/exp2: New file.
7143         * tests/test-math-c++.cc: Check the declaration of exp2.
7144         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
7145         and OpenBSD problems.
7146
7147 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
7148
7149         savedir: fix comment typo
7150         * lib/savedir.c (savedirstream): Fix typo in comment.
7151
7152 2012-03-08  Bruno Haible  <bruno@clisp.org>
7153
7154         test-readtokens.c: use const; remove unwarranted cast
7155         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
7156
7157 2012-03-08  Bruno Haible  <bruno@clisp.org>
7158
7159         fmal: Avoid compilation error on AIX.
7160         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
7161         AIX 5.2..7.1.
7162
7163 2012-03-08  Bruno Haible  <bruno@clisp.org>
7164
7165         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
7166         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
7167         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
7168         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
7169         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
7170         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
7171         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
7172
7173 2012-03-08  Bruno Haible  <bruno@clisp.org>
7174
7175         remainderf: Override buggy system function on IRIX 6.5.
7176         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
7177         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
7178         when it exists.
7179         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
7180
7181 2012-03-08  Jim Meyering  <meyering@redhat.com>
7182
7183         test-readtokens.c: avoid const-related compilation warnings
7184         * tests/test-readtokens.c: Avoid const-related compilation warnings.
7185
7186 2012-03-07  Jim Meyering  <meyering@redhat.com>
7187             Bruno Haible  <bruno@clisp.org>
7188
7189         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
7190         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
7191         tests/randomd.c.
7192         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
7193         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
7194         tests/randoml.c.
7195         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
7196
7197 2012-03-07  Bruno Haible  <bruno@clisp.org>
7198
7199         expm1l: Avoid compilation error on AIX.
7200         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
7201         AIX 5.2..7.1.
7202
7203 2012-03-07  Bruno Haible  <bruno@clisp.org>
7204
7205         expm1l: Don't override undeclared system function on IRIX 6.5.
7206         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
7207         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
7208         it exists. Set HAVE_DECL_EXPM1L.
7209         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
7210         HAVE_EXPM1L.
7211         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
7212         HAVE_EXPM1L.
7213         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
7214
7215 2012-03-07  Bruno Haible  <bruno@clisp.org>
7216
7217         remainderl: Don't override undeclared system function on IRIX 6.5.
7218         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
7219         HAVE_REMAINDERL.
7220         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
7221         declared when it exists. Set HAVE_DECL_REMAINDERL.
7222         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
7223         not HAVE_REMAINDERL.
7224         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
7225         HAVE_REMAINDERL.
7226         * doc/posix-functions/remainderl.texi: Mention missing declaration
7227         problem.
7228
7229 2012-03-07  Bruno Haible  <bruno@clisp.org>
7230
7231         rintf: Don't override undeclared system function on IRIX 6.5.
7232         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
7233         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
7234         exists. Set HAVE_DECL_RINTF.
7235         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
7236         HAVE_RINTF.
7237         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
7238         HAVE_RINTF.
7239         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
7240
7241 2012-03-07  Bruno Haible  <bruno@clisp.org>
7242
7243         roundl: Avoid compilation error on AIX.
7244         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
7245         AIX 5.2..7.1.
7246
7247 2012-03-07  Bruno Haible  <bruno@clisp.org>
7248
7249         roundl: Don't override undeclared system function on IRIX 6.5.
7250         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
7251         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
7252         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
7253         * modules/roundl (configure.ac): For replacement code, test
7254         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
7255         (Depends-on): Update conditions.
7256         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
7257
7258 2012-03-07  Bruno Haible  <bruno@clisp.org>
7259
7260         roundf: Don't override undeclared system function on IRIX 6.5.
7261         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
7262         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
7263         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
7264         * modules/roundf (configure.ac): For replacement code, test
7265         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
7266         (Depends-on): Update conditions.
7267         * modules/roundf-ieee (Depends-on): Update conditions.
7268         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
7269
7270 2012-03-07  Bruno Haible  <bruno@clisp.org>
7271
7272         round: Don't override undeclared system function on IRIX 6.5.
7273         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
7274         argument.
7275         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
7276         also when it is not declared. Set HAVE_ROUND. For replacement code,
7277         test HAVE_ROUND, not HAVE_DECL_ROUND.
7278         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
7279         not HAVE_DECL_ROUND.
7280         (Depends-on): Update conditions.
7281         * modules/round-ieee (Depends-on): Update conditions.
7282         * doc/posix-functions/round.texi: Mention the IRIX problem.
7283
7284 2012-03-07  Bruno Haible  <bruno@clisp.org>
7285
7286         copysignf: Don't override undeclared system function on IRIX 6.5.
7287         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
7288         HAVE_COPYSIGNF.
7289         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
7290         declared when it exists. Set HAVE_DECL_COPYSIGNF.
7291         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
7292         not HAVE_COPYSIGNF.
7293         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
7294         HAVE_COPYSIGNF.
7295         * doc/posix-functions/copysignf.texi: Mention missing declaration
7296         problem.
7297
7298 2012-03-07  Jim Meyering  <meyering@redhat.com>
7299
7300         readtokens: add tests
7301         * modules/readtokens-tests: New file.
7302         * tests/test-readtokens.c: New file.
7303
7304 2012-03-07  Jim Meyering  <meyering@redhat.com>
7305
7306         quotearg: the module must now include quote.h
7307         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
7308         So must the module.
7309         * modules/quotearg (Files): Add quote.h.
7310
7311 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
7312
7313         readtokens: avoid core dumps with unusual calling patterns
7314         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
7315         * lib/readtokens.c: Include limits.h.
7316         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
7317         (readtoken): Don't cache the delimiters; the cache code was buggy
7318         if !delim && saved_delim, or if the new n_delim differs from the old.
7319         Also, it wasn't thread-safe.
7320
7321 2012-03-07  Bruno Haible  <bruno@clisp.org>
7322
7323         quote: Adhere to common module description layout.
7324         * modules/quote (Makefile.am): Add back empty section.
7325
7326 2012-03-06  Akim Demaille  <demaille@gostai.com>
7327
7328         quote: fuse into quotearg
7329         This patch is made for the benefit of Bison.
7330         quote does not leave the choice of the quoting style to the user.
7331         quoting_style provides poor customizability, yet quoting_options,
7332         which is very rich, is hidden inside quotearg.c.  So in order to
7333         allow quote customization, move its implementation to quotearg.c.
7334         * lib/quote.c: Remove.
7335         * modules/quote: Adjust.
7336         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
7337         warning: provide all the members of literal structs.
7338         (quote_quoting_options): New.
7339         (quote, quote_n): Import implementation from quote.c.
7340         * lib/quote.h: Import the comments from quote.c.
7341         (quote_quoting_options): New.
7342
7343 2012-03-06  Bruno Haible  <bruno@clisp.org>
7344
7345         Tests for module 'expm1l-ieee'.
7346         * modules/expm1l-ieee-tests: New file.
7347         * tests/test-expm1l-ieee.c: New file.
7348
7349         New module 'expm1l-ieee'.
7350         * modules/expm1l-ieee: New file.
7351
7352         Tests for module 'expm1f-ieee'.
7353         * modules/expm1f-ieee-tests: New file.
7354         * tests/test-expm1f-ieee.c: New file.
7355
7356         New module 'expm1f-ieee'.
7357         * modules/expm1f-ieee: New file.
7358
7359         Tests for module 'expm1-ieee'.
7360         * modules/expm1-ieee-tests: New file.
7361         * tests/test-expm1-ieee.c: New file.
7362         * tests/test-expm1-ieee.h: New file.
7363
7364         New module 'expm1-ieee'.
7365         * modules/expm1-ieee: New file.
7366         * m4/expm1-ieee.m4: New file.
7367         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
7368         whether expm1 works with a minus zero argument. Replace it if not.
7369         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
7370         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
7371         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
7372         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
7373         (Depends-on): Update conditions.
7374         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
7375         AIX problem.
7376
7377 2012-03-06  Bruno Haible  <bruno@clisp.org>
7378
7379         Work around expm1f bug on IRIX 6.5.
7380         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
7381         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
7382         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
7383         not work.
7384         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
7385         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
7386         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
7387         (Depends-on): Update conditions.
7388         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
7389
7390 2012-03-06  Bruno Haible  <bruno@clisp.org>
7391
7392         Tests for module 'expm1l'.
7393         * modules/expm1l-tests: New file.
7394         * tests/test-expm1l.c: New file.
7395
7396         New module 'expm1l'.
7397         * lib/math.in.h (expm1l): New declaration.
7398         * lib/expm1l.c: New file.
7399         * m4/expm1l.m4: New file.
7400         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
7401         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
7402         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
7403         * modules/expm1l: New file.
7404         * tests/test-math-c++.cc: Check the declaration of expm1l.
7405         * doc/posix-functions/expm1l.texi: Mention the new module.
7406
7407 2012-03-06  Bruno Haible  <bruno@clisp.org>
7408
7409         Tests for module 'expm1f'.
7410         * modules/expm1f-tests: New file.
7411         * tests/test-expm1f.c: New file.
7412
7413         New module 'expm1f'.
7414         * lib/math.in.h (expm1f): New declaration.
7415         * lib/expm1f.c: New file.
7416         * m4/expm1f.m4: New file.
7417         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
7418         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
7419         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
7420         * modules/expm1f: New file.
7421         * tests/test-math-c++.cc: Check the declaration of expm1f.
7422         * doc/posix-functions/expm1f.texi: Mention the new module.
7423
7424 2012-03-06  Bruno Haible  <bruno@clisp.org>
7425
7426         Tests for module 'expm1'.
7427         * modules/expm1-tests: New file.
7428         * tests/test-expm1.c: New file.
7429         * tests/test-expm1.h: New file.
7430
7431         New module 'expm1'.
7432         * lib/math.in.h (expm1): New declaration.
7433         * lib/expm1.c: New file.
7434         * m4/expm1.m4: New file.
7435         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
7436         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
7437         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
7438         * modules/expm1: New file.
7439         * tests/test-math-c++.cc: Check the declaration of expm1.
7440         * doc/posix-functions/expm1.texi: Mention the new module.
7441
7442 2012-03-06  Bruno Haible  <bruno@clisp.org>
7443
7444         math: Ensure declarations of math functions.
7445         * modules/acosf (Depends-on): Add 'extensions'.
7446         * modules/asinf (Depends-on): Likewise.
7447         * modules/atan2f (Depends-on): Likewise.
7448         * modules/atanf (Depends-on): Likewise.
7449         * modules/cbrt (Depends-on): Likewise.
7450         * modules/cbrtf (Depends-on): Likewise.
7451         * modules/cbrtl (Depends-on): Likewise.
7452         * modules/copysignf (Depends-on): Likewise.
7453         * modules/copysignl (Depends-on): Likewise.
7454         * modules/cosf (Depends-on): Likewise.
7455         * modules/coshf (Depends-on): Likewise.
7456         * modules/expf (Depends-on): Likewise.
7457         * modules/fabsf (Depends-on): Likewise.
7458         * modules/fabsl (Depends-on): Likewise.
7459         * modules/fmaf (Depends-on): Likewise.
7460         * modules/fmal (Depends-on): Likewise.
7461         * modules/fmodf (Depends-on): Likewise.
7462         * modules/fmodl (Depends-on): Likewise.
7463         * modules/frexpf (Depends-on): Likewise.
7464         * modules/frexpl (Depends-on): Likewise.
7465         * modules/hypot (Depends-on): Likewise.
7466         * modules/hypotf (Depends-on): Likewise.
7467         * modules/hypotl (Depends-on): Likewise.
7468         * modules/ldexpf (Depends-on): Likewise.
7469         * modules/ldexpl (Depends-on): Likewise.
7470         * modules/log10f (Depends-on): Likewise.
7471         * modules/log10l (Depends-on): Likewise.
7472         * modules/log1p (Depends-on): Likewise.
7473         * modules/logb (Depends-on): Likewise.
7474         * modules/logf (Depends-on): Likewise.
7475         * modules/modff (Depends-on): Likewise.
7476         * modules/modfl (Depends-on): Likewise.
7477         * modules/powf (Depends-on): Likewise.
7478         * modules/remainderf (Depends-on): Likewise.
7479         * modules/remainderl (Depends-on): Likewise.
7480         * modules/rintf (Depends-on): Likewise.
7481         * modules/rintl (Depends-on): Likewise.
7482         * modules/sinf (Depends-on): Likewise.
7483         * modules/sinhf (Depends-on): Likewise.
7484         * modules/sqrtf (Depends-on): Likewise.
7485         * modules/tanf (Depends-on): Likewise.
7486         * modules/tanhf (Depends-on): Likewise.
7487         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
7488         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
7489         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
7490         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
7491         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
7492         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
7493         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
7494         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
7495         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
7496         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
7497         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
7498         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
7499         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
7500         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
7501         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
7502         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
7503         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
7504         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
7505         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
7506         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
7507         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
7508         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
7509         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
7510         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
7511         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
7512         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
7513         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
7514         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
7515         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
7516         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
7517         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
7518         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
7519         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
7520         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
7521         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
7522         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
7523         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
7524         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
7525         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
7526         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
7527         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
7528
7529 2012-03-06  Bruno Haible  <bruno@clisp.org>
7530
7531         math: Update module names in warnings.
7532         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
7533         tanl): Use specific module name in warn-on-use warning.
7534
7535 2012-03-06  Bruno Haible  <bruno@clisp.org>
7536
7537         expl: Simplify computation.
7538         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
7539
7540 2012-03-05  Bruno Haible  <bruno@clisp.org>
7541
7542         exp* tests: More tests.
7543         * tests/test-exp.h: New file.
7544         * tests/test-exp.c: Include <float.h> and test-exp.h.
7545         (main): Invoke test_function.
7546         * tests/test-expf.c: Include <float.h> and test-exp.h.
7547         (main): Invoke test_function.
7548         * tests/test-expl.c: Include <float.h> and test-exp.h.
7549         (main): Invoke test_function.
7550         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
7551         (Makefile.am): Add randomd.c to test_exp_SOURCES.
7552         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
7553         (Makefile.am): Add randomf.c to test_expf_SOURCES.
7554         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
7555         (Depends-on): Add 'float'.
7556         (Makefile.am): Add randoml.c to test_expl_SOURCES.
7557
7558         expl: Fix precision of computed result.
7559         * lib/expl.c: Completely rewritten.
7560         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
7561         (Maintainer): Add me.
7562         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
7563
7564 2012-03-05  Bruno Haible  <bruno@clisp.org>
7565
7566         cbrt* tests: More tests.
7567         * tests/test-cbrt.h: New file.
7568         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
7569         (main): Invoke test_function.
7570         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
7571         (main): Invoke test_function.
7572         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
7573         (main): Invoke test_function.
7574         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
7575         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
7576         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
7577         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
7578         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
7579         (Depends-on): Add 'float'.
7580         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
7581
7582 2012-03-05  Bruno Haible  <bruno@clisp.org>
7583
7584         hypot* tests: More tests.
7585         * tests/test-hypot.h: New file, partially extracted from
7586         tests/test-hypotl.c.
7587         * tests/test-hypot.c: Include test-hypot.h.
7588         (main): Invoke test_function.
7589         * tests/test-hypotf.c: Include test-hypot.h.
7590         (main): Invoke test_function.
7591         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
7592         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
7593         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
7594         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
7595         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
7596         tests/randomf.c.
7597         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
7598         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
7599         tests/randoml.c.
7600         (Depends-on): Add 'fpucw', 'float'.
7601         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
7602
7603 2012-03-05  Bruno Haible  <bruno@clisp.org>
7604
7605         fpucw: Doc about FreeBSD.
7606         * lib/fpucw.h: Mention FreeBSD in comments.
7607
7608 2012-03-04  Bruno Haible  <bruno@clisp.org>
7609
7610         sqrt* tests: More tests.
7611         * tests/test-sqrt.h: New file.
7612         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
7613         (main): Invoke test_function.
7614         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
7615         (main): Invoke test_function.
7616         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
7617         (main): Invoke test_function.
7618         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
7619         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
7620         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
7621         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
7622         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
7623         (Depends-on): Add 'float'.
7624         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
7625
7626 2012-03-04  Bruno Haible  <bruno@clisp.org>
7627
7628         remainder* tests: More tests.
7629         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
7630         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
7631         (main): Invoke test_function.
7632         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
7633         (main): Invoke test_function.
7634         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
7635         (main): Invoke test_function.
7636         * modules/remainder-tests (Files): Add tests/test-remainder.h,
7637         tests/randomd.c.
7638         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
7639         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
7640         tests/randomf.c.
7641         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
7642         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
7643         tests/randoml.c.
7644         (Depends-on): Add 'float'.
7645         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
7646
7647 2012-03-04  Bruno Haible  <bruno@clisp.org>
7648
7649         remainder, remainderf, remainderl: Fix computation for large quotients.
7650         * lib/remainder.c: Completely rewritten.
7651         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
7652         USE_FLOAT.
7653         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
7654         USE_LONG_DOUBLE.
7655         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
7656         isnand, isinf. Remove round, fma.
7657         * modules/remainderf (Files): Add lib/remainder.c.
7658         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
7659         Remove roundf, fmaf.
7660         * modules/remainderl (Files): Add lib/remainder.c.
7661         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
7662         isinf. Remove roundl, fmal.
7663         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
7664         REMAINDER_LIBM.
7665         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
7666         REMAINDERF_LIBM.
7667         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
7668         REMAINDERL_LIBM.
7669
7670 2012-03-04  Bruno Haible  <bruno@clisp.org>
7671
7672         fmod* tests: More tests.
7673         * tests/test-fmod.h (my_ldexp): New function.
7674         (test_function): Reduce amount of random numbers to test. Add tests
7675         of very large quotients x / y.
7676         * tests/test-fmod.c (MAX_EXP): New macro.
7677         * tests/test-fmodf.c (MAX_EXP): Likewise.
7678         * tests/test-fmodl.c (MAX_EXP): Likewise.
7679
7680 2012-03-04  Bruno Haible  <bruno@clisp.org>
7681
7682         fmod, fmodl: Fix computation for large quotients x / y.
7683         * lib/fmod.c: Completely rewritten.
7684         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
7685         USE_LONG_DOUBLE.
7686         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
7687         isnand. Remove fma.
7688         * modules/fmodl (Files): Add lib/fmod.c.
7689         (Depends-on): Add float, isfinite, signbit, fabsl,
7690         frexpl, ldexpl, isnanl. Remove fma.
7691         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
7692         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
7693
7694 2012-03-03  Bruno Haible  <bruno@clisp.org>
7695
7696         fmod* tests: More tests.
7697         * tests/test-fmod.h: New file.
7698         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
7699         (main): Invoke test_function.
7700         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
7701         (main): Invoke test_function.
7702         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
7703         (main): Invoke test_function.
7704         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
7705         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
7706         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
7707         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
7708         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
7709         (Depends-on): Add 'float'.
7710         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
7711
7712 2012-03-03  Bruno Haible  <bruno@clisp.org>
7713
7714         rint* tests: More tests.
7715         * tests/test-rint.h: New file, partially extracted from
7716         tests/test-rintl.c.
7717         * tests/test-rint.c: Include test-rint.h.
7718         (main): Invoke test_function.
7719         * tests/test-rintf.c: Include test-rint.h.
7720         (main): Invoke test_function.
7721         * tests/test-rintl.c: Include test-rint.h.
7722         (main): Invoke test_function.
7723         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
7724         (Makefile.am): Add randomd.c to test_rint_SOURCES.
7725         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
7726         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
7727         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
7728         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
7729
7730 2012-03-03  Bruno Haible  <bruno@clisp.org>
7731
7732         modf* tests: More tests.
7733         * tests/test-modf.h: New file.
7734         * tests/test-modf.c: Include <float.h> and test-modf.h.
7735         (main): Invoke test_function.
7736         * tests/test-modff.c: Include <float.h> and test-modf.h.
7737         (main): Invoke test_function.
7738         * tests/test-modfl.c: Include <float.h> and test-modf.h.
7739         (main): Invoke test_function.
7740         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
7741         (Makefile.am): Add randomd.c to test_modf_SOURCES.
7742         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
7743         (Makefile.am): Add randomf.c to test_modff_SOURCES.
7744         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
7745         (Depends-on): Add 'float'.
7746         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
7747
7748 2012-03-03  Bruno Haible  <bruno@clisp.org>
7749
7750         fabs* tests: More tests.
7751         * tests/test-fabs.h: New file, partially extracted from
7752         tests/test-fabsl.c.
7753         * tests/test-fabs.c (RANDOM): New macro.
7754         * tests/test-fabsf.c (RANDOM): New macro.
7755         * tests/test-fabsl.c (RANDOM): New macro.
7756         * modules/fabs-tests (Files): Add tests/randomd.c.
7757         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
7758         * modules/fabsf-tests (Files): Add tests/randomf.c.
7759         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
7760         * modules/fabsl-tests (Files): Add tests/randoml.c.
7761         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
7762
7763 2012-03-03  Bruno Haible  <bruno@clisp.org>
7764
7765         ldexp* tests: More tests.
7766         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
7767         * tests/test-ldexp.c (RANDOM): New macro.
7768         * tests/test-ldexpf.c (RANDOM): New macro.
7769         * tests/test-ldexpl.c (RANDOM): New macro.
7770         * modules/ldexp-tests (Files): Add tests/randomd.c.
7771         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
7772         * modules/ldexpf-tests (Files): Add tests/randomf.c.
7773         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
7774         * modules/ldexpl-tests (Files): Add tests/randoml.c.
7775         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
7776
7777 2012-03-03  Bruno Haible  <bruno@clisp.org>
7778
7779         frexp* tests: More tests.
7780         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
7781         * tests/test-frexp.c (RANDOM): New macro.
7782         * tests/test-frexpf.c (RANDOM): New macro.
7783         * tests/test-frexpl.c (RANDOM): New macro.
7784         * modules/frexp-tests (Files): Add tests/randomd.c.
7785         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
7786         * modules/frexpf-tests (Files): Add tests/randomf.c.
7787         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
7788         * modules/frexpl-tests (Files): Add tests/randoml.c.
7789         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
7790
7791 2012-03-03  Bruno Haible  <bruno@clisp.org>
7792
7793         Support for pseudo-random numbers in tests.
7794         * tests/randomf.c: New file.
7795         * tests/randomd.c: New file.
7796         * tests/randoml.c: New file.
7797         * tests/macros.h (randomf, randomd, randoml): New declarations.
7798
7799 2012-03-03  Bruno Haible  <bruno@clisp.org>
7800
7801         frexp* tests: Refactor.
7802         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
7803         * tests/test-frexp.c: Include and use it.
7804         * tests/test-frexpf.c: Likewise.
7805         * tests/test-frexpl.c: Likewise.
7806         * modules/frexp-tests (Files): Add tests/test-frexp.h.
7807         * modules/frexpf-tests (Files): Likewise.
7808         * modules/frexpl-tests (Files): Likewise.
7809
7810 2012-03-02  Jim Meyering  <meyering@redhat.com>
7811
7812         maint: don't specify XZ_OPT=-9ev in dist-related rule
7813         Using xz's -9 option is warranted only if you have a very large
7814         tarball (see xz's documentation for the sizes vs. presets), and
7815         requires 64MiB of memory at decompression time.
7816         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
7817         Automake's default of just "-e" is fine.  Override on a
7818         per-package basis by setting XZ_OPT e.g., in cfg.mk.
7819
7820 2012-03-01  Eric Blake  <eblake@redhat.com>
7821
7822         maint.mk: allow announcement for non-gnulib project
7823         * maint.mk (announcement): Skip gnulib version if not used.
7824
7825 2012-03-01  Jim Meyering  <meyering@redhat.com>
7826
7827         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
7828         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
7829         envvar settings cannot interfere.  Otherwise, setting envvars like
7830         prohibit=foo require=bar, etc. would cause spurious test failures.
7831
7832 2012-03-01  Eric Blake  <eblake@redhat.com>
7833
7834         maint.mk: add per-line exclusions to prohibitions
7835         * maint.mk (_sc_search_regexp): Add $exclude parameter.
7836         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
7837         (sc_const_long_option): Use it.
7838
7839 2012-03-01  Bruno Haible  <bruno@clisp.org>
7840
7841         Tests for module 'expl-ieee'.
7842         * modules/expl-ieee-tests: New file.
7843         * tests/test-expl-ieee.c: New file.
7844
7845         New module 'expl-ieee'.
7846         * modules/expl-ieee: New file.
7847
7848         Tests for module 'exp-ieee'.
7849         * modules/exp-ieee-tests: New file.
7850         * tests/test-exp-ieee.c: New file.
7851
7852         New module 'exp-ieee'.
7853         * modules/exp-ieee: New file.
7854
7855         Tests for module 'expf-ieee'.
7856         * modules/expf-ieee-tests: New file.
7857         * tests/test-expf-ieee.c: New file.
7858         * tests/test-exp-ieee.h: New file.
7859
7860         New module 'expf-ieee'.
7861         * modules/expf-ieee: New file.
7862
7863 2012-02-29  Bruno Haible  <bruno@clisp.org>
7864
7865         cbrtl-ieee: Work around test failure on IRIX 6.5.
7866         * m4/cbrtl-ieee.m4: New file.
7867         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
7868         test whether cbrtl works with a minus zero argument. Replace it if not.
7869         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
7870         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
7871         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
7872         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
7873         (Depends-on): Update conditions.
7874         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
7875         m4/signbit.m4.
7876         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
7877         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
7878         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
7879
7880         Tests for module 'cbrtl-ieee'.
7881         * modules/cbrtl-ieee-tests: New file.
7882         * tests/test-cbrtl-ieee.c: New file.
7883
7884         New module 'cbrtl-ieee'.
7885         * modules/cbrtl-ieee: New file.
7886
7887         Tests for module 'cbrt-ieee'.
7888         * modules/cbrt-ieee-tests: New file.
7889         * tests/test-cbrt-ieee.c: New file.
7890
7891         New module 'cbrt-ieee'.
7892         * modules/cbrt-ieee: New file.
7893
7894         Tests for module 'cbrtf-ieee'.
7895         * modules/cbrtf-ieee-tests: New file.
7896         * tests/test-cbrtf-ieee.c: New file.
7897         * tests/test-cbrt-ieee.h: New file.
7898
7899         New module 'cbrtf-ieee'.
7900         * modules/cbrtf-ieee: New file.
7901
7902 2012-02-29  Bruno Haible  <bruno@clisp.org>
7903
7904         cbrtf: Work around bug in IRIX 6.5 system function.
7905         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
7906         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
7907         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
7908         work.
7909         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
7910         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
7911         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
7912         (Depends-on): Update conditions.
7913         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
7914
7915 2012-02-29  Bruno Haible  <bruno@clisp.org>
7916
7917         Tests for module 'cbrtl'.
7918         * modules/cbrtl-tests: New file.
7919         * tests/test-cbrtl.c: New file.
7920
7921         New module 'cbrtl'.
7922         * lib/math.in.h (cbrtl): New declaration.
7923         * lib/cbrtl.c: New file.
7924         * m4/cbrtl.m4: New file.
7925         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
7926         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
7927         HAVE_DECL_CBRTL.
7928         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
7929         HAVE_DECL_CBRTL.
7930         * modules/cbrtl: New file.
7931         * tests/test-math-c++.cc: Check the declaration of cbrtl.
7932         * doc/posix-functions/cbrtl.texi: Mention the new module.
7933
7934 2012-02-29  Bruno Haible  <bruno@clisp.org>
7935
7936         Tests for module 'cbrtf'.
7937         * modules/cbrtf-tests: New file.
7938         * tests/test-cbrtf.c: New file.
7939
7940         New module 'cbrtf'.
7941         * lib/math.in.h (cbrtf): New declaration.
7942         * lib/cbrtf.c: New file.
7943         * m4/cbrtf.m4: New file.
7944         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
7945         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
7946         HAVE_DECL_CBRTF.
7947         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
7948         HAVE_DECL_CBRTF.
7949         * modules/cbrtf: New file.
7950         * tests/test-math-c++.cc: Check the declaration of cbrtf.
7951         * doc/posix-functions/cbrtf.texi: Mention the new module.
7952
7953 2012-02-29  Bruno Haible  <bruno@clisp.org>
7954
7955         cbrt: Provide replacement on MSVC and Minix.
7956         * lib/math.in.h (cbrt): New declaration.
7957         * lib/cbrt.c: New file.
7958         * m4/cbrt.m4: New file.
7959         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
7960         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
7961         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
7962         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
7963         (Depends-on): Add dependencies.
7964         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
7965         * tests/test-math-c++.cc: Check the declaration of cbrt.
7966         * doc/posix-functions/cbrt.texi: Mention that the module provides a
7967         replacement.
7968
7969 2012-02-29  Bruno Haible  <bruno@clisp.org>
7970
7971         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
7972         * m4/hypotl-ieee.m4: New file.
7973         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
7974         test whether hypotl works with mixed NaN and Infinity arguments.
7975         Replace it if not.
7976         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
7977         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
7978         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
7979         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
7980         (Depends-on): Update conditions.
7981         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
7982         (Depends-on): Add hypot-ieee.
7983         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
7984         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
7985
7986         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
7987         * m4/hypotf-ieee.m4: New file.
7988         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
7989         test whether hypotf works with mixed NaN and Infinity arguments.
7990         Replace it if not.
7991         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
7992         (Depends-on): Add hypot-ieee.
7993         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
7994         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
7995
7996         hypot-ieee: Work around test failure on OSF/1 and native Windows.
7997         * lib/math.in.h (hypot): New declaration.
7998         * lib/hypot.c: New file.
7999         * m4/hypot-ieee.m4: New file.
8000         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
8001         whether hypot works with mixed NaN and Infinity arguments. Replace it
8002         if not.
8003         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
8004         REPLACE_HYPOT.
8005         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
8006         * modules/hypot (Files): Add lib/hypot.c.
8007         (Depends-on): Add dependencies.
8008         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
8009         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
8010         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
8011         * tests/test-math-c++.cc: Check the declaration of hypot.
8012         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
8013
8014         Tests for module 'hypotl-ieee'.
8015         * modules/hypotl-ieee-tests: New file.
8016         * tests/test-hypotl-ieee.c: New file.
8017
8018         New module 'hypotl-ieee'.
8019         * modules/hypotl-ieee: New file.
8020
8021         Tests for module 'hypot-ieee'.
8022         * modules/hypot-ieee-tests: New file.
8023         * tests/test-hypot-ieee.c: New file.
8024
8025         New module 'hypot-ieee'.
8026         * modules/hypot-ieee: New file.
8027
8028         Tests for module 'hypotf-ieee'.
8029         * modules/hypotf-ieee-tests: New file.
8030         * tests/test-hypotf-ieee.c: New file.
8031         * tests/test-hypot-ieee.h: New file.
8032
8033         New module 'hypotf-ieee'.
8034         * modules/hypotf-ieee: New file.
8035
8036 2012-02-29  Bruno Haible  <bruno@clisp.org>
8037
8038         Remove unused variables.
8039         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
8040         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
8041         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
8042         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
8043
8044 2012-02-29  Eric Blake  <eblake@redhat.com>
8045
8046         termios: fix pid_t always, not just for tcgetsid
8047         * doc/posix-headers/termios.texi (termios.h): Mention problem.
8048         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
8049         just when building tcgetsid.
8050
8051 2012-02-29  Bruno Haible  <bruno@clisp.org>
8052
8053         Tests for module 'hypotl'.
8054         * modules/hypotl-tests: New file.
8055         * tests/test-hypotl.c: New file.
8056
8057         New module 'hypotl'.
8058         * lib/math.in.h (hypotl): New declaration.
8059         * lib/hypotl.c: New file.
8060         * m4/hypotl.m4: New file.
8061         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
8062         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
8063         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
8064         * modules/hypotl: New file.
8065         * tests/test-math-c++.cc: Check the hypotl declaration.
8066         * doc/posix-functions/hypotl.texi: Mention the new module.
8067
8068 2012-02-29  Eric Blake  <eblake@redhat.com>
8069
8070         tcgetsid: fix cygwin header bug
8071         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
8072
8073         docs: update cygwin progress
8074         * doc/posix-functions/llround.texi (llround): Added in cygwin
8075         1.7.8.
8076         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
8077         * doc/glibc-functions/program_invocation_name.texi
8078         (program_invocation_name): Likewise.
8079         * doc/glibc-functions/program_invocation_short_name.texi
8080         (program_invocation_short_name): Likewise.
8081         * doc/glibc-functions/madvise.texi (madvise): Likewise.
8082         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
8083         Likewise.
8084         * doc/posix-functions/pthread_spin_destroy.texi
8085         (pthread_spin_destroy): Added in cygwin 1.7.10.
8086         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
8087         Likewise.
8088         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
8089         Likewise.
8090         * doc/posix-functions/pthread_spin_trylock.texi
8091         (pthread_spin_trylock): Likewise.
8092         * doc/posix-functions/pthread_spin_unlock.texi
8093         (pthread_spin_unlock): Likewise.
8094         * doc/posix-functions/pthread_setschedprio.texi
8095         (pthread_setschedprio): Likewise.
8096         * doc/posix-functions/pthread_attr_getstack.texi
8097         (pthread_attr_getstack): Likewise.
8098         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
8099         (pthread_attr_getstackaddr): Likewise.
8100         * doc/glibc-functions/pthread_getattr_np.texi
8101         (pthread_getattr_np): Likewise.
8102         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
8103         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
8104         * doc/posix-functions/clock_settime.texi (clock_settime):
8105         Likewise.
8106         * doc/posix-functions/pthread_attr_getguardsize.texi
8107         (pthread_attr_getguardsize): Likewise.
8108         * doc/posix-functions/pthread_attr_setguardsize.texi
8109         (pthread_attr_setguardsize): Likewise.
8110         * doc/posix-functions/pthread_attr_setstack.texi
8111         (pthread_attr_setstack): Likewise.
8112         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
8113         (pthread_attr_setstackaddr): Likewise.
8114         * doc/posix-functions/clock_getcpuclockid.texi
8115         (clock_getcpuclockid): Likewise.
8116         * doc/posix-functions/pthread_getcpuclockid.texi
8117         (pthread_getcpuclockid): Likewise.
8118         * doc/glibc-functions/error.texi (error): Likewise.
8119         * doc/glibc-functions/error_at_line.texi (error_at_line):
8120         Likewise.
8121         * doc/glibc-functions/error_message_count.texi
8122         (error_message_count): Likewise.
8123         * doc/glibc-functions/error_one_per_line.texi
8124         (error_one_per_line): Likewise.
8125         * doc/glibc-functions/error_print_progname.texi
8126         (error_print_progname): Likewise.
8127         * doc/posix-functions/pthread_condattr_getclock.texi
8128         (pthread_condattr_getclock): Likewise.
8129         * doc/posix-functions/pthread_condattr_setclock.texi
8130         (pthread_condattr_setclock): Likewise.
8131         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
8132         Likewise.
8133         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
8134         * doc/glibc-functions/getpt.texi (getpt): Likewise.
8135         * doc/glibc-functions/get_current_dir_name.texi
8136         (get_current_dir_name): Likewise.
8137         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
8138         Likewise.
8139         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
8140         wrong return type.
8141         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
8142         1.7.11.
8143
8144 2012-02-29  Bruno Haible  <bruno@clisp.org>
8145
8146         Tests for module 'hypotf'.
8147         * modules/hypotf-tests: New file.
8148         * tests/test-hypotf.c: New file.
8149
8150         New module 'hypotf'.
8151         * lib/math.in.h (hypotf): New declaration.
8152         * lib/hypotf.c: New file.
8153         * m4/hypotf.m4: New file.
8154         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
8155         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
8156         REPLACE_HYPOTF.
8157         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
8158         REPLACE_HYPOTF.
8159         * modules/hypotf: New file.
8160         * tests/test-math-c++.cc: Check the hypotf declaration.
8161         * doc/posix-functions/hypotf.texi: Mention the new module.
8162
8163         hypot: Prepare for hypotf module.
8164         * m4/hypot.m4: New file.
8165         * modules/hypot (Files): Add m4/hypot.m4.
8166         (configure.ac): Invoke gl_FUNC_HYPOT.
8167
8168 2012-02-29  Bruno Haible  <bruno@clisp.org>
8169
8170         hypot tests: More tests.
8171         * tests/test-hypot.c: Include <float.h>.
8172         (main): Add tests about overflow and underflow.
8173
8174 2012-02-29  Bruno Haible  <bruno@clisp.org>
8175
8176         math code: Add comments.
8177         * lib/acosl.c: Add comment about related glibc source files.
8178         * lib/asinl.c: Likewise.
8179         * lib/atanl.c: Likewise.
8180         * lib/expl.c: Likewise.
8181         * lib/logl.c: Likewise.
8182         * lib/sincosl.c: Likewise.
8183         * lib/sinl.c: Likewise.
8184         * lib/tanl.c: Likewise.
8185         * lib/trigl.c: Likewise.
8186         * lib/cosl.c: Likewise. Fix comments.
8187
8188 2012-02-28  Bruno Haible  <bruno@clisp.org>
8189
8190         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
8191         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
8192         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
8193         HUGE_VALL are defined.
8194         (numeric_equald): Renamed from numeric_equal.
8195         (numeric_equalf, numeric_equall): New functions.
8196         (main): Check also HUGE_VALF, HUGE_VALL.
8197         * modules/math-tests (Files): Add tests/macros.h.
8198         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
8199         HUGE_VALL.
8200
8201 2012-02-28  Bruno Haible  <bruno@clisp.org>
8202
8203         doc: Move ISO C11 feature notes into POSIX chapters.
8204         * doc/posix-functions/aligned_alloc.texi: Renamed from
8205         doc/glibc-functions/aligned_alloc.texi.
8206         * doc/posix-functions/quick_exit.texi: Renamed from
8207         doc/glibc-functions/quick_exit.texi.
8208         * doc/posix-headers/uchar.texi: Renamed from
8209         doc/glibc-headers/uchar.texi.
8210         * doc/posix-functions/c16rtomb.texi: Renamed from
8211         doc/glibc-functions/c16rtomb.texi.
8212         * doc/posix-functions/c32rtomb.texi: Renamed from
8213         doc/glibc-functions/c32rtomb.texi.
8214         * doc/posix-functions/mbrtoc16.texi: Renamed from
8215         doc/glibc-functions/mbrtoc16.texi.
8216         * doc/posix-functions/mbrtoc32.texi: Renamed from
8217         doc/glibc-functions/mbrtoc32.texi.
8218         * doc/gnulib.texi: Update.
8219         (Glibc uchar.h): Remove section.
8220         Suggested by Eric Blake.
8221
8222 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
8223
8224         stdnoreturn: port to MSVC better
8225         MSVC standard headers use __declspec(noreturn), so #define noreturn
8226         to empty on that platform.  Reported by Bruno Haible in
8227         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
8228         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
8229         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
8230
8231 2012-02-28  Bruno Haible  <bruno@clisp.org>
8232
8233         doc: Mention new glibc headers and functions.
8234         * doc/glibc-headers/uchar.texi: New file.
8235         * doc/glibc-functions/aligned_alloc.texi: New file.
8236         * doc/glibc-functions/c16rtomb.texi: New file.
8237         * doc/glibc-functions/c32rtomb.texi: New file.
8238         * doc/glibc-functions/clock_adjtime.texi: New file.
8239         * doc/glibc-functions/fanotify_init.texi: New file.
8240         * doc/glibc-functions/fanotify_mark.texi: New file.
8241         * doc/glibc-functions/inet6_opt_append.texi: New file.
8242         * doc/glibc-functions/inet6_opt_find.texi: New file.
8243         * doc/glibc-functions/inet6_opt_finish.texi: New file.
8244         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
8245         * doc/glibc-functions/inet6_opt_init.texi: New file.
8246         * doc/glibc-functions/inet6_opt_next.texi: New file.
8247         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
8248         * doc/glibc-functions/inet6_rth_add.texi: New file.
8249         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
8250         * doc/glibc-functions/inet6_rth_init.texi: New file.
8251         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
8252         * doc/glibc-functions/inet6_rth_segments.texi: New file.
8253         * doc/glibc-functions/inet6_rth_space.texi: New file.
8254         * doc/glibc-functions/login.texi: New file.
8255         * doc/glibc-functions/mbrtoc16.texi: New file.
8256         * doc/glibc-functions/mbrtoc32.texi: New file.
8257         * doc/glibc-functions/name_to_handle_at.texi: New file.
8258         * doc/glibc-functions/ntp_gettimex.texi: New file.
8259         * doc/glibc-functions/open_by_handle_at.texi: New file.
8260         * doc/glibc-functions/prlimit.texi: New file.
8261         * doc/glibc-functions/process_vm_readv.texi: New file.
8262         * doc/glibc-functions/process_vm_writev.texi: New file.
8263         * doc/glibc-functions/recvmmsg.texi: New file.
8264         * doc/glibc-functions/scandirat.texi: New file.
8265         * doc/glibc-functions/sendmmsg.texi: New file.
8266         * doc/glibc-functions/setns.texi: New file.
8267         * doc/glibc-functions/timespec_get.texi: New file.
8268         * doc/gnulib.texi: Include them.
8269         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
8270         sections.
8271         Reported by Eric Blake.
8272
8273 2012-02-28  Bruno Haible  <bruno@clisp.org>
8274
8275         Avoid compilation errors with MSVC option -fp:strict.
8276         * lib/floor.c: Use MSVC specific pragma fenv_access.
8277         * lib/ceil.c: Likewise.
8278         * lib/trunc.c: Likewise.
8279         * lib/round.c: Likewise.
8280         * lib/rint.c: Likewise.
8281         * lib/fma.c: Likewise.
8282         * lib/integer_length.c: Likewise.
8283         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
8284         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
8285         * tests/test-floor2.c: Likewise.
8286         * tests/test-floorf2.c: Likewise.
8287         * tests/test-ceil2.c: Likewise.
8288         * tests/test-ceilf2.c: Likewise.
8289         * tests/test-trunc2.c: Likewise.
8290         * tests/test-truncf2.c: Likewise.
8291         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
8292
8293 2012-02-27  Bruno Haible  <bruno@clisp.org>
8294
8295         Tests for module 'sqrtl-ieee'.
8296         * modules/sqrtl-ieee-tests: New file.
8297         * tests/test-sqrtl-ieee.c: New file.
8298
8299         New module 'sqrtl-ieee'.
8300         * modules/sqrtl-ieee: New file.
8301
8302         Tests for module 'sqrt-ieee'.
8303         * modules/sqrt-ieee-tests: New file.
8304         * tests/test-sqrt-ieee.c: New file.
8305
8306         New module 'sqrt-ieee'.
8307         * modules/sqrt-ieee: New file.
8308
8309         Tests for module 'sqrtf-ieee'.
8310         * modules/sqrtf-ieee-tests: New file.
8311         * tests/test-sqrtf-ieee.c: New file.
8312         * tests/test-sqrt-ieee.h: New file.
8313
8314         New module 'sqrtf-ieee'.
8315         * modules/sqrtf-ieee: New file.
8316
8317 2012-02-27  Bruno Haible  <bruno@clisp.org>
8318
8319         remainderl-ieee: Work around test failure on OSF/1.
8320         * m4/remainderl-ieee.m4: New file.
8321         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
8322         present, test whether remainderl works with a zero second argument.
8323         Replace it if not.
8324         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
8325         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
8326         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
8327         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
8328         (Depends-on): Update conditions.
8329         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
8330         (Depends-on): Add remainder-ieee.
8331         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
8332         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
8333         module.
8334
8335         remainderf-ieee: Work around test failure on OSF/1.
8336         * m4/remainderf-ieee.m4: New file.
8337         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
8338         present, test whether remainderf works with a zero second argument.
8339         Replace it if not.
8340         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
8341         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
8342         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
8343         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
8344         (Depends-on): Update conditions.
8345         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
8346         (Depends-on): Add remainder-ieee.
8347         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
8348         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
8349         module.
8350
8351         remainder-ieee: Work around test failure on OSF/1.
8352         * m4/remainder-ieee.m4: New file.
8353         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
8354         present, test whether remainder works with a zero second argument.
8355         Replace it if not.
8356         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
8357         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
8358         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
8359         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
8360         (Depends-on): Update dependencies.
8361         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
8362         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
8363         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
8364
8365         Tests for module 'remainderl-ieee'.
8366         * modules/remainderl-ieee-tests: New file.
8367         * tests/test-remainderl-ieee.c: New file.
8368
8369         New module 'remainderl-ieee'.
8370         * modules/remainderl-ieee: New file.
8371
8372         Tests for module 'remainder-ieee'.
8373         * modules/remainder-ieee-tests: New file.
8374         * tests/test-remainder-ieee.c: New file.
8375
8376         New module 'remainder-ieee'.
8377         * modules/remainder-ieee: New file.
8378
8379         Tests for module 'remainderf-ieee'.
8380         * modules/remainderf-ieee-tests: New file.
8381         * tests/test-remainderf-ieee.c: New file.
8382         * tests/test-remainder-ieee.h: New file.
8383
8384         New module 'remainderf-ieee'.
8385         * modules/remainderf-ieee: New file.
8386
8387 2012-02-27  Bruno Haible  <bruno@clisp.org>
8388
8389         modff, modfl: Fix configure syntax error.
8390         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
8391         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
8392
8393 2012-02-27  Bruno Haible  <bruno@clisp.org>
8394
8395         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
8396         * m4/fmodl-ieee.m4: New file.
8397         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
8398         whether fmodl works with zero arguments. Replace it if not.
8399         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
8400         (Depends-on): Add fmod-ieee.
8401         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
8402         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
8403
8404         fmodf-ieee: Work around test failure on OSF/1.
8405         * m4/fmodf-ieee.m4: New file.
8406         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
8407         whether fmodf works with zero arguments. Replace it if not.
8408         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
8409         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
8410         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
8411         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
8412         (Depends-on): Update dependencies.
8413         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
8414         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
8415         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
8416
8417         fmodf-ieee: Work around test failure on MSVC 9.
8418         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
8419         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
8420
8421         fmod-ieee: Work around test failures on OSF/1, mingw.
8422         * m4/fmod-ieee.m4: New file.
8423         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
8424         whether fmod works with zero arguments. Replace it if not.
8425         * lib/math.in.h (fmod): New declaration.
8426         * lib/fmod.c: New file.
8427         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
8428         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
8429         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
8430         * modules/fmod (Files): Add lib/fmod.c.
8431         (Depends-on): Add math, isinf, trunc, fma.
8432         (configure.ac): Arrange to compile lib/fmod.c if needed.
8433         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
8434         m4/signbit.m4.
8435         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
8436         * tests/test-math-c++.cc: Check the declaration of fmod.
8437         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
8438
8439         fmodl-ieee: Fix test failures.
8440         * lib/fmodl.c (fmodl): Treat Inf specially.
8441         * modules/fmodl (Depends-on): Add isinf.
8442
8443         Tests for module 'fmodl-ieee'.
8444         * modules/fmodl-ieee-tests: New file.
8445         * tests/test-fmodl-ieee.c: New file.
8446
8447         New module 'fmodl-ieee'.
8448         * modules/fmodl-ieee: New file.
8449
8450         Tests for module 'fmod-ieee'.
8451         * modules/fmod-ieee-tests: New file.
8452         * tests/test-fmod-ieee.c: New file.
8453
8454         New module 'fmod-ieee'.
8455         * modules/fmod-ieee: New file.
8456
8457         Tests for module 'fmodf-ieee'.
8458         * modules/fmodf-ieee-tests: New file.
8459         * tests/test-fmodf-ieee.c: New file.
8460         * tests/test-fmod-ieee.h: New file.
8461
8462         New module 'fmodf-ieee'.
8463         * modules/fmodf-ieee: New file.
8464
8465 2012-02-27  Bruno Haible  <bruno@clisp.org>
8466
8467         Tests for module 'rintl-ieee'.
8468         * modules/rintl-ieee-tests: New file.
8469         * tests/test-rintl-ieee.c: New file.
8470
8471         New module 'rintl-ieee'.
8472         * modules/rintl-ieee: New file.
8473
8474         Tests for module 'rint-ieee'.
8475         * modules/rint-ieee-tests: New file.
8476         * tests/test-rint-ieee.c: New file.
8477
8478         New module 'rint-ieee'.
8479         * modules/rint-ieee: New file.
8480
8481         Tests for module 'rintf-ieee'.
8482         * modules/rintf-ieee-tests: New file.
8483         * tests/test-rintf-ieee.c: New file.
8484         * tests/test-rint-ieee.h: New file.
8485
8486         New module 'rintf-ieee'.
8487         * modules/rintf-ieee: New file.
8488
8489 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
8490
8491         regex: re_search etc. should return -2 when memory exhausted
8492         This bug was uncovered when testing 'grep'.  Without the fix,
8493         re_search and friends return -1 when memory is exhausted, but -1
8494         means no match, and this causes grep to falsely report no-match
8495         instead of memory-exhaustion.  See
8496         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
8497         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
8498         trouble; this can occur if re_search_internal ran out of memory.
8499
8500 2012-02-26  Bruno Haible  <bruno@clisp.org>
8501
8502         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
8503         * m4/modfl-ieee.m4: New file.
8504         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
8505         whether modfl works with Inf. Replace it if not.
8506         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
8507         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
8508         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
8509         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
8510         (Depends-on): Update dependencies.
8511         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
8512         m4/signbit.m4.
8513         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
8514         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
8515
8516         modfl-ieee: Fix dependencies.
8517         * modules/modfl-ieee (Depends-on): Add modf-ieee.
8518
8519         modfl-ieee: Fix test failures.
8520         * lib/modfl.c (modfl): Treat NaN and Inf specially.
8521         * modules/modfl (Depends-on): Add isfinite, isinf.
8522
8523         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
8524         * m4/modff-ieee.m4: New file.
8525         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
8526         whether modff works with NaN and Inf. Replace it if not.
8527         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
8528         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
8529         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
8530         * modules/modff (configure.ac): Consider REPLACE_MODFF.
8531         (Depends-on): Update dependencies.
8532         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
8533         m4/signbit.m4.
8534         (Depends-on): Add modf-ieee.
8535         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
8536         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
8537
8538         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
8539         * m4/modf-ieee.m4: New file.
8540         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
8541         whether modf works with NaN and Inf. Replace it if not.
8542         * lib/math.in.h (modf): New declaration.
8543         * lib/modf.c: New file.
8544         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
8545         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
8546         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
8547         * modules/modf (Files): Add lib/modf.c.
8548         (Depends-on): Add math, isfinite, trunc, isinf.
8549         (configure.ac): Addrange to compile lib/modf.c if needed.
8550         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
8551         m4/signbit.m4.
8552         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
8553         * tests/test-math-c++.cc: Check the declaration of modf.
8554         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
8555
8556         Tests for module 'modfl-ieee'.
8557         * modules/modfl-ieee-tests: New file.
8558         * tests/test-modfl-ieee.c: New file.
8559
8560         New module 'modfl-ieee'.
8561         * modules/modfl-ieee: New file.
8562
8563         Tests for module 'modf-ieee'.
8564         * modules/modf-ieee-tests: New file.
8565         * tests/test-modf-ieee.c: New file.
8566
8567         New module 'modf-ieee'.
8568         * modules/modf-ieee: New file.
8569
8570         Tests for module 'modff-ieee'.
8571         * modules/modff-ieee-tests: New file.
8572         * tests/test-modff-ieee.c: New file.
8573         * tests/test-modf-ieee.h: New file.
8574
8575         New module 'modff-ieee'.
8576         * modules/modff-ieee: New file.
8577
8578 2012-02-26  Bruno Haible  <bruno@clisp.org>
8579
8580         Tests for module 'fabsl-ieee'.
8581         * modules/fabsl-ieee-tests: New file.
8582         * tests/test-fabsl-ieee.c: New file.
8583
8584         New module 'fabsl-ieee'.
8585         * modules/fabsl-ieee: New file.
8586
8587         Tests for module 'fabs-ieee'.
8588         * modules/fabs-ieee-tests: New file.
8589         * tests/test-fabs-ieee.c: New file.
8590
8591         New module 'fabs-ieee'.
8592         * modules/fabs-ieee: New file.
8593
8594         Tests for module 'fabsf-ieee'.
8595         * modules/fabsf-ieee-tests: New file.
8596         * tests/test-fabsf-ieee.c: New file.
8597         * tests/test-fabs-ieee.h: New file.
8598
8599         New module 'fabsf-ieee'.
8600         * modules/fabsf-ieee: New file.
8601
8602 2012-02-26  Bruno Haible  <bruno@clisp.org>
8603
8604         Tests for module 'fmal-ieee'.
8605         * modules/fmal-ieee-tests: New file.
8606         * tests/test-fmal-ieee.c: New file.
8607
8608         New module 'fmal-ieee'.
8609         * modules/fmal-ieee: New file.
8610
8611         Tests for module 'fma-ieee'.
8612         * modules/fma-ieee-tests: New file.
8613         * tests/test-fma-ieee.c: New file.
8614
8615         New module 'fma-ieee'.
8616         * modules/fma-ieee: New file.
8617
8618         Tests for module 'fmaf-ieee'.
8619         * modules/fmaf-ieee-tests: New file.
8620         * tests/test-fmaf-ieee.c: New file.
8621         * tests/test-fma-ieee.h: New file.
8622
8623         New module 'fmaf-ieee'.
8624         * modules/fmaf-ieee: New file.
8625
8626 2012-02-26  Bruno Haible  <bruno@clisp.org>
8627
8628         Tests for module 'ldexpl-ieee'.
8629         * modules/ldexpl-ieee-tests: New file.
8630         * tests/test-ldexpl-ieee.c: New file.
8631
8632         New module 'ldexpl-ieee'.
8633         * modules/ldexpl-ieee: New file.
8634
8635         Tests for module 'ldexp-ieee'.
8636         * modules/ldexp-ieee-tests: New file.
8637         * tests/test-ldexp-ieee.c: New file.
8638
8639         New module 'ldexp-ieee'.
8640         * modules/ldexp-ieee: New file.
8641
8642         Tests for module 'ldexpf-ieee'.
8643         * modules/ldexpf-ieee-tests: New file.
8644         * tests/test-ldexpf-ieee.c: New file.
8645         * tests/test-ldexp-ieee.h: New file.
8646
8647         New module 'ldexpf-ieee'.
8648         * modules/ldexpf-ieee: New file.
8649
8650 2012-02-26  Bruno Haible  <bruno@clisp.org>
8651
8652         Refactor frexp*-ieee tests.
8653         * tests/test-frexp-ieee.h: New file.
8654         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
8655         (main): Just call test_function.
8656         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
8657         (main): Just call test_function.
8658         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
8659         (main): Just call test_function.
8660         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
8661         * modules/frexp-ieee-tests (Files): Likewise.
8662         * modules/frexpl-ieee-tests (Files): Likewise.
8663
8664         Tests for module 'frexpl-ieee'.
8665         * modules/frexpl-ieee-tests: New file.
8666         * tests/test-frexpl-ieee.c: New file.
8667
8668         New module 'frexpl-ieee'.
8669         * modules/frexpl-ieee: New file.
8670
8671         Tests for module 'frexp-ieee'.
8672         * modules/frexp-ieee-tests: New file.
8673         * tests/test-frexp-ieee.c: New file.
8674
8675         New module 'frexp-ieee'.
8676         * modules/frexp-ieee: New file.
8677
8678         Tests for module 'frexpf-ieee'.
8679         * modules/frexpf-ieee-tests: New file.
8680         * tests/test-frexpf-ieee.c: New file.
8681
8682         New module 'frexpf-ieee'.
8683         * modules/frexpf-ieee: New file.
8684
8685 2012-02-26  Bruno Haible  <bruno@clisp.org>
8686
8687         roundl-ieee tests: More tests.
8688         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
8689         (main): Add tests for [MX] shaded specification in POSIX.
8690         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8691         (Depends-on): Add isnanl-nolibm.
8692
8693         round-ieee tests: More tests.
8694         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
8695         (main): Add tests for [MX] shaded specification in POSIX.
8696         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8697         (Depends-on): Add isnand-nolibm.
8698
8699         roundf-ieee tests: More tests.
8700         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
8701         (main): Add tests for [MX] shaded specification in POSIX.
8702         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8703         (Depends-on): Add isnanf-nolibm.
8704
8705         truncl-ieee tests: More tests.
8706         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
8707         (main): Add tests for [MX] shaded specification in POSIX.
8708         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8709         (Depends-on): Add isnanl-nolibm.
8710
8711         trunc-ieee tests: More tests.
8712         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
8713         (main): Add tests for [MX] shaded specification in POSIX.
8714         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8715         (Depends-on): Add isnand-nolibm.
8716
8717         truncf-ieee tests: More tests.
8718         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
8719         (main): Add tests for [MX] shaded specification in POSIX.
8720         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8721         (Depends-on): Add isnanf-nolibm.
8722
8723         ceill-ieee tests: More tests.
8724         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
8725         (main): Add tests for [MX] shaded specification in POSIX.
8726         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8727         (Depends-on): Add isnanl-nolibm.
8728
8729         ceil-ieee tests: More tests.
8730         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
8731         (main): Add tests for [MX] shaded specification in POSIX.
8732         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8733         (Depends-on): Add isnand-nolibm.
8734
8735         ceilf-ieee tests: More tests.
8736         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
8737         (main): Add tests for [MX] shaded specification in POSIX.
8738         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8739         (Depends-on): Add isnanf-nolibm.
8740
8741         floorl-ieee tests: More tests.
8742         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
8743         (main): Add tests for [MX] shaded specification in POSIX.
8744         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8745         (Depends-on): Add isnanl-nolibm.
8746
8747         floor-ieee tests: More tests.
8748         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
8749         (main): Add tests for [MX] shaded specification in POSIX.
8750         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8751         (Depends-on): Add isnand-nolibm.
8752
8753         floorf-ieee tests: More tests.
8754         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
8755         (main): Add tests for [MX] shaded specification in POSIX.
8756         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8757         (Depends-on): Add isnanf-nolibm.
8758
8759 2012-02-26  Bruno Haible  <bruno@clisp.org>
8760
8761         fpieee: More comments.
8762         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
8763
8764 2012-02-25  Bruno Haible  <bruno@clisp.org>
8765
8766         Tests for module 'log10l'.
8767         * modules/log10l-tests: New file.
8768         * tests/test-log10l.c: New file.
8769         * tests/test-math-c++.cc: Check the declaration of log10l.
8770
8771         New module 'log10l'.
8772         * lib/math.in.h (log10l): New declaration.
8773         * lib/log10l.c: New file.
8774         * m4/log10l.m4: New file.
8775         * modules/log10l: New file.
8776         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
8777         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
8778         HAVE_DECL_LOG10L.
8779         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
8780         HAVE_DECL_LOG10L.
8781         * doc/posix-functions/log10l.texi: Mention the new module.
8782
8783 2012-02-25  Bruno Haible  <bruno@clisp.org>
8784
8785         fmodl, remainder*: Avoid wrong results due to rounding errors.
8786         * lib/fmodl.c (fmodl): Correct the result if it is not within the
8787         expected bounds.
8788         * lib/remainderf.c (remainderf): Likewise.
8789         * lib/remainder.c (remainder): Likewise.
8790         * lib/remainderl.c (remainderl): Likewise.
8791
8792 2012-02-25  Bruno Haible  <bruno@clisp.org>
8793
8794         Tests for module 'remainderl'.
8795         * modules/remainderl-tests: New file.
8796         * tests/test-remainderl.c: New file.
8797         * tests/test-math-c++.cc: Check the declaration of remainderl.
8798
8799         New module 'remainderl'.
8800         * lib/math.in.h (remainderl): New declaration.
8801         * lib/remainderl.c: New file.
8802         * m4/remainderl.m4: New file.
8803         * modules/remainderl: New file.
8804         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
8805         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
8806         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
8807         HAVE_REMAINDERL.
8808         * doc/posix-functions/remainderl.texi: Mention the new module.
8809
8810 2012-02-25  Bruno Haible  <bruno@clisp.org>
8811
8812         Tests for module 'remainderf'.
8813         * modules/remainderf-tests: New file.
8814         * tests/test-remainderf.c: New file.
8815         * tests/test-math-c++.cc: Check the declaration of remainderf.
8816
8817         New module 'remainderf'.
8818         * lib/math.in.h (remainderf): New declaration.
8819         * lib/remainderf.c: New file.
8820         * m4/remainderf.m4: New file.
8821         * modules/remainderf: New file.
8822         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
8823         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
8824         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
8825         HAVE_REMAINDERF.
8826         * doc/posix-functions/remainderf.texi: Mention the new module.
8827
8828 2012-02-25  Bruno Haible  <bruno@clisp.org>
8829
8830         remainder: Support for MSVC.
8831         * lib/math.in.h (remainder): New declaration.
8832         * lib/remainder.c: New file.
8833         * m4/remainder.m4: New file.
8834         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
8835         (Depends-on): Add math, round, fma.
8836         (configure.ac): Use results of gl_FUNC_REMAINDER.
8837         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
8838         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
8839         HAVE_DECL_REMAINDER.
8840         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
8841         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
8842         * tests/test-math-c++.cc: Check the declaration of remainder.
8843         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
8844         problems are fixed.
8845
8846 2012-02-25  Bruno Haible  <bruno@clisp.org>
8847
8848         Tests for module 'fmodl'.
8849         * modules/fmodl-tests: New file.
8850         * tests/test-fmodl.c: New file.
8851         * tests/test-math-c++.cc: Check the declaration of fmodl.
8852
8853         New module 'fmodl'.
8854         * lib/math.in.h (fmodl): New declaration.
8855         * lib/fmodl.c: New file.
8856         * m4/fmodl.m4: New file.
8857         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
8858         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
8859         REPLACE_FMODL.
8860         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
8861         REPLACE_FMODL.
8862         * modules/fmodl: New file.
8863         * doc/posix-functions/fmodl.texi: Mention the new module.
8864
8865 2012-02-25  Bruno Haible  <bruno@clisp.org>
8866
8867         Tests for module 'modfl'.
8868         * modules/modfl-tests: New file.
8869         * tests/test-modfl.c: New file.
8870         * tests/test-math-c++.cc: Check the declaration of modfl.
8871
8872         New module 'modfl'.
8873         * lib/math.in.h (modfl): New declaration.
8874         * lib/modfl.c: New file.
8875         * m4/modfl.m4: New file.
8876         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
8877         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
8878         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
8879         * modules/modfl: New file.
8880         * doc/posix-functions/modfl.texi: Mention the new module.
8881
8882 2012-02-25  Bruno Haible  <bruno@clisp.org>
8883
8884         Tests for module 'fabsl'.
8885         * modules/fabsl-tests: New file.
8886         * tests/test-fabsl.c: New file.
8887         * tests/test-math-c++.cc: Check the declaration of fabsl.
8888
8889         New module 'fabsl'.
8890         * lib/math.in.h (fabsl): New declaration.
8891         * lib/fabsl.c: New file.
8892         * m4/fabsl.m4: New file.
8893         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
8894         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
8895         REPLACE_FABSL.
8896         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
8897         REPLACE_FABSL.
8898         * modules/fabsl: New file.
8899         * doc/posix-functions/fabsl.texi: Mention the new module.
8900
8901 2012-02-25  Bruno Haible  <bruno@clisp.org>
8902
8903         fabs tests: More tests.
8904         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
8905         (zero): New variable.
8906         (main): Add tests for signed zero.
8907         * modules/fabs-tests (Files): Add tests/minus-zero.h.
8908
8909         fabsf tests: More tests.
8910         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
8911         (zero): New variable.
8912         (main): Add tests for signed zero.
8913         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
8914
8915 2012-02-24  Bruno Haible  <bruno@clisp.org>
8916
8917         atanl: Provide function definition on MSVC.
8918         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
8919         function pointer.
8920         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
8921
8922 2012-02-24  Bruno Haible  <bruno@clisp.org>
8923
8924         acosl: Provide function definition on MSVC.
8925         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
8926         function pointer.
8927         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
8928
8929 2012-02-24  Bruno Haible  <bruno@clisp.org>
8930
8931         asinl: Provide function definition on MSVC.
8932         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
8933         function pointer.
8934         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
8935
8936 2012-02-24  Bruno Haible  <bruno@clisp.org>
8937
8938         tanl: Provide function definition on MSVC.
8939         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
8940         function pointer.
8941         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
8942
8943 2012-02-24  Bruno Haible  <bruno@clisp.org>
8944
8945         cosl: Provide function definition on MSVC.
8946         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
8947         function pointer.
8948         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
8949
8950 2012-02-24  Bruno Haible  <bruno@clisp.org>
8951
8952         sinl: Provide function definition on MSVC.
8953         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
8954         function pointer.
8955         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
8956
8957 2012-02-24  Bruno Haible  <bruno@clisp.org>
8958
8959         logl: Provide function definition on MSVC.
8960         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
8961         function pointer.
8962         * lib/math.in.h (logl): Undefine if it does not exist as a function.
8963
8964 2012-02-24  Bruno Haible  <bruno@clisp.org>
8965
8966         expl: Provide function definition on MSVC.
8967         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
8968         function pointer.
8969         * lib/math.in.h (expl): Undefine if it does not exist as a function.
8970
8971 2012-02-24  Bruno Haible  <bruno@clisp.org>
8972
8973         sqrtl: Provide function definition on MSVC.
8974         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
8975         a function pointer.
8976         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
8977
8978 2012-02-24  Bruno Haible  <bruno@clisp.org>
8979
8980         ceill: Provide function definition on MSVC.
8981         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
8982         used as a function pointer.
8983         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
8984
8985 2012-02-24  Bruno Haible  <bruno@clisp.org>
8986
8987         floorl: Provide function definition on MSVC.
8988         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
8989         used as a function pointer.
8990         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
8991
8992 2012-02-24  Bruno Haible  <bruno@clisp.org>
8993
8994         ceilf: Provide function definition on MSVC.
8995         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
8996         used as a function pointer.
8997         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
8998
8999 2012-02-24  Bruno Haible  <bruno@clisp.org>
9000
9001         floorf: Provide function definition on MSVC.
9002         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
9003         used as a function pointer.
9004         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
9005
9006 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
9007
9008         stdnoreturn: new module
9009         This implements a replacement for C11's <stdnoreturn.h>.
9010         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
9011         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
9012         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
9013         * tests/test-stdnoreturn.c: New files.
9014
9015 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
9016
9017         regex: fix false multibyte matches in some regular expressions
9018         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
9019         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
9020         * lib/regex_internal.c (re_string_skip_chars):
9021         Fix miscomputation of remain_len that may cause incomplete
9022         multi-byte character and false match.
9023
9024 2012-02-24  Jim Meyering  <meyering@redhat.com>
9025
9026         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
9027         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
9028         uses with "==" *before* the call, e.g., 0 == strcmp (...)
9029         Remove now-unnecessary str''cmp obfuscation.
9030         Suggested by Akim Demaille.
9031
9032 2012-02-24  Bruno Haible  <bruno@clisp.org>
9033
9034         streq: Rename macro.
9035         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
9036         * NEWS: Mention the change.
9037         * lib/mbrtowc.c (mbrtowc): Update.
9038         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
9039         * lib/wcwidth.c (wcwidth): Update.
9040         Suggested by Akim Demaille and Jim Meyering.
9041
9042 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
9043
9044         regex: fix typo in definition of MIN
9045         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
9046         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
9047
9048 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
9049             Bruno Haible  <bruno@clisp.org>
9050
9051         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
9052         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
9053         entries into a stack-allocated buffer directly.
9054         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
9055
9056 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
9057             Bruno Haible  <bruno@clisp.org>
9058
9059         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
9060
9061          - There were several instances of this pattern:
9062
9063              for (;;) {
9064                n = acl (f, GETACLCNT, 0, NULL);
9065                [ allocate an array A of size N ]
9066                if (acl (f, GETACL, n, a) == n)
9067                  break;
9068              }
9069
9070            This loop might never terminate if some other process is constantly
9071            manipulating the file's ACL.  The loop should be rewritten to
9072            terminate.
9073
9074          - The acl (... GETACLNT ...) call is merely an optimization; its value
9075            is merely a hint as to how big to make the array.  A better
9076            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
9077            and just guess a reasonably-big size, growing the size and trying
9078            again if it's not large enough.  This guarantees termination, and
9079            saves a system call.
9080
9081         * lib/acl-internal.h: Include <limits.h>.
9082         (MIN, SIZE_MAX): New macros.
9083         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
9084         a stack-allocated buffer, and use malloc if it does not fit. Don't
9085         use GETACLCNT.
9086         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
9087
9088 2012-02-19  Bruno Haible  <bruno@clisp.org>
9089
9090         acl: Fix endless loop on Solaris with vxfs.
9091         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
9092         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
9093         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
9094         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
9095         * tests/test-sameacls.c (main)[Solaris]: Likewise.
9096         Reported by Bill Jones in
9097         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
9098
9099 2012-02-19  Bruno Haible  <bruno@clisp.org>
9100
9101         acl: Fix copy-acl test failure on Solaris 11 2011-11.
9102         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
9103         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
9104         that this function returns 0 in some more cases.
9105
9106 2012-02-19  Bruno Haible  <bruno@clisp.org>
9107
9108         acl: Update doc references.
9109         * doc/acl-resources.txt: Update links to Solaris documentation.
9110
9111 2012-02-19  Bruno Haible  <bruno@clisp.org>
9112
9113         Fix test failure in many locales on Solaris 11.
9114         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
9115         'tr' arguments.
9116         * tests/test-pipe-filter-ii1.c (main): Likewise.
9117         * build-aux/bootstrap (check_versions): Run 'tr' command with range
9118         expressions in the C locale.
9119         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
9120         * m4/host-os.m4 (gl_HOST_OS): Likewise.
9121
9122 2012-02-19  Bruno Haible  <bruno@clisp.org>
9123
9124         gnulib-tool: Improve usage message.
9125         * gnulib-tool (func_usage): Move doc of --help and --version to the
9126         section "Operation modes".
9127
9128 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
9129
9130         README-release: make it easier to execute commands
9131         * top/README-release: break commands out on to separate lines.
9132
9133 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
9134
9135         GNUmakefile: simplify detection of unconfigured trees
9136         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
9137         whether the tree make is being run from is already configured or
9138         not.  Related simplifications.
9139
9140 2012-02-13  Simon Josefsson  <simon@josefsson.org>
9141
9142         * gnulib-tool (func_usage): Document --help and --version.
9143
9144 2012-02-11  Jim Meyering  <meyering@redhat.com>
9145
9146         bootstrap: don't exit 0 upon gnulib-tool failure
9147         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
9148         its exit status, not 0.
9149
9150 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
9151
9152         README-release: various improvements
9153         * top/README-release: Give a command to push changes for the
9154         release.  Add "distcheck" to list of other pre-release checks.
9155         Fix instance of "make stable" which should be "make TYPE".
9156
9157 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
9158
9159         maint: replace FSF snail-mail addresses with URLs
9160         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
9161         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
9162         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
9163         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
9164         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
9165         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
9166         * lib/check-version.c, lib/check-version.h, lib/config.charset:
9167         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
9168         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
9169         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
9170         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
9171         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
9172         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
9173         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
9174         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
9175         * lib/glthread/thread.c, lib/glthread/thread.h:
9176         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
9177         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
9178         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
9179         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
9180         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
9181         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
9182         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
9183         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
9184         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
9185         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
9186         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
9187         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
9188         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
9189         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
9190         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
9191         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
9192         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
9193         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
9194         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
9195         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
9196         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
9197         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
9198         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
9199         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
9200         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
9201         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
9202         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
9203         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
9204         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
9205         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
9206         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
9207         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
9208         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
9209         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
9210         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
9211         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
9212         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
9213         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
9214         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
9215         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
9216         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
9217         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
9218         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
9219         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
9220         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
9221         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
9222         * tests/test-poll.c, tests/test-quotearg-simple.c:
9223         * tests/test-quotearg.c, tests/test-quotearg.h:
9224         * tests/test-round-ieee.c, tests/test-round1.c:
9225         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
9226         * tests/test-roundl-ieee.c, tests/test-roundl.c:
9227         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
9228         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
9229         * tests/test-strerror.c, tests/test-strerror_r.c:
9230         * tests/test-strsignal.c, tests/test-strverscmp.c:
9231         * tests/test-xmemdup0.c:
9232         Replace FSF snail mail addresses with URLs, as per GNU coding
9233         standards.  See glibc bug
9234         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
9235
9236 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
9237
9238         README-release: capitalize a word and split a line
9239         * top/README-release: Fix punctuation and spacing.
9240
9241 2012-02-08  Akim Demaille  <demaille@gostai.com>
9242
9243         fatal-signal: use C prototypes (with explicit void).
9244         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
9245         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
9246
9247 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
9248
9249         regex: spelling fix
9250         * lib/regexec.c: spelling fix
9251
9252         regex: rely on stdint.h for SIZE_MAX
9253         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
9254
9255 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
9256
9257         regex: merge glibc changes
9258
9259         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
9260         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
9261         (init_word_char): Work even if bitset words are not exactly 32 or
9262         64 bits wide.  Don't assume there are no padding bits.
9263         * lib/regex.c [_LIBC]: Do not include <config.h>.
9264         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
9265         and -Wtype-limits.
9266         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
9267         needless disagreement with glibc.  All uses changed.  Define it to
9268         1 only if _GNU_SOURCE, to match glibc.
9269         (_REG_RM_NAME): Remove; no longer needed, since the names in
9270         question are now all protected by __USE_GNU.
9271         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
9272         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
9273         * lib/regex_internal.h (MIN): New macro.
9274
9275         2012-01-03 Ulrich Drepper <drepper@gmail.com>
9276         * lib/regcomp.c (init_word_char): Optimize regex a bit.
9277
9278         2011-12-30 Jakub Jelinek <jakub@redhat.com>
9279         * lib/regex_internal.c (re_string_fetch_byte_case):
9280         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
9281         is miscompiled, and it turns out it is because of an incorrect
9282         attribute on re_string_fetch_byte_case.  Unlike
9283         re_string_peek_byte_case, this one is really not pure, it modifies
9284         memory (increments pstr->cur_idx), and with the pure attribute GCC
9285         assumed it doesn't and it cached the presumed value of
9286         regexp->cur_idx in a variable across the
9287          for (;; ++i)
9288            {
9289              if (i >= BRACKET_NAME_BUF_SIZE)
9290                return REG_EBRACK;
9291              if (token->type == OP_OPEN_CHAR_CLASS)
9292                ch = re_string_fetch_byte_case (regexp);
9293              else
9294                ch = re_string_fetch_byte (regexp);
9295              if (re_string_eoi(regexp))
9296                return REG_EBRACK;
9297              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
9298                break;
9299              elem->opr.name[i] = ch;
9300            }
9301
9302         2011-11-29 Andreas Schwab <schwab@redhat.com>
9303         * lib/regcomp.c (build_equiv_class):
9304         Fix access after end of search string in regex matcher.
9305
9306         2011-11-12 Ulrich Drepper <drepper@redhat.com>
9307         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
9308
9309         2011-10-12 Ulrich Drepper <drepper@redhat.com>
9310         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
9311
9312         2011-10-11 Ulrich Drepper <drepper@redhat.com>
9313         * lib/regcomp.c (parse_branch, parse_sub_exp):
9314         More regex memory leak fixes and tests.
9315         (parse_sub_exp, parse_bracket_exp):
9316         Fix memory leak for some invalid regular expressions.
9317
9318         2011-05-28 Ulrich Drepper <drepper@gmail.com>
9319         * lib/regex_internal.c, lib/regexec.c:
9320         Fix unnecessary overallocation due to incomplete character.  When
9321         incomplete characters are found at the end of a string the code
9322         ran amok and allocated lots of memory.  Stricter limits are now in
9323         place.
9324
9325         2011-05-20 Reuben Thomas <rrt@sc3d.org>
9326         * lib/regex.h: Update documentation.
9327
9328         2011-05-16 Aharon Robbins <arnold@skeeve.com>
9329         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
9330
9331         2010-05-05 Andreas Schwab <schwab@redhat.com>
9332         * lib/regexec.c (find_collation_sequence_value):
9333         Fix lookup of collation sequence value during regexp matching.
9334
9335         2010-01-22 Ulrich Drepper <drepper@redhat.com>
9336         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
9337
9338         2008-01-16 Ulrich Drepper <drepper@redhat.com>
9339         * lib/regex.h: Cleanup namespace.
9340
9341         2007-11-26 Ulrich Drepper <drepper@redhat.com>
9342         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
9343
9344         2007-08-26 Ulrich Drepper <drepper@redhat.com>
9345         * lib/regex_internal.h: Prevent some declarations and definitions
9346         to be seen when used in tests.
9347
9348         2005-05-06 Ulrich Drepper <drepper@redhat.com>
9349         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
9350         __libc_lock_* macros if not _LIBC.
9351         (struct re_dfa_t): Add lock.
9352
9353 2012-02-07  Eric Blake  <eblake@redhat.com>
9354
9355         maint.mk: also prohibit lower-case @var@
9356         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
9357         lower case, like @top_srcdir@.
9358
9359 2012-02-04  Eric Blake  <eblake@redhat.com>
9360
9361         canonicalize: avoid uninitialized memory use
9362         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
9363         random '/' left in dest.
9364         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
9365
9366 2012-02-04  Bruno Haible  <bruno@clisp.org>
9367
9368         isatty: Fix test failure of ptsname_r on native Windows.
9369         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
9370         and don't set errno.
9371         (isatty): Test first whether fd is valid. Set errno when returning 0.
9372
9373 2012-02-04  Bruno Haible  <bruno@clisp.org>
9374
9375         spawn-pipe tests: Fix a NULL program name in a diagnostic.
9376         * tests/test-spawn-pipe-main.c: Include progname.h.
9377         (main): Invoke set_program_name.
9378         * modules/spawn-pipe-tests (Depends-on): Add progname.
9379
9380         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
9381         * tests/test-nonblocking-socket-main.c: Include progname.h.
9382         (main): Invoke set_program_name.
9383         * modules/nonblocking-socket-tests (Depends-on): Add progname.
9384
9385         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
9386         * tests/test-nonblocking-pipe-main.c: Include progname.h.
9387         (main): Invoke set_program_name.
9388         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
9389
9390 2012-02-04  Eric Blake  <eblake@redhat.com>
9391
9392         canonicalize-lgpl: fix // handling
9393         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
9394
9395         canonicalize: fix // handling
9396         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
9397         /// to //, since only // is special.
9398
9399 2012-02-04  Bruno Haible  <bruno@clisp.org>
9400
9401         ioctl: Fix test failure on native Windows.
9402         * lib/ioctl.c: Include msvc-nothrow.h.
9403         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
9404
9405 2012-02-04  Bruno Haible  <bruno@clisp.org>
9406
9407         fsync: Avoid test failure on native Windows.
9408         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
9409         read-only.
9410
9411 2012-02-04  Bruno Haible  <bruno@clisp.org>
9412
9413         sys_select: Avoid syntax error on OpenBSD 5.0.
9414         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
9415         currently being included, just include the system's <sys/select.h>.
9416
9417 2012-02-04  Bruno Haible  <bruno@clisp.org>
9418
9419         sys_select: Avoid syntax error on OpenBSD 5.0.
9420         * lib/sys_select.in.h: Include <signal.h> only after the include_next
9421         <sys/select.h>, not before.
9422         Reported by Jiri B <jirib@devio.us>.
9423
9424 2012-02-04  Bruno Haible  <bruno@clisp.org>
9425
9426         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
9427         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
9428         global variables.
9429         * tests/test-get-rusage-data.c (main): Likewise.
9430         Reported by Jim Meyering.
9431
9432 2012-02-04  Bruno Haible  <bruno@clisp.org>
9433
9434         stdioext: Fix last commit.
9435         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
9436
9437 2012-02-03  Bruno Haible  <bruno@clisp.org>
9438
9439         stdioext: Add tentative support for Plan9.
9440         * lib/stdio-impl.h: Include <errno.h>.
9441         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
9442         * lib/freadable.c (freadable): Likewise.
9443         * lib/fwritable.c (fwritable): Likewise.
9444         * lib/fbufmode.c (fbufmode): Likewise.
9445         * lib/freading.c (freading): Likewise.
9446         * lib/fwriting.c (fwriting): Likewise.
9447         * lib/freadptr.c (freadptr): Likewise.
9448         * lib/freadseek.c (freadptrinc): Likewise.
9449         * lib/freadahead.c (freadahead): Likewise.
9450         * lib/fpurge.c (fpurge): Likewise.
9451         * lib/fseeko.c (rpl_fseeko): Likewise.
9452         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
9453         Reported by Jens Staal <staal1978@gmail.com>.
9454
9455 2012-02-02  Jim Meyering  <meyering@redhat.com>
9456
9457         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
9458         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
9459         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
9460         not even to try to add the attribute.  Instead, add a pragma to suppress
9461         the suggestion/warning.
9462
9463 2012-01-31  Karl Berry  <karl@gnu.org>
9464
9465         setstate doc: typo.
9466         * doc/posix-functions/setstate.texi (setstate): { not (.
9467
9468 2012-01-31  Bruno Haible  <bruno@clisp.org>
9469
9470         popen: Make more robust on Windows.
9471         * lib/popen.c: On native Windows, use the _popen based code even if
9472         HAVE_POPEN is set.
9473         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
9474         environment variable on native Windows.
9475
9476 2012-01-30  Bruno Haible  <bruno@clisp.org>
9477
9478         pclose: Fix typo.
9479         * lib/stdio.in.h (pclose): Fix typo in warning message.
9480
9481 2012-01-30  Bruno Haible  <bruno@clisp.org>
9482
9483         doc about getlogin_r, setstate.
9484         * doc/posix-functions/getlogin_r.texi: List the incompatible
9485         declaration problem under "not fixed by gnulib".
9486         * doc/posix-functions/setstate.texi: Mention incompatible declaration
9487         problem on Solaris 11 and other platforms.
9488
9489 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
9490             Bruno Haible  <bruno@clisp.org>
9491
9492         poll tests: Make test more robust.
9493         * tests/test-poll.c: Include macros.h.
9494         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
9495         return value of various I/O operations.
9496         * modules/poll-tests (Files): Add tests/macros.h.
9497
9498 2012-01-30  Bruno Haible  <bruno@clisp.org>
9499
9500         sys_stat: Fix support for mingw64 and MSVC.
9501         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
9502         header files already do it.
9503         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
9504         stat itself.
9505         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
9506
9507 2012-01-30  Bruno Haible  <bruno@clisp.org>
9508
9509         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
9510         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
9511         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
9512
9513 2012-01-29  Bruno Haible  <bruno@clisp.org>
9514
9515         quotearg: Fix test failure on MacOS X 10.5.
9516         * tests/test-quotearg-simple.c: Include localcharset.h.
9517         (main): If the locale encoding is not ASCII, bypass the tests of
9518         locale_quoting_style and clocale_quoting_style.
9519         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
9520
9521 2012-01-29  Jim Meyering  <meyering@redhat.com>
9522
9523         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
9524         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
9525         detect uses of canonicalize_file_name.
9526
9527 2012-01-28  Bruno Haible  <bruno@clisp.org>
9528
9529         test-framework-sh: Fix test failure with AIX 7.1 diff.
9530         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
9531         in column 1, like 'diff -c' does.
9532         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
9533         whether 'diff -u' is used. Instead, test whether the output contains
9534         some '@' character.
9535
9536 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
9537
9538         strtoimax: eliminate need for stdint.h, inttypes.h checks
9539         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
9540         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
9541         the prerequisites for a recently-introduced strtoimax test.
9542         I guess this might cause strtoimax to be replaced when not
9543         strictly necessary on older hosts, but this shouldn't introduce
9544         any bugs and it should make Emacs 'configure' faster on typical
9545         modern hosts.  Problem discovered when importing the latest gnulib
9546         to an Emacs test version.
9547         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
9548
9549 2012-01-28  Bruno Haible  <bruno@clisp.org>
9550
9551         sys_time: Override 'struct timeval' on some native Windows platforms.
9552         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
9553         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
9554         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
9555         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
9556         needs to be overridden.
9557         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
9558         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
9559         * tests/test-sys_select.c: Check that the tv_sec member has the same
9560         size as a 'time_t'.
9561         * tests/test-sys_time.c: Likewise.
9562         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
9563         is set, set also REPLACE_GETTIMEOFDAY.
9564         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
9565         convert the resulting 'struct timeval' before returning.
9566         * lib/select.c: Include <sys/time.h>.
9567         (select, timeval): Undefine at the right place.
9568         * modules/select (Depends-on): Add sys_time.
9569         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
9570         some Windows platforms.
9571         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
9572
9573 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
9574
9575         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
9576         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
9577         an integer.
9578         * lib/fcntl.c (dupfd): Likewise.
9579         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
9580
9581 2012-01-28  Bruno Haible  <bruno@clisp.org>
9582
9583         fcntl: Avoid compilation error on native Windows.
9584         * modules/fcntl (Depends-on): Add 'close'.
9585
9586 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
9587
9588         select, poll, isatty: Avoid warnings on x86_64 mingw64.
9589         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
9590         pointer to an integer.
9591         * lib/poll.c (IsConsoleHandle): Likewise.
9592         * lib/isatty.c (IsConsoleHandle): Likewise.
9593
9594 2012-01-28  Jim Meyering  <meyering@redhat.com>
9595
9596         doc: clarify README-release
9597         * top/README-release: Clarify: you should make a point to have
9598         the latest stable versions of build tools in your PATH, and the
9599         reference to buildreq is solely for its list of tool names, not
9600         for its minimal-functional version numbers.
9601         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
9602
9603         maint.mk: use more readable (yet functionally equivalent) quoting
9604         It is common to quote a single quote in a single quoted string like
9605         this:  '...'\''...'.  Unless you know the idiom, that looks like
9606         gibberish, so prefer to double-quote the string when possible.
9607         Then you can use a more readable, lone single quote: "...'..."
9608         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
9609         "don't" is more readable than the equivalent 'don'\''t'.
9610         (sc_cast_of_x_alloc_return_value): Likewise.
9611         (sc_cast_of_alloca_return_value): Likewise.
9612         (sc_makefile_path_separator_check): Similar: use ":" in '...',
9613         rather than '\'':'\''.
9614
9615 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
9616
9617         stdalign: relax _Alignof and tighten _Alignas test
9618         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
9619         as it was too strict: alignof must divide offsetof, but it need
9620         not equal offsetof.  Inspired by Joseph S. Myers's comment
9621         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
9622         Conversely, tighten the _Alignas test a bit, as the resulting
9623         alignment must be exactly 8.
9624
9625 2012-01-27  Bruno Haible  <bruno@clisp.org>
9626
9627         stdalign: Document the last change.
9628         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
9629
9630 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
9631
9632         stdalign: check that alignof and offsetof are consistent
9633         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
9634         Problem reported for gnulib by Richard W.M. Jones in
9635         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
9636
9637 2012-01-27  Jim Meyering  <meyering@redhat.com>
9638
9639         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
9640         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
9641         convert a sequence with gaps to the minimal containing range.
9642         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
9643         * tests/test-update-copyright.sh: Test for this.
9644         The FSF confirmed it is ok to do this, assuming there is at
9645         least one significant change per year in the affected range:
9646         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
9647
9648 2012-01-26  Bruno Haible  <bruno@clisp.org>
9649
9650         pipe2: refine doc about thread-safety
9651         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
9652         multithread-safety problem.
9653         * doc/glibc-functions/accept4.texi: Likewise.
9654
9655 2012-01-26  Bruno Haible  <bruno@clisp.org>
9656
9657         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
9658         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
9659         In the test program, include <fcntl.h>, for O_RDONLY.
9660
9661 2012-01-26  Eric Blake  <eblake@redhat.com>
9662
9663         pipe2: document lack of thread-safety in replacement
9664         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
9665         issue in replacement.
9666         * doc/glibc-functions/accept4.texi (accept4): Likewise.
9667         Based on a report by Eric Wong.
9668
9669 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
9670             Bruno Haible  <bruno@clisp.org>
9671
9672         malloca: Avoid warnings on x86_64 mingw64.
9673         * lib/malloca.c: Include <stdint.h>.
9674         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
9675         * modules/malloca (Depends-on): Add stdint.
9676         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
9677
9678 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
9679
9680         obstack: remove __STDC__ conditionals
9681         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
9682         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
9683         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
9684         m4/include_next.m4 as the only gnulib-maintained places that still
9685         refer to __STDC__.
9686
9687 2012-01-24  Bruno Haible  <bruno@clisp.org>
9688
9689         havelib: Modern quoting.
9690         * build-aux/config.rpath: Quote 'like this', not `like this', as per
9691         the recent change to the GNU coding standards.
9692
9693 2012-01-24  Bruno Haible  <bruno@clisp.org>
9694
9695         stdint: Improve support for Android.
9696         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
9697         Reported by Simon Josefsson <simon@josefsson.org>.
9698
9699 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
9700
9701         doc: omit trailing empty lines from INSTALL etc.
9702         * doc/Makefile (INSTALL): Omit trailing empty lines.
9703         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
9704         omit trailing empty lines.  This simplifies the build procedure.
9705
9706 2012-01-23  Jim Meyering  <meyering@redhat.com>
9707
9708         tests: avoid spurious warnings about gl_sockets_startup
9709         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
9710         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
9711         reporting a "statement with no effect".
9712         * tests/test-accept.c (main): Mark as "(void)".
9713         * tests/test-accept4.c (main): Likewise.
9714         * tests/test-bind.c (main): Likewise.
9715         * tests/test-connect.c (main): Likewise.
9716         * tests/test-getpeername.c (main): Likewise.
9717         * tests/test-getsockname.c (main): Likewise.
9718         * tests/test-getsockopt.c (main): Likewise.
9719         * tests/test-listen.c (main): Likewise.
9720         * tests/test-recv.c (main): Likewise.
9721         * tests/test-recvfrom.c (main): Likewise.
9722         * tests/test-send.c (main): Likewise.
9723         * tests/test-sendto.c (main): Likewise.
9724         * tests/test-setsockopt.c (main): Likewise.
9725         * tests/test-shutdown.c (main): Likewise.
9726
9727 2012-01-21  Bruno Haible  <bruno@clisp.org>
9728
9729         locale-fr.m4: Fix for Android.
9730         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
9731         failure of the test program on Bionic libc.
9732
9733 2012-01-21  Jim Meyering  <meyering@redhat.com>
9734
9735         bootstrap: fail when bootstrap_post_import_hook fails
9736         Otherwise, it's far too easy to miss diagnostics emitted
9737         between gnulib-tool's output and that of running configure.
9738         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
9739
9740 2012-01-17  Jim Meyering  <meyering@redhat.com>
9741
9742         maint: enable sc_trailing_blank
9743         * build-aux/pmccabe.css: Remove trailing blanks.
9744         * doc/acl-cygwin.txt: Likewise.
9745         * doc/gnu-oids.texi: Likewise
9746         * cfg.mk: Enable sc_trailing_blank.
9747         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
9748
9749 2012-01-17  Jim Meyering  <meyering@redhat.com>
9750
9751         maint: enable sc_prohibit_openat_without_use
9752         * cfg.mk: Enable sc_prohibit_openat_without_use.
9753         Exempt lib/selinux-at.c.
9754
9755 2012-01-17  Jim Meyering  <meyering@redhat.com>
9756
9757         maint: enable sc_prohibit_cloexec_without_use
9758         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
9759         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
9760
9761 2012-01-17  Jim Meyering  <meyering@redhat.com>
9762
9763         maint: enable sc_prohibit_intprops_without_use
9764         * cfg.mk: Enable sc_prohibit_intprops_without_use
9765         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
9766
9767 2012-01-17  Jim Meyering  <meyering@redhat.com>
9768
9769         maint: enable sc_prohibit_hash_pjw_without_use
9770         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
9771         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
9772         to match any use of \<hash_pjw\>, i.e., not necessarily with a
9773         following " (".
9774
9775 2012-01-17  Jim Meyering  <meyering@redhat.com>
9776
9777         maint: enable double-word-prohibiting rule
9778         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
9779         Exempt three files.
9780
9781 2012-01-17  Jim Meyering  <meyering@redhat.com>
9782
9783         maint: remove empty lines at EOF, but excluding modules/*
9784         Apply syntax rules at home as well as abroad.  Most changes
9785         were induced by running this:
9786           make srcdir=. _build-aux=build-aux -f top/maint.mk \
9787             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
9788             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
9789         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
9790         Exempt modules/* and two binary files.
9791         Also exempt doc/INSTALL*, per request from Bruno Haible.
9792         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
9793         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
9794         * doc/Copyright/request-assign.future: Likewise.
9795         * doc/Copyright/request-disclaim.changes: Likewise.
9796         * doc/INSTALL: Likewise.
9797         * doc/INSTALL.ISO: Likewise.
9798         * doc/INSTALL.UTF-8: Likewise.
9799         * doc/acl-cygwin.txt: Likewise.
9800         * doc/acl-resources.txt: Likewise.
9801         * doc/fdl-1.2.texi: Likewise.
9802         * doc/fdl-1.3.texi: Likewise.
9803         * doc/fdl.texi: Likewise.
9804         * lib/argp-pin.c: Likewise.
9805         * lib/round.c: Likewise.
9806         * lib/unicase/u16-totitle.c: Likewise.
9807         * lib/unictype/block_test.c: Likewise.
9808         * lib/uninorm/canonical-decomposition.c: Likewise.
9809         * m4/README: Likewise.
9810         * m4/relocatable-lib.m4: Likewise.
9811         * tests/test-isnand-nolibm.c: Likewise.
9812         * tests/test-isnand.c: Likewise.
9813         * tests/uninorm/NormalizationTest.txt: Likewise.
9814
9815 2012-01-17  Jim Meyering  <meyering@redhat.com>
9816
9817         maint: add framework to run syntax-check rules against gnulib sources
9818         * cfg.mk: New file, to disable all currently-failing tests.
9819         We'll enable them one by one, as they are made to pass.
9820         * Makefile (sc_maint): New rule.
9821
9822 2012-01-21  Bruno Haible  <bruno@clisp.org>
9823
9824         stdint: Add support for Android.
9825         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
9826         include the system's <stdint.h>.
9827         Reported by Simon Josefsson <simon@josefsson.org>.
9828
9829 2012-01-19  Jim Meyering  <meyering@redhat.com>
9830
9831         bootstrap: add bootstrap_post_import_hook
9832         Bison does still need something like the gnulib_mk_hook whose
9833         invocation I had to remove along with slurp in commit 767ccd40.
9834         Technically, we could get along without it, but doing so would
9835         have required living with a warning and a mandatory post-bootstrap
9836         automake rerun.
9837         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
9838         (bootstrap_post_import_hook): New function.
9839         Invoke it after gnulib-tool --import and before autoreconf.
9840
9841 2012-01-18  Jim Meyering  <meyering@redhat.com>
9842
9843         gitlog-to-changelog: don't use "no_"-prefixed variable name
9844         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
9845         to enable both --cluster and --no-cluster.  Change variable name,
9846         s/\$no_cluster/$cluster/, and reverse usage to match.
9847
9848         gitlog-to-changelog: use "||", not "or" in expressions
9849         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
9850         expressions.
9851
9852 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
9853
9854         gitlog-to-changelog: new option --no-cluster
9855         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
9856         clustering of adjacent commit messages.
9857
9858 2012-01-17  Jim Meyering  <meyering@redhat.com>
9859
9860         maint: spell file systems with two words, not one
9861         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
9862         two words, not one.
9863
9864 2012-01-16  Jim Meyering  <meyering@redhat.com>
9865
9866         bootstrap: add a FIXME comment to ensure we eventually remove the hack
9867         * build-aux/bootstrap (gnulib_tool_options): Add comment.
9868
9869 2012-01-16  Eric Blake  <eblake@redhat.com>
9870
9871         bootstrap: cater to autoconf 2.59
9872         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
9873         is not available.
9874
9875         bootstrap: properly check for libtool
9876         * build-aux/bootstrap (libtoolize): Also run libtool when older
9877         usage is detected.
9878
9879 2012-01-15  Bruno Haible  <bruno@clisp.org>
9880
9881         Improve support for MSVC 9.
9882         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
9883         clashes on MSVC.
9884         * lib/fcntl.in.h: Likewise.
9885         * lib/stdlib.in.h: Likewise.
9886         * lib/sys_stat.in.h: Likewise.
9887
9888 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
9889
9890         gnupload: we hold the master copy of this script now
9891         For motivation and more information, see:
9892         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
9893         * build-aux/gnupload: Make it clear in the heading comments that the
9894         master copy of this file is maintained by gnulib.  Since we are at
9895         it, bump its copyright year and ...
9896         ($scriptversion): ... the date in its version.
9897         ($usage): Patches and bug reports should be sent to the gnulib list,
9898         not the automake one.
9899         * config/srclist.txt: Don't try to sync 'gnupload' from automake
9900         anymore.
9901
9902 2012-01-15  Bruno Haible  <bruno@clisp.org>
9903
9904         Fix module 'random'.
9905         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
9906         initstate, setstate are declared.
9907
9908 2012-01-14  Bruno Haible  <bruno@clisp.org>
9909
9910         Tests for module 'random'.
9911         * modules/random-tests: New file.
9912         * tests/test-random.c: New file, based on tests/test-random_r.c.
9913
9914         New module 'random'.
9915         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
9916         declarations.
9917         * lib/random.c: New file, based on glibc/stdlib/random.c.
9918         * m4/random.m4: New file.
9919         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
9920         HAVE_RANDOM.
9921         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
9922         * modules/random: New file.
9923         * config/srclist.txt: Add an entry for random.c.
9924         * doc/posix-functions/random.texi: Mention the 'random' module.
9925         * doc/posix-functions/initstate.texi: Likewise.
9926         * doc/posix-functions/setstate.texi: Likewise.
9927         * doc/posix-functions/srandom.texi: Likewise.
9928
9929 2012-01-12  Bruno Haible  <bruno@clisp.org>
9930
9931         random_r: Use common idioms.
9932         * lib/random_r.c: Include <stdlib.h> first.
9933
9934         random_r: Override incompatible API on AIX, OSF/1.
9935         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
9936         Override the system function if REPLACE_RANDOM_R is 1.
9937         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
9938         and OSF/1, set REPLACE_RANDOM_R.
9939         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
9940         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
9941         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
9942         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
9943         * doc/glibc-functions/random_r.texi: Likewise.
9944         * doc/glibc-functions/setstate_r.texi: Likewise.
9945
9946         random_r: Support for MSVC 9.
9947         * lib/random_r.c: Include stdint.h, not inttypes.h.
9948
9949 2012-01-12  Eric Blake  <eblake@redhat.com>
9950
9951         inet_ntop: guard extra work by IF_LINT
9952         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
9953         better code generation when not checking for warnings.
9954         Suggested by Paul Eggert and Jim Meyering.
9955
9956         strptime: fix regression on mingw
9957         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
9958         Fix regression.  Reported by Bruno Haible.
9959
9960 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
9961             Bruno Haible  <bruno@clisp.org>
9962
9963         copy-file: add error-code-returning variant.
9964         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
9965         (qcopy_file_preserving): New declaration.
9966         * lib/copy-file.c (qcopy_file_preserving): Renamed from
9967         copy_file_preserving. Change return type to 'int'. Don't emit an error
9968         message here.
9969         (copy_file_preserving): New function.
9970         * tests/test-copy-file.c: Include <stdlib.h>.
9971         (main): Test qcopy_file_preserving if the environment variable
9972         NO_STDERR_OUTPUT is set.
9973         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
9974         with NO_STDERR_OUTPUT
9975         * tests/test-copy-file-2.sh: Likewise.
9976
9977 2012-01-10  Bruno Haible  <bruno@clisp.org>
9978
9979         copy-file: Use 'quote' module consistently.
9980         * lib/copy-file.c (copy_file_preserving): Use quote().
9981
9982         copy-file: Refactor.
9983         * lib/copy-file.c: Include quote.h.
9984         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
9985         message here.
9986         * modules/copy-file (Depends-on): Add quote.
9987
9988         acl: Export qcopy_acl.
9989         * lib/acl.h (qcopy_acl): New declaration.
9990         * lib/copy-acl.c (qcopy_acl): Make non-static.
9991
9992         acl: Rename a local variable.
9993         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
9994
9995         acl: Align return values of copy_acl and qcopy_acl.
9996         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
9997         maybe < -1.
9998
9999 2012-01-11  Eric Blake  <eblake@redhat.com>
10000
10001         strptime: silence gcc warnings
10002         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
10003         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
10004         Reported by Daniel P. Berrange.
10005
10006         inet_ntop: silence gcc warning
10007         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
10008         Reported by Daniel P. Berrange.
10009
10010 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
10011
10012         getloadavg test: skip the test on GNU/Linux without /proc mounted
10013         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
10014         file.  When /proc is not mounted, it always fails with ENOENT.
10015         * tests/test-getloadavg.c (main): Treat ENOENT return code from
10016         getloadavg(3) the same way as ENOSYS and ENOTSUP.
10017
10018 2012-01-10  Bruno Haible  <bruno@clisp.org>
10019
10020         regex: Avoid link error on MSVC 9.
10021         * modules/regex (Depends-on): Add wctype.
10022
10023 2012-01-10  Bruno Haible  <bruno@clisp.org>
10024
10025         doc: Mention --with-tests option.
10026         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
10027         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
10028         --with-tests.
10029         Reported by Reuben Thomas.
10030
10031 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
10032
10033         users.txt: order package names lexicographically.
10034         * users.txt: Order package names lexicographically.
10035
10036 2012-01-10  Jim Meyering  <meyering@redhat.com>
10037
10038         maint.mk: fix description in comment
10039         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
10040
10041         ignore-value: remove deprecated ignore_ptr function
10042         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
10043         * NEWS: Note this.
10044
10045 2012-01-09  Jim Meyering  <meyering@redhat.com>
10046
10047         test-init.sh: avoid a subshell
10048         * tests/test-init.sh: Remove protective subshell.
10049         Suggested by Bernhard Voelker.  While a subshell is normally
10050         required to protect against older shells (Solaris, FreeBSD) that
10051         warn about a missing program before performing redirection, the
10052         shell-selection tests performed by init.sh probably exclude any
10053         offending shell.
10054
10055 2012-01-08  Bruno Haible  <bruno@clisp.org>
10056
10057         setlocale tests: Avoid test failure on Solaris 11 2011-11.
10058         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
10059         variable.
10060
10061 2012-01-08  Bruno Haible  <bruno@clisp.org>
10062
10063         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
10064         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
10065         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
10066         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
10067         macro.
10068         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
10069         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
10070         * lib/spawn_faction_addopen.c: Add workaround implementation if
10071         HAVE_WORKING_POSIX_SPAWN.
10072         * modules/spawn (Makefile): Substitute
10073         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
10074         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
10075         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
10076         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
10077         (Depends-on): Update conditions.
10078         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
10079         the Solaris 11 bug.
10080
10081 2012-01-08  Bruno Haible  <bruno@clisp.org>
10082
10083         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
10084         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
10085         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
10086         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
10087         macro.
10088         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
10089         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
10090         * lib/spawn_faction_adddup2.c: Add workaround implementation if
10091         HAVE_WORKING_POSIX_SPAWN.
10092         * modules/spawn (Makefile): Substitute
10093         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
10094         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
10095         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
10096         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
10097         (Depends-on): Update conditions.
10098         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
10099         the Solaris 11 bug.
10100
10101 2012-01-08  Bruno Haible  <bruno@clisp.org>
10102
10103         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
10104         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
10105         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
10106         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
10107         HAVE_WORKING_POSIX_SPAWN.
10108         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
10109         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
10110         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
10111         * lib/spawn_faction_addclose.c: Add workaround implementation if
10112         HAVE_WORKING_POSIX_SPAWN.
10113         * modules/spawn (Makefile): Substitute
10114         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
10115         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
10116         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
10117         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
10118         (Depends-on): Update conditions.
10119         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
10120         the Solaris 11 bug.
10121
10122 2012-01-08  Bruno Haible  <bruno@clisp.org>
10123
10124         doc: Update for Solaris 11 2011-11.
10125         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
10126         * m4/printf.m4: Update comments.
10127
10128 2012-01-08  Bruno Haible  <bruno@clisp.org>
10129
10130         mktime: Avoid compilation error on Solaris 11.
10131         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
10132
10133 2012-01-08  Bruno Haible  <bruno@clisp.org>
10134
10135         doc: Small fix.
10136         * doc/posix-headers/nl_types.texi: Correct platforms list.
10137
10138 2012-01-08  Simon Josefsson  <simon@josefsson.org>
10139
10140         Add lgpl-3.0 module.
10141         * MODULES.html.sh (Support for building documentation): Add
10142         lgpl-3.0.
10143         * modules/lgpl-3.0: New file.
10144
10145 2012-01-08  Jim Meyering  <meyering@redhat.com>
10146
10147         select.c: indent with spaces, not TABs
10148         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
10149
10150 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
10151
10152         quotearg: do not use grave accent for left quote
10153         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
10154         locale_quoting_style.
10155         (quotearg_buffer_restyled): Fix example.
10156         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
10157
10158 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
10159
10160         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
10161         Most programs do not have translation catalogs for English and much
10162         less separate catalogs for British and American English.  Drop the
10163         suggestion to translators about these two, and provide it
10164         automatically for Unicode locales.  Like most programs, even those
10165         using American English, we use single quotation marks.  This conflicts
10166         with the American typographic convention, but works better when you
10167         cite the entire error message within double quotes.  It also tries not
10168         to clash with established practice and with what non-gnulib programs
10169         will usually do.
10170         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
10171         using an UTF-8 or GB-18030 locale.  The list of other locales with
10172         quotes was provided by Bruno Haible.
10173         (quotearg_buffer_restyled): Adjust instructions to translators.
10174         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
10175         text, since this would be wrong when using Unicode.
10176         * modules/quotearg: Depend on c-strcaseeq.
10177
10178 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
10179
10180         quotearg: fix Wikipedia link
10181         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
10182
10183 2012-01-07  Simon Josefsson  <simon@josefsson.org>
10184
10185         Fix for mingw with MSVC9.
10186         * m4/ld-version-script.m4: Check that compiler rejects version
10187         scripts with syntax errors.  Reported by Bruno Haible
10188         <bruno@clisp.org>.
10189
10190 2012-01-06  Bruno Haible  <bruno@clisp.org>
10191
10192         Talk about "native Windows API", not "Woe32".
10193         * lib/accept4.c: Update comments to mention native Windows.
10194         * lib/execute.c: Likewise.
10195         * lib/fatal-signal.c: Likewise.
10196         * lib/localcharset.c: Likewise.
10197         * lib/nanosleep.c: Likewise.
10198         * lib/nl_langinfo.c: Likewise.
10199         * lib/pclose.c: Likewise.
10200         * lib/pipe-filter-gi.c: Likewise.
10201         * lib/pipe-filter-ii.c: Likewise.
10202         * lib/pipe.c: Likewise.
10203         * lib/pipe2.c: Likewise.
10204         * lib/popen.c: Likewise.
10205         * lib/progreloc.c: Likewise.
10206         * lib/relocatable.c: Likewise.
10207         * lib/sigaction.c: Likewise.
10208         * lib/sigprocmask.c: Likewise.
10209         * lib/spawn-pipe.h: Likewise.
10210         * lib/spawn-pipe.c: Likewise.
10211         * lib/spawni.c: Likewise.
10212         * lib/stat-time.h: Likewise.
10213         * lib/w32spawn.h: Likewise.
10214         * tests/test-isatty.c: Likewise.
10215         * lib/config.charset: More comments.
10216         * doc/gnulib-intro.texi: Mention native Windows.
10217         * doc/posix-functions/_Exit_C99.texi: Likewise.
10218         * doc/posix-headers/fcntl.texi: Likewise.
10219
10220 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
10221
10222         argp: Avoid crash if translator uses % characters in a translation.
10223         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
10224         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
10225
10226 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
10227
10228         doc: C11 and C++11 are now official
10229         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
10230         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
10231         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
10232         * modules/stdalign:
10233         Replace references to draft C1X to C11, and to draft C++0X to C++11.
10234
10235 2012-01-06  Bruno Haible  <bruno@clisp.org>
10236
10237         uc-is-grapheme-break tests: Tweak.
10238         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
10239         message.
10240
10241 2012-01-06  Bruno Haible  <bruno@clisp.org>
10242
10243         test-init.sh: correct the test for diff -u
10244         * tests/test-init.sh: Also redirect stdout to /dev/null.
10245
10246 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
10247
10248         Use ', not `, for quoting output.
10249         * build-aux/announce-gen (usage, sizes, print_news_deltas)
10250         (print_changelog_deltas, get_tool_versions, main program):
10251         * build-aux/git-version-gen:
10252         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
10253         * build-aux/move-if-change (help):
10254         * build-aux/useless-if-before-free (usage, main program):
10255         * check-module (parse_module_file, usage)
10256         (find_included_lib_files, check_module):
10257         * lib/argmatch.c (main) [TEST]:
10258         * lib/argp-help.c (_help):
10259         * lib/getopt1.c (main) [TEST]:
10260         * lib/git-merge-changelog.c (usage):
10261         * lib/xstrtol-error.c (xstrtol_error):
10262         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
10263         * m4/argz.m4 (gl_FUNC_ARGZ):
10264         * m4/bison.m4 (gl_BISON):
10265         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
10266         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
10267         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
10268         * m4/fpending.m4 (gl_PREREQ_FPENDING):
10269         * m4/gc-random.m4 (gl_GC_RANDOM):
10270         * m4/intl.m4 (gt_CHECK_DECL):
10271         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
10272         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
10273         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
10274         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
10275         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
10276         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
10277         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
10278         * tests/test-dirname.c (main):
10279         * tests/test-getpass.c (main):
10280         * tests/test-iconvme.c (main):
10281         * tests/test-parse-datetime.c (LOG):
10282         * tests/test-xstrtoimax.sh:
10283         * tests/test-xstrtol.sh:
10284         * tests/test-xstrtoll.sh:
10285         * tests/test-xstrtoumax.sh:
10286         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
10287         * top/GNUmakefile (abort-due-to-no-makefile):
10288         Quote 'like this', not `like this', as per the recent change to
10289         the GNU coding standards.
10290
10291 2012-01-05  Bruno Haible  <bruno@clisp.org>
10292
10293         strtoimax: Don't force a replacement on systems where intmax_t is int.
10294         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
10295         'intmax_t' is not larger than 'int'.
10296         Reported by Pádraig Brady <P@draigBrady.com>.
10297
10298 2012-01-05  Bruno Haible  <bruno@clisp.org>
10299
10300         doc: Mention NetBSD bugs.
10301         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
10302         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
10303
10304 2012-01-05  Bruno Haible  <bruno@clisp.org>
10305
10306         strtoumax tests: Enhance tests.
10307         * tests/test-strtoumax.c (main): Add tests for large values.
10308
10309 2012-01-05  Bruno Haible  <bruno@clisp.org>
10310
10311         strtoimax: Work around AIX 5.1 bug.
10312         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
10313         definition.
10314         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
10315         Set HAVE_STRTOIMAX.
10316         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
10317         REPLACE_STRTOIMAX.
10318         * modules/inttypes-incomplete (Makefile.am): Substitute
10319         REPLACE_STRTOIMAX.
10320         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
10321         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
10322         (Depends-on): Update conditions.
10323         * tests/test-strtoimax.c (main): Add tests for large values.
10324         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
10325
10326 2012-01-05  Bruno Haible  <bruno@clisp.org>
10327
10328         inttypes: Modernize.
10329         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
10330         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
10331         (Makefile.am): Update inttypes.h rule.
10332
10333 2012-01-05  Jim Meyering  <meyering@redhat.com>
10334
10335         init.sh: don't waste a subshell just to redirect stderr
10336         * tests/init.sh: In testing for diff -u and diff -c, use a
10337         stderr-redirecting exec inside `...` rather than a subshell.
10338
10339         test-init.sh: avoid failure on HP-UX 11.00
10340         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
10341         resolves to diff -c or cmp.  Reported by Bruno Haible.
10342
10343 2012-01-05  Bruno Haible  <bruno@clisp.org>
10344
10345         Tests for module 'strtoull'.
10346         * modules/strtoull-tests: New file.
10347         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
10348
10349 2012-01-05  Bruno Haible  <bruno@clisp.org>
10350
10351         Tests for module 'strtoll'.
10352         * modules/strtoll-tests: New file.
10353         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
10354
10355 2012-01-05  Bruno Haible  <bruno@clisp.org>
10356
10357         Tests for module 'strtoul'.
10358         * modules/strtoul-tests: New file.
10359         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
10360
10361 2012-01-05  Bruno Haible  <bruno@clisp.org>
10362
10363         Tests for module 'strtol'.
10364         * modules/strtol-tests: New file.
10365         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
10366
10367 2012-01-04  Jim Meyering  <meyering@redhat.com>
10368
10369         test-init.sh: accommodate Solaris 5.10's different diff -u output
10370         * tests/test-init.sh: Also exempt @@ lines from the comparison
10371         of diff output, since Solaris 5.10 and GNU diff formats differ.
10372         Reported by Stefano Lattarini.
10373
10374 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
10375
10376         test-posixtm: don't assume signed integer wraparound
10377         * tests/test-posixtm.c (main): Don't assume wraparound semantics
10378         after signed integer overflow.  Inspired by (though it may not
10379         fix) Bruno Haible's bug report in
10380         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
10381
10382         Spell out "Windows 9x" and "Windows XP".
10383         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
10384         "Windows 9x" and "WinXP" with "Windows XP".
10385
10386 2012-01-04  Jim Meyering  <meyering@redhat.com>
10387
10388         test-vc-list-files-cvs.sh: remove obsolete comment
10389         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
10390         double exit.  Now that's all encapsulated via skip_ and Exit.
10391
10392 2012-01-04  Bruno Haible  <bruno@clisp.org>
10393
10394         Talk about "native Windows API", not "Win32".
10395         * lib/classpath.c: Update comments to mention native Windows.
10396         * lib/csharpexec.c: Likewise.
10397         * lib/dup2.c: Likewise.
10398         * lib/error.c: Likewise.
10399         * lib/fcntl.c: Likewise.
10400         * lib/filename.h: Likewise.
10401         * lib/findprog.c: Likewise.
10402         * lib/get-rusage-as.c: Likewise.
10403         * lib/get-rusage-data.c: Likewise.
10404         * lib/getpagesize.c: Likewise.
10405         * lib/javaexec.c: Likewise.
10406         * lib/msvc-inval.c: Likewise.
10407         * lib/msvc-nothrow.c: Likewise.
10408         * lib/nanosleep.c: Likewise.
10409         * lib/nonblocking.c: Likewise.
10410         * lib/printf-parse.c: Likewise.
10411         * lib/setlocale.c: Likewise.
10412         * lib/sigaction.c: Likewise.
10413         * lib/strerror_r.c: Likewise.
10414         * lib/tmpdir.c: Likewise.
10415         * lib/vasnprintf.c: Likewise.
10416         * lib/w32spawn.h: Likewise.
10417         * lib/waitpid.c: Likewise.
10418         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
10419         * m4/locale-ar.m4: Likewise.
10420         * m4/locale-fr.m4: Likewise.
10421         * m4/locale-ja.m4: Likewise.
10422         * m4/locale-tr.m4: Likewise.
10423         * m4/locale-zh.m4: Likewise.
10424         * m4/printf.m4: Likewise.
10425         * tests/test-cloexec.c: Likewise.
10426         * tests/test-copy-acl.sh: Likewise.
10427         * tests/test-copy-file.sh: Likewise.
10428         * tests/test-file-has-acl.sh: Likewise.
10429         * tests/test-set-mode-acl.sh: Likewise.
10430         * tests/test-dup-safer.c: Likewise.
10431         * tests/test-dup2.c: Likewise.
10432         * tests/test-dup3.c: Likewise.
10433         * tests/test-fcntl.c: Likewise.
10434         * tests/test-nonblocking-pipe.h: Likewise.
10435         * tests/test-nonblocking-socket.h: Likewise.
10436         * tests/test-pipe.c: Likewise.
10437         * tests/test-pipe2.c: Likewise.
10438         * tests/test-spawn-pipe-child.c: Likewise.
10439         * doc/acl-resources.txt: Likewise.
10440         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
10441         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
10442         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
10443         * lib/localcharset.c: Update comments to mention native Windows.
10444         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
10445         * lib/localename.c: Likewise.
10446         * lib/progreloc.c: Likewise.
10447         * lib/relocatable.c: Likewise.
10448         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
10449         (windows_compute_revents): Renamed from win32_compute_revents.
10450         (windows_compute_revents_socket): Renamed from
10451         win32_compute_revents_socket.
10452         * lib/select.c: Update comments to mention native Windows.
10453         (windows_poll_handle): Renamed from win32_poll_handle.
10454         * m4/threadlib.m4: Update comments to mention native Windows.
10455         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
10456         --enable-threads=windows instead of --enable-threads=win32. Set
10457         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
10458         * lib/glthread/lock.h: Update comments to mention native Windows.
10459         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
10460         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
10461         USE_WIN32_THREADS.
10462         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
10463         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
10464         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
10465         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
10466         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
10467         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
10468         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
10469         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
10470         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
10471         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
10472         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
10473         * tests/test-tls.c: Likewise.
10474         Rationale:
10475         Microsoft renamed the "Win32 API" to "Windows API", as it is available
10476         on both 32-bit and 64-bit Windows systems.
10477         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
10478         line of distinction is between "native Windows" on one side and Unix/
10479         POSIX systems on the other side. More details in
10480         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
10481         Suggested by Paul Eggert.
10482
10483 2012-01-03  Bruno Haible  <bruno@clisp.org>
10484
10485         isatty: Support for MSVC 9.
10486         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
10487         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
10488         (_isatty_nothrow): New function.
10489         (isatty): Use it instead of _isatty.
10490         (IsConsoleHandle): Add comment, from Paolo Bonzini.
10491         * lib/poll.c (IsConsoleHandle): Likewise.
10492         * lib/select.c (IsConsoleHandle): Likewise.
10493         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
10494         (gl_PREREQ_ISATTY): New macro.
10495         * modules/isatty (Depends-on): Add msvc-inval.
10496         (configure.ac): Invoke gl_PREREQ_ISATTY.
10497
10498 2012-01-03  Jim Meyering  <meyering@redhat.com>
10499
10500         maint.mk: remove temporary transition aid from over 1.5 years ago
10501         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
10502         purpose was to aid in the transition (avoiding silent malfunction)
10503         from that old name to the new _sc_search_regexp.  This shim was
10504         added by commit 219c504b.
10505
10506         init.sh: do not try to accommodate compare arguments starting with "-"
10507         * tests/init.sh (compare_dev_null_): Do not try to accommodate
10508         compare arguments that start with "-".  Besides, we do not worry
10509         about this when invoking diff or cmp; why start now with sed?
10510         Using "--" to separate options from argument would trigger sed
10511         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
10512         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
10513
10514 2012-01-02  Bruno Haible  <bruno@clisp.org>
10515
10516         Enhance tests for module 'isatty'.
10517         * modules/isatty-tests (Depends-on): Add pipe-posix.
10518         * tests/test-isatty.c: Include <fcntl.h>.
10519         (DEV_NULL): New macro.
10520         (main): Test the resut of isatty() also on regular files, pipes, and
10521         /dev/null.
10522
10523         New module 'isatty'.
10524         * lib/unistd.in.h (isatty): New declaration.
10525         * lib/isatty.c: New file, based on an idea of
10526         Bastien Roucariès <roucaries.bastien@gmail.com>.
10527         * m4/isatty.m4: New file.
10528         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
10529         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
10530         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
10531         REPLACE_ISATTY.
10532         * modules/isatty: New file.
10533         * doc/posix-functions/isatty.texi: Mention the new module.
10534         Suggested by Paolo Bonzini.
10535
10536 2012-01-02  Bruno Haible  <bruno@clisp.org>
10537
10538         canonicalize: Tweak 2011-12-29 commit.
10539         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
10540         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
10541
10542 2012-01-02  Jim Meyering  <meyering@redhat.com>
10543
10544         gitlog-to-changelog: describe input syntax in --help output
10545         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
10546
10547         gitlog-to-changelog: fix typo in --help: show backslash before email @
10548         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
10549         in sources, but not in actual output.
10550
10551 2011-12-30  Jim Meyering  <meyering@redhat.com>
10552
10553         gitlog-to-changelog: don't malfunction when name contains %-directive
10554         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
10555         in a name string cause trouble.  E.g., with a user name of "%s",
10556         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
10557
10558 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
10559
10560         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
10561         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
10562         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
10563         the "  (tiny change)" notation that is appended to the standard
10564         ChangeLog "date  name  email" header line.
10565
10566 2012-01-01  Jim Meyering  <meyering@redhat.com>
10567
10568         test-framework-sh: init.sh: fix "make dist" failure
10569         When using gnulib-tool's --with-tests option and any module that
10570         depends on test-framework-sh, "make dist" would fail due to the
10571         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
10572         in the gltests directory, and not in the gllib/ directory.
10573         One way to work around that is to move the EXTRA_DIST += init.sh
10574         from the primary module to the -tests one:
10575         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
10576         * modules/test-framework-sh (Makefile.am): ...not here.
10577         Reported by Tom G. Christensen in
10578         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
10579
10580         version-etc: update copyright year reported by --version
10581         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
10582
10583 2011-12-31  Pádraig Brady  <P@draigBrady.com>
10584
10585         canonicalize: only stat() if required
10586         * lib/canonicalize.c (canonicalize_filename_mode):
10587         Avoid calling l?stat() when both CAN_MISSING,
10588         and CAN_NOLINKS are set, as we neither need
10589         to resolve symlinks or test component existence.
10590
10591 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
10592
10593         doc: cover st_ino issues once; add OpenVMS etc.
10594         * doc/posix-functions/stat.texi (stat):
10595         * doc/posix-functions/lstat.texi (lstat):
10596         * doc/posix-functions/fstatat.texi (fstatat):
10597         * doc/posix-functions/fstat.texi (fstat):
10598         Move general 'struct stat' stuff to sys_stat.texi,
10599         leaving behind a pointer.
10600         * doc/posix-headers/sys_stat.texi (sys/stat.h):
10601         Merge duplicate info about 'struct stat' problems into here.
10602         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
10603         and suggest partial workarounds.
10604
10605         same-inode: port to OpenVMS
10606         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
10607         three st_ino values.
10608
10609 2011-12-30  Pádraig Brady  <P@draigBrady.com>
10610
10611         canonicalize: fix references to stat() and lstat()
10612         * lib/canonicalize.c (canonicalize_filename_mode):
10613         Ensure references always resolve to a replacement
10614         function if required (even via a macro).
10615
10616 2011-12-30  Jim Meyering  <meyering@redhat.com>
10617
10618         gitlog-to-changelog: remove a little duplication
10619         * build-aux/gitlog-to-changelog (main): Grep @lines once,
10620         rather than twice.
10621
10622 2011-12-29  Pádraig Brady  <P@draigBrady.com>
10623
10624         canonicalize: add support for not resolving symlinks
10625         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
10626         indicate we don't want to follow symlinks.  Also
10627         provide CAN_MODE_MASK to aid setting these existing
10628         mutually exclusive values.
10629         * lib/canonicalize.c (canonicalize_filename_mode):
10630         Extract the flags from can_mode parameter, which
10631         are currently just used to select between stat()
10632         and lstat().  Also ensure that mutually exclusive
10633         values are flagged immediately as invalid.
10634         * tests/test-canonicalize.c: Verify symlinks are
10635         not followed, and that invalid flag combinations
10636         are diagnosed.
10637
10638 2011-12-25  Jim Meyering  <meyering@redhat.com>
10639
10640         gitlog-to-changelog: do not clump multi-paragraph entries
10641         Identical header lines (date,name,email+coauthors) are suppressed,
10642         thus putting all entries with those same characteristics under
10643         a single header.  However, when a log entry consists of two or
10644         more paragraphs, it may not be clear where it starts and ends.
10645         This change makes it so that such an entry is always separated
10646         from others by a header line, even when that header would
10647         otherwise be suppressed.
10648         * build-aux/gitlog-to-changelog: Implement the above.
10649         Inspired by a related request from Stefano Lattarini in
10650         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
10651
10652 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
10653
10654         announce-gen: fix `cmd' typo in diagnostic
10655         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
10656         diagnostic: a missing '$' meant that the command was not output.
10657
10658 2011-12-23  Jim Meyering  <meyering@redhat.com>
10659
10660         test-framework-sh: distribute init.sh
10661         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
10662         Otherwise, "make -C gnulib-tests check" (at least in grep) would
10663         fail due to the lack of init.sh.
10664
10665         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
10666         * modules/atexit-tests: Rather than listing tests/init.sh,
10667         now that there's a module for it, simply depend on that new module.
10668         * modules/closein-tests: Likewise.
10669         * modules/exclude-tests: Likewise.
10670         * modules/getcwd-tests: Likewise.
10671         * modules/perror-tests: Likewise.
10672         * modules/pread-tests: Likewise.
10673         * modules/pwrite-tests: Likewise.
10674         * modules/vc-list-files-tests: Likewise.
10675         * modules/verify-tests: Likewise.
10676         * modules/xalloc-die-tests: Likewise.
10677         * modules/xstrtoimax-tests: Likewise.
10678         * modules/xstrtol-tests: Likewise.
10679         * modules/xstrtoll-tests: Likewise.
10680         * modules/xstrtoumax-tests: Likewise.
10681         * modules/yesno-tests: Likewise.
10682
10683 2011-12-22  Jim Meyering  <meyering@redhat.com>
10684
10685         test-framework-sh: add minimal tests of init.sh's compare function
10686         * modules/test-framework-sh-tests: New file.
10687         * tests/test-init.sh: New file.
10688
10689         test-framework-sh: new module
10690         * modules/test-framework-sh: New file.
10691         * MODULES.html.sh (Support for maintaining and releasing projects):
10692         List it.
10693
10694         init.sh: do not emit simulated diff output to stderr
10695         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
10696
10697 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
10698
10699         .gitignore: ignore gnulib.dvi and regex.info
10700         * doc/.gitignore:add gnulib.dvi and regex.info
10701
10702 2011-12-22  Jim Meyering  <meyering@redhat.com>
10703
10704         init.sh: correct previous change
10705         * tests/init.sh (compare): My previous change was wrong.
10706         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
10707
10708         init.sh: avoid unwarranted test failure when using "set -e"
10709         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
10710         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
10711         a use like "compare exp out" would get evoke an unconditional failure.
10712
10713 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
10714
10715         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
10716         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
10717         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
10718         autoreconf that did not.
10719         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
10720         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
10721
10722 2011-12-17  Jim Meyering  <meyering@redhat.com>
10723
10724         bootstrap: remove some now-unneeded code
10725         This script arose back when gnulib-tool was young.
10726         Since then, it has seen improvements that render much of this
10727         script unnecessary.  In particular, it can now make symlinks
10728         to the files it uses.  Also, I no longer see as much value in
10729         marking files as read-only via comments.
10730         If you relied on the symlink-creation feature of the preceding
10731         version of this script, you can get most of that functionality
10732         by adding the --symlink option to the definition of
10733         gnulib_tool_option_extras in your bootstrap.conf file.
10734         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
10735         Run autopoint and libtoolize *before* gnulib-tool.
10736         After it, run an abbreviated autoreconf, rather than a loop around
10737         all tools.
10738         (slirp, bt_mark_as_generated): Remove functions.
10739
10740 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
10741
10742         ftoastr: fix typo
10743         * lib/ftoastr.h: Fix misspelling in comment.
10744
10745 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
10746
10747         * top/README-release: fix punctuation.
10748
10749 2011-12-17  Jim Meyering  <meyering@redhat.com>
10750
10751         bootstrap: correct the recent buildreq change
10752         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
10753         had no effect.
10754         * build-aux/bootstrap (buildreq): Bracket each search term with
10755         "*...*", so that the shell "case" statement works as intended.
10756         Add comments.
10757
10758 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
10759
10760         build: let bootstrap resort to wget when downloading .po files
10761         * build-aux/bootstrap (download_po_files): Fallback to wget when
10762         downloading the .po files via rsync fails.  This is necessary to
10763         bootstrap from behind a strict firewall.
10764
10765 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
10766
10767         stdint: don't assume C++11 when compiling with g++
10768         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
10769         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
10770         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
10771         work also in C++ before C++11, as that improperly inhibits
10772         generating a substitute stdint.h for that case.
10773
10774 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
10775
10776         alloca: protect comment from gnulib-tool
10777         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
10778         that gnulib-tool doesn't think it's a license, and munge it to
10779         say "GCC version 3".
10780
10781 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
10782
10783         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
10784         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
10785         $(abs_top_builddir) instead of $(top_builddir).
10786
10787 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
10788
10789         strftime-tests: also test nanoseconds
10790         * tests/test-strftime.c (T): Add a test of %N.
10791
10792 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
10793
10794         inttypes, stdint: add C++11 support
10795         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
10796         when including inttypes.h and stdint.h.  Support this change to
10797         the standard.
10798         * doc/posix-headers/inttypes.texi (inttypes.h):
10799         * doc/posix-headers/stdint.texi (stdint.h): Document this.
10800         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
10801         Define if not defined already, for the benefit of pre-C++11 hosts.
10802         Define the standard format macros (e.g., PRId8) always.
10803         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
10804         Likewise, if __cpluspus.  Define the standard constant and limit
10805         macros (e.g., INT8_C, INT8_MAX) always.
10806         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
10807         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
10808         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
10809         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
10810         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
10811         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
10812         Likewise.
10813
10814 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
10815
10816         nonblocking tests: Fix test failure on Linux/PPC.
10817         Suggested by Prerna Saxena in
10818         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
10819         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
10820         Set to 1100000.
10821
10822 2011-12-12  Jim Meyering  <meyering@redhat.com>
10823
10824         argmatch: don't hard-code `' when listing valid option arguments
10825         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
10826         use the quote function to add quotes.  Use fputs rather than
10827         fprintf for the format string with no format directive.
10828
10829 2011-12-07  Eric Blake  <eblake@redhat.com>
10830
10831         bootstrap: detect tools required by gnulib-tool
10832         * build-aux/bootstrap (buildreq): Provide minimum implicit
10833         dependencies.
10834         * DEPENDENCIES: Mention patch as a prereq.
10835
10836 2011-12-04  Bruno Haible  <bruno@clisp.org>
10837
10838         sethostname: Port to Windows platforms.
10839         * lib/sethostname.c: Provide an alternate implementation for Windows
10840         platforms.
10841         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
10842         (main): Skip the test if sethostname() fails with EPERM. On Windows
10843         platforms, don't check the result of gethostname().
10844
10845 2011-12-04  Bruno Haible  <bruno@clisp.org>
10846             Jim Meyering  <meyering@redhat.com>
10847
10848         tests: Avoid spurious error message on platforms without mktemp program.
10849         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
10850
10851 2011-12-04  Bruno Haible  <bruno@clisp.org>
10852
10853         sethostname: Fix documentation.
10854         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
10855         "not fixed" section.
10856
10857 2011-12-03  Bruno Haible  <bruno@clisp.org>
10858
10859         gnulib-tool: Verify that the License field is present and non-empty.
10860         * gnulib-tool (func_get_license_raw): New function, extracted from
10861         func_get_license.
10862         (func_get_license): Use it. Warn if the module is not a test module and
10863         has no license.
10864         Suggested by Jim Meyering.
10865
10866 2011-12-03  Bruno Haible  <bruno@clisp.org>
10867
10868         sethostname tests: Fix link error on mingw.
10869         * tests/test-sethostname1.c: New file, extracted from
10870         tests/test-sethostname.c.
10871         * tests/test-sethostname2.c: New file, extracted from
10872         tests/test-sethostname.c.
10873         * tests/test-sethostname.c: Remove file.
10874         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
10875         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
10876         (Depends-on): Add gethostname.
10877         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
10878         Link the latter with $(GETHOSTNAME_LIB).
10879
10880         sethostname tests: Fix compilation error on mingw.
10881         * tests/test-sethostname.c: Don't include <sys/types.h>.
10882         (geteuid): Use a dummy value without uid_t.
10883         * modules/sethostname-tests (Depends-on): Remove sys_types.
10884
10885         sethostname tests: Avoid a gcc warning.
10886         * tests/test-sethostname.c (main): Remove an unused variable.
10887
10888         Tweak last commit.
10889         * modules/sethostname-tests (Files): Sort by decreasing importance.
10890         (configure.ac): Check for geteuid.
10891         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
10892         the test when there's nothing to test. Drop an unnecessary cast.
10893         Improve an error message. Verify that the final sethostname() call
10894         succeeds.
10895
10896 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
10897
10898         Add a test suite for the sethostname module.
10899         * modules/sethostname-tests: New file.  A test program
10900         for the sethostname module.
10901         * tests/test-sethostname.c: Likewise.
10902
10903 2011-12-03  Bruno Haible  <bruno@clisp.org>
10904
10905         Tweak last commit.
10906         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
10907         Fix preprocessor directives indentation. Fix typos.
10908         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
10909         * modules/unistd (Makefile): Likewise.
10910
10911 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
10912
10913         Integrate the sethostname module into unistd.
10914         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
10915         into the unistd.h header.
10916         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
10917         preprocessor directives.
10918         * modules/unistd: Setup the Makefile substitutions of the
10919         SETHOSTNAME preprocessor directives.
10920
10921 2011-12-03  Bruno Haible  <bruno@clisp.org>
10922
10923         Tweak last commit.
10924         * lib/sethostname.c: Don't include <string.h>.
10925         (sethostname): No need to copy the argument string to the stack. Don't
10926         call clearerr. Preserve errno when fprintf failed.
10927         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
10928         Don't invoke AC_REPLACE_FUNCS.
10929         * modules/sethostname (Link): Remove empty section.
10930         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
10931         failure problem.
10932
10933 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
10934
10935         New module 'sethostname'.
10936         * lib/sethostname.c (sethostname): New file.  Provide sethostname
10937         for systems that lack it.
10938         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
10939         sethostname declaration and function.
10940         * modules/sethostname: New file.  Define the sethostname module.
10941
10942 2011-12-03  Bruno Haible  <bruno@clisp.org>
10943
10944         Tweak last commit.
10945         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
10946
10947 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
10948
10949         Split the HOST_NAME_MAX detection into a separate m4 macro.
10950         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
10951         macro so it can be used by the pending sethostname module.
10952
10953 2011-12-03  Bruno Haible  <bruno@clisp.org>
10954
10955         Fix module descriptions syntax.
10956         * modules/argv-iter (License): Fix syntax.
10957         * modules/di-set (License): Likewise.
10958         * modules/ino-map (License): Likewise.
10959         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
10960
10961 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
10962
10963         stdalign: port to Clang 3.0
10964         Problem reported by Simon Josefsson in
10965         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
10966         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
10967         which has <stdalign.h> but which does not define alignof.
10968         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
10969
10970 2011-12-01  Eric Blake  <eblake@redhat.com>
10971
10972         mktempd: silence dd usage
10973         * build-aux/mktempd (rand_bytes): Silence dd.
10974
10975 2011-11-30  Simon Josefsson  <simon@josefsson.org>
10976
10977         manywarnings: Don't mention gcc version in docstring.
10978         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
10979         Jim Meyering <meyering@redhat.com>.
10980
10981 2011-11-30  Jim Meyering  <meyering@redhat.com>
10982
10983         hash: mark a few floating point constants with "f" suffix
10984         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
10985         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
10986         floating point constants with "f", since they're destined to be
10987         saved/used as "float"s.
10988
10989 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
10990
10991         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
10992         * tests/test-float.c (test_long_double): Correct and re-enable the
10993         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
10994
10995 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
10996
10997         Avoid subtracting two pointers that don't point into the same block.
10998         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
10999         only pointers into the same memory block are subtracted. We cannot
11000         assume that sizeof (ptrdiff_t) == sizeof (void *).
11001
11002 2011-11-29  Eric Blake  <eblake@redhat.com>
11003
11004         maint.mk: add syntax check for use of compare from init.sh
11005         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
11006         moved here from coreutils.
11007
11008         manywarnings: drop -Wunsuffixed-float-constants
11009         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
11010         '1.0D', which is the only way to silence this warning for 'double'.
11011
11012 2011-11-29  Jim Meyering  <meyering@redhat.com>
11013
11014         hash: mark compute_bucket_size with the pure attribute
11015         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
11016
11017         quotearg, propername: correct pragma guard expression
11018         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
11019         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
11020
11021 2011-11-28  Jim Meyering  <meyering@redhat.com>
11022
11023         propername: do not mark proper_name with the const attribute
11024         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
11025         since it examines data pointed to by its parameter.
11026         * lib/propername.c (proper_name): Instead, add a pragma to suppress
11027         the suggestion from -Wsuggest-attribute=const.
11028
11029         propername: mark one more function as const
11030         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
11031
11032 2011-11-27  Jim Meyering  <meyering@redhat.com>
11033
11034         mark functions with const and pure attributes
11035
11036         Mark functions per suggestions from gcc-4.6 when using these options:
11037         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
11038         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
11039         Follow these guidelines: when possible, apply the attribute to
11040         an extern declaration, not to its definition.  Apply it to the
11041         definition only when the definition is static.
11042         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
11043         * lib/argv-iter.h (argv_iter_n_args): Likewise.
11044         * lib/base64.h (isbase64): Likewise.
11045         * lib/basename-lgpl.c (last_component, base_len): Likewise.
11046         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
11047         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
11048         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
11049         (c_tolower, c_toupper): Likewise.
11050         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
11051         * lib/chdir-long.c (find_non_slash): Likewise.
11052         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
11053         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
11054         * lib/file-type.h (file_type): Likewise.
11055         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
11056         * lib/filevercmp.c (verrevcmp): Likewise.
11057         * lib/freadahead.h (freadahead): Likewise.
11058         * lib/fts.c (fts_maxarglen): Likewise.
11059         * lib/hash-pjw.h (hash_pjw): Likewise.
11060         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
11061         * lib/hash.c (is_prime, next_prime): Likewise.
11062         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
11063         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
11064         (hash_table_ok, hash_get_first, hash_string): Likewise.
11065         (compute_bucket_size): Likewise.
11066         * lib/i-ring.h (i_ring_empty): Likewise.
11067         * lib/isnan.c (isnanl): Likewise.
11068         * lib/math.h (isnanl, rpl_isnanl): Likewise.
11069         * lib/memcasecmp.h (memcasecmp): Likewise.
11070         * lib/memchr2.h (memchr2): Likewise.
11071         * lib/memcmp2.h (memcmp2): Likewise.
11072         * lib/parse-datetime.y (lookup_zone): Likewise.
11073         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
11074         [!WINDOWS_SOCKETS]: Likewise.
11075         * lib/strnlen1.h (strnlen1): Likewise.
11076         * lib/uniwidth.in.h (uc_width): Likewise.
11077         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
11078         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
11079         (quoting_options_from_style): Add a comment.
11080         * lib/propername.h (proper_name): Add a comment.
11081
11082 2011-11-27  Bruno Haible  <bruno@clisp.org>
11083
11084         Remove unused macros from !_LIBC code in glibc-borrowed files.
11085         * lib/fnmatch.c (STRCOLL): Remove macro.
11086         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
11087         * lib/glob.c (__stat, __readdir64): Remove macros.
11088         * lib/tempname.c (__open64, __xstat64): Remove macros.
11089         Suggested by Paul Eggert.
11090
11091 2011-11-27  Bruno Haible  <bruno@clisp.org>
11092
11093         getcwd: Fix link error on MSVC 9.
11094         * modules/getcwd (Depends-on): Add readdir, rewinddir.
11095
11096 2011-11-27  Bruno Haible  <bruno@clisp.org>
11097
11098         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
11099         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
11100         HAVE_OPENDIR is 0.
11101         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
11102         HAVE_CLOSEDIR is 0.
11103         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
11104         is 0.
11105         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
11106
11107 2011-11-27  Bruno Haible  <bruno@clisp.org>
11108
11109         getcwd: Fix bug from 2011-08-17.
11110         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
11111         platforms that need it.
11112         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
11113         code of 4 to be a failure, not a success. This ensures that
11114         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
11115
11116 2011-11-27  Bruno Haible  <bruno@clisp.org>
11117
11118         binary-io tests: Avoid test failure on mingw when libtool is used.
11119         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
11120         Don't verify the size of t-bin-out1.tmp here.
11121         * tests/test-binary-io.sh: Verify it here.
11122         Reported by Simon Josefsson.
11123
11124 2011-11-26  Bruno Haible  <bruno@clisp.org>
11125
11126         Fix conflict between two instantiations of module 'unistd'.
11127         * gnulib-tool (func_emit_autoconf_snippet): Substitute
11128         ${include_guard_prefix} also in the autoconf snippet.
11129         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
11130         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
11131         GNULIB_UNISTD_H_GETOPT.
11132         * modules/getopt-posix (configure.ac): Set the
11133         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
11134         * modules/getopt-gnu (configure.ac): Likewise.
11135         * modules/unistd (Makefile.am): Change the substitution value of
11136         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
11137         Reported by Simon Josefsson.
11138
11139 2011-11-25  Bruno Haible  <bruno@clisp.org>
11140
11141         pagealign_alloc: Doc and comments.
11142         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
11143         module.
11144         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
11145
11146 2011-11-25  Jim Meyering  <meyering@redhat.com>
11147
11148         test-update-copyright.sh: avoid false-positive failure
11149         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
11150         around false positive failure on Cygwin/Windows.  The latter was
11151         matching erroneously-created files with names like
11152         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
11153
11154 2011-11-25  Simon Josefsson  <simon@josefsson.org>
11155
11156         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
11157         * m4/valgrind-tests.m4: Check that the parameters that will be
11158         used works, not just a subset of them.  Reported by Bruno Haible
11159         <bruno@clisp.org>.
11160
11161 2011-11-24  Jim Meyering  <meyering@redhat.com>
11162
11163         test-stdalign.c: comment out long double tests
11164         * tests/test-stdalign.c: Don't try to reduce alignment of long double
11165         variables.  That provokes errors like this from gcc-4.7.0 20111124:
11166         error: '_Alignas' specifiers cannot reduce alignment of \
11167         'static_longdouble_alignas'.
11168
11169 2011-11-22  Jim Meyering  <meyering@redhat.com>
11170
11171         init.sh: make "compare /dev/null FILE" output more readable
11172         * tests/init.sh (compare_): Document the preferred order of arguments.
11173         (emit_diff_u_header_): New function.
11174         (compare_dev_null_): Emit a simulated diff, rather than just the
11175         contents of the unexpected file.  Suggestion from Bruno Haible.
11176
11177 2011-11-21  Jim Meyering  <meyering@redhat.com>
11178             Eric Blake  <eblake@redhat.com>
11179
11180         init.sh: work around OSF/1 5.1's mishandling of /dev/null
11181         * tests/init.sh: Make our compare function slightly more portable.
11182         Reported by Bruno Haible in
11183         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
11184
11185 2011-11-21  Simon Josefsson  <simon@josefsson.org>
11186
11187         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
11188         before using it, in code that ends up in config.h.
11189
11190 2011-11-20  Bruno Haible  <bruno@clisp.org>
11191
11192         getcwd: Work around getcwd bug on AIX 5..7.
11193         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
11194         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
11195         Use a different value for gl_cv_func_getcwd_path_max. Move the
11196         definition of HAVE_PARTLY_WORKING_GETCWD from here...
11197         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
11198         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
11199         Define HAVE_MINIMALLY_WORKING_GETCWD.
11200         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
11201         where it is not even minimally working, that is, on AIX.
11202         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
11203         m4/getcwd-path-max.m4.
11204         (main): Update exit code computation.
11205         * doc/posix-functions/getcwd.texi: Mention list of platforms where
11206         getcwd does not handle long file names.
11207
11208 2011-11-20  Bruno Haible  <bruno@clisp.org>
11209
11210         getcwd: Fix bug from 2009-09-10.
11211         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
11212         like "no".
11213
11214 2011-11-20  Simon Josefsson  <simon@josefsson.org>
11215
11216         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
11217
11218 2011-11-20  Bruno Haible  <bruno@clisp.org>
11219
11220         fma tests: Avoid shadowing local variables.
11221         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
11222         expected.
11223
11224 2011-11-20  Bruno Haible  <bruno@clisp.org>
11225
11226         copysignf tests: Fix.
11227         * tests/test-copysignf.c: Fix signature check.
11228
11229 2011-11-20  Bruno Haible  <bruno@clisp.org>
11230
11231         fma: Remove unused code.
11232         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
11233         unused macros.
11234
11235 2011-11-20  Bruno Haible  <bruno@clisp.org>
11236
11237         sethostname: Fix doc about AIX.
11238         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
11239         sethostname; it has it.
11240
11241         sethostname: Mention more portability problems.
11242         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
11243         problem.
11244         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
11245
11246 2011-11-19  Bruno Haible  <bruno@clisp.org>
11247
11248         Depend on module fcntl-h when AT_FDCWD is used.
11249         * modules/utimens (Depends-on): Add fcntl-h.
11250         * modules/areadlinkat (Depends-on): Likewise.
11251         * modules/areadlinkat-with-size (Depends-on): Likewise.
11252         * modules/faccessat (Depends-on): Likewise.
11253         * modules/fchmodat (Depends-on): Likewise.
11254         * modules/fchownat (Depends-on): Likewise.
11255         * modules/getcwd (Depends-on): Likewise.
11256         * modules/mkdirat (Depends-on): Likewise.
11257         * modules/mkfifoat (Depends-on): Likewise.
11258         * modules/readlinkat (Depends-on): Likewise.
11259         * modules/symlinkat (Depends-on): Likewise.
11260         * modules/dup2-tests (Depends-on): Likewise.
11261         * modules/fdutimensat-tests (Depends-on): Likewise.
11262         * modules/futimens-tests (Depends-on): Likewise.
11263
11264 2011-11-19  Bruno Haible  <bruno@clisp.org>
11265
11266         euidaccess: Update a comment.
11267         * lib/euidaccess.c: Update comment about platforms with faccessat.
11268
11269 2011-11-19  Bruno Haible  <bruno@clisp.org>
11270
11271         openat: Fix file list.
11272         * modules/openat (Files): Remove lib/at-func.c.
11273
11274 2011-11-19  Bruno Haible  <bruno@clisp.org>
11275
11276         fstatat: Simplify.
11277         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
11278         gnulib should define rpl_fstatat, there is a
11279         "#define fstatat rpl_fstatat" in <sys/stat.h>.
11280
11281 2011-11-19  Bruno Haible  <bruno@clisp.org>
11282
11283         Ensure 'inline' can be used in tests/test-utimens-common.h.
11284         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
11285         * modules/futimens-tests (configure.ac): Likewise.
11286         * modules/utimens-tests (configure.ac): Likewise.
11287         * modules/utimensat-tests (configure.ac): Likewise.
11288
11289 2011-11-19  Simon Josefsson  <simon@josefsson.org>
11290
11291         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
11292         not hash_insert0.
11293         (hash_insert_if_absent): Doc fix.
11294
11295 2011-11-19  Simon Josefsson  <simon@josefsson.org>
11296
11297         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
11298
11299 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
11300
11301         test-getcwd: disambiguate exit status
11302         * tests/test-getcwd.c (test_long_name): Return 0..7.
11303         (main): Exit with an unambiguous exit status.  The old
11304         code yielded a mysterious mixture of two failure codes.
11305
11306         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
11307         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
11308         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
11309         rpl_fstatat or fstatat.  This should fix the other problem
11310         reported by Kai Habel in
11311         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
11312         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
11313         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
11314         and I reproduced it on a Solaris 8 host we still have in production.
11315
11316 2011-11-18  Jim Meyering  <meyering@redhat.com>
11317
11318         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
11319         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
11320         Add a sentence to the comment.
11321         (hash_insert0): New function that simply calls hash_insert_if_absent.
11322         * lib/hash.h (hash_insert_if_absent): Declare it.
11323         (hash_insert0): Add deprecation attribute.
11324         (_GL_ATTRIBUTE_DEPRECATED): Define.
11325         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
11326         not hash_insert0.
11327         * NEWS: Mention it, even though it's not really an incompatible change.
11328
11329 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
11330
11331         openat: avoid compilation failure due to lack of <errno.h> inclusion
11332         * lib/openat.c: Include <errno.h>.
11333
11334 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
11335
11336         * modules/getcwd (Depends-on): Add fdopendir.
11337         This fixes one of the two problems reported by Kai Habel in
11338         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
11339
11340         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
11341         stdalign problem reported by Ian Beckwith in
11342         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
11343         * modules/crypto/gc-arcfour (Depends-on):
11344         Depend conditionally on crypto/arcfour.
11345         * modules/crypto/gc-arctwo (Depends-on):
11346         Depend conditionally on crypto/arctwo.
11347         * modules/crypto/gc-des (Depends-on):
11348         Depend conditionally on crypto/des.
11349         * modules/crypto/gc-hmac-md5 (Depends-on):
11350         Depend conditionally on crypto/hmac-md5.
11351         * modules/crypto/gc-hmac-sha1 (Depends-on):
11352         Depend conditionally on crypto/hmac-sha1.
11353         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
11354         * modules/crypto/gc-md4 (Depends-on):
11355         Depend conditionally on crypto/md4.
11356         * modules/crypto/gc-md5 (Depends-on):
11357         Depend conditionally on crypto/md5.
11358         * modules/crypto/gc-rijndael (Depends-on):
11359         Depend conditionally on crypto/rijndael.
11360         * modules/crypto/gc-sha1 (Depends-on):
11361         Depend conditionally on crypto/sha1.
11362         * modules/crypto/gc-arcfour:
11363         * modules/crypto/gc-arctwo:
11364         * modules/crypto/gc-des:
11365         * modules/crypto/gc-hmac-md5:
11366         * modules/crypto/gc-hmac-sha1:
11367         * modules/crypto/gc-md2:
11368         * modules/crypto/gc-md4:
11369         * modules/crypto/gc-md5:
11370         * modules/crypto/gc-rijndael:
11371         * modules/crypto/gc-sha1:
11372         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
11373         now that the conditional dependencies do the work for us.
11374
11375 2011-11-17  Jim Meyering  <meyering@redhat.com>
11376
11377         tests: factor st_ctime-comparison out of two headers
11378         * tests/test-utimens-common.h (ctime_compare): Define.
11379         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
11380         * tests/test-lutimens.h (test_lutimens): Likewise.
11381         * tests/test-utimens.h (test_utimens): Likewise.
11382
11383         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
11384         Invoke the test program via an init.sh-using wrapper.
11385         * tests/test-getcwd.sh: New file.
11386         * modules/getcwd-tests (Files): Add it.
11387         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
11388
11389 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
11390
11391         gitlog-to-changelog: support multi-author commits.
11392         The FSF cares about keeping track of all authors of patches to its
11393         projects, but Git doesn't provide obvious support for multi-author
11394         changesets. Consensus seems to be forming around the use of extra
11395         Signed-off-by inspired lines in the log message formatted as
11396         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
11397         multi-author commits between version control systems.
11398         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
11399         log message and output in standard ChangeLog multi-author format.
11400         Reported by Peter Rosin <peda@lysator.liu.se>
11401
11402 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
11403             Bruno Haible  <bruno@clisp.org>
11404
11405         Fix some modules' file list.
11406         * modules/fstatat (Files): Add m4/lstat.m4.
11407         * modules/openat (Files): Likewise.
11408         * modules/unlinkat (Files): Likewise.
11409
11410 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
11411
11412         maint.mk: fix tight-scope.mk generation in VPATH builds.
11413         * top/maint.mk (tight-scope.mk): Make sure to prefix file
11414         reference with $(srcdir) so that the file is found correctly even
11415         when running `make syntax-check' in a VPATH build.
11416
11417 2011-11-13  Bruno Haible  <bruno@clisp.org>
11418             Jim Meyering  <meyering@redhat.com>
11419
11420         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
11421         * tests/init.sh (compare): Remove "No differences encountered" or
11422         synonymous output from the 'diff' program.
11423
11424 2011-11-13  Bruno Haible  <bruno@clisp.org>
11425
11426         Makefile: Tweak indentation.
11427         * Makefile: Use tab as first character in every line that contains rule
11428         commands.
11429
11430 2011-11-13  Bruno Haible  <bruno@clisp.org>
11431
11432         Syntax check for copyright statements.
11433         * check-copyright: New file.
11434         * Makefile (sc_check_copyright): New rule.
11435
11436 2011-11-13  Simon Josefsson  <simon@josefsson.org>
11437
11438         * build-aux/git-version-gen: Add --prefix to configure the tag
11439         match string.
11440
11441 2011-11-13  Simon Josefsson  <simon@josefsson.org>
11442
11443         * build-aux/git-version-gen: Add --help and --version.
11444
11445 2011-11-12  Jim Meyering  <meyering@redhat.com>
11446
11447         revamp the other test-exclude?.sh scripts to use init.sh, too
11448         * tests/test-exclude1.sh: Use init.sh.
11449         * tests/test-exclude2.sh: Likewise.
11450         * tests/test-exclude3.sh: Likewise.
11451         * tests/test-exclude4.sh: Likewise.
11452         * tests/test-exclude5.sh: Likewise.
11453         * tests/test-exclude6.sh: Likewise.
11454         * tests/test-exclude7.sh: Likewise.
11455         * tests/test-exclude8.sh: Likewise.
11456         * modules/exclude-tests (Files): List init.sh.
11457
11458         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
11459         These shell scripts ignored failure of the binary test-exclude,
11460         so making the latter return 77 didn't cause them to be skipped.
11461         * tests/test-exclude5.sh: Exit with test-exclude's error status
11462         when that program fails.  Revamp to use init.sh.
11463         * tests/test-exclude2.sh: Likewise.
11464
11465         test-exclude: fix a typo
11466         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
11467
11468 2011-11-11  Bruno Haible  <bruno@clisp.org>
11469
11470         obstack: Fix compilation error on MSVC 9.
11471         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
11472
11473 2011-11-11  Jim Meyering  <meyering@redhat.com>
11474
11475         test-exclude: skip tests rather than failing on deficient systems
11476         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
11477         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
11478         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
11479         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
11480
11481 2011-11-10  Bruno Haible  <bruno@clisp.org>
11482
11483         ptsname_r test: Avoid gcc warning on glibc systems.
11484         * tests/test-ptsname_r.c (null_ptr): New function.
11485         (test_errors): Use it.
11486
11487 2011-11-10  Bruno Haible  <bruno@clisp.org>
11488
11489         ptsname_r: Avoid compilation error on OSF/1 5.1.
11490         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
11491         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
11492         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
11493         function is not declared or incompatibly declared.
11494         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
11495         * modules/ptsname_r (Depends-on, configure.ac): Update.
11496         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
11497
11498 2011-11-10  Bruno Haible  <bruno@clisp.org>
11499
11500         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
11501         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
11502         When cross-compiling, guess yes on all platforms except AIX.
11503         Reported by Ludovic Courtès <ludo@gnu.org>.
11504
11505 2011-11-09  Bruno Haible  <bruno@clisp.org>
11506
11507         ptsname_r tests: Fix bugs.
11508         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
11509         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
11510
11511 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
11512
11513         fstatat: work with cross-compilation
11514         Problem reported by Ludovic Courtès in
11515         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
11516         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
11517         "cross-compiling" and assume the bug is present.  Replace
11518         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
11519         an inverted sense, to be more conservative about our assumptions.
11520         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
11521
11522 2011-11-09  Bruno Haible  <bruno@clisp.org>
11523
11524         Improve MODULES.html output.
11525         * modules/mkfifoat (Description): Use the word "function".
11526         * modules/readlinkat (Description): Likewise.
11527         * modules/symlinkat (Description): Likewise.
11528
11529 2011-11-09  Eric Blake  <eblake@redhat.com>
11530
11531         ptsname_r-tests: new test module
11532         * modules/ptsname_r-tests: New module.
11533         * tests/test-ptsname_r.c: New file.
11534
11535         ptsname_r: new module
11536         * modules/ptsname_r: New module.
11537         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
11538         * lib/ptsname.c (__ptsname_r): Split...
11539         * lib/ptsname_r.c: ...into new file.
11540         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
11541         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
11542         * modules/stdlib (Makefile.am): Substitute witnesses.
11543         * lib/stdlib.in.h (ptsname_r): Declare it.
11544         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
11545         * MODULES.html.sh (Misc): Likewise.
11546         * modules/ptsname (Depends-on): Alter dependency.
11547         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
11548
11549 2011-11-09  Jim Meyering  <meyering@redhat.com>
11550
11551         announce-gen: be more concise when there's only one URL+tarball
11552         * build-aux/announce-gen (get_tool_versions): When you distribute
11553         only one type of tarball, combine the first two "Here are..."
11554         sections and make the key-checking grammar independent of
11555         how many tarballs there are.
11556
11557 2011-11-09  Eric Blake  <eblake@redhat.com>
11558
11559         openpty: provide a stub on mingw
11560         * lib/pty.in.h (includes): Provide forward declarations.
11561         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
11562
11563         raise: fix mingw handling of SIGPIPE
11564         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
11565
11566 2011-11-08  Bruno Haible  <bruno@clisp.org>
11567
11568         More conditional dependencies.
11569         * modules/faccessat (Depends-on): Add conditions.
11570         * modules/fchmodat (Depends-on): Likewise.
11571         * modules/fchownat (Depends-on): Likewise.
11572         * modules/fstatat (Depends-on): Likewise.
11573         * modules/mkfifoat (Depends-on): Likewise.
11574         * modules/readlinkat (Depends-on): Likewise.
11575         * modules/symlinkat (Depends-on): Likewise.
11576         * modules/unlinkat (Depends-on): Likewise.
11577         * modules/utimensat (Depends-on): Likewise.
11578         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
11579         * modules/linkat (Depends-on): Refine the conditions.
11580         * modules/renameat (Depends-on): Likewise.
11581
11582 2011-11-08  Bruno Haible  <bruno@clisp.org>
11583
11584         faccessat: Move AC_LIBOBJ invocation to module description.
11585         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
11586         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
11587         invocation from here...
11588         * modules/faccessat (configure.ac): ... to here. Invoke
11589         gl_PREREQ_FACCESSAT.
11590
11591 2011-11-08  Bruno Haible  <bruno@clisp.org>
11592
11593         faccessat: Simplify autoconf macro.
11594         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
11595         gl_FUNC_EUIDACCESS.
11596
11597 2011-11-08  Bruno Haible  <bruno@clisp.org>
11598
11599         renameat: Fix dependencies.
11600         * modules/renameat (Depends-on): Add stdbool.
11601
11602 2011-11-08  Bruno Haible  <bruno@clisp.org>
11603
11604         mkfifoat: Fix module description.
11605         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
11606         not gl_UNISTD_MODULE_INDICATOR.
11607
11608 2011-11-08  Bruno Haible  <bruno@clisp.org>
11609
11610         fstatat: Remove unused dependency.
11611         * modules/fstatat (Depends-on): Remove fstat.
11612
11613 2011-11-08  Simon Josefsson  <simon@josefsson.org>
11614
11615         GNUmakefile: behave when Makefile is missing.
11616         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
11617
11618 2011-11-08  Bruno Haible  <bruno@clisp.org>
11619
11620         openat: Conditionalize dependencies.
11621         * lib/openat.c: Reduce the scope of some #includes.
11622         * modules/openat (Depends-on): Add conditions.
11623
11624 2011-11-07  Jim Meyering  <meyering@redhat.com>
11625
11626         maint.mk: extract GPG key ID without using a temporary file
11627         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
11628         without using a temporary file.  Based on a suggestion from Werner Koch
11629         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
11630
11631 2011-11-07  Eric Blake  <eblake@redhat.com>
11632
11633         grantpt: fix typo
11634         * lib/stdlib.in.h (grantpt): Check correct function.
11635
11636         maint.mk: silence new syntax check
11637         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
11638
11639 2011-11-06  Bruno Haible  <bruno@clisp.org>
11640
11641         Doc about floating-point and math API.
11642         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
11643         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
11644
11645 2011-11-06  Bruno Haible  <bruno@clisp.org>
11646
11647         stdalign tests: Skip the test when compiled by Sun C.
11648         * tests/test-stdalign.c (main): Skip the test on Sun C.
11649
11650 2011-11-06  Bruno Haible  <bruno@clisp.org>
11651
11652         ansi-c++-opt: Complete the 2011-06-05 change.
11653         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
11654         does not support namespaces, set the variable to "no", not to ":".
11655
11656 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
11657
11658         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
11659
11660 2011-11-06  Bruno Haible  <bruno@clisp.org>
11661
11662         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
11663         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
11664         (minus_zerol) [HP-UX]: New macro.
11665         (unary_minus) [HP-UX]: New function.
11666         (copysignl) [HP-UX]: Use unary_minus function.
11667
11668 2011-11-06  Bruno Haible  <bruno@clisp.org>
11669
11670         ldexp, ldexpf, ldexpl: Enhance tests.
11671         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
11672         and tests/test-ldexpl.c.
11673         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
11674         LDEXP, MIN_EXP, MAX_EXP): New macros.
11675         Include test-ldexp.h.
11676         (main): Just call test_function.
11677         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
11678         infinity.h, nan.h.
11679         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
11680         MAX_EXP): New macros.
11681         Include test-ldexp.h.
11682         (x, y): Remove variables.
11683         (main): Just call test_function.
11684         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
11685         infinity.h, nan.h.
11686         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
11687         MAX_EXP): New macros.
11688         Include test-ldexp.h.
11689         (x, y): Remove variables.
11690         (main): Just call test_function.
11691         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
11692         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
11693         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
11694         (Depends-on): Add isnand-nolibm, signbit, float.
11695         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
11696         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
11697         (Depends-on): Add isnanf-nolibm, signbit, float.
11698
11699 2011-11-06  Bruno Haible  <bruno@clisp.org>
11700
11701         math tests: Cosmetics.
11702         * tests/test-math-c++.cc: Reorder declarations.
11703
11704 2011-11-05  Bruno Haible  <bruno@clisp.org>
11705
11706         fma*: Simplify test.
11707         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
11708         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
11709
11710         Tests for module 'fmal'.
11711         * modules/fmal-tests: New file.
11712         * tests/test-fmal1.c: New file.
11713         * tests/test-fmal2.c: New file.
11714
11715         New module 'fmal'.
11716         * lib/math.in.h (fmal): New declaration.
11717         * lib/fmal.c: New file.
11718         * m4/fmal.m4: New file.
11719         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
11720         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
11721         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
11722         REPLACE_FMAL.
11723         * modules/fmal: New file.
11724         * doc/posix-functions/fmal.texi: Mention the new module and the various
11725         bugs.
11726
11727         Tests for module 'fmaf'.
11728         * modules/fmaf-tests: New file.
11729         * tests/test-fmaf1.c: New file.
11730         * tests/test-fmaf2.c: New file.
11731
11732         New module 'fmaf'.
11733         * lib/math.in.h (fmaf): New declaration.
11734         * lib/fmaf.c: New file.
11735         * m4/fmaf.m4: New file.
11736         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
11737         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
11738         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
11739         REPLACE_FMAF.
11740         * modules/fmaf: New file.
11741         * doc/posix-functions/fmaf.texi: Mention the new module and the various
11742         bugs.
11743
11744         Tests for module 'fma'.
11745         * modules/fma-tests: New file.
11746         * tests/test-fma1.c: New file.
11747         * tests/test-fma1.h: New file.
11748         * tests/test-fma2.c: New file.
11749         * tests/test-fma2.h: New file.
11750
11751         New module 'fma'.
11752         * lib/math.in.h (fma): New declaration.
11753         * lib/fma.c: New file.
11754         * m4/fma.m4: New file.
11755         * m4/fegetround.m4: New file.
11756         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
11757         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
11758         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
11759         REPLACE_FMA.
11760         * modules/fma: New file.
11761         * doc/posix-functions/fma.texi: Mention the new module and the various
11762         bugs.
11763
11764         Extend gl_MATHFUNC.
11765         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
11766         Support 'void' as argument type.
11767         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
11768
11769 2011-11-05  Jim Meyering  <meyering@redhat.com>
11770
11771         maint.mk: also prohibit inclusion of dirent.h without use
11772         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
11773
11774 2011-11-05  Bruno Haible  <bruno@clisp.org>
11775
11776         ldexpl tests: Avoid test failure on MSVC 9.
11777         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
11778         value. Needed in order to enforce the conversion from a value greater
11779         than LDBL_MAX to Infinity.
11780
11781 2011-11-05  Bruno Haible  <bruno@clisp.org>
11782
11783         New modules 'at-internal', 'openat-h', split off from module 'openat'.
11784         * modules/at-internal: New file, extracted from modules/openat.
11785         * modules/openat-h: New file.
11786         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
11787         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
11788         * modules/openat (Description): Add reference to POSIX function.
11789         (Files): Remove lib/openat.h, lib/openat-proc.c.
11790         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
11791         intprops, unistd.
11792         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
11793         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
11794         gl_FCNTL_MODULE_INDICATOR.
11795         (Include): Remove unistd.h, openat.h.
11796         * modules/areadlinkat (Files): Add lib/at-func.c.
11797         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
11798         openat-die, openat-h, save-cwd.
11799         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
11800         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
11801         openat-die, openat-h, save-cwd, unistd.
11802         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
11803         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
11804         openat-h, save-cwd. Remove fcntl-h, openat.
11805         * modules/fchmodat (Files): Remove lib/openat.h.
11806         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
11807         openat, stdbool, unistd.
11808         * modules/fchownat (Files): Remove lib/openat.h.
11809         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
11810         openat, stdbool, sys_stat.
11811         * modules/fdopendir (Files): Remove lib/openat-priv.h,
11812         lib/openat-proc.c.
11813         (Depends-on): Add at-internal.
11814         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
11815         * modules/fstatat (Files): Remove lib/openat.h.
11816         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
11817         stdbool, unistd.
11818         * modules/fts (Depends-on): Add openat-h.
11819         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
11820         openat.
11821         * modules/mkdirat (Files): Remove lib/openat.h.
11822         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
11823         openat, stdbool, sys_stat.
11824         * modules/mkfifoat (Files): Add lib/at-func.c.
11825         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
11826         openat-h, save-cwd. Remove fcntl-h, openat.
11827         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
11828         * modules/readlinkat (Files): Add lib/at-func.c.
11829         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
11830         openat-h, save-cwd. Remove fcntl-h, openat.
11831         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
11832         openat.
11833         * modules/selinux-at (Files): Add lib/at-func.c.
11834         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
11835         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
11836         * modules/symlinkat (Files): Add lib/at-func.c.
11837         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
11838         openat-h, save-cwd. Remove fcntl-h, openat.
11839         * modules/unlinkat (Files): Remove lib/openat.h.
11840         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
11841         stdbool.
11842         * modules/utimensat (Files): Add lib/at-func.c.
11843         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
11844         openat-die, openat-h, save-cwd.
11845         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
11846         * modules/fdutimensat-tests (Depends-on): Add openat.
11847         * modules/fstatat-tests (Depends-on): Add openat-h.
11848         * modules/readlinkat-tests (Depends-on): Add openat.
11849         * modules/symlinkat-tests (Depends-on): Add openat.
11850
11851 2011-11-05  Bruno Haible  <bruno@clisp.org>
11852
11853         openat: Include <stdbool.h>.
11854         * lib/openat.c: Include <stdbool.h>.
11855
11856 2011-11-04  Bruno Haible  <bruno@clisp.org>
11857
11858         fchownat, renameat, unlinkat: Fix dependencies.
11859         * modules/fchownat (Depends-on): Add fstatat.
11860         * modules/renameat (Depends-on): Likewise.
11861         * modules/unlinkat (Depends-on): Likewise.
11862
11863 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
11864
11865         openat: remove direct dependency on dirent
11866         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
11867         and hasn't been needed ever since fdopendir was split into its own
11868         module on 2009-08-31.
11869         * modules/openat (Depends-on): Remove dirent.
11870
11871 2011-11-04  Bruno Haible  <bruno@clisp.org>
11872
11873         renameat: Optimize code size.
11874         * modules/renameat (configure.ac): Don't compile at-func2.c if
11875         REPLACE_RENAMEAT is 1.
11876
11877 2011-11-04  Bruno Haible  <bruno@clisp.org>
11878
11879         openat tests: Fix file list.
11880         * modules/openat-tests (Files): Add tests/test-open.h.
11881
11882 2011-11-04  Bruno Haible  <bruno@clisp.org>
11883
11884         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
11885         * modules/fchmodat (Depends-on): Add openat-die.
11886         * modules/fchownat (Depends-on): Likewise.
11887         * modules/linkat (Depends-on): Likewise.
11888         * modules/renameat (Depends-on): Likewise.
11889         * modules/openat (Depends-on): Add dirent.
11890
11891 2011-11-04  Jim Meyering  <meyering@redhat.com>
11892
11893         at-func*.c: fix comments
11894         * lib/at-func2.c: Correct/improve first-line comment.
11895         * lib/at-func.c: Correct grammar in first-line comment.
11896
11897 2011-11-04  Bruno Haible  <bruno@clisp.org>
11898
11899         New module 'mkdirat', split off from module 'openat'.
11900         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
11901         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
11902         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
11903         * modules/mkdirat: New file, extracted from modules/openat.
11904         * modules/openat (Files): Remove lib/mkdirat.c.
11905         (Depends-on): Remove mkdir.
11906         (configure.ac): Remove AC_LIBOBJ of mkdirat.
11907         (Include): Remove <sys/stat.h>.
11908         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
11909         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
11910         tests/test-mkdir.h.
11911         (Depends-on): Remove ignore-value.
11912         (Makefile.am): Remove rules for test-mkdirat.
11913         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
11914         of module 'openat'.
11915         * NEWS: Mention the change.
11916
11917 2011-11-04  Bruno Haible  <bruno@clisp.org>
11918
11919         closedir: Avoid warning on mingw.
11920         * lib/closedir.c: Include <unistd.h>.
11921
11922 2011-11-04  Bruno Haible  <bruno@clisp.org>
11923
11924         New module 'fstatat', split off from module 'openat'.
11925         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
11926         defined.
11927         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
11928         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
11929         gl_FUNC_FSTATAT.
11930         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
11931         * modules/fstatat: New file, extracted from modules/openat.
11932         * modules/openat (Files): Remove lib/fstatat.c.
11933         (Depends-on): Remove lstat.
11934         (configure.ac): Remove AC_LIBOBJ of fstatat.
11935         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
11936         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
11937         tests/test-lstat.h, tests/test-stat.h.
11938         (Depends-on): Remove getcwd-lgpl.
11939         (Makefile.am): Remove rules for test-fstatat.
11940         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
11941         of module 'openat'.
11942         * NEWS: Mention the change.
11943         * modules/getcwd (Depends-on): Add fstatat.
11944         * modules/linkat (Depends-on): Likewise.
11945         * modules/mkfifoat-tests (Depends-on): Likewise.
11946         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
11947
11948 2011-11-03  Bruno Haible  <bruno@clisp.org>
11949
11950         New module 'unlinkat', split off from module 'openat'.
11951         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
11952         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
11953         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
11954         * modules/unlinkat: New file, extracted from modules/openat. Correct
11955         the dependency conditions.
11956         * modules/openat (Files): Remove lib/unlinkat.c.
11957         (Depends-on): Remove rmdir, unlink.
11958         (configure.ac): Remove AC_LIBOBJ of unlinkat.
11959         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
11960         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
11961         tests/test-rmdir.h, tests/test-unlink.h.
11962         (Depends-on): Remove unlinkdir.
11963         (Makefile.am): Remove rules for test-unlinkat.
11964         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
11965         of module 'openat'.
11966         * NEWS: Mention the change.
11967         * modules/linkat-tests (Depends-on): Add unlinkat.
11968         * modules/mkfifoat-tests (Depends-on): Likewise.
11969         * modules/readlinkat-tests (Depends-on): Likewise.
11970
11971 2011-11-02  Bruno Haible  <bruno@clisp.org>
11972
11973         New module 'fchmodat', split off from module 'openat'.
11974         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
11975         defined.
11976         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
11977         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
11978         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
11979         * modules/fchmodat: New file, extracted from modules/openat.
11980         * modules/openat (Files): Remove lib/fchmodat.c.
11981         (configure.ac): Remove AC_LIBOBJ of fchmodat.
11982         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
11983         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
11984         (Makefile.am): Remove rules for test-fchmodat.
11985         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
11986         of module 'openat'.
11987         * NEWS: Mention the change.
11988
11989 2011-11-02  Jim Meyering  <meyering@redhat.com>
11990
11991         putenv: indent #definition of "environ" to placate cppi
11992         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
11993
11994         gitlog-to-changelog: provide a ChangeLog-repair mechanism
11995         Git logs are often treated as immutable, because editing them
11996         changes the SHA1 checksums of all descendants.  Thus, errors in
11997         git logs tend to stay there forever.  However, when we generate
11998         a ChangeLog file -- typically for distribution -- from that git log,
11999         we can actually make corrections in the generated file.  The key
12000         lies in recording in machine-readable/applicable form the desired
12001         corrections.  See --help for description and an example.
12002         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
12003         (usage): Describe it; alphabetize option descriptions.
12004         (main): Honor the new option, carefully.
12005
12006 2011-11-01  Jim Meyering  <meyering@redhat.com>
12007
12008         gitlog-to-changelog: avoid an infloop
12009         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
12010         that ends up being empty.
12011
12012 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
12013
12014         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
12015         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
12016         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
12017         contains (possibly-quoted) backslashes.  This should avoid
12018         all-too-common shell bugs if COMPLICATED contains backslashes in
12019         the "wrong" places.  Reported by David Evans in
12020         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
12021         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
12022         because we want ASCII ranges.  Is there some reason we don't use
12023         the C locale everywhere in this script?
12024         (func_module, top level): Avoid unwanted pathname expansion when
12025         $repo_url_prefix or $repo_url_suffix_repl contain shell
12026         metacharacters like '?' and '*'.
12027
12028 2011-11-01  Bruno Haible  <bruno@clisp.org>
12029
12030         fchownat: Improve description.
12031         * modules/fchownat (Description): Add link to function.
12032
12033 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
12034
12035         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
12036         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
12037         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
12038         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
12039
12040 2011-11-01  Bruno Haible  <bruno@clisp.org>
12041
12042         alignof: Avoid collision with stdalign module.
12043         * lib/alignof.h (alignof): Remove macro.
12044         * NEWS: Mention the change.
12045         Reported by Paul Eggert.
12046
12047 2011-11-01  Bruno Haible  <bruno@clisp.org>
12048
12049         New module 'fchownat', split off from module 'openat'.
12050         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
12051         defined.
12052         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
12053         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
12054         invoke gl_FUNC_FCHOWNAT.
12055         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
12056         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
12057         * modules/fchownat: New file, extracted from modules/openat.
12058         * modules/openat (Files): Remove lib/fchownat.c.
12059         (Depends-on): Remove lchown.
12060         (configure.ac): Remove AC_LIBOBJ of fchownat.
12061         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
12062         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
12063         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
12064         (Depends-on): Remove mgetgroups, usleep, stat-time.
12065         (configure.ac): Remove test for getegid.
12066         (Makefile.am): Remove rules for test-fchownat.
12067         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
12068         of module 'openat'.
12069         * NEWS: Mention the change.
12070
12071 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
12072
12073         stdalign: port better to MSVC and to Sun C 5.11
12074         This fixes some of the problems reported by Bruno Haible in
12075         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
12076         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
12077         shortcomings of MSVC and of Sun C 5.11.
12078         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
12079         around __declspec arg.
12080         * modules/stdalign-tests (Files): Add tests/macros.h.
12081         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
12082         Include macros.h, for ASSERT.
12083         (DECLARE_ALIGNED): Remove.
12084         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
12085         to catch bug), and to 1 if not (simplifies the rest of the code).
12086         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
12087         (CHECK_AUTO): Remove.
12088         (CHECK_ALIGNED): Check only the alignment of the static vars,
12089         since auto var alignment isn't supported by Sun C 5.11.
12090         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
12091         ASSERT failures are easier to diagnose.
12092
12093 2011-10-31  Bruno Haible  <bruno@clisp.org>
12094
12095         doc about some IRIX 5.3 problems.
12096         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
12097         on IRIX 5.3.
12098         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
12099         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
12100         5.3.
12101         * doc/posix-functions/grantpt.texi: Likewise.
12102         * doc/posix-functions/unlockpt.texi: Likewise.
12103         * doc/posix-functions/lgamma.texi: Likewise.
12104         * doc/posix-functions/nextafter.texi: Likewise.
12105         * doc/posix-functions/remainder.texi: Likewise.
12106         * doc/posix-functions/select.texi: Mention misplaced declaration on
12107         IRIX 5.3.
12108         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12109
12110 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
12111
12112         gitlog-to-changelog: fix git-log invocation.
12113         git-log mishandles date strings before 1970-01-01 UTC, and there is
12114         no use to specify --since=1970-01-01 by default anyway.
12115         * build-aux/gitlog-to-changelog: By default, when no --since option
12116         was given, do not specify explicit --since option to git-log.
12117
12118 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
12119
12120         gitlog-to-changelog: new option --append-dot.
12121         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
12122         first non-blank line of each commit message terminated with a dot.
12123
12124 2011-10-30  Bruno Haible  <bruno@clisp.org>
12125
12126         ffsl, ffsll: Avoid compilation error due to 'restrict'.
12127         * lib/ffsl.h: Include <config.h>.
12128         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
12129
12130 2011-10-30  Jim Meyering  <meyering@redhat.com>
12131
12132         GNUmakefile: reenable "make syntax-check" for most projects
12133         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
12134         build-aux variable", "syntax-check" would do nothing but succeed with
12135         the "No version control files detected..." diagnostic (unless you
12136         happened to override _build-aux via cfg.mk).
12137         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
12138         to precede inclusion of maint.mk.  Otherwise, these variables would
12139         be used undefined in any project that does not override the default.
12140
12141 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
12142
12143         gitlog-to-changelog: treat a message with only blank lines as empty.
12144         * build-aux/gitlog-to-changelog: Move the code that removes leading and
12145         trailing blank lines before the code that issues a warning about an
12146         empty commit message.
12147
12148 2011-10-30  Jim Meyering  <meyering@redhat.com>
12149
12150         test-parse-datetime.c: avoid new DST-related false positive test failure
12151         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
12152         based on the time/date we'll convert, not the current time.
12153         Otherwise, the moment we cross a DST boundary like today's in
12154         Europe, (CEST to CET), that offset ends up being one hour off.
12155
12156 2011-10-27  Bruno Haible  <bruno@clisp.org>
12157
12158         fstat: Tweak documentation.
12159         * modules/fstat (Description): More precise description.
12160
12161 2011-10-27  Bruno Haible  <bruno@clisp.org>
12162
12163         Update documentation regarding 'largefile' module.
12164         * doc/posix-functions/fstat.texi: Tweak wording.
12165         * doc/posix-functions/opendir.texi: Mention that the module fixes the
12166         problems with huge directories and/or small ino_t types.
12167         * doc/posix-functions/readdir.texi: Likewise.
12168         * doc/posix-functions/rewinddir.texi: Likewise.
12169
12170 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
12171
12172         maint.mk: don't maintain a second build-aux variable.
12173         * maint.mk (build_aux): Removed.  The maintainer-makefile module
12174         depends on GNUmakefile, which already maintains a cfg.mk
12175         overridable $(_build-aux) for projects with a non-standard
12176         build-aux directory location, although without the $(srcdir)
12177         prefix.  Use that variable consistently instead of introducing a
12178         second one.  Adjust all call sites.
12179
12180 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
12181
12182         Add stdalign module and use it in other modules.
12183         This is based on a previous proposal by Bruno Haible
12184         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
12185
12186         stdalign: new module
12187         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
12188         * modules/stdalign: New files.
12189         * MODULES.html.sh (c1x_core_properties): Add stdalign.
12190         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
12191
12192         stdalign-tests: new module
12193         * modules/stdalign-tests, tests/test-stdalign.c: New files.
12194
12195         argp: use stdalign
12196         * lib/argp-parse.c: Include <stdalign.h>.
12197         (alignof): Remove.
12198         * modules/argp (Depends-on): Add stdalign.
12199
12200         crypto libraries: use stdalign
12201         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
12202         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
12203         Do not include <stdlib.h> twice, in md4.c.
12204         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
12205         because we are accessing a pointer's bit-pattern, not a size.
12206         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
12207         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
12208         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
12209         * modules/crypto/sha512: Likewise.
12210
12211         sys_socket: use stdalign, not alignof
12212         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
12213         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
12214
12215 2011-10-27  Bruno Haible  <bruno@clisp.org>
12216
12217         raise test: Avoid a test failure on Linux/MIPS.
12218         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
12219         because 99 is a valid signal on Linux/MIPS.
12220
12221 2011-10-27  Bruno Haible  <bruno@clisp.org>
12222
12223         nonblocking tests: Fix test failure on Linux/MIPS.
12224         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
12225         Set to 270000.
12226
12227 2011-10-27  Bruno Haible  <bruno@clisp.org>
12228
12229         utimensat: Work around problem on Linux/hppa.
12230         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
12231         values.
12232         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
12233
12234 2011-10-25  Jim Meyering  <meyering@redhat.com>
12235
12236         maint.mk: fix a bug in sc_prohibit_stddef_without_use
12237         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
12238         after symbols like NULL, size_t, etc.
12239         Reported by Alfred M. Szmidt.
12240
12241         maint.mk: exempt ENODATA from a syntax-check rule
12242         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
12243         from the sc_prohibit_always-defined_macros syntax-check rule.
12244         Add a comment.  See this for more details:
12245         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
12246
12247 2011-10-23  Jim Meyering  <meyering@redhat.com>
12248
12249         fts: close parent dir FD before returning from post-traversal fts_read
12250         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
12251         unlink A, even though an FD open on A remained.  This is suboptimal
12252         (holding a file descriptor open longer than needed), but otherwise not
12253         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
12254         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
12255         that represents a real problem: it causes the removal of A to fail
12256         with e.g., "rm: cannot remove `A': Device or resource busy"
12257
12258         fts visits each directory twice and keeps a cache (fts_fd_ring) of
12259         directory file descriptors.  After completing the final, FTS_DP,
12260         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
12261         cache, but then proceeded to add a new FD to it via the subsequent
12262         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
12263         final file descriptor would be closed only via fts_close's call to
12264         fd_ring_clear.  Now, it is usually closed earlier, via the final
12265         FTS_DP-returning fts_read call.
12266         * lib/fts.c (restore_initial_cwd): New function, converted from
12267         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
12268         Update callers.
12269         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
12270         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
12271
12272 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
12273             Bruno Haible  <bruno@clisp.org>
12274             Jim Meyering  <jim@meyering.net>
12275
12276         readme-release: improve safety of release prep instructions.
12277         * README-release: Don't git pull all branches when only master
12278         is needed for the release process.
12279         Run make maintainer-clean before changing trees and merging.
12280         Don't try to run ./configure right after git pull in case files
12281         that influence the bootstrap process have changed, move the
12282         ./configure step to after running ./bootstrap.
12283         Don't bootstrap "one last time"... it's the first time!
12284
12285 2011-10-22  Bruno Haible  <bruno@clisp.org>
12286
12287         errno, strerror-override: Support for MSVC 10.
12288         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
12289         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
12290         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
12291         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
12292         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
12293         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
12294         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
12295         Assign values compatible with MSVC 10.
12296         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
12297         New macros.
12298         (GNULIB_defined_EWINSOCK): New macro.
12299         * lib/strerror-override.c (strerror_override): Update accordingly.
12300         * lib/strerror-override.h: Likewise.
12301         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
12302         longer equal to the corresponding errno value.
12303         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
12304
12305 2011-10-22  Bruno Haible  <bruno@clisp.org>
12306
12307         perror: Recognize when test program crashes.
12308         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
12309         strerror, set gl_cv_func_perror_works to no.
12310         Reported by Daniel Richard G. <skunk@iskunk.org>.
12311
12312         perror: Fix indentation.
12313         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
12314
12315 2011-10-22  Bruno Haible  <bruno@clisp.org>
12316
12317         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
12318         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
12319         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
12320         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
12321         functions, not as a macro.
12322         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
12323         macros.
12324         (isfinite, isinf, isnan, signbit): Check overloaded functions and
12325         absence of macro.
12326         Suggested by Eric Blake.
12327         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
12328
12329 2011-10-21  Bruno Haible  <bruno@clisp.org>
12330
12331         relocatable-prog-wrapper: Don't leave object files behind.
12332         * build-aux/install-reloc: Re-synchronize list of .o files to be
12333         removed with list of compilation units.
12334
12335 2011-10-20  Bruno Haible  <bruno@clisp.org>
12336
12337         openpty, posix_openpt: Remove code duplication.
12338         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
12339         * lib/openpty.c: Include <stdlib.h>.
12340         (openpty): Use posix_openpt on all platforms except IRIX.
12341         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
12342
12343 2011-10-20  Bruno Haible  <bruno@clisp.org>
12344
12345         unlockpt: Detect invalid argument.
12346         * lib/unlockpt.c: Include <fcntl.h>.
12347         (unlockpt): Check whether fd is valid, using fcntl().
12348         * modules/unlockpt (Depends-on): Add fcntl-h.
12349
12350 2011-10-20  Bruno Haible  <bruno@clisp.org>
12351
12352         openpty: Avoid compilation error on AIX 6.1.
12353         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
12354
12355 2011-10-20  Bruno Haible  <bruno@clisp.org>
12356
12357         posix_openpt: Support for OpenBSD.
12358         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
12359         (posix_openpt) [OpenBSD]: New code.
12360         * lib/grantpt.c: Include <fcntl.h>.
12361         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
12362         * modules/grantpt (Depends-on): Add fcntl-h.
12363
12364 2011-10-20  Bruno Haible  <bruno@clisp.org>
12365
12366         posix_openpt test: Coding style.
12367         * tests/test-posix_openpt.c: Use GNU coding style.
12368
12369 2011-10-20  Bruno Haible  <bruno@clisp.org>
12370
12371         grantpt: Support --avoid=pt_chown.
12372         * modules/grantpt (Files): Add lib/pty-private.h.
12373
12374 2011-10-20  Bruno Haible  <bruno@clisp.org>
12375
12376         posix_openpt: Fix autoconf macro.
12377         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
12378         unneeded check for _getpty.
12379
12380 2011-10-20  Bruno Haible  <bruno@clisp.org>
12381
12382         openpty: Update comments.
12383         * lib/openpty.c: Add comments about Minix.
12384
12385 2011-10-19  Eric Blake  <eblake@redhat.com>
12386
12387         openpty: relax license
12388         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
12389
12390         pt_chown: use configmake to simplify build
12391         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
12392
12393         ptsname and others: relax license
12394         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
12395         * modules/unlockpt (License): Likewise.
12396         * modules/pt_chown (License): Likewise.
12397         * modules/ptsname (License): Likewise.
12398         * modules/ttyname_r (License): Likewise.
12399
12400 2011-10-19  Jim Meyering  <meyering@redhat.com>
12401
12402         posix_openpt: remove spurious #endif
12403         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
12404
12405 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
12406
12407         maint.mk: Respect $(build_aux) in web-manual rule.
12408         * top/maint.mk (web-manual): Find gen-announce script in user's
12409         $(build_aux) directory instead of hard-coding 'build-aux'.
12410
12411 2011-10-19  Bruno Haible  <bruno@clisp.org>
12412
12413         posix_openpt: Fix compilation error.
12414         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
12415         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
12416         Mention the openpty module as an alternative.
12417
12418 2011-10-19  Bruno Haible  <bruno@clisp.org>
12419
12420         Support for old NeXTstep 3.3 frexp().
12421         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
12422         execution time of the test to 5 seconds.
12423         Reported by Daniel Richard G. <skunk@iskunk.org>.
12424
12425 2011-10-19  Bruno Haible  <bruno@clisp.org>
12426
12427         Support for old NeXTstep 3.3 sed.
12428         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
12429         part, use /.../, not \|...|. Escape periods in the header file name.
12430         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
12431         Reported by Daniel Richard G. <skunk@iskunk.org>.
12432
12433 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
12434
12435         Support for old NeXTstep 3.3 gcc.
12436         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
12437         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
12438         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
12439         * lib/spawn.in.h (_Restrict_arr_): Likewise.
12440         * lib/regex.h (_Restrict_arr_): Likewise.
12441         * lib/regex_internal.h (re_token_t): Likewise.
12442         * lib/regexec.c (check_node_accept_bytes): Likewise.
12443         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
12444
12445 2011-10-18  Eric Blake  <eblake@redhat.com>
12446
12447         posix_openpt: new module
12448         * modules/posix_openpt: New module.
12449         * m4/posix_openpt.m4: New file.
12450         * lib/posix_openpt.c: Likewise.
12451         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
12452         (gl_STDLIB_H_DEFAULTS): Set defaults.
12453         * modules/stdlib (Makefile.am): Substitute macros.
12454         * lib/stdlib.in.h (posix_openpt): Declare.
12455         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
12456         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
12457         * modules/posix_openpt-tests: New test module.
12458         * tests/test-posix_openpt.c: New test.
12459
12460 2011-10-15  Bruno Haible  <bruno@clisp.org>
12461
12462         xstrtoll: Fix compilation failure.
12463         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
12464         from lib/strtol.c.
12465         * doc/posix-headers/limits.texi: Mention missing numerical limits on
12466         some platforms.
12467         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12468
12469 2011-10-15  Bruno Haible  <bruno@clisp.org>
12470
12471         vasnprintf: Optimize bit search operation.
12472         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
12473         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
12474         gl_DOUBLE_EXPONENT_LOCATION.
12475         * modules/vasnprintf (Files): Add m4/exponentd.m4.
12476         * modules/unistdio/u8-vasnprintf (Files): Likewise.
12477         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
12478         * modules/unistdio/u16-vasnprintf (Files): Likewise.
12479         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
12480         * modules/unistdio/u32-vasnprintf (Files): Likewise.
12481         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
12482         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
12483         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
12484
12485 2011-10-15  Bruno Haible  <bruno@clisp.org>
12486
12487         vasnprintf: Fix comments.
12488         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
12489
12490 2011-10-14  Bruno Haible  <bruno@clisp.org>
12491
12492         Tests for module 'integer_length_ll'.
12493         * modules/integer_length_ll-tests: New file.
12494         * tests/test-integer_length_ll.c: New file.
12495
12496         New module 'integer_length_ll'.
12497         * lib/integer_length_ll.c: New file.
12498         * modules/integer_length_ll: New file.
12499
12500 2011-10-14  Bruno Haible  <bruno@clisp.org>
12501
12502         Tests for module 'integer_length_l'.
12503         * modules/integer_length_l-tests: New file.
12504         * tests/test-integer_length_l.c: New file.
12505
12506         New module 'integer_length_l'.
12507         * lib/integer_length_l.c: New file.
12508         * modules/integer_length_l: New file.
12509
12510 2011-10-14  Bruno Haible  <bruno@clisp.org>
12511
12512         Tests for module 'integer_length'.
12513         * modules/integer_length-tests: New file.
12514         * tests/test-integer_length.c: New file.
12515
12516         New module 'integer_length'.
12517         * lib/integer_length.h: New file.
12518         * lib/integer_length.c: New file.
12519         * modules/integer_length: New file.
12520
12521 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
12522
12523         popen: Fix dependency conditions.
12524         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
12525
12526 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
12527
12528         perror: Fix autoconf test.
12529         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
12530         <stdlib.h> and <string.h>.
12531
12532 2011-10-14  Bruno Haible  <bruno@clisp.org>
12533
12534         ffsl: Optimize on 64-bit platforms.
12535         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
12536         unrolling.
12537
12538 2011-10-13  Bruno Haible  <bruno@clisp.org>
12539
12540         ffsl: Optimize on 32-bit platforms.
12541         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
12542         use ffs() without a loop.
12543
12544         ffsl, ffsll: Optimize for GCC.
12545         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
12546         * lib/ffsl.c (GCC_BUILTIN): New macro.
12547         * lib/ffsll.c (GCC_BUILTIN): Likewise.
12548
12549 2011-10-13  Bruno Haible  <bruno@clisp.org>
12550
12551         ffs, bcopy, memset: Support symbol renaming via config.h.
12552         * lib/ffs.c: Include <config.h>.
12553         * lib/bcopy.c: Likewise.
12554         * lib/memset.c: Likewise.
12555
12556 2011-10-10  Bruno Haible  <bruno@clisp.org>
12557
12558         atanl: Simplify for platforms where 'long double' == 'double'.
12559         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
12560         alternative implementation.
12561         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12562         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12563         * modules/atanl (Depends-on): Add atan. Update conditions.
12564
12565 2011-10-10  Bruno Haible  <bruno@clisp.org>
12566
12567         acosl: Simplify for platforms where 'long double' == 'double'.
12568         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
12569         alternative implementation.
12570         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12571         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12572         * modules/acosl (Depends-on): Add acos. Update conditions.
12573
12574 2011-10-10  Bruno Haible  <bruno@clisp.org>
12575
12576         asinl: Simplify for platforms where 'long double' == 'double'.
12577         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
12578         alternative implementation.
12579         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12580         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12581         * modules/asinl (Depends-on): Add asin. Update conditions.
12582
12583 2011-10-10  Bruno Haible  <bruno@clisp.org>
12584
12585         tanl: Simplify for platforms where 'long double' == 'double'.
12586         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
12587         implementation.
12588         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12589         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12590         * modules/tanl (Depends-on): Add tan. Update conditions.
12591         (configure.ac): Don't compile trigl.c if
12592         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12593
12594 2011-10-10  Bruno Haible  <bruno@clisp.org>
12595
12596         cosl: Simplify for platforms where 'long double' == 'double'.
12597         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
12598         implementation.
12599         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12600         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12601         * modules/cosl (Depends-on): Add cos. Update conditions.
12602         (configure.ac): Don't compile sincosl.c and trigl.c if
12603         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12604
12605 2011-10-10  Bruno Haible  <bruno@clisp.org>
12606
12607         sinl: Simplify for platforms where 'long double' == 'double'.
12608         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
12609         implementation.
12610         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12611         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12612         * modules/sinl (Depends-on): Add sin. Update conditions.
12613         (configure.ac): Don't compile sincosl.c and trigl.c if
12614         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12615
12616 2011-10-10  Bruno Haible  <bruno@clisp.org>
12617
12618         logl: Simplify for platforms where 'long double' == 'double'.
12619         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
12620         implementation.
12621         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12622         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12623         * modules/logl (Depends-on): Add log. Update conditions.
12624
12625 2011-10-10  Bruno Haible  <bruno@clisp.org>
12626
12627         expl: Simplify for platforms where 'long double' == 'double'.
12628         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
12629         implementation.
12630         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12631         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12632         * modules/expl (Depends-on): Add exp. Update conditions.
12633
12634 2011-10-10  Bruno Haible  <bruno@clisp.org>
12635
12636         sqrtl: Simplify for platforms where 'long double' == 'double'.
12637         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
12638         alternative implementation.
12639         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12640         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12641         * modules/sqrtl (Depends-on): Update conditions.
12642
12643 2011-10-10  Bruno Haible  <bruno@clisp.org>
12644
12645         ldexpl: Simplify for platforms where 'long double' == 'double'.
12646         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
12647         alternative implementation.
12648         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12649         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12650         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
12651
12652 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
12653
12654         ffsll: set correct witness
12655         * modules/ffsll (configure.ac): Fix typo.
12656
12657 2011-10-10  Bruno Haible  <bruno@clisp.org>
12658
12659         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
12660         * lib/printf-frexpl.c: Include <config.h>.
12661         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12662         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
12663         second time.
12664         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
12665         gl_LONG_DOUBLE_VS_DOUBLE.
12666         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
12667         conditions.
12668
12669 2011-10-10  Bruno Haible  <bruno@clisp.org>
12670
12671         frexpl: Simplify for platforms where 'long double' == 'double'.
12672         * lib/frexpl.c: Include <config.h>.
12673         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12674         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12675         time.
12676         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12677         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12678         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
12679         * modules/frexpl (Depends-on): Add frexp. Update conditions.
12680         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
12681         conditions.
12682
12683 2011-10-10  Jim Meyering  <meyering@redhat.com>
12684
12685         test-renameat: don't leave behind a temporary file
12686         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
12687           ERROR: files left in build directory after distclean:
12688           ./gltests/test-renameat.too
12689           make[1]: *** [distcleancheck] Error 1
12690         Reported by Tom G. Christensen.
12691
12692 2011-10-09  Bruno Haible  <bruno@clisp.org>
12693
12694         rint: Determine RINT_LIBM correctly on AIX 7.
12695         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
12696         directly, not only through a function pointer. Also accept an optional
12697         4th argument with extra code.
12698         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
12699         rintf() call by gcc when optimizing.
12700
12701         mathfunc.m4: Refactor.
12702         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
12703         m4 variable.
12704
12705 2011-10-09  Bruno Haible  <bruno@clisp.org>
12706
12707         rintl: Simplify for platforms where 'long double' == 'double'.
12708         * lib/rintl.c: Include <config.h>.
12709         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12710         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12711         time.
12712         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12713         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12714         * modules/rintl (Depends-on): Add rint. Update conditions.
12715
12716 2011-10-09  Bruno Haible  <bruno@clisp.org>
12717
12718         roundl: Simplify for platforms where 'long double' == 'double'.
12719         * lib/roundl.c: Include <config.h>.
12720         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12721         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12722         time.
12723         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12724         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12725         * modules/roundl (Depends-on): Add round. Update conditions.
12726
12727 2011-10-09  Bruno Haible  <bruno@clisp.org>
12728
12729         truncl: Simplify for platforms where 'long double' == 'double'.
12730         * lib/truncl.c: Include <config.h>.
12731         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12732         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12733         time.
12734         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12735         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12736         * modules/truncl (Depends-on): Add trunc. Update conditions.
12737
12738 2011-10-09  Bruno Haible  <bruno@clisp.org>
12739
12740         ceill: Simplify for platforms where 'long double' == 'double'.
12741         * lib/ceill.c: Include <config.h>.
12742         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12743         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12744         time.
12745         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12746         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12747         * modules/ceill (Depends-on): Add ceil. Update conditions.
12748
12749 2011-10-09  Bruno Haible  <bruno@clisp.org>
12750
12751         floorl: Simplify for platforms where 'long double' == 'double'.
12752         * lib/floorl.c: Include <config.h>.
12753         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12754         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12755         time.
12756         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12757         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12758         * modules/floorl (Depends-on): Add floor. Update conditions.
12759
12760 2011-10-09  Bruno Haible  <bruno@clisp.org>
12761
12762         rint: Fix ordering constraints.
12763         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
12764         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
12765         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
12766
12767 2011-10-09  Bruno Haible  <bruno@clisp.org>
12768
12769         copysignl: Simplify for platforms where 'long double' == 'double'.
12770         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
12771         alternative.
12772         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12773         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12774         * modules/copysignl (Depends-on): Add copysign. Update conditions.
12775
12776 2011-10-09  Bruno Haible  <bruno@clisp.org>
12777
12778         Tests for module 'rintl'.
12779         * modules/rintl-tests: New file.
12780         * tests/test-rintl.c: New file.
12781
12782         New module 'rintl'.
12783         * lib/math.in.h (rintl): New declaration.
12784         * lib/rintl.c: New file.
12785         * m4/rintl.m4: New file.
12786         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
12787         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
12788         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
12789         * modules/rintl: New file.
12790         * tests/test-math-c++.cc: Check the declaration of rintl.
12791         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
12792         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
12793         * doc/posix-functions/rintl.texi: Mention the new module.
12794
12795 2011-10-09  Bruno Haible  <bruno@clisp.org>
12796
12797         Tests for module 'rintf'.
12798         * modules/rintf-tests: New file.
12799         * tests/test-rintf.c: New file.
12800
12801         New module 'rintf'.
12802         * lib/math.in.h (rintf): New declaration.
12803         * lib/rintf.c: New file.
12804         * m4/rintf.m4: New file.
12805         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
12806         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
12807         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
12808         * modules/rintf: New file.
12809         * tests/test-math-c++.cc: Check the declaration of rintf.
12810         * doc/posix-functions/rintf.texi: Mention the new module.
12811
12812 2011-10-09  Bruno Haible  <bruno@clisp.org>
12813
12814         rint: Support for MSVC.
12815         * lib/math.in.h (rint): New declaration.
12816         * lib/rint.c: New file.
12817         * m4/rint.m4: New file.
12818         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
12819         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
12820         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
12821         * modules/rint (Description): Fix.
12822         (Files): Add lib/rint.c, m4/rint.m4.
12823         (Depends-on): Add math.
12824         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
12825         gl_MATH_MODULE_INDICATOR.
12826         * tests/test-math-c++.cc: Check the declaration of rint.
12827         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
12828         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
12829         * doc/posix-functions/rint.texi: Mention the replacement provided by
12830         the module.
12831
12832         rint tests: More tests.
12833         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
12834         minus-zero.h, infinity.h, nan.h.
12835         (main): Skip the test if the current rounding mode is not standard. Add
12836         tests for negative numbers, minus zero, infinity, NaN.
12837         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
12838         tests/nan.h.
12839         (Depends-on): Add isnand-nolibm.
12840
12841 2011-10-09  Bruno Haible  <bruno@clisp.org>
12842
12843         Tests for module 'copysignl'.
12844         * modules/copysignl-tests: New file.
12845         * tests/test-copysignl.c: New file.
12846
12847         New module 'copysignl'.
12848         * lib/math.in.h (copysignl): New declaration.
12849         * lib/copysignl.c: New file.
12850         * m4/copysignl.m4: New file.
12851         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
12852         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
12853         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
12854         HAVE_COPYSIGNL.
12855         * modules/copysignl: New file.
12856         * tests/test-math-c++.cc: Check the declaration of copysignl.
12857         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
12858         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
12859         * doc/posix-functions/copysignl.texi: Mention the new module.
12860
12861 2011-10-09  Bruno Haible  <bruno@clisp.org>
12862
12863         Tests for module 'copysignf'.
12864         * modules/copysignf-tests: New file.
12865         * tests/test-copysignf.c: New file.
12866
12867         New module 'copysignf'.
12868         * lib/math.in.h (copysignf): New declaration.
12869         * lib/copysignf.c: New file.
12870         * m4/copysignf.m4: New file.
12871         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
12872         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
12873         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
12874         HAVE_COPYSIGNF.
12875         * modules/copysignf: New file.
12876         * tests/test-math-c++.cc: Check the declaration of copysignf.
12877         * doc/posix-functions/copysignf.texi: Mention the new module.
12878
12879 2011-10-09  Bruno Haible  <bruno@clisp.org>
12880
12881         Ensure that HAVE_* variables are set to 1 before they are set to 0.
12882         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
12883         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
12884         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
12885         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
12886         gl_SIGNAL_H_DEFAULTS.
12887
12888 2011-10-09  Bruno Haible  <bruno@clisp.org>
12889
12890         poll: Make macro safer.
12891         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
12892         ac_cv_header_poll_h is not set.
12893
12894 2011-10-09  Bruno Haible  <bruno@clisp.org>
12895
12896         copysign: Provide replacement.
12897         * lib/math.in.h (copysign): New declaration.
12898         * lib/copysign.c: New file.
12899         * m4/copysign.m4: New file.
12900         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
12901         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
12902         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
12903         HAVE_COPYSIGN.
12904         * modules/copysign (Description): Clarify.
12905         (Files): Add lib/copysign.c, m4/copysign.m4.
12906         (Depends-on): Add math, signbit.
12907         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
12908         gl_MATH_MODULE_INDICATOR.
12909         * tests/test-math-c++.cc: Check the declaration of copysign.
12910         * doc/posix-functions/copysign.texi: Mention the effects of the module
12911         on Minix and MSVC.
12912
12913 2011-10-09  Bruno Haible  <bruno@clisp.org>
12914
12915         isinf: Ensure macro on AIX 5.1.
12916         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
12917         macro.
12918         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
12919
12920 2011-10-09  Bruno Haible  <bruno@clisp.org>
12921
12922         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
12923         * modules/snprintf-posix-tests (configure.ac): Require
12924         gl_LONG_DOUBLE_VS_DOUBLE.
12925         * modules/sprintf-posix-tests (configure.ac): Likewise.
12926         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
12927         * modules/vasprintf-posix-tests (configure.ac): Likewise.
12928         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
12929         * modules/vsprintf-posix-tests (configure.ac): Likewise.
12930         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
12931         tests on platforms where 'long double' is the same as 'double'.
12932         * tests/test-sprintf-posix.h (test_function): Likewise.
12933         * tests/test-vasnprintf-posix.c (test_function): Likewise.
12934         * tests/test-vasprintf-posix.c (test_function): Likewise.
12935
12936         *printf: Fix for platforms where 'long double' == 'double'.
12937         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
12938         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
12939         * modules/dprintf-posix (Files): Add m4/math_h.m4.
12940         * modules/fprintf-posix (Files): Likewise.
12941         * modules/obstack-printf-posix (Files): Likewise.
12942         * modules/snprintf-posix (Files): Likewise.
12943         * modules/sprintf-posix (Files): Likewise.
12944         * modules/vasnprintf (Files): Likewise.
12945         * modules/vasnprintf-posix (Files): Likewise.
12946         * modules/vasprintf-posix (Files): Likewise.
12947         * modules/vdprintf-posix (Files): Likewise.
12948         * modules/vfprintf-posix (Files): Likewise.
12949         * modules/vsnprintf-posix (Files): Likewise.
12950         * modules/vsprintf-posix (Files): Likewise.
12951         * modules/unistdio/u8-vasnprintf (Files): Likewise.
12952         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
12953         * modules/unistdio/u16-vasnprintf (Files): Likewise.
12954         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
12955         * modules/unistdio/u32-vasnprintf (Files): Likewise.
12956         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
12957         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
12958
12959         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
12960         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
12961         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12962         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
12963         'long double'.
12964         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
12965
12966         isinf: Fix for platforms where 'long double' == 'double'.
12967         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
12968         Don't blindly assume 80-bit 'long double'.
12969
12970         isfinite: Fix for platforms where 'long double' == 'double'.
12971         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
12972         Don't blindly assume 80-bit 'long double'.
12973
12974         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
12975         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
12976         * modules/isfinite-tests (configure.ac): Require
12977         gl_LONG_DOUBLE_VS_DOUBLE.
12978         * modules/isinf-tests (configure.ac): Likewise.
12979         * modules/isnan-tests (configure.ac): Likewise.
12980         * modules/isnanl-tests (configure.ac): Likewise.
12981         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
12982         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
12983         tests on platforms where 'long double' is the same as 'double'.
12984         * tests/test-isinf.c (test_isinfl): Likewise.
12985         * tests/test-isnan.c (test_long_double): Likewise.
12986         * tests/test-isnanl.h (main): Likewise.
12987
12988 2011-10-08  Bruno Haible  <bruno@clisp.org>
12989
12990         Tests for module 'tanhf'.
12991         * modules/tanhf-tests: New file.
12992         * tests/test-tanhf.c: New file.
12993
12994         New module 'tanhf'.
12995         * lib/math.in.h (tanhf): New declaration.
12996         * lib/tanhf.c: New file.
12997         * m4/tanhf.m4: New file.
12998         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
12999         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
13000         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
13001         * modules/tanhf: New file.
13002         * tests/test-math-c++.cc: Check the declaration of tanhf.
13003         * doc/posix-functions/tanhf.texi: Mention the new module.
13004
13005         tanh: Use a .m4 file.
13006         * m4/tanh.m4: New file.
13007         * modules/tanh (Files): Add it.
13008         (configure.ac): Just invoke gl_FUNC_TANH.
13009
13010 2011-10-08  Bruno Haible  <bruno@clisp.org>
13011
13012         Tests for module 'coshf'.
13013         * modules/coshf-tests: New file.
13014         * tests/test-coshf.c: New file.
13015
13016         New module 'coshf'.
13017         * lib/math.in.h (coshf): New declaration.
13018         * lib/coshf.c: New file.
13019         * m4/coshf.m4: New file.
13020         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
13021         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
13022         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
13023         * modules/coshf: New file.
13024         * tests/test-math-c++.cc: Check the declaration of coshf.
13025         * doc/posix-functions/coshf.texi: Mention the new module.
13026
13027         cosh: Use a .m4 file.
13028         * m4/cosh.m4: New file.
13029         * modules/cosh (Files): Add it.
13030         (configure.ac): Just invoke gl_FUNC_COSH.
13031
13032 2011-10-08  Bruno Haible  <bruno@clisp.org>
13033
13034         Tests for module 'sinhf'.
13035         * modules/sinhf-tests: New file.
13036         * tests/test-sinhf.c: New file.
13037
13038         New module 'sinhf'.
13039         * lib/math.in.h (sinhf): New declaration.
13040         * lib/sinhf.c: New file.
13041         * m4/sinhf.m4: New file.
13042         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
13043         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
13044         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
13045         * modules/sinhf: New file.
13046         * tests/test-math-c++.cc: Check the declaration of sinhf.
13047         * doc/posix-functions/sinhf.texi: Mention the new module.
13048
13049         sinh: Use a .m4 file.
13050         * m4/sinh.m4: New file.
13051         * modules/sinh (Files): Add it.
13052         (configure.ac): Just invoke gl_FUNC_SINH.
13053
13054 2011-10-08  Bruno Haible  <bruno@clisp.org>
13055
13056         Tests for module 'atan2f'.
13057         * modules/atan2f-tests: New file.
13058         * tests/test-atan2f.c: New file.
13059
13060         New module 'atan2f'.
13061         * lib/math.in.h (atan2f): New declaration.
13062         * lib/atan2f.c: New file.
13063         * m4/atan2f.m4: New file.
13064         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
13065         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
13066         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
13067         * modules/atan2f: New file.
13068         * tests/test-math-c++.cc: Check the declaration of atan2f.
13069         * doc/posix-functions/atan2f.texi: Mention the new module.
13070
13071         atan2: Use a .m4 file.
13072         * m4/atan2.m4: New file.
13073         * modules/atan2 (Files): Add it.
13074         (configure.ac): Just invoke gl_FUNC_ATAN2.
13075
13076 2011-10-08  Bruno Haible  <bruno@clisp.org>
13077
13078         Tests for module 'atanf'.
13079         * modules/atanf-tests: New file.
13080         * tests/test-atanf.c: New file.
13081
13082         New module 'atanf'.
13083         * lib/math.in.h (atanf): New declaration.
13084         * lib/atanf.c: New file.
13085         * m4/atanf.m4: New file.
13086         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
13087         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
13088         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
13089         * modules/atanf: New file.
13090         * tests/test-math-c++.cc: Check the declaration of atanf.
13091         * doc/posix-functions/atanf.texi: Mention the new module.
13092
13093         atan: Use a .m4 file.
13094         * m4/atan.m4: New file.
13095         * modules/atan (Files): Add it.
13096         (configure.ac): Just invoke gl_FUNC_ATAN.
13097
13098 2011-10-08  Bruno Haible  <bruno@clisp.org>
13099
13100         Tests for module 'acosf'.
13101         * modules/acosf-tests: New file.
13102         * tests/test-acosf.c: New file.
13103
13104         New module 'acosf'.
13105         * lib/math.in.h (acosf): New declaration.
13106         * lib/acosf.c: New file.
13107         * m4/acosf.m4: New file.
13108         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
13109         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
13110         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
13111         * modules/acosf: New file.
13112         * tests/test-math-c++.cc: Check the declaration of acosf.
13113         * doc/posix-functions/acosf.texi: Mention the new module.
13114
13115         acos: Use a .m4 file.
13116         * m4/acos.m4: New file.
13117         * modules/acos (Files): Add it.
13118         (configure.ac): Just invoke gl_FUNC_ACOS.
13119
13120 2011-10-08  Bruno Haible  <bruno@clisp.org>
13121
13122         Tests for module 'asinf'.
13123         * modules/asinf-tests: New file.
13124         * tests/test-asinf.c: New file.
13125
13126         New module 'asinf'.
13127         * lib/math.in.h (asinf): New declaration.
13128         * lib/asinf.c: New file.
13129         * m4/asinf.m4: New file.
13130         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
13131         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
13132         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
13133         * modules/asinf: New file.
13134         * tests/test-math-c++.cc: Check the declaration of asinf.
13135         * doc/posix-functions/asinf.texi: Mention the new module.
13136
13137         asin: Use a .m4 file.
13138         * m4/asin.m4: New file.
13139         * modules/asin (Files): Add it.
13140         (configure.ac): Just invoke gl_FUNC_ASIN.
13141
13142 2011-10-08  Bruno Haible  <bruno@clisp.org>
13143
13144         Tests for module 'tanf'.
13145         * modules/tanf-tests: New file.
13146         * tests/test-tanf.c: New file.
13147
13148         New module 'tanf'.
13149         * lib/math.in.h (tanf): New declaration.
13150         * lib/tanf.c: New file.
13151         * m4/tanf.m4: New file.
13152         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
13153         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
13154         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
13155         * modules/tanf: New file.
13156         * tests/test-math-c++.cc: Check the declaration of tanf.
13157         * doc/posix-functions/tanf.texi: Mention the new module.
13158
13159         tan: Use a .m4 file.
13160         * m4/tan.m4: New file.
13161         * modules/tan (Files): Add it.
13162         (configure.ac): Just invoke gl_FUNC_TAN.
13163
13164 2011-10-08  Bruno Haible  <bruno@clisp.org>
13165
13166         Tests for module 'cosf'.
13167         * modules/cosf-tests: New file.
13168         * tests/test-cosf.c: New file.
13169
13170         New module 'cosf'.
13171         * lib/math.in.h (cosf): New declaration.
13172         * lib/cosf.c: New file.
13173         * m4/cosf.m4: New file.
13174         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
13175         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
13176         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
13177         * modules/cosf: New file.
13178         * tests/test-math-c++.cc: Check the declaration of cosf.
13179         * doc/posix-functions/cosf.texi: Mention the new module.
13180
13181         cos: Use a .m4 file.
13182         * m4/cos.m4: New file.
13183         * modules/cos (Files): Add it.
13184         (configure.ac): Just invoke gl_FUNC_COS.
13185
13186 2011-10-08  Bruno Haible  <bruno@clisp.org>
13187
13188         Tests for module 'sinf'.
13189         * modules/sinf-tests: New file.
13190         * tests/test-sinf.c: New file.
13191
13192         New module 'sinf'.
13193         * lib/math.in.h (sinf): New declaration.
13194         * lib/sinf.c: New file.
13195         * m4/sinf.m4: New file.
13196         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
13197         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
13198         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
13199         * modules/sinf: New file.
13200         * tests/test-math-c++.cc: Check the declaration of sinf.
13201         * doc/posix-functions/sinf.texi: Mention the new module.
13202
13203         sin: Use a .m4 file.
13204         * m4/sin.m4: New file.
13205         * modules/sin (Files): Add it.
13206         (configure.ac): Just invoke gl_FUNC_SIN.
13207
13208 2011-10-08  Bruno Haible  <bruno@clisp.org>
13209
13210         Tests for module 'powf'.
13211         * modules/powf-tests: New file.
13212         * tests/test-powf.c: New file.
13213
13214         New module 'powf'.
13215         * lib/math.in.h (powf): New declaration.
13216         * lib/powf.c: New file.
13217         * m4/powf.m4: New file.
13218         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
13219         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
13220         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
13221         * modules/powf: New file.
13222         * tests/test-math-c++.cc: Check the declaration of powf.
13223         * doc/posix-functions/powf.texi: Mention the new module.
13224
13225         pow: Use a .m4 file.
13226         * m4/pow.m4: New file.
13227         * modules/pow (Files): Add it.
13228         (configure.ac): Just invoke gl_FUNC_POW.
13229
13230 2011-10-08  Bruno Haible  <bruno@clisp.org>
13231
13232         Tests for module 'log10f'.
13233         * modules/log10f-tests: New file.
13234         * tests/test-log10f.c: New file.
13235
13236         New module 'log10f'.
13237         * lib/math.in.h (log10f): New declaration.
13238         * lib/log10f.c: New file.
13239         * m4/log10f.m4: New file.
13240         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
13241         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
13242         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
13243         * modules/log10f: New file.
13244         * tests/test-math-c++.cc: Check the declaration of log10f.
13245         * doc/posix-functions/log10f.texi: Mention the new module.
13246
13247         log10: Use a .m4 file.
13248         * m4/log10.m4: New file.
13249         * modules/log10 (Files): Add it.
13250         (configure.ac): Just invoke gl_FUNC_LOG10.
13251
13252 2011-10-08  Bruno Haible  <bruno@clisp.org>
13253
13254         Tests for module 'logf'.
13255         * modules/logf-tests: New file.
13256         * tests/test-logf.c: New file.
13257
13258         New module 'logf'.
13259         * lib/math.in.h (logf): New declaration.
13260         * lib/logf.c: New file.
13261         * m4/logf.m4: New file.
13262         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
13263         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
13264         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
13265         * modules/logf: New file.
13266         * tests/test-math-c++.cc: Check the declaration of logf.
13267         * doc/posix-functions/logf.texi: Mention the new module.
13268
13269         log: Use a .m4 file.
13270         * m4/log.m4: New file.
13271         * modules/log (Files): Add it.
13272         (configure.ac): Just invoke gl_FUNC_LOG.
13273
13274 2011-10-08  Bruno Haible  <bruno@clisp.org>
13275
13276         Tests for module 'expf'.
13277         * modules/expf-tests: New file.
13278         * tests/test-expf.c: New file.
13279
13280         New module 'expf'.
13281         * lib/math.in.h (expf): New declaration.
13282         * lib/expf.c: New file.
13283         * m4/expf.m4: New file.
13284         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
13285         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
13286         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
13287         * modules/expf: New file.
13288         * tests/test-math-c++.cc: Check the declaration of expf.
13289         * doc/posix-functions/expf.texi: Mention the new module.
13290
13291         exp: Use a .m4 file.
13292         * m4/exp.m4: New file.
13293         * modules/exp (Files): Add it.
13294         (configure.ac): Just invoke gl_FUNC_EXP.
13295
13296 2011-10-08  Bruno Haible  <bruno@clisp.org>
13297
13298         Tests for module 'sqrtf'.
13299         * modules/sqrtf-tests: New file.
13300         * tests/test-sqrtf.c: New file.
13301
13302         New module 'sqrtf'.
13303         * lib/math.in.h (sqrtf): New declaration.
13304         * lib/sqrtf.c: New file.
13305         * m4/sqrtf.m4: New file.
13306         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
13307         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
13308         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
13309         * modules/sqrtf: New file.
13310         * tests/test-math-c++.cc: Check the declaration of sqrtf.
13311         * doc/posix-functions/sqrtf.texi: Mention the new module.
13312
13313 2011-10-08  Bruno Haible  <bruno@clisp.org>
13314
13315         Tests: Avoid link failures w.r.t. libintl.
13316         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
13317         $(LIBINTL).
13318         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
13319         $(LIBINTL).
13320         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
13321         against $(LIBINTL).
13322         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
13323         $(LIBINTL).
13324         * modules/openat-tests (Makefile.am): Link test-fchmodat against
13325         $(LIBINTL).
13326         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
13327
13328 2011-10-08  Bruno Haible  <bruno@clisp.org>
13329
13330         pow tests: Defeat compiler optimizations.
13331         * tests/test-pow.c (main): Assign arguments to x and y before use.
13332
13333 2011-10-08  Bruno Haible  <bruno@clisp.org>
13334
13335         gnulib-tool: Improve last commit.
13336         * gnulib-tool (func_modules_transitive_closure): Simplify code.
13337         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
13338         ignore dependencies that are not among the modules list.
13339
13340 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
13341
13342         gnulib-tool: don't follow dependencies to avoided modules
13343         This fixes a bug that is related to the previous one.
13344         * gnulib-tool (func_modules_transitive_closure)
13345         (func_emit_autoconf_snippets):
13346         Check whether a dependency is acceptable before using it.
13347         (--extract-dependencies): Report an error if --avoid is also used,
13348         since this combination of options is not yet supported.
13349
13350         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
13351         Problem reported by Peter Dyballa in
13352         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
13353         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
13354         when echoing "$condition".
13355
13356 2011-10-07  Bruno Haible  <bruno@clisp.org>
13357
13358         Fix documentation about math functions on MacOS X.
13359         * doc/posix-functions/exp2.texi: Don't say the function is missing on
13360         MacOS X 10.5.
13361         * doc/posix-functions/fdim.texi: Likewise.
13362         * doc/posix-functions/feclearexcept.texi: Likewise.
13363         * doc/posix-functions/fegetenv.texi: Likewise.
13364         * doc/posix-functions/fegetround.texi: Likewise.
13365         * doc/posix-functions/feholdexcept.texi: Likewise.
13366         * doc/posix-functions/feraiseexcept.texi: Likewise.
13367         * doc/posix-functions/fesetenv.texi: Likewise.
13368         * doc/posix-functions/fesetround.texi: Likewise.
13369         * doc/posix-functions/fetestexcept.texi: Likewise.
13370         * doc/posix-functions/feupdateenv.texi: Likewise.
13371         * doc/posix-functions/fmax.texi: Likewise.
13372         * doc/posix-functions/fmin.texi: Likewise.
13373         * doc/posix-functions/log2.texi: Likewise.
13374         * doc/posix-functions/modff.texi: Likewise.
13375         * doc/posix-functions/nan.texi: Likewise.
13376         * doc/posix-functions/nanf.texi: Likewise.
13377         * doc/posix-functions/nextafterf.texi: Likewise.
13378         * doc/posix-functions/remquo.texi: Likewise.
13379
13380 2011-10-07  Bruno Haible  <bruno@clisp.org>
13381
13382         modff: Drop assumption about library that defines modff.
13383         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
13384         AC_CHECK_FUNCS.
13385         * modules/modff (Files): Add m4/mathfunc.m4.
13386
13387 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
13388
13389         raise tests: Avoid a GCC warning.
13390         * tests/test-raise.c (handler): Use _Noreturn.
13391
13392 2011-10-07  Bruno Haible  <bruno@clisp.org>
13393
13394         Tests for module 'ldexpf'.
13395         * modules/ldexpf-tests: New file.
13396         * tests/test-ldexpf.c: New file.
13397
13398         New module 'ldexpf'.
13399         * lib/math.in.h (ldexpf): New declaration.
13400         * lib/ldexpf.c: New file.
13401         * m4/ldexpf.m4: New file.
13402         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
13403         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
13404         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
13405         * modules/ldexpf: New file.
13406         * tests/test-math-c++.cc: Check the declaration of ldexpf.
13407         * doc/posix-functions/ldexpf.texi: Mention the new module.
13408
13409 2011-10-06  Bruno Haible  <bruno@clisp.org>
13410
13411         frexpf: Work around problems on IRIX and mingw.
13412         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
13413         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
13414         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
13415         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
13416         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
13417         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
13418         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
13419
13420 2011-10-06  Bruno Haible  <bruno@clisp.org>
13421
13422         fabsf: Drop assumption about library that defines fabsf.
13423         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
13424         AC_CHECK_FUNCS.
13425         * modules/fabsf (Files): Add m4/mathfunc.m4.
13426
13427 2011-10-06  Bruno Haible  <bruno@clisp.org>
13428
13429         frexpf: Drop assumption about library that defines frexpf.
13430         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
13431         'int *', 'float *', 'long double *', 'float', 'long double'.
13432         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
13433         AC_CHECK_FUNCS.
13434         * modules/frexpf (Files): Add m4/mathfunc.m4.
13435
13436         Tests for module 'frexpf'.
13437         * modules/frexpf-tests: New file.
13438         * tests/test-frexpf.c: New file.
13439
13440         New module 'frexpf'.
13441         * lib/math.in.h (frexpf): New declaration.
13442         * lib/frexpf.c: New file.
13443         * m4/frexpf.m4: New file.
13444         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
13445         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
13446         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
13447         * modules/frexpf: New file.
13448         * tests/test-math-c++.cc: Check the declaration of frexpf.
13449         * doc/posix-functions/frexpf.texi: Mention the new module.
13450
13451 2011-10-06  Bruno Haible  <bruno@clisp.org>
13452
13453         math: Sort function declarations of math.in.h.
13454         * lib/math.in.h (frexp, logb): Move declarations.
13455
13456 2011-10-05  Bruno Haible  <bruno@clisp.org>
13457
13458         Tests for module 'modff'.
13459         * modules/modff-tests: New file.
13460         * tests/test-modff.c: New file.
13461
13462         New module 'modff'.
13463         * lib/math.in.h (modff): New declaration.
13464         * lib/modff.c: New file.
13465         * m4/modff.m4: New file.
13466         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
13467         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
13468         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
13469         * modules/modff: New file.
13470         * tests/test-math-c++.cc: Check the declaration of modff.
13471         * doc/posix-functions/modff.texi: Mention the new module.
13472
13473         modf tests: Make test sharper.
13474         * tests/test-modf.c (main): Strengthen upper bound.
13475
13476         modf: Use a .m4 file.
13477         * m4/modf.m4: New file.
13478         * modules/modf (Files): Add it.
13479         (configure.ac): Just invoke gl_FUNC_MODF.
13480
13481 2011-10-05  Bruno Haible  <bruno@clisp.org>
13482
13483         Tests for module 'fmodf'.
13484         * modules/fmodf-tests: New file.
13485         * tests/test-fmodf.c: New file.
13486
13487         New module 'fmodf'.
13488         * lib/math.in.h (fmodf): New declaration.
13489         * lib/fmodf.c: New file.
13490         * m4/fmodf.m4: New file.
13491         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
13492         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
13493         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
13494         * modules/fmodf: New file.
13495         * tests/test-math-c++.cc: Check the declaration of fmodf.
13496         * doc/posix-functions/fmodf.texi: Mention the new module.
13497
13498         fmod: Use a .m4 file.
13499         * m4/fmod.m4: New file.
13500         * modules/fmod (Files): Add it.
13501         (configure.ac): Just invoke gl_FUNC_FMOD.
13502
13503 2011-10-05  Bruno Haible  <bruno@clisp.org>
13504
13505         Tests for module 'fabsf'.
13506         * modules/fabsf-tests: New file.
13507         * tests/test-fabsf.c: New file.
13508
13509         New module 'fabsf'.
13510         * lib/math.in.h (fabsf): New declaration.
13511         * lib/fabsf.c: New file.
13512         * m4/fabsf.m4: New file.
13513         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
13514         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
13515         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
13516         * modules/fabsf: New file.
13517         * tests/test-math-c++.cc: Check the declaration of fabsf.
13518         * doc/posix-functions/fabsf.texi: Mention the new module.
13519
13520         fabs: Use a .m4 file.
13521         * m4/fabs.m4: New file.
13522         * modules/fabs (Files): Add it.
13523         (configure.ac): Just invoke gl_FUNC_FABS.
13524
13525 2011-10-05  Jim Meyering  <meyering@redhat.com>
13526
13527         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
13528         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
13529         ls -lL regression introduced in coreutils-8.12, it does so at the
13530         cost of an additional stat call in the common case.  Besides, now
13531         that the kernel change that prompted commit 95f7c57f has been reverted
13532         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
13533         we have no use for commit 95f7c57f, "file-has-acl: use
13534         acl_extended_file_nofollow if available".
13535
13536 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
13537
13538         file-has-acl: revert unintended change in behavior of ls -L
13539         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
13540         derived from...
13541         (file_has_acl): ...code here.  Call it.
13542         This problem was introduced with 2011-07-22 commit 95f7c57f,
13543         "file-has-acl: use acl_extended_file_nofollow if available".
13544         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
13545
13546 2011-10-03  Bruno Haible  <bruno@clisp.org>
13547
13548         poll: Avoid link errors on MSVC.
13549         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
13550         * modules/poll (Depends-on): Add sockets.
13551         (Link): New section.
13552         * NEWS: Mention the change.
13553         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
13554         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
13555         $(LIB_POLL) instead of $(LIBSOCKET).
13556
13557 2011-10-03  Bruno Haible  <bruno@clisp.org>
13558
13559         sys_select tests: Fix link error on MSVC 9.
13560         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
13561         with $(LIB_SELECT) instead of $(LIBSOCKET).
13562
13563 2011-10-03  Bruno Haible  <bruno@clisp.org>
13564
13565         sys_select: Fix compilation error on mingw.
13566         * lib/sys_select.in.h: On native Windows, include <io.h>.
13567
13568 2011-10-03  Bruno Haible  <bruno@clisp.org>
13569
13570         wmemset: Support for MSVC.
13571         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
13572         whether wmemset() exists.
13573
13574 2011-10-03  Bruno Haible  <bruno@clisp.org>
13575
13576         wmemmove: Support for MSVC.
13577         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
13578         whether wmemmove() exists.
13579
13580 2011-10-03  Bruno Haible  <bruno@clisp.org>
13581
13582         wmemcpy: Support for MSVC.
13583         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
13584         whether wmemcpy() exists.
13585
13586 2011-10-03  Bruno Haible  <bruno@clisp.org>
13587
13588         wmemcmp: Support for MSVC.
13589         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
13590         whether wmemcmp() exists.
13591
13592 2011-10-03  Bruno Haible  <bruno@clisp.org>
13593
13594         wmemchr: Support for MSVC.
13595         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
13596         whether wmemchr() exists.
13597
13598 2011-10-03  Bruno Haible  <bruno@clisp.org>
13599
13600         glthread/*, strsignal: Support for MSVC.
13601         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
13602         including <winsock.h> on MSVC 9.
13603         * lib/glthread/lock.h: Likewise.
13604         * lib/glthread/thread.h: Likewise.
13605         * lib/glthread/tls.h: Likewise.
13606         * lib/glthread/yield.h: Likewise.
13607         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
13608         if HAVE_UNISTD_H is false.
13609         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
13610
13611 2011-10-03  Bruno Haible  <bruno@clisp.org>
13612
13613         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
13614         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
13615         Set to 100000.
13616
13617 2011-10-03  Bruno Haible  <bruno@clisp.org>
13618
13619         acl: Fix specification.
13620         * lib/file-has-acl.c (file_has_acl): Fix specification.
13621
13622 2011-10-03  Bruno Haible  <bruno@clisp.org>
13623
13624         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
13625         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
13626         (compute_curr_prefix, shared_library_fullname,
13627         find_shared_library_fullname, get_shared_library_fullname, relocate):
13628         Use it together with PIC && INSTALLDIR.
13629         Reported by <jojelino@gmail.com>
13630         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
13631
13632 2011-10-01  Jim Meyering  <meyering@redhat.com>
13633
13634         maint.mk: adjust a release-related rule not to require use of gzip
13635         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
13636         Instead, check each file in $(DIST_ARCHIVES).  This is better for
13637         projects that build only .tar.xz files.  Also fix an erroneous test.
13638
13639         test-linkat: don't leave behind a temporary file
13640         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
13641         Otherwise, coreutils' "make distcheck" would fail with this:
13642           Only in /c/cu/tests/torture/coreutils/test/\
13643             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
13644           make[2]: *** [my-distcheck] Error 1
13645
13646         float, math: add omitted file
13647         * lib/itold.c: Add file, required for yesterday's float change.
13648
13649 2011-10-01  Bruno Haible  <bruno@clisp.org>
13650
13651         isinf: Fix for OpenBSD/x86.
13652         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
13653         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
13654         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
13655
13656 2011-10-01  Bruno Haible  <bruno@clisp.org>
13657
13658         isfinite: Fix syntax error in configure test.
13659         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
13660
13661         isfinite: Fix typo.
13662         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
13663         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
13664
13665 2011-10-01  Bruno Haible  <bruno@clisp.org>
13666
13667         nonblocking tests: Fix test failure on Linux/IA-64.
13668         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
13669         Set to 270000.
13670
13671 2011-10-01  Bruno Haible  <bruno@clisp.org>
13672
13673         mkfifoat tests: Fix a test failure on mingw.
13674         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
13675         with error ENOSYS.
13676
13677 2011-09-30  Bruno Haible  <bruno@clisp.org>
13678
13679         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
13680         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
13681         'long double'. Set REPLACE_ITOLD.
13682         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
13683         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
13684         * lib/itold.c: New file.
13685         * modules/float (Files): Add lib/itold.c.
13686         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
13687         (Makefile.am): Substitute REPLACE_ITOLD.
13688         * modules/math (Depends-on): Add float.
13689         (Makefile.am): Substitute REPLACE_ITOLD.
13690         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
13691         * doc/posix-headers/math.texi: Likewise.
13692         * doc/posix-functions/logl.texi: Likewise.
13693
13694 2011-09-30  Bruno Haible  <bruno@clisp.org>
13695
13696         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
13697         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
13698         Set to 140000.
13699
13700 2011-09-30  Bruno Haible  <bruno@clisp.org>
13701
13702         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
13703         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
13704         invocation, say "right after AC_PROG_CC_STDC", not "right after
13705         AC_PROG_CC".
13706         Reported by Gary V. Vaughan <gary@gnu.org>.
13707
13708 2011-09-30  Bruno Haible  <bruno@clisp.org>
13709
13710         Centralize C99 requirement.
13711         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
13712         * modules/stdarg (configure.ac-early): Invoke it instead of
13713         AC_PROG_CC_STDC.
13714         Reported by Gary V. Vaughan and Paul Eggert.
13715
13716 2011-09-29  Bruno Haible  <bruno@clisp.org>
13717
13718         float: Fix LDBL_MAX value on Linux/PowerPC.
13719         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
13720         on Linux/PowerPC.
13721         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
13722         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
13723         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
13724         platform.
13725         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
13726
13727 2011-09-29  Bruno Haible  <bruno@clisp.org>
13728
13729         doc: Improve doc about gl_EARLY.
13730         * doc/gnulib-tool.texi (Initial import): Mention where to place an
13731         AC_PROG_CC_STDC invocation.
13732         Reported by Gary V. Vaughan <gary@gnu.org>.
13733
13734 2011-09-28  Bruno Haible  <bruno@clisp.org>
13735
13736         fgetc, fputc, fread, fwrite tests: Fix link error.
13737         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
13738         on non-MSVC platforms.
13739         * tests/test-fputc.c (main): Likewise.
13740         * tests/test-fread.c (main): Likewise.
13741         * tests/test-fwrite.c (main): Likewise.
13742         Reported by Jim Meyering.
13743
13744 2011-09-27  Bruno Haible  <bruno@clisp.org>
13745
13746         fputc, fwrite tests: Avoid test failure on MSVC.
13747         * tests/test-fgetc.c: Include msvc-inval.h.
13748         (main): Invoke gl_msvc_inval_ensure_handler.
13749         * tests/test-fputc.c: Include msvc-inval.h.
13750         (main): Invoke gl_msvc_inval_ensure_handler.
13751         * tests/test-fread.c: Include msvc-inval.h.
13752         (main): Invoke gl_msvc_inval_ensure_handler.
13753         * tests/test-fwrite.c: Include msvc-inval.h.
13754         (main): Invoke gl_msvc_inval_ensure_handler.
13755         * modules/fgetc-tests (Depends-on): Add msvc-inval.
13756         * modules/fputc-tests (Depends-on): Likewise.
13757         * modules/fread-tests (Depends-on): Likewise.
13758         * modules/fwrite-tests (Depends-on): Likewise.
13759
13760 2011-09-27  Bruno Haible  <bruno@clisp.org>
13761
13762         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
13763         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
13764         (raise): Remove older, duplicated declaration.
13765         (_gl_raise_SIGPIPE): New declaration.
13766         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
13767         (rpl_raise): Remove function.
13768         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
13769         a gnulib-defined SIGPIPE here.
13770         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
13771         'sigprocmask' has detected missing signal-blocking and the module
13772         'sigpipe' is enabled.
13773         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
13774
13775 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
13776
13777         base64-tests: avoid memory leak
13778         * tests/test-base64.c (main): Plug memory leak.
13779
13780         base32: new module
13781         * modules/base32: New module.
13782         * lib/base32.c: New file.
13783         * lib/base32.h: Likewise.
13784         * m4/base32.m4: Likewise.
13785         * modules/base32-tests: New test.
13786         * tests/test-base32.c: Likewise.
13787         * MODULES.html.sh (Misc): Mention it.
13788
13789 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
13790
13791         gnulib: use more-standard license notice wording
13792         * gnulib-tool (func_emit_copyright_notice): When emitting a
13793         license notice into a file, use the standard wording as suggested
13794         by the current information for GNU maintainers, except say "file"
13795         rather than "program".  The new wording gives a license version
13796         number, which addresses an issue raised by Glenn Morris in
13797         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
13798         * m4/onceonly.m4: Use that same wording here, too.
13799
13800         dup2: minor simplification
13801         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
13802         as lib/dup2.c no longer uses 'inline'.
13803
13804 2011-09-25  Bruno Haible  <bruno@clisp.org>
13805
13806         strings: Fix compilation error on MSVC.
13807         * lib/strings.in.h: Include <stddef.h> for size_t.
13808
13809 2011-09-25  Bruno Haible  <bruno@clisp.org>
13810
13811         fflush et al.: Document limitation on MSVC.
13812         * doc/posix-functions/fflush.texi: Document possible crash in handling
13813         mode other than DEFAULT_HANDLING.
13814         * doc/posix-functions/fgetc.texi: Likewise.
13815         * doc/posix-functions/fputc.texi: Likewise.
13816         * doc/posix-functions/fread.texi: Likewise.
13817         * doc/posix-functions/fwrite.texi: Likewise.
13818
13819 2011-09-25  Bruno Haible  <bruno@clisp.org>
13820
13821         msvc-inval: Allow three invalid parameter handling modes.
13822         * lib/msvc-inval.h: Don't include <stdlib.h> here.
13823         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
13824         macros.
13825         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
13826         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
13827         SANE_LIBRARY_HANDLING as a no-op.
13828         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
13829         <stdlib.h>.
13830         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
13831
13832 2011-09-25  Bruno Haible  <bruno@clisp.org>
13833
13834         msvc-inval: Make handler multithread-safe.
13835         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
13836         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
13837         declarations.
13838         (gl_msvc_inval_current): New declaration.
13839         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
13840         Operate on the structure returned by gl_msvc_inval_current().
13841         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
13842         Remove varaiables.
13843         (tls_index, tls_initialized): New variables.
13844         (not_per_thread): New variable.
13845         (gl_msvc_inval_current): New function.
13846         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
13847         returned by gl_msvc_inval_current().
13848
13849 2011-09-25  Bruno Haible  <bruno@clisp.org>
13850
13851         msvc-inval: Install handler globally.
13852         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
13853         !_MSC_VER.
13854         (gl_msvc_invalid_parameter_handler): Remove declaration.
13855         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
13856         declarations.
13857         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
13858         Install the handler globally, don't uninstall it.
13859         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
13860         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
13861         currently valid, call RaiseException instead.
13862         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
13863         for !_MSC_VER.
13864
13865 2011-09-25  Bruno Haible  <bruno@clisp.org>
13866
13867         strerror_r-posix: Fix for MSVC 9.
13868         * lib/strerror_r.c (local_snprintf): New function.
13869         (snprintf): Define to local_snprintf, not to _snprintf.
13870
13871 2011-09-25  Bruno Haible  <bruno@clisp.org>
13872
13873         ftruncate: Support for MSVC 9.
13874         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
13875         (chsize_nothrow): New function.
13876         (chsize): Redefine as a macro.
13877         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
13878         * modules/ftruncate (Depends-on): Add msvc-inval.
13879
13880 2011-09-25  Bruno Haible  <bruno@clisp.org>
13881
13882         New module 'fstat'.
13883         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
13884         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
13885         * lib/fchdir.c (rpl_fstat): Remove function.
13886         * m4/fstat.m4: New file.
13887         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
13888         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
13889         declared.
13890         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
13891         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
13892         * modules/fstat: New file.
13893         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
13894         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
13895         is set.
13896         * doc/posix-functions/fstat.texi: Mention the new module and the
13897         problem on MSVC.
13898         * NEWS: Mention the change.
13899         * modules/acl (Depends-on): Add fstat.
13900         * modules/chdir-safer (Depends-on): Likewise.
13901         * modules/chown (Depends-on): Likewise.
13902         * modules/copy-file (Depends-on): Likewise.
13903         * modules/fchdir (Depends-on): Likewise.
13904         * modules/fdopendir (Depends-on): Likewise.
13905         * modules/fopen (Depends-on): Likewise.
13906         * modules/fts (Depends-on): Likewise.
13907         * modules/getcwd (Depends-on): Likewise.
13908         * modules/isapipe (Depends-on): Likewise.
13909         * modules/linkat (Depends-on): Likewise.
13910         * modules/lseek (Depends-on): Likewise.
13911         * modules/mkdir-p (Depends-on): Likewise.
13912         * modules/open (Depends-on): Likewise.
13913         * modules/openat (Depends-on): Likewise.
13914         * modules/read-file (Depends-on): Likewise.
13915         * modules/renameat (Depends-on): Likewise.
13916         * modules/utimens (Depends-on): Likewise.
13917
13918 2011-09-25  Bruno Haible  <bruno@clisp.org>
13919
13920         linkat: Fix compilation on MSVC 9.
13921         * lib/linkat.c: Don't include <stdint.h>.
13922
13923 2011-09-25  Bruno Haible  <bruno@clisp.org>
13924
13925         fclose: Support for MSVC 9.
13926         * lib/fclose.c: Include msvc-inval.h.
13927         (fclose_nothrow): New function.
13928         (rpl_fclose): Use it.
13929         * modules/fclose (Depends-on): Add msvc-inval.
13930         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
13931
13932 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
13933
13934         dup2: minor simplifications
13935         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
13936         that it's a performance win.
13937         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
13938         ! defined __CYGWIN__)" to "ifdef F_GETFL".
13939
13940 2011-09-24  Jim Meyering  <meyering@redhat.com>
13941
13942         test-futimens: avoid a warning from gcc -Wshadow
13943         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
13944         to avoid a shadowing warning.
13945
13946 2011-09-24  Bruno Haible  <bruno@clisp.org>
13947
13948         fdopen: Support for MSVC 9.
13949         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
13950         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
13951         * lib/fdopen.c: Include msvc-inval.h.
13952         (fdopen_nothrow): New function.
13953         (rpl_fdopen): Use it.
13954         * modules/fdopen (Depends-on): Add msvc-inval.
13955         * modules/fclose-tests (Depends-on): Add fdopen.
13956         * modules/fflush-tests (Depends-on): Likewise.
13957         * modules/fgetc-tests (Depends-on): Likewise.
13958         * modules/fputc-tests (Depends-on): Likewise.
13959         * modules/fread-tests (Depends-on): Likewise.
13960         * modules/freopen-tests (Depends-on): Likewise.
13961         * modules/fseeko-tests (Depends-on): Likewise.
13962         * modules/ftello-tests (Depends-on): Likewise.
13963         * modules/fwrite-tests  (Depends-on): Likewise.
13964         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
13965
13966 2011-09-24  Bruno Haible  <bruno@clisp.org>
13967
13968         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
13969         * modules/fgetc-tests (Depends-on): Add unistd.
13970         * modules/fputc-tests (Depends-on): Likewise.
13971         * modules/fread-tests (Depends-on): Likewise.
13972         * modules/fwrite-tests (Depends-on): Likewise.
13973
13974 2011-09-24  Bruno Haible  <bruno@clisp.org>
13975
13976         dup: Simplify autoconf test.
13977         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
13978         on gl_MSVC_INVAL's result.
13979
13980 2011-09-24  Bruno Haible  <bruno@clisp.org>
13981
13982         Tests for function fwrite().
13983         * modules/fwrite-tests: New file.
13984         * tests/test-fwrite.c: New file.
13985         * modules/stdio-tests (Depends-on): Add fwrite-tests.
13986
13987         Tests for function fread().
13988         * modules/fread-tests: New file.
13989         * tests/test-fread.c: New file.
13990         * modules/stdio-tests (Depends-on): Add fread-tests.
13991
13992         Activate fputc tests.
13993         * modules/stdio-tests (Depends-on): Add fputc-tests.
13994
13995         Enhance fgetc, fputc tests.
13996         * tests/test-fgetc.c (main): Also test the stream's error indicator.
13997         * tests/test-fputc.c (main): Likewise.
13998
13999 2011-09-24  Bruno Haible  <bruno@clisp.org>
14000
14001         write: Support for MSVC 9.
14002         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
14003         is not 1.
14004         * lib/write.c (write_nothrow): New function.
14005         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
14006         not 1. Use write_nothrow.
14007         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
14008         invalid parameter handler.
14009         (gl_PREREQ_WRITE): New macro.
14010         * modules/write (Depends-on): Add msvc-inval.
14011         (configure.ac): Invoke gl_PREREQ_WRITE.
14012         * doc/posix-functions/write.texi: Mention the problem on MSVC.
14013
14014 2011-09-24  Bruno Haible  <bruno@clisp.org>
14015
14016         read: Fix last commit.
14017         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
14018
14019 2011-09-24  Bruno Haible  <bruno@clisp.org>
14020
14021         dup2: Fix last commit.
14022         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
14023         (rpl_dup2): Disable fcntl workaround on native Windows.
14024
14025         sigprocmask: Make code safer.
14026         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
14027         section that changes macro definitions for this compilation unit.
14028
14029 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
14030
14031         dup2: clarify by coalescing Windows-specific material
14032         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
14033         "msvc-nothrow.h"' to the Windows-specific section, so that the
14034         Emacs source need not contain these include files.
14035         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
14036         Windows-specific fixes into this function rather than just the
14037         nothrow fix, as this shortens and clarifies the code.  Always
14038         define as a function, as that's a bit cleaner than having it be
14039         sometimes a function and sometimes a macro.
14040         (rpl_dup2): Move the Windows-specific stuff out of here and into
14041         ms_windows_dup2.  Don't protect the Haiku-related fix with
14042         "#if !defined __linux__", as the same code also works around
14043         a Linux kernel bug, and it doesn't add any system calls on any
14044         platform.  Add comment about FreeBSD 6.1.
14045
14046         sigprocmask: move #include directive
14047         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
14048         Windows-specific section, so that the Emacs source need not
14049         contain msvc-inval.h.
14050
14051 2011-09-23  Bruno Haible  <bruno@clisp.org>
14052
14053         read: Support for MSVC 9.
14054         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
14055         is not 1.
14056         * lib/read.c (read_nothrow): New function.
14057         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
14058         read_nothrow.
14059         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
14060         invalid parameter handler.
14061         (gl_PREREQ_READ): New macro.
14062         * modules/read (Depends-on): Add msvc-inval.
14063         (configure.ac): Invoke gl_PREREQ_READ.
14064         * doc/posix-functions/read.texi: Mention the problem on MSVC.
14065
14066 2011-09-23  Bruno Haible  <bruno@clisp.org>
14067
14068         close: Support for MSVC 9.
14069         * lib/close.c: Include <errno.h>, msvc-inval.h.
14070         (close_nothrow): New function.
14071         (rpl_close): Use it.
14072         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
14073         invalid parameter handler.
14074         * modules/close (Depends-on): Add msvc-inval.
14075         * modules/dup2-tests (Depends-on): Add close.
14076         * modules/dup3-tests (Depends-on): Likewise.
14077         * modules/fcntl-tests (Depends-on): Likewise.
14078         * modules/spawn-pipe-tests (Depends-on): Likewise.
14079         * modules/unistd-safer-tests (Depends-on): Likewise.
14080         * doc/posix-functions/close.texi: Mention the problem on MSVC.
14081
14082 2011-09-23  Bruno Haible  <bruno@clisp.org>
14083
14084         New module 'dup'.
14085         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
14086         Allow replacement.
14087         * lib/dup.c: New file.
14088         * lib/fchdir.c (rpl_dup): Remove function.
14089         * m4/dup.m4: New file.
14090         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
14091         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
14092         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
14093         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
14094         * modules/dup: New file.
14095         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
14096         'dup' module is in use.
14097         * modules/fdopendir (Depends-on): Add dup.
14098         * modules/fdutimensat-tests (Depends-on): Likewise.
14099         * modules/fts (Depends-on): Likewise.
14100         * modules/futimens-tests (Depends-on): Likewise.
14101         * modules/posix_spawnp-tests (Depends-on): Likewise.
14102         * modules/unistd-safer-tests (Depends-on): Likewise.
14103         * modules/utimens-tests (Depends-on): Likewise.
14104         * doc/posix-functions/dup.texi: Mention the new module and the problem
14105         on MSVC.
14106
14107 2011-09-23  Bruno Haible  <bruno@clisp.org>
14108
14109         getdtablesize: Support for MSVC 9.
14110         * lib/getdtablesize.c: Include msvc-inval.h.
14111         (_setmaxstdio_nothrow): New function.
14112         (_setmaxstdio): Redefine it.
14113         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
14114         * modules/getdtablesize (Depends-on): Add msvc-inval.
14115         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
14116
14117 2011-09-23  Bruno Haible  <bruno@clisp.org>
14118
14119         signal-h: Rename from signal.
14120         * modules/signal-h: Renamed from modules/signal.
14121         * modules/pthread_sigmask (Depends-on): Update.
14122         * modules/raise (Depends-on): Likewise.
14123         * modules/sigaction (Depends-on): Likewise.
14124         * modules/sigpipe (Depends-on): Likewise.
14125         * modules/sigprocmask (Depends-on): Likewise.
14126         * modules/sys_select (Depends-on): Likewise.
14127         * modules/signal-h-tests: Renamed from modules/signal-tests.
14128         (Files, Depends-on, Makefile.am): Update.
14129         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
14130         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
14131         (Files, Makefile.am): Update.
14132         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
14133         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
14134         * modules/signal: New placeholder file.
14135         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
14136         * doc/posix-headers/signal.texi: Update.
14137         * NEWS: Mention the change.
14138
14139 2011-09-23  Bruno Haible  <bruno@clisp.org>
14140
14141         sigprocmask: Avoid crashes through signal() on MSVC 9.
14142         * lib/sigprocmask.c: Include msvc-inval.h.
14143         (signal_nothrow): New function.
14144         (signal): Redefine it.
14145         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
14146         * modules/sigprocmask (Depends-on): Add msvc-inval.
14147         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
14148
14149 2011-09-23  Bruno Haible  <bruno@clisp.org>
14150
14151         Tests for module 'raise'.
14152         * modules/raise-tests: New file.
14153         * tests/test-raise.c: New file.
14154
14155         raise: Support for MSVC.
14156         * lib/signal.in.h (raise): New declaration.
14157         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
14158         for native Windows platforms.
14159         * m4/raise.m4: New file.
14160         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
14161         HAVE_RAISE, REPLACE_RAISE.
14162         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
14163         REPLACE_RAISE.
14164         * modules/raise (Status, Notice): Remove fields.
14165         (Files): Add m4/raise.m4.
14166         (Depends-on): Add signal, msvc-inval.
14167         (configure.ac): Use the common idioms.
14168         (Maintainer): Add me.
14169         * tests/test-signal-c++.cc: Check the signature of raise.
14170         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
14171
14172 2011-09-23  Bruno Haible  <bruno@clisp.org>
14173
14174         pipe2: Fix compilation on pre-C99 compilers.
14175         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
14176
14177 2011-09-23  Bruno Haible  <bruno@clisp.org>
14178
14179         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
14180         * lib/msvc-nothrow.h: New file.
14181         * lib/msvc-nothrow.c: New file.
14182         * m4/msvc-nothrow.m4: New file.
14183         * modules/msvc-nothrow: New file.
14184         * lib/dup2.c: Include msvc-nothrow.h.
14185         (rpl_dup2): No need to protect _get_osfhandle call here.
14186         * lib/accept4.c: Include msvc-nothrow.h.
14187         * lib/error.c: Likewise.
14188         * lib/fcntl.c: Likewise.
14189         * lib/lseek.c: Likewise.
14190         * lib/nonblocking.c: Likewise.
14191         * lib/poll.c: Likewise.
14192         * lib/read.c: Likewise.
14193         * lib/select.c: Likewise.
14194         * lib/sockets.h: Likewise.
14195         * lib/sockets.c: Likewise.
14196         * lib/stdio-read.c: Likewise.
14197         * lib/stdio-write.c: Likewise.
14198         * lib/write.c: Likewise.
14199         * lib/w32sock.h: Likewise.
14200         * lib/w32spawn.h: Likewise.
14201         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
14202         * lib/fsync.c: Likewise.
14203         * lib/isapipe.c: Likewise.
14204         * modules/dup2 (Depends-on): Add msvc-nothrow.
14205         * modules/accept4 (Depends-on): Likewise.
14206         * modules/error (Depends-on): Likewise.
14207         * modules/fcntl (Depends-on): Likewise.
14208         * modules/lseek (Depends-on): Likewise.
14209         * modules/nonblocking (Depends-on): Likewise.
14210         * modules/poll (Depends-on): Likewise.
14211         * modules/read (Depends-on): Likewise.
14212         * modules/select (Depends-on): Likewise.
14213         * modules/sockets (Depends-on): Likewise.
14214         * modules/sigpipe (Depends-on): Likewise.
14215         * modules/write (Depends-on): Likewise.
14216         * modules/accept (Depends-on): Likewise.
14217         * modules/bind (Depends-on): Likewise.
14218         * modules/connect (Depends-on): Likewise.
14219         * modules/gethostname (Depends-on): Likewise.
14220         * modules/getpeername (Depends-on): Likewise.
14221         * modules/getsockname (Depends-on): Likewise.
14222         * modules/getsockopt (Depends-on): Likewise.
14223         * modules/ioctl (Depends-on): Likewise.
14224         * modules/listen (Depends-on): Likewise.
14225         * modules/recv (Depends-on): Likewise.
14226         * modules/recvfrom (Depends-on): Likewise.
14227         * modules/send (Depends-on): Likewise.
14228         * modules/sendto (Depends-on): Likewise.
14229         * modules/setsockopt (Depends-on): Likewise.
14230         * modules/shutdown (Depends-on): Likewise.
14231         * modules/socket (Depends-on): Likewise.
14232         * modules/execute (Depends-on): Likewise.
14233         * modules/spawn-pipe (Depends-on): Likewise.
14234         * modules/flock (Depends-on): Likewise.
14235         * modules/fsync (Depends-on): Likewise.
14236         * modules/isapipe (Depends-on): Likewise.
14237         * tests/test-cloexec.c: Include msvc-nothrow.h.
14238         * tests/test-dup-safer.c: Likewise.
14239         * tests/test-dup2.c: Likewise.
14240         * tests/test-dup3.c: Likewise.
14241         * tests/test-fcntl.c: Likewise.
14242         * tests/test-pipe.c: Likewise.
14243         * tests/test-pipe2.c: Likewise.
14244         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
14245         * modules/unistd-safer-tests (Depends-on): Likewise.
14246         * modules/dup2-tests (Depends-on): Likewise.
14247         * modules/dup3-tests (Depends-on): Likewise.
14248         * modules/fcntl-tests (Depends-on): Likewise.
14249         * modules/pipe-posix-tests (Depends-on): Likewise.
14250         * modules/pipe2-tests (Depends-on): Likewise.
14251
14252 2011-09-23  Bruno Haible  <bruno@clisp.org>
14253
14254         dup2: Make code more maintainable.
14255         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
14256         (rpl_dup2): Use it.
14257         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
14258         * modules/dup2 (configure.ac): Invoke it.
14259         Reported by Paul Eggert.
14260
14261 2011-09-23  Bruno Haible  <bruno@clisp.org>
14262
14263         msvc-inval: Fix compilation error.
14264         * lib/msvc-inval.h: Include <excpt.h>.
14265
14266 2011-09-23  Bruno Haible  <bruno@clisp.org>
14267
14268         mkdir: Tweak for MSVC 9.
14269         * lib/sys_stat.in.h: Update comments.
14270         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
14271
14272         Tests for module 'chdir'.
14273         * modules/chdir-tests: New file.
14274         * tests/test-chdir.c: New file.
14275
14276         New module 'chdir'.
14277         * modules/chdir: New file.
14278         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
14279         (chdir): New declaration.
14280         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
14281         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
14282         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
14283         * tests/test-unistd-c++.cc: Check signature of chdir.
14284         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
14285         * modules/chdir-long (Depends-on): Add chdir.
14286         * modules/fchdir (Depends-on): Likewise.
14287         * modules/rename (Depends-on): Likewise.
14288         * modules/savewd (Depends-on): Likewise.
14289
14290         rmdir: Support for mingw, MSVC 9.
14291         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
14292         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
14293
14294         getcwd: Tweak for MSVC 9.
14295         * lib/unistd.in.h: Update comments.
14296         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
14297
14298 2011-09-22  Bruno Haible  <bruno@clisp.org>
14299
14300         strerror_r-posix: Avoid a link error on MSVC.
14301         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
14302         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
14303
14304 2011-09-22  Bruno Haible  <bruno@clisp.org>
14305
14306         select: Avoid link errors on MSVC.
14307         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
14308         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
14309         * modules/pselect (Link): Likewise.
14310         * NEWS: Mention the change.
14311         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
14312         test-select-stdin against $(LIB_SELECT).
14313         * modules/pselect-tests (Makefile.am): Link test-pselect against
14314         $(LIB_SELECT).
14315
14316 2011-09-22  Bruno Haible  <bruno@clisp.org>
14317
14318         select: Avoid compilation error on MSVC.
14319         * lib/select.c: Don't include <stdbool.h>.
14320
14321 2011-09-21  Bruno Haible  <bruno@clisp.org>
14322
14323         Consolidate all uses of PATH_MAX in *.m4 files.
14324         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
14325         macros.
14326         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
14327         and gl_PATHMAX_SNIPPET.
14328         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
14329         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
14330         * modules/chdir-long (Files): Add m4/pathmax.m4.
14331         * modules/getcwd (Files): Likewise.
14332
14333 2011-09-21  Bruno Haible  <bruno@clisp.org>
14334
14335         ftruncate: Un-deprecate, concentrate on Win32 support.
14336         * modules/ftruncate (Status, Notice): Remove sections.
14337         (Depends-on): Add largefile.
14338         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
14339         non-mingw platforms.
14340         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
14341         include <io.h>.
14342         * modules/perror-tests (Depends-on): Add ftruncate.
14343         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
14344         'ftruncate' module.
14345
14346 2011-09-21  Bruno Haible  <bruno@clisp.org>
14347
14348         Add dependencies to new dirent related modules.
14349         * modules/opendir (Depends-on): Add closedir.
14350         * modules/getcwd (Depends-on): Add opendir, closedir.
14351         * modules/dirent-safer-tests (Depends-on): Likewise.
14352         * modules/fdopendir-tests (Depends-on): Likewise.
14353         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
14354         * modules/renameat-tests (Depends-on): Likewise.
14355
14356 2011-09-21  Bruno Haible  <bruno@clisp.org>
14357
14358         opendir: Avoid compilation error on mingw.
14359         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
14360         * modules/opendir (Depends-on): Add unistd.
14361
14362 2011-09-21  Bruno Haible  <bruno@clisp.org>
14363
14364         ftruncate tests: Avoid a test failure on mingw.
14365         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
14366
14367 2011-09-21  Bruno Haible  <bruno@clisp.org>
14368
14369         select tests: Avoid test failures on OSF/1 5.1 and mingw.
14370         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
14371         native Windows.
14372
14373 2011-09-21  Bruno Haible  <bruno@clisp.org>
14374
14375         New module 'fdopen'.
14376         * lib/stdio.in.h (fdopen): New declaration.
14377         * lib/fdopen.c: New file.
14378         * m4/fdopen.m4: New file.
14379         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
14380         REPLACE_FDOPEN.
14381         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
14382         REPLACE_FDOPEN.
14383         * modules/fdopen: New file.
14384         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
14385         * tests/test-stdio-c++.cc: Check signature of fdopen.
14386         * doc/posix-functions/fdopen.texi: Mention the new module.
14387
14388 2011-09-21  Bruno Haible  <bruno@clisp.org>
14389
14390         unlockpt tests: Avoid test failure on NetBSD 5.1.
14391         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
14392         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
14393
14394 2011-09-21  Bruno Haible  <bruno@clisp.org>
14395
14396         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
14397         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
14398         * tests/test-getlogin_r.c (main): Likewise.
14399
14400 2011-09-20  Bruno Haible  <bruno@clisp.org>
14401
14402         time tests: Don't require pid_t.
14403         * doc/posix-headers/time.texi: Revert last change.
14404         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
14405         * tests/test-time.c: Comment out the check for pid_t.
14406
14407 2011-09-20  Bruno Haible  <bruno@clisp.org>
14408
14409         fsync tests: Avoid a test failure on mingw.
14410         * tests/test-fsync.c (main): Allow a failure with EIO.
14411
14412 2011-09-20  Bruno Haible  <bruno@clisp.org>
14413
14414         euidaccess: Update comments.
14415         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
14416
14417 2011-09-20  Bruno Haible  <bruno@clisp.org>
14418
14419         Ensure EBADF returns for socket functions on mingw.
14420         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
14421         descriptor is invalid.
14422         * lib/bind.c (rpl_bind): Likewise.
14423         * lib/connect.c (rpl_connect): Likewise.
14424         * lib/getpeername.c (rpl_getpeername): Likewise.
14425         * lib/getsockname.c (rpl_getsockname): Likewise.
14426         * lib/getsockopt.c (rpl_getsockopt): Likewise.
14427         * lib/listen.c (rpl_listen): Likewise.
14428         * lib/recv.c (rpl_recv): Likewise.
14429         * lib/recvfrom.c (rpl_recvfrom): Likewise.
14430         * lib/send.c (rpl_send): Likewise.
14431         * lib/sendto.c (rpl_sendto): Likewise.
14432         * lib/setsockopt.c (rpl_setsockopt): Likewise.
14433         * lib/shutdown.c (rpl_shutdown): Likewise.
14434
14435 2011-09-20  Bruno Haible  <bruno@clisp.org>
14436
14437         select tests: EBADF tests.
14438         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
14439         test_bad_fd): New functions.
14440         (test_function): Invoke also test_bad_fd.
14441
14442 2011-09-20  Bruno Haible  <bruno@clisp.org>
14443
14444         Tests for module 'posix_spawn_file_actions_addopen.
14445         * modules/posix_spawn_file_actions_addopen-tests: New file.
14446         * tests/test-posix_spawn_file_actions_addopen.c: New file.
14447
14448         Tests for module 'posix_spawn_file_actions_adddup2'.
14449         * modules/posix_spawn_file_actions_adddup2-tests: New file.
14450         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
14451
14452         Tests for module 'posix_spawn_file_actions_addclose'.
14453         * modules/posix_spawn_file_actions_addclose-tests: New file.
14454         * tests/test-posix_spawn_file_actions_addclose.c: New file.
14455
14456 2011-09-20  Bruno Haible  <bruno@clisp.org>
14457
14458         Tests for module 'unlockpt'.
14459         * modules/unlockpt-tests: New file.
14460         * tests/test-unlockpt.c: New file.
14461         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
14462
14463         Tests for module 'grantpt'.
14464         * modules/grantpt-tests: New file.
14465         * tests/test-grantpt.c: New file.
14466         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
14467
14468 2011-09-20  Bruno Haible  <bruno@clisp.org>
14469
14470         freopen tests: EBADF tests.
14471         * tests/test-freopen.c: Include errno.h, unistd.h.
14472         (main): Add tests for EBADF, commented out for the moment.
14473
14474         fclose tests: EBADF tests.
14475         * tests/test-fclose.c (main): Add tests for EBADF.
14476
14477         fflush tests: EBADF tests.
14478         * tests/test-fflush.c: Include errno.h, macros.h.
14479         (main): Add tests for EBADF.
14480
14481         ftello tests: EBADF tests.
14482         * tests/test-ftello4.sh: New file.
14483         * tests/test-ftello4.c: New file.
14484         * modules/ftello-tests (Files): Add them.
14485         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
14486
14487         fseeko tests: EBADF tests.
14488         * tests/test-fseeko4.sh: New file.
14489         * tests/test-fseeko4.c: New file.
14490         * modules/fseeko-tests (Files): Add them.
14491         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
14492
14493         Tests for function fputc().
14494         * modules/fputc-tests: New file.
14495         * tests/test-fputc.c: New file.
14496         * modules/stdio-tests (Depends-on): Add fputc-tests.
14497
14498         Tests for function fgetc().
14499         * modules/fgetc-tests: New file.
14500         * tests/test-fgetc.c: New file.
14501         * modules/stdio-tests (Depends-on): Add fgetc-tests.
14502
14503         Tests for function fdopen().
14504         * modules/fdopen-tests: New file.
14505         * tests/test-fdopen.c: New file.
14506         * modules/stdio-tests (Depends-on): Add fdopen-tests.
14507
14508         Tests for module 'vdprintf'.
14509         * modules/vdprintf-tests: New file.
14510         * tests/test-vdprintf.c: New file.
14511
14512         Tests for module 'dprintf'.
14513         * modules/dprintf-tests: New file.
14514         * tests/test-dprintf.c: New file.
14515
14516 2011-09-20  Bruno Haible  <bruno@clisp.org>
14517
14518         Tests for module 'ioctl'.
14519         * modules/ioctl-tests: New file.
14520         * tests/test-ioctl.c: New file.
14521
14522 2011-09-20  Bruno Haible  <bruno@clisp.org>
14523
14524         fcntl tests: EBADF tests.
14525         * tests/test-fcntl.c (main): Add more tests for EBADF.
14526
14527 2011-09-20  Bruno Haible  <bruno@clisp.org>
14528
14529         utimensat tests: EBADF tests.
14530         * tests/test-utimensat.c (main): Add tests for EBADF.
14531
14532         renameat tests: EBADF tests.
14533         * tests/test-renameat.c (main): Add tests for EBADF.
14534
14535         mkfifoat tests: EBADF tests.
14536         * tests/test-mkfifoat.c (main): Add tests for EBADF.
14537
14538         readlinkat tests: EBADF tests.
14539         * tests/test-readlinkat.c (main): Add tests for EBADF.
14540
14541         symlinkat tests: EBADF tests.
14542         * tests/test-symlinkat.c (main): Add tests for EBADF.
14543
14544         linkat tests: EBADF tests.
14545         * tests/test-linkat.c (main): Add tests for EBADF.
14546
14547         Tests for module 'faccessat'.
14548         * modules/faccessat-tests: New file.
14549         * tests/test-faccessat.c: New file.
14550
14551         fdopendir tests: EBADF tests.
14552         * tests/test-fdopendir.c (main): Add more tests for EBADF.
14553
14554         openat tests: EBADF tests.
14555         * tests/test-fchownat.c (main): Add tests for EBADF.
14556         * tests/test-fstatat.c (main): Likewise.
14557         * tests/test-mkdirat.c (main): Likewise.
14558         * tests/test-openat.c (main): Likewise.
14559         * tests/test-unlinkat.c (main): Likewise.
14560         * tests/test-fchmodat.c: New file.
14561         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
14562         (Makefile.am): Also run 'test-fchmodat'.
14563
14564 2011-09-20  Bruno Haible  <bruno@clisp.org>
14565
14566         utimens, futimens, fdutimensat tests: EBADF tests.
14567         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
14568
14569         Tests for function fstat().
14570         * modules/fstat-tests: New file.
14571         * tests/test-fstat.c: New file.
14572         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
14573
14574 2011-09-20  Bruno Haible  <bruno@clisp.org>
14575
14576         test-ttyname_r tests: EBADF tests.
14577         * tests/test-ttyname_r.c (main): Add tests for EBADF.
14578
14579         Tests for module 'isatty'.
14580         * modules/isatty-tests: New file.
14581         * tests/test-isatty.c: New file.
14582
14583         Tests for module 'write'.
14584         * modules/write-tests: New file.
14585         * tests/test-write.c: New file.
14586
14587         Tests for module 'read'.
14588         * modules/read-tests: New file.
14589         * tests/test-read.c: New file.
14590
14591         pwrite tests: EBADF tests.
14592         * tests/test-pwrite.c (main): Add tests for EBADF.
14593
14594         pread tests: EBADF tests.
14595         * tests/test-pread.c (main): Add tests for EBADF.
14596
14597         lseek tests: EBADF tests.
14598         * tests/test-lseek.c (main): Add more tests for EBADF.
14599
14600         Tests for module 'ftruncate'.
14601         * modules/ftruncate-tests: New file.
14602         * tests/test-ftruncate.sh: New file.
14603         * tests/test-ftruncate.c: New file.
14604
14605         fsync tests: EBADF tests.
14606         * tests/test-fsync.c (main): Add more tests for EBADF.
14607
14608         fdatasync tests: EBADF tests.
14609         * tests/test-fdatasync.c (main): Add more tests for EBADF.
14610
14611         Tests for module 'fchown'.
14612         * modules/fchown-tests: New file.
14613         * tests/test-fchown.c: New file.
14614
14615         Tests for module 'fchmod'.
14616         * modules/fchmod-tests: New file.
14617         * tests/test-fchmod.c: New file.
14618
14619         fchdir tests: EBADF tests.
14620         * tests/test-fchdir.c (main): Add more tests for EBADF.
14621
14622         dup2 tests: EBADF tests.
14623         * tests/test-dup2.c (main): Add more tests for EBADF.
14624
14625         Tests for module 'dup'.
14626         * modules/dup-tests: New file.
14627         * tests/test-dup.c: New file.
14628
14629         Tests for module 'close'.
14630         * modules/close-tests: New file.
14631         * tests/test-close.c: New file.
14632
14633 2011-09-20  Bruno Haible  <bruno@clisp.org>
14634
14635         Tests for module 'shutdown'.
14636         * modules/shutdown-tests: New file.
14637         * tests/test-shutdown.c: New file.
14638
14639         Tests for module 'setsockopt'.
14640         * modules/setsockopt-tests: New file.
14641         * tests/test-setsockopt.c: New file.
14642
14643         Tests for module 'sendto'.
14644         * modules/sendto-tests: New file.
14645         * tests/test-sendto.c: New file.
14646
14647         Tests for module 'send'.
14648         * modules/send-tests: New file.
14649         * tests/test-send.c: New file.
14650
14651         Tests for module 'recvfrom'.
14652         * modules/recvfrom-tests: New file.
14653         * tests/test-recvfrom.c: New file.
14654
14655         Tests for module 'recv'.
14656         * modules/recv-tests: New file.
14657         * tests/test-recv.c: New file.
14658
14659         Tests for module 'listen'.
14660         * modules/listen-tests: New file.
14661         * tests/test-listen.c: New file.
14662
14663         Tests for module 'getsockopt'.
14664         * modules/getsockopt-tests: New file.
14665         * tests/test-getsockopt.c: New file.
14666
14667         Tests for module 'getsockname'.
14668         * modules/getsockname-tests: New file.
14669         * tests/test-getsockname.c: New file.
14670
14671         Tests for module 'getpeername'.
14672         * modules/getpeername-tests: New file.
14673         * tests/test-getpeername.c: New file.
14674
14675         Tests for module 'connect'.
14676         * modules/connect-tests: New file.
14677         * tests/test-connect.c: New file.
14678
14679         Tests for module 'bind'.
14680         * modules/bind-tests: New file.
14681         * tests/test-bind.c: New file.
14682
14683         accept4 tests: Fix for native Windows.
14684         * tests/test-accept4.c: Include sockets.h.
14685         (main): Invoke gl_sockets_startup.
14686         * modules/accept4-tests (Depends-on): Add sockets.
14687
14688         accept tests: Fix for native Windows.
14689         * tests/test-accept.c: Include sockets.h.
14690         (main): Invoke gl_sockets_startup.
14691         * modules/accept-tests (Depends-on): Add sockets.
14692
14693 2011-09-19  Bruno Haible  <bruno@clisp.org>
14694
14695         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
14696         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
14697         do...while(0).
14698         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
14699         Suggested by Paul Eggert.
14700
14701 2011-09-19  Bruno Haible  <bruno@clisp.org>
14702
14703         sched: Ensure pid_t is defined.
14704         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
14705         not define pid_t.
14706         * lib/sched.in.h: Include <sys/types.h>.
14707         * doc/posix-headers/sched.texi: Mention the pid_t problem.
14708         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14709
14710 2011-09-19  Bruno Haible  <bruno@clisp.org>
14711
14712         msvc-inval: Ensure the entire expansion is a single statement.
14713         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
14714         of braces.
14715
14716 2011-09-19  Jim Meyering  <meyering@redhat.com>
14717
14718         tests: use printf, not echo in init.sh's warn_ function
14719         * tests/init.sh (warn_): Use printf, not echo.  The latter would
14720         misbehave when given strings containing a backslash or starting
14721         with e.g., -n.  James Youngman suggested setting IFS.
14722
14723 2011-09-19  Eric Blake  <eblake@redhat.com>
14724
14725         futimens: enhance test
14726         * tests/test-futimens.h (test_futimens): Also check for EBADF on
14727         closed non-negative fd.
14728
14729         date: accept 'hence' as opposite of 'ago'
14730         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
14731         * tests/test-parse-datetime.c (main): Enhance test.
14732         Suggested by Jesse Wilson.
14733
14734 2011-09-19  Jim Meyering  <meyering@redhat.com>
14735
14736         getcwd: don't fail in a deep directory on a system without openat
14737         Before this change, getcwd would fail when called from a directory
14738         of depth PATH_MAX / 3 or greater.  That was due to the fact that
14739         the non-openat implementation used "..", "../..", "../../..", etc.
14740         to access ancestor directories.  With too many, that string would
14741         be longer than PATH_MAX.
14742         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
14743         using gnulib's openat replacement.
14744         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
14745         we're using the replacement function.
14746
14747 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
14748
14749         maint.mk: avoid warnings from perl about missing files
14750         * top/maint.mk (def_sym_regex): Ignore files listed in
14751         $(gl_other_headers_) that do not exist, say because a project
14752         does not use a corresponding module.
14753
14754 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
14755
14756         stat: use pathmax.h only if needed
14757         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
14758         This is better for Emacs, which does not have a mingw port and
14759         therefore can avoid the pathmax module.
14760
14761         utimens: remove dependency on dup2
14762         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
14763         to work around the Linux kernel bug.
14764         * modules/utimens (Depends-on): Remove dup2.
14765
14766 2011-09-18  Bruno Haible  <bruno@clisp.org>
14767
14768         inet_ntop, inet_pton: Look for it also in libresolv.
14769         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
14770         libnsl, search for it in libresolv.
14771         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
14772         Needed on Solaris 7.
14773
14774 2011-09-18  Bruno Haible  <bruno@clisp.org>
14775
14776         accept, accept4 tests: Avoid link error on Solaris.
14777         * modules/accept-tests (Makefile.am): Link test-accept against
14778         $(LIBSOCKET).
14779         * modules/accept4-tests (Makefile.am): Link test-accept4 against
14780         $(LIBSOCKET).
14781
14782         accept4: Avoid link error on Solaris.
14783         * modules/accept4 (Link): New section.
14784
14785         socket functions: Avoid link errors on Solaris.
14786         * modules/accept (Depends-on): Add socketlib.
14787         (Link): New section.
14788         * modules/bind (Depends-on): Add socketlib.
14789         (Link): New section.
14790         * modules/connect (Depends-on): Add socketlib.
14791         (Link): New section.
14792         * modules/getpeername (Depends-on): Add socketlib.
14793         (Link): New section.
14794         * modules/getsockname (Depends-on): Add socketlib.
14795         (Link): New section.
14796         * modules/getsockopt (Depends-on): Add socketlib.
14797         (Link): New section.
14798         * modules/listen (Depends-on): Add socketlib.
14799         (Link): New section.
14800         * modules/recv (Depends-on): Add socketlib.
14801         (Link): New section.
14802         * modules/recvfrom (Depends-on): Add socketlib.
14803         (Link): New section.
14804         * modules/send (Depends-on): Add socketlib.
14805         (Link): New section.
14806         * modules/sendto (Depends-on): Add socketlib.
14807         (Link): New section.
14808         * modules/setsockopt (Depends-on): Add socketlib.
14809         (Link): New section.
14810         * modules/shutdown (Depends-on): Add socketlib.
14811         (Link): New section.
14812         * modules/socket (Depends-on): Add socketlib.
14813         (Link): New section.
14814
14815 2011-09-18  Bruno Haible  <bruno@clisp.org>
14816
14817         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
14818         * tests/test-ptsname.c (main): Terminate the test if it takes longer
14819         than 5 seconds.
14820         * modules/ptsname-tests (configure.ac): Test for alarm.
14821
14822 2011-09-18  Bruno Haible  <bruno@clisp.org>
14823
14824         posix_spawn_file_actions_add*: Fix module dependencies.
14825         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
14826         posix_spawn_file_actions_init.
14827         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
14828         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
14829
14830 2011-09-18  Bruno Haible  <bruno@clisp.org>
14831
14832         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
14833         * tests/test-rename.h (test_rename): Allow error code EEXIST.
14834         * tests/test-renameat.c (main): Likewise.
14835
14836 2011-09-18  Bruno Haible  <bruno@clisp.org>
14837
14838         Tests for module 'accept4'.
14839         * modules/accept4-tests: New file.
14840         * tests/test-accept4.c: New file.
14841
14842 2011-09-18  Bruno Haible  <bruno@clisp.org>
14843
14844         Tests for module 'accept'.
14845         * modules/accept-tests: New file.
14846         * tests/test-accept.c: New file.
14847
14848 2011-09-18  Bruno Haible  <bruno@clisp.org>
14849
14850         dup2: Support for MSVC.
14851         * lib/dup2.c: Include msvc-inval.h.
14852         (rpl_dup2): Handle invalid parameter notifications during dup2 and
14853         _get_osfhandle calls.
14854         * modules/dup2 (Depends-on): Add msvc-inval.
14855         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
14856
14857         New module 'msvc-inval'.
14858         * lib/msvc-inval.h: New file.
14859         * lib/msvc-inval.c: New file.
14860         * m4/msvc-inval.m4: New file.
14861         * modules/msvc-inval: New file.
14862
14863 2011-09-17  Bruno Haible  <bruno@clisp.org>
14864
14865         Tests for module 'pclose'.
14866         * modules/pclose-tests: New file.
14867
14868         New module 'pclose'.
14869         * lib/stdio.in.h (pclose): New declaration.
14870         * lib/pclose.c: New file.
14871         * m4/pclose.m4: New file.
14872         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
14873         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
14874         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
14875         * modules/pclose: New file.
14876         * modules/popen-tests (Depends-on): Add pclose.
14877         * modules/popen-safer-tests (Depends-on): Likewise.
14878         * doc/posix-functions/pclose.texi: Mention the new module.
14879
14880 2011-09-17  Bruno Haible  <bruno@clisp.org>
14881
14882         popen: Support for MSVC.
14883         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
14884         * lib/popen.c (popen): Provide alternate definition for native Windows.
14885         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
14886         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
14887         * modules/popen (Depends-on, configure.ac): Update condition.
14888         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
14889         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
14890         fixed.
14891
14892 2011-09-17  Bruno Haible  <bruno@clisp.org>
14893
14894         isnanl, isnand, isnanf: Work around MSVC bug.
14895         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
14896
14897 2011-09-17  Bruno Haible  <bruno@clisp.org>
14898
14899         sys_socket tests: Fix recent mistake.
14900         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
14901
14902 2011-09-17  Bruno Haible  <bruno@clisp.org>
14903
14904         putenv: Support for MSVC.
14905         * modules/putenv (Depends-on): Add environ.
14906         * lib/putenv.c (environ): Disable declaration.
14907         * lib/unistd.in.h: Update comment.
14908
14909 2011-09-17  Bruno Haible  <bruno@clisp.org>
14910
14911         math: Avoid macro redefinition warnings on MSVC.
14912         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
14913         Undefine before redefining.
14914
14915 2011-09-17  Bruno Haible  <bruno@clisp.org>
14916
14917         doc: Mention functions which are declared as macros.
14918         * doc/posix-functions/*[fl].texi: Mention that some functions are
14919         defined as macros with arguments only.
14920
14921 2011-09-17  Bruno Haible  <bruno@clisp.org>
14922
14923         Add dependencies to new dirent related modules.
14924         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
14925         * modules/fts (Depends-on): Likewise.
14926         * modules/glob (Depends-on): Likewise.
14927         * modules/savedir (Depends-on): Likewise.
14928         * modules/scandir (Depends-on): Likewise.
14929         * modules/dirent-safer (Depends-on): Add opendir, closedir.
14930         * modules/fdopendir (Depends-on): Add opendir.
14931
14932 2011-09-17  Bruno Haible  <bruno@clisp.org>
14933
14934         inet_pton: Support for MSVC on Windows Vista or newer.
14935         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
14936         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
14937         HAVE_DECL_INET_PTON is defined.
14938         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
14939         On platforms with <winsock2.h>, test whether inet_pton is declared in
14940         <ws2tcpip.h>. If so, arrange to replace it.
14941         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
14942         REPLACE_INET_PTON.
14943         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
14944         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
14945         (Depends-on, configure.ac): Update condition.
14946         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
14947
14948 2011-09-17  Bruno Haible  <bruno@clisp.org>
14949
14950         inet_ntop: Support for MSVC on Windows Vista or newer.
14951         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
14952         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
14953         HAVE_DECL_INET_NTOP is defined.
14954         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
14955         On platforms with <winsock2.h>, test whether inet_ntop is declared in
14956         <ws2tcpip.h>. If so, arrange to replace it.
14957         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
14958         REPLACE_INET_NTOP.
14959         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
14960         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
14961         (Depends-on, configure.ac): Update condition.
14962         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
14963
14964 2011-09-16  Eric Blake  <eblake@redhat.com>
14965
14966         test-fsync: yet another enhancement
14967         * tests/test-fsync.c (main): Also test behavior on read-only text
14968         file.
14969
14970 2011-09-16  Bruno Haible  <bruno@clisp.org>
14971
14972         Enhance fsync, fdatasync tests.
14973         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
14974         * tests/test-fdatasync.c (main): Likewise.
14975
14976 2011-09-16  Bruno Haible  <bruno@clisp.org>
14977
14978         Support for MSVC compiler: Ensure mode_t gets defined.
14979         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
14980         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
14981         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
14982         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
14983         * tests/test-fcntl-h.c: Check that mode_t is defined.
14984         * tests/test-sys_stat.c: Likewise.
14985         * tests/test-sys_types.c: Likewise.
14986         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
14987         * doc/posix-headers/sys_stat.texi: Likewise.
14988         * doc/posix-headers/sys_types.texi: Likewise.
14989
14990 2011-09-16  Bruno Haible  <bruno@clisp.org>
14991
14992         sys_stat: Support for MSVC.
14993         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
14994         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
14995         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
14996         MSVC.
14997
14998 2011-09-16  Bruno Haible  <bruno@clisp.org>
14999
15000         Support for MSVC compiler: Ensure off_t gets defined.
15001         * lib/unistd.in.h: Include <sys/types.h>.
15002         * tests/test-fcntl-h.c: Check that off_t is defined.
15003         * tests/test-sys_stat.c: Likewise.
15004         * tests/test-sys_types.c: Likewise.
15005
15006 2011-09-16  Eric Blake  <eblake@redhat.com>
15007
15008         fdatasync: port to Solaris
15009         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
15010         * modules/fdatasync (Link): Document it.
15011         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
15012
15013         fdatasync: port to MacOS X 10.7
15014         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
15015         declared.
15016         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
15017         * modules/unistd (Makefile.am): Substitute it.
15018         * lib/unistd.in.h (fdatasync): Declare on MacOS.
15019         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
15020
15021         fdatasync: minor improvements
15022         * modules/fdatasync (Depends-on): Add condition for fsync.
15023         * lib/fdatasync.c (fdatasync): Add comment.
15024         * tests/test-unistd-c++.cc: Test fdatasync.
15025
15026         unistd: update refs to newer POSIX
15027         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
15028         Suggested by Bruno Haible.
15029
15030         fdatasync: new module
15031         * modules/fsync (Description): Document difference to fdatasync.
15032         * modules/fdatasync: New module.
15033         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
15034         * lib/fdatasync.c (fdatasync): Likewise.
15035         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
15036         defaults.
15037         * modules/unistd (Makefile.am): Set witnesses.
15038         * lib/unistd.in.h (fdatasync): Declare.
15039         * MODULES.html.sh: Document it.
15040         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
15041         * modules/fdatasync-tests: New test.
15042         * tests/test-fdatasync.c: Likewise.
15043
15044 2011-09-16  Eric Blake  <eblake@redhat.com>
15045
15046         test-fsync: enhance tests
15047         * modules/fsync-tests (Depends-on): Add errno, for mingw.
15048         * tests/test-fsync.c (main): Enhance test.
15049
15050 2011-09-15  Bruno Haible  <bruno@clisp.org>
15051
15052         Support for MSVC compiler: Ensure ssize_t gets defined.
15053         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
15054         * doc/posix-headers/stdio.texi: Likewise.
15055         * modules/stdio (Depends-on): Add ssize_t.
15056         * modules/sys_socket (Depends-on): Likewise.
15057         * modules/sys_types (Depends-on): Likewise.
15058         * modules/sys_uio (Depends-on): Likewise.
15059         * modules/unistd (Depends-on): Likewise.
15060         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
15061         * tests/test-sys_types.c: Check that ssize_t is defined.
15062
15063 2011-09-14  Bruno Haible  <bruno@clisp.org>
15064
15065         Avoid using #, the m4 comment starter character, near brackets.
15066         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
15067         delimiter character in sed expressions.
15068         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
15069         Suggested by Eric Blake.
15070
15071         Properly quote AC_CHECK_DECLS' 4th argument.
15072         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
15073         argument.
15074         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
15075         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
15076         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
15077         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
15078         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
15079         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
15080         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
15081         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
15082         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
15083         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
15084         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
15085         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
15086         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
15087         * m4/isinf.m4 (gl_ISINF): Likewise.
15088         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
15089         * m4/readutmp.m4 (gl_READUTMP): Likewise.
15090         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
15091         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
15092         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
15093         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
15094         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
15095         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
15096         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
15097         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
15098         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
15099         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
15100         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
15101         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
15102         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
15103         Reported by Eric Blake.
15104
15105         Properly quote AC_CHECK_DECL's 4th argument.
15106         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
15107         argument.
15108         * m4/argp.m4 (gl_ARGP): Likewise.
15109         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
15110         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
15111         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
15112         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
15113         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
15114         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
15115         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
15116         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
15117         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
15118         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
15119         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
15120         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
15121         Reported by Eric Blake.
15122
15123 2011-09-14  Eric Blake  <eblake@redhat.com>
15124
15125         opendir: avoid compile warning
15126         * lib/opendir.c (includes): Always include errno.h.
15127         Reported by Tatsuro MATSUOKA.
15128
15129 2011-09-14  Jim Meyering  <meyering@redhat.com>
15130
15131         maint.mk: sc_tight_scope: propagate failure from sub-make
15132         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
15133         Reported by Martin von Gagern.
15134
15135 2011-09-13  Bruno Haible  <bruno@clisp.org>
15136
15137         tempname: Support for MSVC.
15138         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
15139         MSVC.
15140         * modules/tempname (Depends-on): Add fcntl-h.
15141
15142 2011-09-13  Bruno Haible  <bruno@clisp.org>
15143
15144         sys_time: Support for MSVC.
15145         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
15146         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
15147         include <winsock2.h>.
15148         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
15149         function declarations that collide with POSIX.
15150         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
15151         (Makefile.am): Substitute HAVE_WINSOCK2_H.
15152
15153 2011-09-13  Bruno Haible  <bruno@clisp.org>
15154
15155         stat: Support for MSVC.
15156         * lib/stat.c: Include pathmax.h.
15157         * modules/stat (Depends-on): Add pathmax.
15158
15159         pathmax: Support for native Windows.
15160         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
15161
15162 2011-09-12  Bruno Haible  <bruno@clisp.org>
15163
15164         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
15165         * lib/dirent.in.h (struct dirent): New type.
15166         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
15167         DT_WHT): New macros.
15168         (DIR): New type.
15169         (opendir, closedir): Declare only if the module 'opendir' is enabled.
15170         (readdir, rewinddir): New declarations.
15171         * lib/dirent-private.h: New file.
15172         * lib/opendir.c: New file.
15173         * lib/readdir.c: New file.
15174         * lib/rewinddir.c: New file.
15175         * lib/closedir.c: New file.
15176         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
15177         * m4/opendir.m4: New file.
15178         * m4/readdir.m4: New file.
15179         * m4/rewinddir.m4: New file.
15180         * m4/closedir.m4: New file.
15181         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
15182         REPLACE_CLOSEDIR here.
15183         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
15184         readdir, rewinddir are declared.
15185         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
15186         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
15187         HAVE_REWINDDIR, HAVE_CLOSEDIR.
15188         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
15189         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
15190         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
15191         * modules/opendir: New file.
15192         * modules/readdir: New file.
15193         * modules/rewinddir: New file.
15194         * modules/closedir: New file.
15195         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
15196         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
15197         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
15198         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
15199         * NEWS: Mention the 'fchdir' change.
15200
15201 2011-09-11  Bruno Haible  <bruno@clisp.org>
15202
15203         asm-underscore.m4: Support for MSVC.
15204         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
15205         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
15206
15207 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
15208
15209         Doc about crypt functions.
15210         * doc/posix-functions/crypt.texi: Expand range of glibc versions
15211         needing for _GNU_SOURCE to get crypt.
15212         * doc/posix-functions/encrypt.texi: Likewise.
15213         * doc/posix-functions/setkey.texi: Likewise.
15214
15215 2011-09-11  Bruno Haible  <bruno@clisp.org>
15216
15217         doc: Update regarding MSVC 9.
15218         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
15219         tested".
15220         * doc/posix-functions/*.texi: Update with info about MSVC 9.
15221         * doc/posix-headers/*.texi: Likewise.
15222         * doc/pastposix-functions/*.texi: Likewise.
15223         * doc/glibc-functions/*.texi: Likewise.
15224         * doc/glibc-headers/*.texi: Likewise.
15225
15226 2011-09-11  Bruno Haible  <bruno@clisp.org>
15227
15228         unistd et al.: Don't assume <unistd.h> exists.
15229         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
15230         does not exist.
15231         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
15232         exist. But include <stdlib.h>.
15233         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
15234         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
15235         symlink() does not exist.
15236         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
15237         include <io.h> instead.
15238         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
15239         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
15240         include <direct.h> instead.
15241         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
15242         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
15243         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
15244         <io.h> instead.
15245         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
15246         correctly if the system does not have hard links.
15247         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
15248         <direct.h> instead.
15249         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
15250         it when looking for function declarations.
15251         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
15252         <direct.h> and <io.h> instead.
15253         * doc/posix-headers/unistd.texi: More details about MSVC problem.
15254
15255 2011-09-11  Bruno Haible  <bruno@clisp.org>
15256
15257         strcase: Support for MSVC.
15258         * modules/strcase (Status, Notice): Remove obsoletion mark.
15259         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
15260         * doc/posix-functions/strncasecmp.texi: Likewise.
15261
15262         strings: Don't assume <strings.h> exists.
15263         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
15264         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
15265         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
15266         * doc/posix-headers/strings.texi: Mention the MSVC problem.
15267
15268 2011-09-11  Bruno Haible  <bruno@clisp.org>
15269
15270         dirent: Don't assume <dirent.h> exists.
15271         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
15272         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
15273         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
15274         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
15275
15276 2011-09-11  Bruno Haible  <bruno@clisp.org>
15277
15278         Fix wint_t on MSVC.
15279         * lib/wchar.in.h (wint_t): On MSVC, override it.
15280         * lib/wctype.in.h (wint_t): Likewise.
15281         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
15282         MSVC.
15283         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
15284         * doc/posix-headers/wctype.texi: Likewise.
15285
15286 2011-09-11  Bruno Haible  <bruno@clisp.org>
15287
15288         sys_types: Fix typo.
15289         * lib/sys_types.in.h: Fix typo in comment.
15290         Reported by Paul Eggert.
15291
15292         Support for MSVC compiler: Ensure size_t gets defined.
15293         * modules/strings (Depends-on): Add 'sys_types'.
15294         * modules/sys_uio (Depends-on): Likewise.
15295         * lib/sys_uio.in.h: Update comment.
15296
15297         C++ tests for module 'sys_types'.
15298         * modules/sys_types-c++-tests: New file.
15299         * tests/test-sys_types-c++.cc: New file.
15300
15301         Tests for module 'sys_types'.
15302         * modules/sys_types-tests: New file.
15303         * tests/test-sys_types.c: New file.
15304
15305         New module 'sys_types'.
15306         * lib/sys_types.in.h: New file.
15307         * m4/sys_types_h.m4: New file.
15308         * modules/sys_types: New file.
15309         * doc/posix-headers/sys_types.texi: Mention the new module and the
15310         size_t problem on MSVC 9.
15311
15312 2011-09-11  Bruno Haible  <bruno@clisp.org>
15313
15314         Support for MSVC compiler: Avoid division by a literal 0.
15315         * lib/math.in.h (NAN): Define through a function call also on MSVC.
15316         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
15317         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
15318         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
15319         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
15320         * tests/infinity.h: New file.
15321         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
15322         on MSVC.
15323         * tests/test-ceilf1.c: Include infinity.h.
15324         (main): Use Infinityf.
15325         * tests/test-ceil1.c: Include infinity.h.
15326         (main): Use Infinityd.
15327         * tests/test-ceill.c: Include infinity.h.
15328         (main): Use Infinityl.
15329         * tests/test-dprintf-posix.c: Include infinity.h.
15330         (test_function): Use Infinityd.
15331         * tests/test-floorf1.c: Include infinity.h.
15332         (main): Use Infinityf.
15333         * tests/test-floor1.c: Include infinity.h.
15334         (main): Use Infinityd.
15335         * tests/test-floorl.c: Include infinity.h.
15336         (main): Use Infinityl.
15337         * tests/test-fprintf-posix.c: Include infinity.h.
15338         (test_function): Use Infinityd.
15339         * tests/test-frexp.c: Include infinity.h.
15340         (main): Use Infinityd.
15341         * tests/test-frexpl.c: Include infinity.h.
15342         (main): Use Infinityl.
15343         * tests/test-isfinite.c: Include infinity.h.
15344         (test_isfinitef): Use Infinityf.
15345         (test_isfinited): Use Infinityd.
15346         (test_isfinitel): Use Infinityl.
15347         * tests/test-isinf.c: Include infinity.h.
15348         (test_isinff): Use Infinityf.
15349         (test_isinfd): Use Infinityd.
15350         (test_isinfl): Use Infinityl.
15351         * tests/test-isnan.c: Include infinity.h.
15352         (test_float): Use Infinityf.
15353         (test_double): Use Infinityd.
15354         (test_long_double): Use Infinityl.
15355         * tests/test-isnanf.h: Include infinity.h.
15356         (main): Use Infinityf.
15357         * tests/test-isnand.h: Include infinity.h.
15358         (main): Use Infinityd.
15359         * tests/test-isnanl.h: Include infinity.h.
15360         (main): Use Infinityl.
15361         * tests/test-ldexpl.c: Include infinity.h.
15362         (main): Use Infinityl.
15363         * tests/test-printf-posix.h: Include infinity.h.
15364         (test_function): Use Infinityd.
15365         * tests/test-roundf1.c: Include infinity.h.
15366         (main): Use Infinityf.
15367         * tests/test-round1.c: Include infinity.h.
15368         (main): Use Infinityd.
15369         * tests/test-roundl.c: Include infinity.h.
15370         (main): Use Infinityl.
15371         * tests/test-signbit.c: Include infinity.h.
15372         (test_signbitf): Use Infinityf.
15373         (test_signbitd): Use Infinityd.
15374         (test_signbitl): Use Infinityl.
15375         * tests/test-snprintf-posix.h: Include infinity.h.
15376         (test_function): Use Infinityd, Infinityl.
15377         * tests/test-sprintf-posix.h: Include infinity.h.
15378         (test_function): Use Infinityd, Infinityl.
15379         * tests/test-truncf1.c: Include infinity.h.
15380         (main): Use Infinityf.
15381         * tests/test-trunc1.c: Include infinity.h.
15382         (main): Use Infinityd.
15383         * tests/test-truncl.c: Include infinity.h.
15384         (main): Use Infinityl.
15385         * tests/test-vasnprintf-posix.c: Include infinity.h.
15386         (test_function): Use Infinityd, Infinityl.
15387         * tests/test-vasprintf-posix.c: Include infinity.h.
15388         (test_function): Use Infinityd, Infinityl.
15389         * modules/ceilf-tests (Files): Add tests/infinity.h.
15390         * modules/ceil-tests (Files): Likewise.
15391         * modules/ceill-tests (Files): Likewise.
15392         * modules/dprintf-posix-tests (Files): Likewise.
15393         * modules/floorf-tests (Files): Likewise.
15394         * modules/floor-tests (Files): Likewise.
15395         * modules/floorl-tests (Files): Likewise.
15396         * modules/fprintf-posix-tests (Files): Likewise.
15397         * modules/frexp-tests (Files): Likewise.
15398         * modules/frexp-nolibm-tests (Files): Likewise.
15399         * modules/frexpl-tests (Files): Likewise.
15400         * modules/frexpl-nolibm-tests (Files): Likewise.
15401         * modules/isfinite-tests (Files): Likewise.
15402         * modules/isinf-tests (Files): Likewise.
15403         * modules/isnan-tests (Files): Likewise.
15404         * modules/isnanf-tests (Files): Likewise.
15405         * modules/isnanf-nolibm-tests (Files): Likewise.
15406         * modules/isnand-tests (Files): Likewise.
15407         * modules/isnand-nolibm-tests (Files): Likewise.
15408         * modules/isnanl-tests (Files): Likewise.
15409         * modules/isnanl-nolibm-tests (Files): Likewise.
15410         * modules/ldexpl-tests (Files): Likewise.
15411         * modules/printf-posix-tests (Files): Likewise.
15412         * modules/roundf-tests (Files): Likewise.
15413         * modules/round-tests (Files): Likewise.
15414         * modules/roundl-tests (Files): Likewise.
15415         * modules/signbit-tests (Files): Likewise.
15416         * modules/snprintf-posix-tests (Files): Likewise.
15417         * modules/sprintf-posix-tests (Files): Likewise.
15418         * modules/truncf-tests (Files): Likewise.
15419         * modules/trunc-tests (Files): Likewise.
15420         * modules/truncl-tests (Files): Likewise.
15421         * modules/vasnprintf-posix-tests (Files): Likewise.
15422         * modules/vasprintf-posix-tests (Files): Likewise.
15423         * modules/vdprintf-posix-tests (Files): Likewise.
15424         * modules/vfprintf-posix-tests (Files): Likewise.
15425         * modules/vprintf-posix-tests (Files): Likewise.
15426         * modules/vsnprintf-posix-tests (Files): Likewise.
15427         * modules/vsprintf-posix-tests (Files): Likewise.
15428         * modules/xprintf-posix-tests (Files): Likewise.
15429
15430 2011-09-11  Bruno Haible  <bruno@clisp.org>
15431
15432         Ensure pid_t gets defined.
15433         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
15434         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
15435         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
15436         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
15437         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
15438         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
15439         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
15440         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
15441         * tests/test-fcntl-h.c: Check that pid_t is defined.
15442         * tests/test-sched.c: Likewise.
15443         * tests/test-termios.c: Likewise.
15444         * tests/test-time.c: Likewise.
15445         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
15446         * doc/posix-headers/signal.texi: Likewise.
15447         * doc/posix-headers/sys_types.texi: Likewise.
15448         * doc/posix-headers/time.texi: Likewise.
15449
15450 2011-09-11  Bruno Haible  <bruno@clisp.org>
15451
15452         acl: Fix compilation on Solaris 10 (older version).
15453         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
15454         of ACE_EVERYONE.
15455         * lib/set-mode-acl.c (qset_acl): Likewise.
15456         Reported by Christian Jullien <eligis@orange.fr>.
15457
15458 2011-09-10  Bruno Haible  <bruno@clisp.org>
15459
15460         iconv, unsetenv: Add support for MSVC compiler.
15461         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
15462         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
15463
15464 2011-09-10  Bruno Haible  <bruno@clisp.org>
15465
15466         *printf: Add support for MSVC compiler.
15467         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
15468         handles the exception caused by the %n directive. When cross-compiling,
15469         guess no on native Windows.
15470         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
15471         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
15472         emulate it through vsnprintf.
15473         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
15474         * doc/posix-functions/dprintf.texi: Update documentation regarding
15475         MSVC 9.
15476         * doc/posix-functions/fprintf.texi: Likewise.
15477         * doc/posix-functions/printf.texi: Likewise.
15478         * doc/posix-functions/snprintf.texi: Likewise.
15479         * doc/posix-functions/sprintf.texi: Likewise.
15480         * doc/posix-functions/swprintf.texi: Likewise.
15481         * doc/posix-functions/vdprintf.texi: Likewise.
15482         * doc/posix-functions/vfprintf.texi: Likewise.
15483         * doc/posix-functions/vprintf.texi: Likewise.
15484         * doc/posix-functions/vsnprintf.texi: Likewise.
15485         * doc/posix-functions/vsprintf.texi: Likewise.
15486         * doc/glibc-functions/asprintf.texi: Likewise.
15487         * doc/glibc-functions/obstack_printf.texi: Likewise.
15488         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
15489         * doc/glibc-functions/vasprintf.texi: Likewise.
15490
15491 2011-09-10  Bruno Haible  <bruno@clisp.org>
15492
15493         nocrash: Add support for native Windows.
15494         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
15495
15496 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
15497             Bruno Haible  <bruno@clisp.org>
15498
15499         absolute-header, include-next: Add support for MSVC compiler.
15500         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
15501         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
15502         directory separator in #line directives.
15503         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
15504         recognize also backslash as directory separator in #line directives.
15505
15506 2011-09-08  Jim Meyering  <meyering@redhat.com>
15507
15508         maint.mk: mark the post-release commit log with "maint: " prefix
15509         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
15510         one-line commit-log summary.
15511
15512 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
15513             Bruno Haible  <bruno@clisp.org>
15514
15515         Doc about crypt functions.
15516         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
15517         systems.
15518         * doc/posix-functions/encrypt.texi: Likewise.
15519         * doc/posix-functions/setkey.texi: Likewise.
15520
15521 2011-09-08  Simon Josefsson  <simon@josefsson.org>
15522
15523         * lib/gc.h: Fix copyright header.
15524
15525 2011-09-07  Bruno Haible  <bruno@clisp.org>
15526
15527         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
15528         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
15529         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
15530
15531 2011-09-07  Bruno Haible  <bruno@clisp.org>
15532
15533         openat: Work around compilation error with OSF/1 5.1 DTK cc.
15534         * lib/fopen.c: Use different syntax for include of <stdio.h>.
15535         * lib/freopen.c: Likewise.
15536         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
15537         * lib/lstat.c: Likewise.
15538         * lib/stat.c: Likewise.
15539         * lib/open.c: Use different syntax for include of <fcntl.h>.
15540         * lib/openat.c: Include fcntl.h again, explicitly.
15541
15542 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
15543
15544         parse-datetime: document the newly accepted format
15545         * doc/parse-datetime.texi (Combined date and time of day items):
15546         New section.
15547
15548 2011-09-06  Bruno Haible  <bruno@clisp.org>
15549
15550         acl: Fix a test failure on newer Solaris 10 with ZFS.
15551         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
15552         ENOSYS as no ACL.
15553         Reported by Jim Meyering.
15554
15555 2011-09-06  Bruno Haible  <bruno@clisp.org>
15556
15557         acl: Update for AIX >= 5.3 with NFS.
15558         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
15559         ENOSYS as no ACL.
15560
15561         acl: Fix a test failure on AIX >= 5.3 with NFS.
15562         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
15563         as no ACL.
15564
15565 2011-09-06  Bruno Haible  <bruno@clisp.org>
15566
15567         acl: Fix a test failure on IRIX 6.5 with NFS.
15568         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
15569         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
15570         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
15571         * lib/copy-acl.c (qcopy_acl): Likewise.
15572
15573 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
15574
15575         openat: port to AIX 7.1 with large files
15576         AIX 7.1 does a "#define openat open64at" if large files are in use,
15577         so we can't simply #undef openat.  Use the orig_openat trick (similar
15578         to orig_open in lib/open.c) to work around the problem.  Problem
15579         reported by Kevin Brott for GNU tar, in the thread containing
15580         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
15581         * lib/openat.c (__need_system_fcntl_h): Define first.
15582         Include <fcntl.h> and <sys/types.h> before undefining.
15583         (orig_openat) [HAVE_OPENAT]: New inline function.
15584         (openat) [HAVE_OPENAT]: Do not undef.
15585         (rpl_openat): Use orig_openat, not openat.
15586
15587 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
15588             Bruno Haible  <bruno@clisp.org>
15589
15590         acl: Avoid errors on NonStop Kernel.
15591         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
15592         ENOTSUP errors.
15593
15594 2011-09-05  Bruno Haible  <bruno@clisp.org>
15595
15596         acl: Clean up Solaris code.
15597         * lib/acl-internal.h: Remove no-op #if.
15598         * lib/file-has-acl.c: Likewise.
15599         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
15600         * lib/copy-acl.c (qcopy_acl): Likewise.
15601
15602 2011-09-05  Bruno Haible  <bruno@clisp.org>
15603
15604         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
15605         binaries built on the original Solaris 10.
15606         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
15607         trivial.
15608
15609 2011-09-05  Bruno Haible  <bruno@clisp.org>
15610
15611         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
15612         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
15613         10.
15614         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
15615         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
15616         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
15617         instead of acl_get, facl_get, acl_set, facl_set.
15618
15619 2011-09-05  Bruno Haible  <bruno@clisp.org>
15620
15621         copy-file: Try unit tests on more file systems.
15622         * tests/test-copy-file-1.sh: New file.
15623         * tests/test-copy-file-2.sh: New file.
15624         * modules/copy-file-tests (Files): Add them.
15625         (Makefile.am): Add them to TESTS.
15626
15627         acl: Try unit tests on more file systems.
15628         * tests/test-file-has-acl-1.sh: New file.
15629         * tests/test-file-has-acl-2.sh: New file.
15630         * tests/test-set-mode-acl-1.sh: New file.
15631         * tests/test-set-mode-acl-2.sh: New file.
15632         * tests/test-copy-acl-1.sh: New file.
15633         * tests/test-copy-acl-2.sh: New file.
15634         * modules/acl-tests (Files): Add them.
15635         (Makefile.am): Add them to TESTS.
15636
15637 2011-09-04  Bruno Haible  <bruno@clisp.org>
15638
15639         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
15640         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
15641         10.
15642         (OLD_ALLOW, OLD_DENY): New macros.
15643         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
15644         ACE_ACCESS_ALLOWED_ACE_TYPE.
15645         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
15646         ACE_ACCESS_DENIED_ACE_TYPE.
15647         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
15648         (NEW_ACE_EXECUTE): Fix value.
15649         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
15650         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
15651         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
15652         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
15653         NEW_ACE_SYNCHRONIZE): New macros.
15654         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
15655         instead of acl_fromtext, acl_set, facl_set.
15656         Fixes a coreutils/tests/cp/perm failure.
15657
15658 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
15659
15660         openat: test for fstatat (..., 0) bug
15661         Further testing with tar suggests that fstatat (..., 0)
15662         does not work in general, on AIX 7.1; see
15663         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
15664         So, give up entirely on AIX 7.1's fstatat, and fall back on our
15665         replacement fstatat (which is what older AIX releases were using
15666         anyway).
15667         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
15668         use is now changed to orig_fstatat.  This was probably the right
15669         thing to do anyway.
15670         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
15671         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
15672         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
15673         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
15674         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
15675         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
15676         if the bug is found.
15677
15678         openat: test for fstatat (AT_FDCWD, ..., 0) bug
15679         This tests for another fstatat bug on AIX 7.1:
15680         fstatat (AT_FDCWD, ..., 0) does not work.  See
15681         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
15682         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
15683         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
15684         (rpl_fstatat): Adjust so that it works around either (or both)
15685         bugs if present.
15686         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
15687
15688 2011-09-03  Karl Berry  <karl@gnu.org>
15689
15690         * doc/regex.texi (Character Class Operators): Avoid literal ":"
15691         in index entries.
15692
15693 2011-09-02  Bruno Haible  <bruno@clisp.org>
15694
15695         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
15696         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
15697         values of AR, ARFLAGS, RANLIB.
15698         Reported by John W. Eaton <jwe@gnu.org> for Octave.
15699
15700 2011-09-02  Bruno Haible  <bruno@clisp.org>
15701
15702         Find 'ar' program that fits with --host argument.
15703         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
15704
15705 2011-09-02  Bruno Haible  <bruno@clisp.org>
15706
15707         tests: init.sh: Support any non-GNU diff.
15708         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
15709         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
15710         Solaris 8.
15711
15712 2011-09-02  Bruno Haible  <bruno@clisp.org>
15713
15714         tests: init.sh: work also with any non-GNU diff that supports -u
15715         * tests/init.sh: Relax check for diff -u support.
15716         Rather than checking for GNU diff via --version, simply check
15717         for support for -u itself.  Useful at least on OpenBSD 4.9,
15718         AIX 7.1, IRIX 6.5, and Solaris 10.
15719
15720 2011-09-01  Bruno Haible  <bruno@clisp.org>
15721
15722         strtoimax, strtoumax: Document problem on HP-UX 11.
15723         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
15724         * doc/posix-functions/strtoumax.texi: Likewise.
15725
15726 2011-09-01  Bruno Haible  <bruno@clisp.org>
15727
15728         strtoumax: Avoid link error on OSF/1 with DTK cc.
15729         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
15730         defined as a function.
15731         * modules/strtoumax (Depends-on, configure.ac): Test only whether
15732         strtoumax is defined, not whether it is declared.
15733
15734 2011-09-01  Bruno Haible  <bruno@clisp.org>
15735
15736         strtoimax: Avoid link error on OSF/1 with DTK cc.
15737         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
15738         defined as a function.
15739         * modules/strtoimax (Depends-on, configure.ac): Test only whether
15740         strtoimax is defined, not whether it is declared.
15741
15742 2011-09-01  Bruno Haible  <bruno@clisp.org>
15743
15744         imaxdiv: Avoid link error on OSF/1 with DTK cc.
15745         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
15746         as a function.
15747         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
15748         whether it is declared.
15749
15750 2011-09-01  Bruno Haible  <bruno@clisp.org>
15751
15752         imaxabs: Avoid link error on OSF/1 with DTK cc.
15753         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
15754         as a function.
15755         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
15756         whether it is declared.
15757
15758 2011-09-01  Bruno Haible  <bruno@clisp.org>
15759
15760         Tests for module 'strtoumax'.
15761         * modules/strtoumax-tests: New file.
15762         * tests/test-strtoumax.c: New file.
15763
15764         Tests for module 'strtoimax'.
15765         * modules/strtoimax-tests: New file.
15766         * tests/test-strtoimax.c: New file.
15767
15768         Tests for module 'imaxdiv'.
15769         * modules/imaxdiv-tests: New file.
15770         * tests/test-imaxdiv.c: New file.
15771
15772         Tests for module 'imaxabs'.
15773         * modules/imaxabs-tests: New file.
15774         * tests/test-imaxabs.c: New file.
15775
15776 2011-09-01  Bruno Haible  <bruno@clisp.org>
15777
15778         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
15779         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
15780         pthread_create.
15781
15782 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
15783
15784         openat: work around AIX 7.1 fstatat issue
15785         This should fix the problem that was not properly fixed
15786         in the previous change, dated 2011-08-30.
15787         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
15788         __need_system_stat_h defined.
15789         (orig_fstatat) [HAVE_FSTATAT]: New function.
15790         (rpl_fstatat): Go back to the old way of doing things,
15791         except call orig_fstatat instead of fstatat.
15792         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
15793         Remove unnecessary check whether fstatat fills in st_size etc.
15794
15795 2011-09-01  Bruno Haible  <bruno@clisp.org>
15796
15797         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
15798         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
15799         just include the system's header.
15800
15801 2011-08-31  Jim Meyering  <meyering@redhat.com>
15802
15803         tests: avoid spurious assertion failure in test-float.c on ppc64
15804         * tests/test-float.c (test_long_double): Comment out an assertion,
15805         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
15806         with gcc-4.4.4.
15807
15808         maint: indent with spaces, not TABs
15809         I need to get in the habit of running gnulib's "make check".
15810         Both of these would have been caught.
15811         * m4/largefile.m4: Indent with spaces, not TABs.
15812         * lib/parse-datetime.y (iso_8601_time): Likewise.
15813         Spotted by Pádraig Brady.
15814
15815         test-parse-datetime.c: accommodate a relatively strict gcc warning
15816         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
15817         to avoid a warning from gcc's -Werror=missing-declarations.
15818         Insert a few spaces-before-funcall-parenthesis.
15819
15820 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
15821
15822         parse-datetime: accept ISO 8601 date and time rep with "T" separator
15823         The parser now accepts ISO 8601 date-time strings with "T" as the
15824         separator.  It has long parsed dates like "2004-02-29 16:21:42"
15825         with a space between the date and time strings.  Now it also parses
15826         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
15827         variants like "2004-02-29T16:21:42.333-07:00"
15828         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
15829         of day representation using the 'T' separator character.
15830         * doc/parse-datetime.texi (General date syntax): replace use of
15831         deprecated --iso-8601 option with --rfc-3339 in example of date
15832         command output formats that can be parsed.
15833         * tests/test-parse-datetime.c (tm_diff): New function, taken from
15834         lib/parse-datetime.y.
15835         (gmt_offset): New function.
15836         (main): Add additional test cases to validate ISO8601 extended
15837         date and time of day parsing.
15838
15839 2011-08-31  Bruno Haible  <bruno@clisp.org>
15840
15841         freopen: Documentation.
15842         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
15843         name.
15844         Reported by Claudio Bley <claudio.bley@gmail.com>.
15845
15846 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
15847
15848         freopen: Don't crash if the filename argument is NULL.
15849         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
15850         NULL.
15851
15852 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
15853
15854         openat: work around AIX 7.1 fstatat bug
15855         Problem reported by Kevin Brott for GNU tar, in the thread containing
15856         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
15857         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
15858         FSTATAT_ST_SIZE_ETC_BROKEN.
15859         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
15860         rpl_fstatat.
15861         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
15862         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
15863         AC_CHECK_FUNCS_ONCE for fstatat.
15864         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
15865         fchmodat, mkdirat, openat and unlinkat.
15866
15867 2011-08-30  Bruno Haible  <bruno@clisp.org>
15868
15869         Avoid endless recursions if config.h includes some header files.
15870         * lib/fopen.c (__need_FILE): Define already before including config.h.
15871         * lib/freopen.c (__need_FILE): Likewise.
15872         * lib/open.c (__need_system_fcntl_h): Likewise.
15873         * lib/stat.c (__need_system_sys_stat_h): Likewise.
15874         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
15875         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
15876
15877 2011-08-25  Karl Berry  <karl@gnu.org>
15878
15879         * config/srclist.txt (ylwrap): new try.
15880         * build-aux/ylwrap: new file.
15881
15882 2011-08-23  Bruno Haible  <bruno@clisp.org>
15883
15884         tmpdir: Use a good default directory on native Windows.
15885         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
15886         (P_tmpdir): Default to _P_tmpdir on native Windows.
15887         (path_search): On native Windows, try the value returned by GetTempPath
15888         before trying P_tmpdir.
15889         * modules/tmpdir (Depends-on): Add pathmax.
15890         Suggested by John Darrington <john@darrington.wattle.id.au>.
15891
15892 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
15893
15894         doc: fix typo in README-release
15895         * top/README-release: Capitalize first word of a sentence.
15896
15897 2011-08-19  Jim Meyering  <meyering@redhat.com>
15898
15899         fts: do not exhaust memory when processing million-entry directories
15900         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
15901         directory would require about 256*N bytes of memory.  Thus, it was
15902         easy to construct a directory too large to be processed by any of
15903         those tools.  With this change, fts' maximum memory utilization is
15904         now limited to around 30MB.
15905         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
15906         (fts_read): When we've processed the final entry (i.e., when
15907         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
15908         using the parent entry to read any remaining entries.  Dispatch
15909         depending on what fts_build returns:
15910         - NULL+stop, aka failure: stop
15911         - NULL otherwise: move up in the dir hierarchy
15912         - non-NULL: handle this new entry
15913         (fts_build): Declare and use new local, continue_readdir.
15914         Prepare to be called from fts_read, when the entries
15915         from a partially-read directory have just been exhausted.
15916         In that case, we'll skip the opendir and instead use the parent's
15917         fts_dirp and derive dir_fd from that.
15918         Finally, in the readdir loop, if we read max_entries entries,
15919         exit the loop ensuring *not* to call closedir.  This is required
15920         so that fts_dirp can be reused on a subsequent call.
15921         Prompted by Ben England's report of memory exhaustion in find
15922         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
15923
15924         maint: fts: move decl of `dp' down into while loop; split a long line
15925         * lib/fts.c (fts_build): No semantic change.
15926
15927         fts: add/use new struct member, fts_dirp
15928         We are about to use this to manage any directory with
15929         too many entries to read all of them into memory at once.
15930         To do that, we'll need to save the DIR* pointer in each
15931         affected FTSENT struct.
15932         * lib/fts_.h: Include <dirent.h>.
15933         (struct FTSENT) [fts_dirp]: New member.
15934         * lib/fts.c (closedir_and_clear): Define.
15935         Use it in place of closedir so that we are sure to
15936         clear the new fts_dirp member when done with it.
15937         (fts_alloc): Initialize the new member.
15938         (fts_lfree): Free, if needed.
15939
15940         maint: fts: give __opendir2 a new parameter and rename
15941         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
15942         than surreptitiously using sole caller's "dir_fd".
15943         (fts_opendir): Rename from __opendir2.
15944
15945         maint: fts.c: remove __opendir2's now-unused parameter, oflag
15946         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
15947
15948         maint: fts.c: correct off-by-one indentation
15949         * lib/fts.c (fts_build): Correct indentation, change style
15950         of a couple of block comments, and bracing style.
15951
15952         maint: fts.c: move __opendir2 #define "up" out of function body
15953         * lib/fts.c (__opendir2): Move "up".  No semantic change.
15954
15955         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
15956         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
15957         out for a long time and besides was useful only on BSD systems.
15958
15959 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
15960
15961         regex: port to Stratus OpenVOS
15962         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
15963         define to empty, rather than attempting nonportable optimizations.
15964         Problem reported by Paul Green in:
15965         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
15966         and fix suggested by Eric Blake in:
15967         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
15968
15969 2011-08-17  Eric Blake  <eblake@redhat.com>
15970
15971         getcwd: fix test failures on mingw
15972         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
15973         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
15974         test if long directory cannot be created, and allow mingw errno.
15975
15976         getcwd-lgpl: fix m4 to match relaxed test for BSD
15977         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
15978         (gl_FUNC_GETCWD_SIGNATURE): New macro.
15979         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
15980         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
15981         signature problem.
15982
15983         getcwd: fix compilation on mingw64
15984         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
15985         getcwd.
15986         Reported by Marc-André Lureau.
15987
15988         pipe2: silence compiler warning
15989         * lib/pipe2.c (pipe2): Hide label if it is not used.
15990
15991 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
15992
15993         relocatable-prog: fix link error
15994         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
15995         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
15996         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
15997         into modules/relocatable-lib without noticing that
15998         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
15999         also needs to build relocatable.c.
16000
16001 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
16002
16003         getaddrinfo: fix sh typo in gai_strerrorA decl checking
16004         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
16005         shell code: it contained a 'break' that was not in a loop.
16006         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
16007         via a shell-language loop; this may have been true in old Autoconf
16008         versions, but it's not true in Autoconf 2.68.  I found this bug
16009         when testing coreutils git on Solaris 8, whose shell complains
16010         about the syntax error.
16011
16012 2011-08-12  Simon Josefsson  <simon@josefsson.org>
16013
16014         * lib/base64.c: Fix comment to reference RFC 4648.
16015         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
16016         <gvtulder@gmail.com>.
16017
16018 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
16019
16020         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
16021
16022         po/Makefile.in.in: fix make -q problem
16023         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
16024         rule, since there's no file named 'check-macro-version' and its
16025         use as a file breaks make -q.
16026         (all): Don't depend on check-macro-version.
16027         (CHECK_MACRO_VERSION): New macro.
16028         (stamp-po): Use it.
16029
16030         configmake: fix make -q problem
16031         * modules/configmake (configmake.h): Update configmake.h's time stamp
16032         even if the file does not change.  Otherwise, 'make -q' fails.
16033         Problem reported by Simon Josefsson in
16034         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
16035
16036 2011-08-11  Jim Meyering  <meyering@redhat.com>
16037
16038         git-version-gen: correct the advice in a comment
16039         * build-aux/git-version-gen: Correct comment.
16040         Don't recommend to list .tarball-version in .gitignore.
16041
16042 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
16043
16044         base64: fix off-by-one buffer size bug
16045         Problem and (trivial) fix reported by Gijs van Tulder in
16046         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
16047         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
16048         * tests/test-base64.c (main): Catch the bug.
16049
16050 2011-08-10  Eric Blake  <eblake@redhat.com>
16051
16052         closein: correct comments
16053         * lib/closein.c (close_stdin): Improve comments.
16054
16055 2011-08-09  Bruno Haible  <bruno@clisp.org>
16056
16057         More tests for 'fseeko'.
16058         * tests/test-fseeko3.c: New file, from Eric Blake.
16059         * tests/test-fseeko3.sh: New file.
16060         * modules/fseeko-tests (Files): Add them.
16061         (TESTS): Add test-fseeko3.sh.
16062         (check_PROGRAMS): Add test-fseeko3.
16063
16064 2011-08-09  Eric Blake  <eblake@redhat.com>
16065
16066         fseeko: remove unneeded hack
16067         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
16068
16069         fseeko: fix bug on glibc
16070         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
16071         Reported by John W. Eaton.
16072
16073 2011-08-08  Bruno Haible  <bruno@clisp.org>
16074
16075         unictype/base: Fix interoperability with preinstalled libunistring.
16076         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
16077         Reported by Simon Josefsson.
16078
16079 2011-08-08  Bruno Haible  <bruno@clisp.org>
16080
16081         iswblank: Detect declaration correctly.
16082         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
16083         AC_CHECK_DECLS invocation.
16084
16085 2011-08-08  Bruno Haible  <bruno@clisp.org>
16086
16087         tcgetsid: Detect declaration correctly.
16088         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
16089         AC_CHECK_DECLS invocation.
16090         Reported by Simon Josefsson.
16091
16092 2011-08-08  Eric Blake  <eblake@redhat.com>
16093
16094         largefile: fix typo that regressed large file support
16095         * modules/largefile (configure.ac-early): Fix section name.
16096
16097 2011-08-06  Karl Berry  <karl@gnu.org>
16098
16099         * MODULES.html.sh (func_all_files): _Noreturn is no longer
16100         a separate module.
16101
16102 2011-08-05  Simon Josefsson  <simon@josefsson.org>
16103
16104         openat: Fix warnings and commens when building unlinkat.c on Hurd.
16105         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
16106         get prototype for free.
16107
16108 2011-08-04  Bruno Haible  <bruno@clisp.org>
16109
16110         Tests for module 'pathmax'.
16111         * modules/pathmax-tests: New file.
16112         * tests/test-pathmax.c: New file.
16113
16114         canonicalize-lgpl: Support larger filenames on the Hurd.
16115         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
16116         Reported by Paul Eggert.
16117
16118         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
16119         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
16120         * lib/chdir-long.h: Include pathmax.h.
16121         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
16122         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
16123         (PATH_MAX): Remove code that is done by pathmax.h.
16124         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
16125         * lib/tmpfile.c: Add a comment.
16126         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
16127         * modules/chdir-long (Depends-on): Add pathmax.
16128         * modules/getcwd (Depends-on): Add pathmax.
16129         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
16130         is not defined.
16131         * doc/posix-headers/limits.texi: Mention the pathmax module.
16132         * NEWS: Mention the change.
16133
16134 2011-08-02  Bruno Haible  <bruno@clisp.org>
16135
16136         pthread_sigmask: Actually use results of gl_THREADLIB.
16137         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
16138         gl_THREADLIB, not gl_[]THREADLIB.
16139         Reported by Eric Blake.
16140
16141 2011-08-02  Jim Meyering  <meyering@redhat.com>
16142
16143         maint.mk: relax the default _gl_TS_function_match regexp
16144         * top/maint.mk (_gl_TS_function_match): Don't require at least one
16145         space between function name and "(" in an "extern" declaration.
16146         That would fail to match a decl with no space there: extern void foo();
16147
16148 2011-07-31  Iain Nicol  <iain@thenicols.net>
16149
16150         git-version-gen: document that EXTRA_DIST must include .version
16151         * build-aux/git-version-gen: In the how-to-use comment, document
16152         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
16153         will fail when run from an unpacked distribution tarball.
16154
16155 2011-08-01  Bruno Haible  <bruno@clisp.org>
16156
16157         wctype-h: Fix last change.
16158         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
16159         REPLACE_TOWLOWER to 0.
16160         Reported by Sam Steingold <sds@gnu.org>.
16161
16162 2011-07-31  Bruno Haible  <bruno@clisp.org>
16163
16164         frexpl: Update autoconf test.
16165         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
16166         according to changes of 2011-06-20.
16167
16168 2011-07-31  Bruno Haible  <bruno@clisp.org>
16169
16170         sys_utsname: Add support for Minix.
16171         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
16172         <sys/utsname.h>.
16173         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
16174         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
16175
16176 2011-07-31  Bruno Haible  <bruno@clisp.org>
16177
16178         strings: Add support for Minix.
16179         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
16180         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
16181         * doc/posix-headers/strings.texi: Document the Minix problem.
16182
16183 2011-07-31  Bruno Haible  <bruno@clisp.org>
16184
16185         wctype-h: Add support for Minix.
16186         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
16187         REPLACE_TOWLOWER.
16188         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
16189         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
16190         REPLACE_ISWCNTRL.
16191
16192 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
16193
16194         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
16195         This is a performance improvement for 64-bit hosts: it causes the
16196         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
16197
16198 2011-07-31  Bruno Haible  <bruno@clisp.org>
16199
16200         stdioext: Add support for Minix.
16201         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
16202         * lib/fpurge.c (fpurge): Likewise.
16203         * lib/freadahead.c (freadahead): Likewise.
16204         * lib/freadable.c (freadable): Likewise.
16205         * lib/freading.c (freading): Likewise.
16206         * lib/freadptr.c (freadptr): Likewise.
16207         * lib/freadseek.c (freadptrinc): Likewise.
16208         * lib/fseeko.c (rpl_fseeko): Likewise.
16209         * lib/fseterr.c (fseterr): Likewise.
16210         * lib/fwritable.c (fwritable): Likewise.
16211         * lib/fwriting.c (fwriting): Likewise.
16212         * lib/fflush.c (clear_ungetc_buffer): Update comment.
16213         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
16214
16215 2011-07-31  Bruno Haible  <bruno@clisp.org>
16216
16217         errno: Port to Minix.
16218         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
16219         ECONNABORTED are defined.
16220         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
16221         GNULIB_defined_ECONNABORTED): New macros.
16222         * lib/strerror-override.h (strerror_override): Test also
16223         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
16224         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
16225         ECONNABORTED.
16226         * doc/posix-headers/errno.texi: Mention the Minix problem.
16227
16228 2011-07-31  Bruno Haible  <bruno@clisp.org>
16229
16230         Work around declaration collisions on Minix.
16231         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
16232         defined, set REPLACE_MBSINIT.
16233         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
16234         defined, set REPLACE_MBRTOWC.
16235         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
16236         set REPLACE_MBRLEN.
16237         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
16238         defined, set REPLACE_MBSRTOWCS.
16239         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
16240         defined, set REPLACE_WCRTOMB.
16241         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
16242         defined, set REPLACE_WCSRTOMBS.
16243
16244 2011-07-31  Bruno Haible  <bruno@clisp.org>
16245
16246         Add support for Minix with ACK compiler.
16247         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
16248         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
16249         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
16250
16251 2011-07-31  Bruno Haible  <bruno@clisp.org>
16252
16253         Documentation about Minix.
16254         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
16255         * doc/glibc-headers/*.texi: Likewise.
16256         * doc/posix-functions/*.texi: Likewise.
16257         * doc/glibc-functions/*.texi: Likewise.
16258
16259 2011-07-31  Bruno Haible  <bruno@clisp.org>
16260
16261         snippet/warn-on-use: Fix indentation.
16262         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
16263
16264 2011-07-25  Jim Meyering  <meyering@redhat.com>
16265
16266         tests: test-update-copyright.sh: remove unnecessary "rm" commands
16267         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
16268         commands.
16269
16270 2011-07-27  Jim Meyering  <meyering@redhat.com>
16271
16272         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
16273         * top/maint.mk (gl_extract_significant_defines_): Now that
16274         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
16275         gnulib/lib/signal.in.h, and now that we recommend to
16276         define-if-undefined those two symbols in application code,
16277         we must filter them out of the "significant" list.
16278         This avoids a "make syntax-check" failure in coreutils.
16279
16280 2011-07-26  Eric Blake  <eblake@redhat.com>
16281
16282         warnings: add comments about previous patch
16283         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
16284         * m4/include_next.m4: Likewise.
16285         * m4/warn-on-use.m4: Likewise.
16286         * m4/warnings.m4: Likewise, and simplify use.
16287         Suggested by Stefano Lattarini.
16288
16289         include-next, warnings: support older autoconf
16290         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
16291         AS_VAR_PUSHDEF in a way that works with older autoconf.
16292         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
16293         Reported by Daniel P. Berrange.
16294
16295 2011-07-25  Bruno Haible  <bruno@clisp.org>
16296
16297         fseek, ftell: Fix doc.
16298         * doc/posix-functions/fseek.texi: Reword statement about
16299         AC_SYS_LARGEFILE.
16300         * doc/posix-functions/ftell.texi: Likewise.
16301
16302 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
16303             Bruno Haible  <bruno@clisp.org>
16304
16305         Add dependencies to the 'largefile' module.
16306         * modules/fopen (Depends-on): Add 'largefile'.
16307         * modules/freopen (Depends-on): Likewise.
16308         * modules/fseeko (Depends-on): Likewise.
16309         * modules/ftello (Depends-on): Likewise.
16310         * modules/glob (Depends-on): Likewise.
16311         * modules/lseek (Depends-on): Likewise.
16312         * modules/lstat (Depends-on): Likewise.
16313         * modules/mkostemp (Depends-on): Likewise.
16314         * modules/mkostemps (Depends-on): Likewise.
16315         * modules/mkstemp (Depends-on): Likewise.
16316         * modules/mkstemps (Depends-on): Likewise.
16317         * modules/open (Depends-on): Likewise.
16318         * modules/openat (Depends-on): Likewise.
16319         * modules/pread (Depends-on): Likewise.
16320         * modules/pwrite (Depends-on): Likewise.
16321         * modules/scandir (Depends-on): Likewise.
16322         * modules/stat (Depends-on): Likewise.
16323         * modules/tmpfile (Depends-on): Likewise.
16324         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
16325         since the containing module now depends on the largefile module.
16326         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
16327         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
16328         off_t is fixed by gnulib.
16329         * doc/posix-functions/freopen.texi: Likewise.
16330         * doc/posix-functions/fseeko.texi: Likewise.
16331         * doc/posix-functions/fstatat.texi: Likewise.
16332         * doc/posix-functions/ftello.texi: Likewise.
16333         * doc/posix-functions/glob.texi: Likewise.
16334         * doc/posix-functions/lseek.texi: Likewise.
16335         * doc/posix-functions/lstat.texi: Likewise.
16336         * doc/posix-functions/mkstemp.texi: Likewise.
16337         * doc/posix-functions/open.texi: Likewise.
16338         * doc/posix-functions/openat.texi: Likewise.
16339         * doc/posix-functions/pread.texi: Likewise.
16340         * doc/posix-functions/pwrite.texi: Likewise.
16341         * doc/posix-functions/scandir.texi: Likewise.
16342         * doc/posix-functions/stat.texi: Likewise.
16343         * doc/posix-functions/tmpfile.texi: Likewise.
16344         * doc/glibc-functions/mkostemp.texi: Likewise.
16345         * doc/glibc-functions/mkostemps.texi: Likewise.
16346         * doc/glibc-functions/mkstemps.texi: Likewise.
16347
16348 2011-07-25  Bruno Haible  <bruno@clisp.org>
16349
16350         fcntl: Move AC_LIBOBJ invocation to module description.
16351         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
16352         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
16353
16354         fcntl: Remove call-in from fchdir.m4.
16355         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
16356         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
16357
16358         dup3: Remove potential call-in from fchdir.m4.
16359         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
16360         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
16361
16362         dup2: Move AC_LIBOBJ invocation to module description.
16363         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
16364         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
16365         Don't invoke AC_LIBOBJ.
16366         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
16367
16368         dup2: Remove call-in from fchdir.m4.
16369         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
16370         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
16371
16372         fclose: Move AC_LIBOBJ invocation to module description.
16373         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
16374         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
16375         to 1.
16376         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
16377
16378         fclose: Remove call-in from close.m4.
16379         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
16380         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
16381
16382         close: Move AC_LIBOBJ invocation to module description.
16383         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
16384         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
16385         1.
16386         * modules/close (configure.ac): Invoke AC_LIBOBJ.
16387
16388         close: Remove call-in from fchdir.m4.
16389         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
16390         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
16391
16392         open: Move AC_LIBOBJ invocation to module description.
16393         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
16394         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
16395         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
16396
16397         open: Remove call-in from fchdir.m4.
16398         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
16399         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
16400
16401         fchdir: Start to remove gl_REPLACE_* idiom.
16402         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
16403         (gl_FUNC_FCHDIR): Invoke it.
16404
16405 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
16406
16407         * lib/ftell.c (ftell): Comment out cast.
16408
16409         close: use gl_REPLACE_FCLOSE only if defined
16410         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
16411         is defined.  The close module doesn't depend on the fclose module
16412         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
16413         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
16414         I reproduced the problem with "./gnulib-tool --test close sys_socket".
16415
16416 2011-07-24  Jim Meyering  <meyering@redhat.com>
16417
16418         test-select.h: avoid warning when using gcc's -Wmissing-declarations
16419         * tests/test-select.h (test_function): Declare as "static".
16420
16421 2011-07-24  Bruno Haible  <bruno@clisp.org>
16422
16423         doc: Mention the effects of AC_SYS_LARGEFILE.
16424         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
16425         on this function.
16426         * doc/posix-functions/aio_error.texi: Likewise.
16427         * doc/posix-functions/aio_fsync.texi: Likewise.
16428         * doc/posix-functions/aio_read.texi: Likewise.
16429         * doc/posix-functions/aio_return.texi: Likewise.
16430         * doc/posix-functions/aio_suspend.texi: Likewise.
16431         * doc/posix-functions/aio_write.texi: Likewise.
16432         * doc/posix-functions/fgetpos.texi: Likewise.
16433         * doc/posix-functions/fopen.texi: Likewise.
16434         * doc/posix-functions/freopen.texi: Likewise.
16435         * doc/posix-functions/fsetpos.texi: Likewise.
16436         * doc/posix-functions/fstatvfs.texi: Likewise.
16437         * doc/posix-functions/ftruncate.texi: Likewise.
16438         * doc/posix-functions/ftw.texi: Likewise.
16439         * doc/posix-functions/getrlimit.texi: Likewise.
16440         * doc/posix-functions/glob.texi: Likewise.
16441         * doc/posix-functions/lio_listio.texi: Likewise.
16442         * doc/posix-functions/lockf.texi: Likewise.
16443         * doc/posix-functions/mkstemp.texi: Likewise.
16444         * doc/posix-functions/mmap.texi: Likewise.
16445         * doc/posix-functions/nftw.texi: Likewise.
16446         * doc/posix-functions/openat.texi: Likewise.
16447         * doc/posix-functions/opendir.texi: Likewise.
16448         * doc/posix-functions/posix_fadvise.texi: Likewise.
16449         * doc/posix-functions/posix_fallocate.texi: Likewise.
16450         * doc/posix-functions/pread.texi: Likewise.
16451         * doc/posix-functions/pwrite.texi: Likewise.
16452         * doc/posix-functions/readdir.texi: Likewise.
16453         * doc/posix-functions/readdir_r.texi: Likewise.
16454         * doc/posix-functions/rewinddir.texi: Likewise.
16455         * doc/posix-functions/scandir.texi: Likewise.
16456         * doc/posix-functions/seekdir.texi: Likewise.
16457         * doc/posix-functions/setrlimit.texi: Likewise.
16458         * doc/posix-functions/statvfs.texi: Likewise.
16459         * doc/posix-functions/telldir.texi: Likewise.
16460         * doc/posix-functions/tmpfile.texi: Likewise.
16461         * doc/posix-functions/truncate.texi: Likewise.
16462         * doc/glibc-functions/fallocate.texi: Likewise.
16463         * doc/glibc-functions/fstatfs.texi: Likewise.
16464         * doc/glibc-functions/fts_children.texi: Likewise.
16465         * doc/glibc-functions/fts_read.texi: Likewise.
16466         * doc/glibc-functions/getdirentries.texi: Likewise.
16467         * doc/glibc-functions/mkostemp.texi: Likewise.
16468         * doc/glibc-functions/mkostemps.texi: Likewise.
16469         * doc/glibc-functions/mkstemps.texi: Likewise.
16470         * doc/glibc-functions/preadv.texi: Likewise.
16471         * doc/glibc-functions/pwritev.texi: Likewise.
16472         * doc/glibc-functions/sendfile.texi: Likewise.
16473         * doc/glibc-functions/statfs.texi: Likewise.
16474
16475 2011-07-24  Bruno Haible  <bruno@clisp.org>
16476
16477         doc: Fix typo.
16478         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
16479
16480 2011-07-24  Bruno Haible  <bruno@clisp.org>
16481
16482         doc: Mention fsusage.
16483         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
16484
16485 2011-07-24  Bruno Haible  <bruno@clisp.org>
16486
16487         doc: Mention new glibc headers and functions.
16488         * doc/glibc-headers/gshadow.texi: New file.
16489         * doc/glibc-functions/endsgent.texi: New file.
16490         * doc/glibc-functions/fgetsgent.texi: New file.
16491         * doc/glibc-functions/fgetsgent_r.texi: New file.
16492         * doc/glibc-functions/getsgent.texi: New file.
16493         * doc/glibc-functions/getsgent_r.texi: New file.
16494         * doc/glibc-functions/getsgnam.texi: New file.
16495         * doc/glibc-functions/getsgnam_r.texi: New file.
16496         * doc/glibc-functions/putsgent.texi: New file.
16497         * doc/glibc-functions/setsgent.texi: New file.
16498         * doc/glibc-functions/sgetsgent.texi: New file.
16499         * doc/glibc-functions/sgetsgent_r.texi: New file.
16500         * doc/glibc-functions/malloc_info.texi: New file.
16501         * doc/glibc-functions/preadv.texi: New file.
16502         * doc/glibc-functions/pwritev.texi: New file.
16503         * doc/glibc-functions/register_printf_modifier.texi: New file.
16504         * doc/glibc-functions/register_printf_specifier.texi: New file.
16505         * doc/glibc-functions/register_printf_type.texi: New file.
16506         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
16507         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
16508         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
16509         * doc/glibc-functions/pthread_getname_np.texi: New file.
16510         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
16511         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
16512         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
16513         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
16514         * doc/glibc-functions/pthread_setname_np.texi: New file.
16515         * doc/glibc-functions/pthread_sigqueue.texi: New file.
16516         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
16517         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
16518         * doc/glibc-functions/qsort_r.texi: New file.
16519         * doc/glibc-functions/quick_exit.texi: New file.
16520         * doc/glibc-functions/syncfs.texi: New file.
16521         * doc/gnulib.texi: Include them.
16522         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
16523         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
16524         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
16525         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
16526         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
16527         * doc/glibc-functions/execvpe.texi: Likewise.
16528
16529 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
16530
16531         ftell: don't include <unistd.h>
16532         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
16533         guaranteed to define off_t, and the ftell module depends on the
16534         stdio module.
16535
16536         ftell: do not assume wraparound signed arithmetic
16537         * lib/ftell.c: Include <limits.h>.
16538         (ftell): Don't assume wraparound signed arithmetic.
16539
16540 2011-07-24  Bruno Haible  <bruno@clisp.org>
16541
16542         close: No longer depend on module 'fclose'.
16543         * modules/close (Depends-on): Remove fclose.
16544         * NEWS: Mention the change.
16545         Suggested by Sam Steingold <sds@gnu.org>.
16546
16547 2011-07-24  Bruno Haible  <bruno@clisp.org>
16548
16549         fsusage: Enable large volume support on AIX >= 5.2.
16550         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
16551         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
16552         instead of STAT_STATVFS.
16553         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
16554
16555         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
16556         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
16557         f_blocks field only on MacOS X.
16558
16559         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
16560         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
16561         * modules/fsusage (Depends-on): Add largefile.
16562
16563 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
16564
16565         * README: Modernize discussion of signed integers.
16566         Assuming overflow wraparound is no longer safe.
16567         Mention ones' complement and signed magnitude.
16568
16569 2011-07-22  Bruno Haible  <bruno@clisp.org>
16570
16571         select tests, pselect tests: Refactor.
16572         * tests/test-select.h: New file, extracted from tests/test-select.c.
16573         (select_fn): New type.
16574         (test, do_select, do_select_nowait, do_select_wait, test_tty,
16575         test_connect_first, test_accept_first, test_pair, test_socket_pair,
16576         test_pipe): Add my_select argument.
16577         (test_function): Renamed from main. Add my_select argument.
16578         * tests/test-select.c: Move most code to tests/test-select.h. Include
16579         test-select.h.
16580         * modules/select-tests (Files): Add tests/test-select.h.
16581         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
16582         (my_select, main): New functions.
16583         * modules/pselect-tests (Files): Add tests/test-select.h,
16584         tests/macros.h, tests/signature.h.
16585         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
16586         (configure.ac): Check for <sys/wait.h>.
16587
16588 2011-07-22  Bruno Haible  <bruno@clisp.org>
16589
16590         sys_select tests: Check the signature of FD_*.
16591         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
16592         signature tests from here...
16593         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
16594         here.
16595         * modules/sys_select-tests (Files): Add tests/signature.h.
16596
16597 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
16598
16599         largefile: new module, replacing large-inode
16600         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
16601         * MODULES.html.sh: Add largefile, remove large-inode.
16602         * modules/largefile, m4/largefile.m4: New files.
16603         * modules/large-inode, m4/large-inode.m4: Remove.
16604
16605         fsusage: port to MacOS X 10.7 with 4 TiB file systems
16606         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
16607         implementations that use only 32 bits to count blocks.
16608         On typical hosts with 1024-byte blocks, this fails with file
16609         systems as small as 4 TiB.  Problem reported by Herb Wartens
16610         <http://debbugs.gnu.org/9140> and this should also fix a similar
16611         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
16612
16613         large-inode: New module
16614         * MODULES.html.sh: Add it.
16615         * modules/large-inode, m4/large-inode.m4: New files.
16616
16617         extensions: Enable extensions on MacOS X 10.5 and later.
16618         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
16619
16620 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
16621
16622         file-has-acl: use acl_extended_file_nofollow if available
16623         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
16624         (acl_extended_file): New macro.
16625         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
16626         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
16627
16628 2011-07-21  Bruno Haible  <bruno@clisp.org>
16629
16630         Declare system functions in a way that works with C++.
16631         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
16632         declare fdopendir as extern "C".
16633         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
16634         declare frexpl as extern "C".
16635         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
16636         declare gai_strerror as extern "C".
16637         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
16638         programs, declare gai_strerror as extern "C".
16639         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
16640         declare getlogin_r as extern "C".
16641         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
16642         as extern "C".
16643         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
16644         declare ldexpl as extern "C".
16645         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
16646         as extern "C".
16647         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
16648         program, declare getmntinfo as extern "C".
16649         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
16650         stpncpy as extern "C".
16651         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
16652         program, declare __xpg_strerror_r as extern "C".
16653         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
16654         strndup as extern "C".
16655         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
16656         declare memset and bzero as extern "C".
16657         Reported by Sam Steingold <sds@gnu.org>.
16658
16659 2011-07-12  Jim Meyering  <meyering@redhat.com>
16660
16661         maint.mk: prohibit inclusion of "verify.h" without use
16662         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
16663
16664 2011-07-19  Pádraig Brady  <P@draigBrady.com>
16665
16666         timer-time: A new module to check for timer_settime()
16667         * m4/timer_time.m4: Check for the posix function.
16668         * modules/timer-time: Add the new module.
16669         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
16670         Mention it.
16671
16672 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
16673             Bruno Haible  <bruno@clisp.org>
16674
16675         pthread_sigmask: assume POSIX threads if --avoid=threadlib
16676         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
16677         not defined, assume POSIX threads and look for pthread_sigmask in
16678         $LIBS, without changing $CPPFLAGS.
16679
16680 2011-07-19  Bruno Haible  <bruno@clisp.org>
16681
16682         strstr: Update cross-compilation guess.
16683         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
16684         CPUs, guess no, in view of glibc
16685         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
16686         Suggested by Eric Blake. Reported by Reuben Thomas.
16687
16688 2011-07-19  Pádraig Brady  <P@draigBrady.com>
16689
16690         getopt-gnu: suppress core dumps from detection code
16691         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
16692         to suppress core dumps that may well occur on glibc systems.
16693         * modules/getopt-gnu: Depend on nocrash.
16694
16695 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
16696
16697         pthread_sigmask: ensure usleep is declared
16698         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
16699         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
16700
16701 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
16702
16703         doc: Document NonStop portability issues.
16704         * doc/posix-functions/sigaction.texi (sigaction):
16705         * doc/posix-headers/signal.texi (signal.h):
16706         Document NonStop.  See Joachim Schmitz in
16707         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
16708
16709 2011-07-15  Bruno Haible  <bruno@clisp.org>
16710
16711         ffsl, ffsll: Avoid unportable behaviour.
16712         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
16713
16714 2011-07-15  Bruno Haible  <bruno@clisp.org>
16715
16716         ffs: More tests.
16717         * tests/test-ffs.c (NBITS): New macro.
16718         (main): Add more tests.
16719         * tests/test-ffsl.c (NBITS): New macro.
16720         (main): Add more tests.
16721         * tests/test-ffsll.c (NBITS): New macro.
16722         (main): Add more tests.
16723
16724 2011-07-15  Eric Blake  <eblake@redhat.com>
16725
16726         ffsl, ffsll: new modules
16727         * modules/ffsl: New file.
16728         * modules/ffsll: Likewise.
16729         * m4/ffsl.m4: Likewise.
16730         * m4/ffsll.m4: Likewise.
16731         * lib/ffsl.c: Likewise.
16732         * lib/ffsl.h: Likewise.
16733         * lib/ffsll.c: Likewise.
16734         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
16735         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
16736         * modules/string (Makefile.am): Substitute witnesses.
16737         * lib/strings.in.h (ffsl, ffsll): Declare.
16738         * modules/ffsl-tests: New test file.
16739         * modules/ffsll-tests: Likewise.
16740         * tests/test-ffsl.c: Likewise.
16741         * tests/test-ffsll.c: Likewise.
16742         * MODULES.html.sh (Integer arithmetic functions): Mention it.
16743         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
16744         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
16745
16746         ffs: fix m4 prerequisite
16747         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
16748
16749         ffs: avoid undefined behavior
16750         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
16751         * tests/test-ffs.c (naive, main): Avoid signed shifts.
16752         Reported by Bruno Haible.
16753
16754 2011-07-12  Bruno Haible  <bruno@clisp.org>
16755
16756         pthread_sigmask: Rely on module 'threadlib'.
16757         * modules/pthread_sigmask (Depends-on): Add threadlib.
16758         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
16759         is defined.
16760
16761 2011-07-12  Bruno Haible  <bruno@clisp.org>
16762
16763         regex: Depend on module 'strcase'.
16764         * modules/regex (Depends-on): Add strcase, for strcasecmp().
16765
16766 2011-07-12  Jim Meyering  <meyering@redhat.com>
16767
16768         warn-on-use: fix typo in file name
16769         * modules/snippet/warn-on-use (Files): Correct file name:
16770         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
16771
16772 2011-07-12  Bruno Haible  <bruno@clisp.org>
16773
16774         strings: Document module.
16775         * doc/posix-headers/strings.texi: Mention module 'strings'.
16776
16777 2011-07-12  Bruno Haible  <bruno@clisp.org>
16778
16779         Rename module '_Noreturn' to 'snippet/_Noreturn'.
16780         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
16781         (Files, Makefile.am): Update.
16782         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
16783         * modules/stdlib (Depends-on): Update.
16784
16785 2011-07-12  Bruno Haible  <bruno@clisp.org>
16786
16787         * NEWS: Mention the changes.
16788
16789         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
16790         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
16791         (Files, Makefile.am): Update.
16792         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
16793         * modules/arpa_inet (Depends-on): Update.
16794         * modules/ctype (Depends-on): Update.
16795         * modules/dirent (Depends-on): Update.
16796         * modules/fcntl-h (Depends-on): Update.
16797         * modules/glob (Depends-on): Update.
16798         * modules/iconv-h (Depends-on): Update.
16799         * modules/inttypes-incomplete (Depends-on): Update.
16800         * modules/langinfo (Depends-on): Update.
16801         * modules/locale (Depends-on): Update.
16802         * modules/math (Depends-on): Update.
16803         * modules/netdb (Depends-on): Update.
16804         * modules/poll-h (Depends-on): Update.
16805         * modules/pty (Depends-on): Update.
16806         * modules/search (Depends-on): Update.
16807         * modules/signal (Depends-on): Update.
16808         * modules/spawn (Depends-on): Update.
16809         * modules/stdio (Depends-on): Update.
16810         * modules/stdlib (Depends-on): Update.
16811         * modules/string (Depends-on): Update.
16812         * modules/strings (Depends-on): Update.
16813         * modules/sys_file (Depends-on): Update.
16814         * modules/sys_ioctl (Depends-on): Update.
16815         * modules/sys_select (Depends-on): Update.
16816         * modules/sys_socket (Depends-on): Update.
16817         * modules/sys_stat (Depends-on): Update.
16818         * modules/sys_time (Depends-on): Update.
16819         * modules/sys_times (Depends-on): Update.
16820         * modules/sys_utsname (Depends-on): Update.
16821         * modules/sys_wait (Depends-on): Update.
16822         * modules/termios (Depends-on): Update.
16823         * modules/time (Depends-on): Update.
16824         * modules/unistd (Depends-on): Update.
16825         * modules/wchar (Depends-on): Update.
16826         * modules/wctype-h (Depends-on): Update.
16827         * MODULES.html.sh (Support for building libraries and executables):
16828         Update.
16829
16830         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
16831         * modules/snippet/unused-parameter: Renamed from
16832         modules/unused-parameter.
16833         (Files, Makefile.am): Update.
16834         * build-aux/snippet/unused-parameter.h: Renamed from
16835         build-aux/unused-parameter.h.
16836         * modules/selinux-h (Depends-on): Update.
16837         * modules/unistr/base (Depends-on): Update.
16838         * MODULES.html.sh (Core language properties): Update.
16839
16840         Rename module 'link-warning' to 'snippet/link-warning'.
16841         * modules/snippet/link-warning: Renamed from modules/link-warning.
16842         (Files, Makefile.am): Update.
16843         * build-aux/snippet/link-warning.h: Renamed from
16844         build-aux/link-warning.h.
16845         * MODULES.html.sh (Support for building libraries and executables):
16846         Update.
16847
16848         Rename module 'c++defs' to 'snippet/c++defs'.
16849         * modules/snippet/c++defs: Renamed from modules/c++defs.
16850         (Files, Makefile.am): Update.
16851         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
16852         * modules/arpa_inet (Depends-on): Update.
16853         * modules/ctype (Depends-on): Update.
16854         * modules/dirent (Depends-on): Update.
16855         * modules/fcntl-h (Depends-on): Update.
16856         * modules/glob (Depends-on): Update.
16857         * modules/iconv-h (Depends-on): Update.
16858         * modules/langinfo (Depends-on): Update.
16859         * modules/locale (Depends-on): Update.
16860         * modules/math (Depends-on): Update.
16861         * modules/netdb (Depends-on): Update.
16862         * modules/poll-h (Depends-on): Update.
16863         * modules/pty (Depends-on): Update.
16864         * modules/search (Depends-on): Update.
16865         * modules/signal (Depends-on): Update.
16866         * modules/spawn (Depends-on): Update.
16867         * modules/stdio (Depends-on): Update.
16868         * modules/stdlib (Depends-on): Update.
16869         * modules/string (Depends-on): Update.
16870         * modules/strings (Depends-on): Update.
16871         * modules/sys_ioctl (Depends-on): Update.
16872         * modules/sys_select (Depends-on): Update.
16873         * modules/sys_socket (Depends-on): Update.
16874         * modules/sys_stat (Depends-on): Update.
16875         * modules/sys_time (Depends-on): Update.
16876         * modules/sys_wait (Depends-on): Update.
16877         * modules/termios (Depends-on): Update.
16878         * modules/time (Depends-on): Update.
16879         * modules/unistd (Depends-on): Update.
16880         * modules/wchar (Depends-on): Update.
16881         * modules/wctype-h (Depends-on): Update.
16882
16883         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
16884         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
16885         (Files, Makefile.am): Update.
16886         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
16887         * modules/argv-iter (Depends-on): Update.
16888         * modules/arpa_inet (Depends-on): Update.
16889         * modules/dirent (Depends-on): Update.
16890         * modules/fcntl-h (Depends-on): Update.
16891         * modules/fnmatch (Depends-on): Update.
16892         * modules/getopt-posix (Depends-on): Update.
16893         * modules/glob (Depends-on): Update.
16894         * modules/iconv-h (Depends-on): Update.
16895         * modules/inttypes-incomplete (Depends-on): Update.
16896         * modules/locale (Depends-on): Update.
16897         * modules/math (Depends-on): Update.
16898         * modules/netdb (Depends-on): Update.
16899         * modules/search (Depends-on): Update.
16900         * modules/signal (Depends-on): Update.
16901         * modules/spawn (Depends-on): Update.
16902         * modules/stdio (Depends-on): Update.
16903         * modules/stdlib (Depends-on): Update.
16904         * modules/string (Depends-on): Update.
16905         * modules/strings (Depends-on): Update.
16906         * modules/sys_socket (Depends-on): Update.
16907         * modules/sys_stat (Depends-on): Update.
16908         * modules/sys_time (Depends-on): Update.
16909         * modules/sys_times (Depends-on): Update.
16910         * modules/sys_utsname (Depends-on): Update.
16911         * modules/time (Depends-on): Update.
16912         * modules/unistd (Depends-on): Update.
16913         * modules/wchar (Depends-on): Update.
16914         * MODULES.html.sh (Support for building libraries and executables):
16915         Update.
16916
16917 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
16918
16919         Improvements on _Noreturn and related modules.
16920
16921         modules/_Exit-tests: test _Noreturn too
16922         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
16923         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
16924         (main): Use them.
16925
16926         stdnoreturn, stdnoreturn-tests: remove modules
16927         They're not needed here and a bit premature for use elsewhere.  See
16928         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
16929         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
16930         * tests/test-stdnoreturn.c: Remove files.
16931         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
16932         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
16933         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
16934         and using noreturn.
16935         * modules/openat, modules/sigpipe-die, modules/xalloc:
16936         * modules/xmemdup0, modules/xstrtol:
16937         Remove dependency on stdnoreturn.
16938
16939         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
16940         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
16941         Reparenthesize to avoid GCC warning.
16942         Support Microsoft's syntax.
16943         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
16944
16945         _Noreturn-tests: remove module
16946         * modules/_Noreturn-tests: Remove.
16947         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
16948         * tests/test-_Noreturn.c: Remove.
16949         * tests/test-stdnoreturn.c: Merge from the old
16950         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
16951
16952 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
16953
16954         _Noreturn, stdnoreturn, and related modules.
16955
16956         * top/maint.mk: Adjust to new noreturn support.
16957         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
16958         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
16959
16960         xalloc: use stdnoreturn.h
16961         * lib/xalloc.h: Include <stdnoreturn.h>.
16962         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
16963         * modules/xalloc (Depends-on): Add stdnoreturn.
16964
16965         xstrtol: use stdnoreturn.h
16966         * lib/xstrtol.h: Include <stdnoreturn.h>.
16967         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
16968         * modules/xstrtol (Depends-on): Add stdnoreturn.
16969
16970         xmemdup0: use stdnoreturn.h
16971         * lib/xmemdup0.h: Include <stdnoreturn.h>.
16972         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
16973         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
16974
16975         sigpipe-die: use stdnoreturn.h
16976         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
16977         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
16978         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
16979
16980         openat: use stdnoreturn.h
16981         * lib/openat.h: Include <stdnoreturn.h>.
16982         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
16983         * modules/openat (Depends-on): Add stdnoreturn.
16984
16985         * lib/openat-die.c (openat_save_fail): Modernize comment.
16986
16987         * lib/xalloc-die.c (xalloc_die): Modernize comment.
16988
16989         * lib/glthread/thread.h: Modernize comment.
16990
16991         obstack: use _Noreturn
16992         * lib/obstack.c (__attribute__): Remove macro.
16993         (print_and_abort): Use _Noreturn.
16994
16995         c-stack: use _Noreturn
16996         * lib/c-stack.c (die, overflow_handler, segv_handler):
16997         Use _Noreturn rather than __attribute__((noreturn)).
16998
16999         argmatch-tests, exclude_tests: use _Noreturn
17000         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
17001         Remove.
17002         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
17003
17004         stdlib: use _Noreturn
17005         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
17006         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
17007         * modules/stdlib (Depends-on): Add _Noreturn.
17008         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
17009
17010         stdnoreturn-tests: new module
17011         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
17012
17013         stdnoreturn: new module
17014         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
17015         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
17016
17017         _Noreturn-tests: new module
17018         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
17019
17020         _Noreturn: new module
17021         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
17022         New section, mentioning it.
17023         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
17024
17025         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
17026
17027 2011-07-11  Eric Blake  <eblake@redhat.com>
17028
17029         ffs: new module
17030         * modules/ffs: New file.
17031         * m4/ffs.m4: Likewise.
17032         * lib/ffs.c: Likewise.
17033         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
17034         * modules/strings (Makefile.am): Substitute witness.
17035         (Depends-on): Add c++defs.
17036         * lib/strings.in.h (ffs): Declare.
17037         * modules/ffs-tests: New test file.
17038         * tests/test-ffs.c: Test new module.
17039         * MODULES.html.sh (Integer arithmetic functions): Mention it.
17040         * doc/posix-functions/ffs.texi (ffs): Likewise.
17041
17042         regex: avoid compiler warning
17043         * lib/regex.c (includes): Include <strings.h>, for use of
17044         strcasecmp in regcomp.c.
17045         Reported by Joachim Schmitz.
17046
17047 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
17048
17049         stdint: respect system's intmax_t if INTMAX_MAX
17050         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
17051         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
17052         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
17053         long but int64_t is long long, and where we will clash with the
17054         system intmax_t if we override it.  See
17055         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
17056         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
17057         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
17058         similarly for UINTMAX_C.
17059
17060 2011-07-08  Bruno Haible  <bruno@clisp.org>
17061
17062         pthread_sigmask tests: Avoid a compiler warning.
17063         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
17064         non-zero.
17065
17066         sigprocmask tests: A better way to avoid a compiler warning.
17067         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
17068         (main): Complain if system() returns non-zero.
17069         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
17070
17071 2011-07-08  Bruno Haible  <bruno@clisp.org>
17072
17073         pthread_sigmask: Work around IRIX bug.
17074         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
17075         bug.
17076         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
17077         there may be unblocked pending signals.
17078         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
17079
17080 2011-07-08  Bruno Haible  <bruno@clisp.org>
17081
17082         pthread_sigmask: Work around Cygwin bug.
17083         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
17084         bug.
17085         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
17086         the system's pthread_sigmask function.
17087         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
17088
17089 2011-07-08  Bruno Haible  <bruno@clisp.org>
17090
17091         pthread_sigmask: Work around bug in single-threaded implementation.
17092         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
17093         FreeBSD, HP-UX, Solaris bug.
17094         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
17095         * lib/pthread_sigmask.c: Include <stddef.h>.
17096         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
17097         the system's pthread_sigmask function.
17098         * modules/pthread_sigmask (configure.ac): Invoke
17099         gl_PREREQ_PTHREAD_SIGMASK.
17100         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
17101         HP-UX, Solaris.
17102
17103 2011-07-08  Eric Blake  <eblake@redhat.com>
17104
17105         test-sigprocmask: avoid compiler warning
17106         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
17107         * tests/test-sigprocmask.c (main): Use it to silence warning.
17108         Reported by Jim Meyering.
17109
17110         test-snprintf: avoid compiler warning
17111         * tests/test-snprintf.c (main): Avoid shadowed declaration.
17112         * tests/test-vsnprintf.c (main): Likewise.
17113         Reported by Jim Meyering.
17114
17115 2011-07-08  Bruno Haible  <bruno@clisp.org>
17116
17117         Tests for module 'pthread_sigmask'.
17118         * modules/pthread_sigmask-tests: New file.
17119         * tests/test-pthread_sigmask1.c: New file, based on
17120         tests/test-sigprocmask.c.
17121         * tests/test-pthread_sigmask2.c: New file.
17122
17123 2011-07-08  Jim Meyering  <meyering@redhat.com>
17124
17125         test-getopt.h: avoid warning about an unused variable
17126         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
17127
17128 2011-07-07  Jim Meyering  <meyering@redhat.com>
17129
17130         maint: reduce list of files exempt from sc_prohibit_leading_TABs
17131         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
17132         now that it no longer contains leading TABs.
17133         Remove unused "url=FIXME" statement.
17134
17135 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
17136
17137         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
17138         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
17139         When gl_THREADLIB is not in use, assume that the POSIX sematics
17140         are desired.  This is better for Emacs, which uses POSIX semantics
17141         on GNUish and/or POSIXish platforms, and does not use threads at
17142         all otherwise.
17143
17144         pthread_sigmask: fix typo when testing for libraries
17145         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
17146         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
17147
17148 2011-07-08  Eric Blake  <eblake@redhat.com>
17149
17150         fts: introduce FTS_NOATIME
17151         * lib/fts_.h (FTS_NOATIME): New bit flag.
17152         (FTS_OPTIONMASK): Adjust.
17153         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
17154         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
17155
17156 2011-07-08  Bruno Haible  <bruno@clisp.org>
17157
17158         Tests for module 'thread'.
17159         * modules/thread-tests: New file.
17160         * tests/test-thread_self.c: New file.
17161         * tests/test-thread_create.cc: New file.
17162
17163 2011-07-08  Bruno Haible  <bruno@clisp.org>
17164
17165         thread: Avoid gcc warnings when using gl_thread_self().
17166         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
17167         'void *'.
17168         (gl_thread_self_pointer): Update.
17169
17170 2011-07-07  Bruno Haible  <bruno@clisp.org>
17171
17172         signal-c++-tests: Check declaration of pthread_sigmask.
17173         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
17174         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
17175         $(LIB_PTHREAD_SIGMASK).
17176
17177 2011-07-07  Bruno Haible  <bruno@clisp.org>
17178
17179         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
17180         * lib/signal.in.h (pthread_sigmask): Override if
17181         REPLACE_PTHREAD_SIGMASK is 1.
17182         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
17183         REPLACE_PTHREAD_SIGMASK.
17184         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
17185         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
17186         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
17187         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
17188         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
17189
17190 2011-07-07  Bruno Haible  <bruno@clisp.org>
17191
17192         pthread_sigmask: Ensure declaration in <signal.h>.
17193         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
17194         include <pthread.h>.
17195         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
17196         problem.
17197
17198 2011-07-07  Bruno Haible  <bruno@clisp.org>
17199
17200         pthread_sigmask: Document the module.
17201         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
17202
17203 2011-07-07  Bruno Haible  <bruno@clisp.org>
17204
17205         pthread_sigmask: Follow gnulib conventions.
17206         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
17207         gl_PTHREAD_SIGMASK.
17208         * modules/pthread_sigmask (configure.ac): Update.
17209
17210 2011-07-07  Bruno Haible  <bruno@clisp.org>
17211
17212         pthread_sigmask: Make declaration C++ safe.
17213         * lib/signal.in.h: In two special conditions, just do an #include_next.
17214         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
17215         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
17216         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
17217         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
17218         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
17219         not REPLACE_PTHREAD_MASK.
17220         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
17221         not REPLACE_PTHREAD_MASK.
17222         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
17223
17224 2011-07-07  Bruno Haible  <bruno@clisp.org>
17225
17226         pthread_sigmask: Fix return value.
17227         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
17228         * lib/pthread_sigmask.c: New file.
17229         * modules/pthread_sigmask (Files): Add it.
17230         (configure.ac): Invoke AC_LIBOBJ.
17231
17232 2011-07-07  Eric Blake  <eblake@redhat.com>
17233
17234         getopt: more portable argv creation
17235         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
17236         const, use char arrays rather than strings.
17237         Suggested by Paul Eggert.
17238
17239 2011-07-07  Bruno Haible  <bruno@clisp.org>
17240
17241         Tests for module 'sigprocmask'.
17242         * modules/sigprocmask-tests: New file.
17243         * tests/test-sigprocmask.c: New file.
17244
17245 2011-07-07  Bruno Haible  <bruno@clisp.org>
17246
17247         float tests: Tweak.
17248         * tests/test-float.c (main): Tweak skip message.
17249
17250 2011-07-07  Eric Blake  <eblake@redhat.com>
17251
17252         getopt: avoid compiler warning during configure
17253         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
17254         assigning string literals to non-const pointer.
17255
17256         getopt-gnu: avoid crash in glibc getopt
17257         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
17258         * tests/test-getopt.h (test_getopt): Enhance test.
17259         * tests/test-getopt_long.h (test_getopt_long): Likewise.
17260         * doc/posix-functions/getopt.texi (getopt): Document it.
17261         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
17262         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
17263         Likewise.
17264
17265 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
17266
17267         getopt: handle W; without long options in getopt [BZ #12922]
17268         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
17269         but no long options are defined, just return 'W'.
17270
17271 2011-07-07  Bruno Haible  <bruno@clisp.org>
17272
17273         Avoid literal tabs.
17274         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
17275         variable containing a tab instead of a literal tab.
17276         Reported by Jim Meyering.
17277
17278 2011-07-07  Bruno Haible  <bruno@clisp.org>
17279
17280         Comments.
17281         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
17282
17283 2011-07-06  Bruno Haible  <bruno@clisp.org>
17284
17285         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
17286         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
17287         <winsock2.h>.
17288         (rpl_fd_isset, FD_ISSET): New definitions, copied from
17289         lib/sys_socket.in.h.
17290         (close, gethostname): Hide declarations from <winsock2.h>.
17291         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
17292         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
17293         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
17294         (select): Don't override if gnulib's <sys/select.h> was already
17295         included.
17296         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
17297         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
17298         setsockopt, shutdown, select): Tweak indentation.
17299
17300 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
17301
17302         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
17303         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
17304         in an application that does not use the sys_select module.
17305
17306 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
17307
17308         poll: do not return 0 on timeout=-1
17309         * lib/poll.c: Loop with yield if no events occurred.
17310
17311 2011-07-06  Eric Blake  <eblake@redhat.com>
17312
17313         pthread_sigmask: always replace when not using pthread
17314         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
17315         replacement when using some threading other than pthread.  Fix
17316         logic bug.
17317
17318 2011-07-06  Bruno Haible  <bruno@clisp.org>
17319
17320         Comments.
17321         * m4/printf.m4: Update comments about mingw.
17322
17323 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
17324
17325         sys_select: define sigset_t more portably
17326         * lib/sys_select.in.h: Always include <sys/types.h>, since
17327         we now need sigset_t and mingw defines it there.
17328         Include <signal.h> before split inclusion guard, to avoid
17329         mishaps on Solaris, whose <signal.h> eventually includes us.
17330         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
17331         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
17332         which come from ...
17333         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
17334         gl_CHECK_TYPE_SIGSET_T.
17335         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
17336         does the real work.
17337         * modules/sys_select (Depends-on): Add 'signal'.
17338
17339         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
17340         Suggested by Bruno Haible.
17341
17342         pselect: Use pthread_sigmask, not sigprocmask.
17343         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
17344         multithreaded apps better than sigprocmask does.
17345         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
17346         sigprocmask directly.
17347
17348 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
17349
17350         * lib/pselect.c (pselect): Use plain name, without "rpl_".
17351         Don't #undef,  since we don't need any underlying pselect.
17352         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
17353         (Depends-on): Add select.
17354         (Link): Add $(LIBSOCKET).
17355         These changes suggested by Bruno Haible.
17356
17357         pselect: document better
17358         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
17359         * doc/posix-functions/pselect.texi (pselect): Document new module.
17360
17361         pthread_sigmask: new module
17362         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
17363         * doc/posix-functions/pthread_sigmask.texi: Document new module.
17364         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
17365         This is done only as a macro; I don't know how well that'll
17366         work for C++.  Move <sys/types.h> include before the include_next,
17367         to avoid mishap on Solaris.
17368         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
17369         * modules/signal (Makefile.am): Substitute the check's results.
17370         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
17371
17372         test-pselect: new module
17373         * modules/pselect-tests, tests/test-pselect.c: New files.
17374         * tests/test-select.c, tests/test-sys_select-c++.cc:
17375         If TEST_PSELECT is defined, test pselect instead of testing select.
17376
17377         * tests/test-sys_select.c (sigset_t): Test for it, too.
17378         Suggested by Bruno Haible.
17379
17380 2011-07-05  Eric Blake  <eblake@redhat.com>
17381
17382         snprintf: guarantee %1$d, for libintl
17383         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
17384         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
17385         * doc/posix-functions/snprintf.texi (snprintf): Update.
17386         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
17387         * tests/test-snprintf.c (main): Enhance test.
17388         * tests/test-vsnprintf.c (main): Likewise.
17389
17390 2011-07-05  Jim Meyering  <meyering@redhat.com>
17391
17392         maint: exempt stdio-read.c and stdio-write.c from the cppi check
17393         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
17394         per Bruno's request, to accommodate this idiom (no space after "#")
17395         even when the function is inside an #if block:
17396         char *
17397         gets (char *s)
17398         #undef gets
17399         {
17400           ...
17401         }
17402
17403 2011-07-04  Jim Meyering  <meyering@redhat.com>
17404
17405         maint: indent with spaces, not TABs, and add a rule to check this
17406         * tests/test-userspec.c: Indent with spaces, not TABs.
17407         * tests/test-argp.c: Likewise.
17408         * tests/test-c-stack2.sh: Likewise.
17409         * tests/test-parse-duration.sh: Likewise
17410         * m4/strtod.m4: Likewise.
17411         * m4/alloca.m4: Likewise.
17412         * m4/pselect.m4: Likewise.
17413         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
17414
17415 2011-07-03  Jim Meyering  <meyering@redhat.com>
17416
17417         maint.mk: correct omissions in prohibit_argmatch_without_use check
17418         This rule would mistakenly report that argmatch.h is included without
17419         use even when both the argmatch and invalid_arg macro were used.
17420         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
17421         of argmatch and invalid_arg.
17422
17423 2011-07-03  Bruno Haible  <bruno@clisp.org>
17424
17425         Comments about EINTR.
17426         * lib/safe-read.h: Explain the purpose of this module.
17427         * lib/safe-write.h: Likewise.
17428         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
17429         module.
17430         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
17431         module.
17432         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17433
17434 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
17435
17436         xnanosleep: Rewrite to use new dtotimespec module.
17437         It has the conversion code that used to be in xnanosleep.
17438         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
17439         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
17440         (TIME_T_MAX): Remove.
17441         (xnanosleep): Rewrite in terms of dtotimespec.
17442         * modules/xnanosleep (Depends-on): Add dtotimespec.
17443         Remove intprops, stdbool.
17444
17445         timespec-add, timespec-sub: new modules
17446         * lib/timespec.h (timespec_add, timespec_sub): New decls.
17447         * lib/timespec-add.c, lib/timespec-sub.c:
17448         * modules/timespec-add, modules/timespec-sub: New files.
17449
17450         dtotimespec: new module
17451         * lib/timespec.h (dtotimespec): New decl.
17452         * lib/dtotimespec.c, modules/dtotimespec: New files.
17453
17454         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
17455
17456         pselect: new module
17457         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
17458         (pselect): New decls.
17459         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
17460         since the standard pselect decl uses 'restrict'.
17461         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
17462         HAVE_PSELECT, REPLACE_PSELECT.
17463         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
17464         HAVE_PSELECT, REPLACE_PSELECT.
17465         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
17466
17467         sys_select: don't depend on sys_socket
17468         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
17469         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
17470         This fix works on GNU and GNU-like platforms, but has not been tested
17471         on native Windows.
17472         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
17473         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
17474         gl_HEADER_SYS_SOCKET.
17475         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
17476         gl_PREREQ_SYS_H_WINSOCK2.
17477
17478 2011-06-29  Eric Blake  <eblake@redhat.com>
17479
17480         pipe2: fix C89 compile problem
17481         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
17482         Reported by Bruno Haible.
17483
17484         pipe, pipe2: don't corrupt fd on error
17485         * lib/pipe.c (pipe): Leave fd unchanged on error.
17486         * lib/pipe2.c (pipe2): Likewise.
17487         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
17488         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
17489
17490 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
17491
17492         mmap-anon: do not use regular expressions inadvertently
17493         * m4/mmap-anon.m4: Remove trailing period from strings sought
17494         in the output.
17495
17496 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
17497
17498         nanosleep: fix integer overflow problem
17499         * lib/nanosleep.c (my_usleep): Don't assume signed integer
17500         arithmetic wraps around on overflow.
17501
17502         nanosleep: simplify carrying
17503         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
17504         first call to the underyling nanosleep, not for the last one.
17505         This doesn't fix any bugs, but it simplifies the computation of
17506         the remaining delay.  Found while auditing integer overflow issues.
17507
17508         dup2: remove test for existence of fcntl
17509         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
17510         "#if HAVE_FCNTL", in the configure-time test program.
17511         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
17512         and therefore speeds up "configure" a bit.  Found while
17513         adding the dup2 module to Emacs.
17514
17515 2011-06-24  Eric Blake  <eblake@redhat.com>
17516
17517         maint.mk: enhance useless header checks
17518         * top/maint.mk (_sc_header_without_use): Check both include
17519         styles.
17520         (sc_prohibit_assert_without_use)
17521         (sc_prohibit_close_stream_without_use)
17522         (sc_prohibit_getopt_without_use)
17523         (sc_prohibit_quotearg_without_use)
17524         (sc_prohibit_quote_without_use)
17525         (sc_prohibit_long_options_without_use)
17526         (sc_prohibit_inttostr_without_use)
17527         (sc_prohibit_ignore_value_without_use)
17528         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
17529         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
17530         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
17531         (sc_prohibit_hash_pjw_without_use)
17532         (sc_prohibit_safe_read_without_use)
17533         (sc_prohibit_argmatch_without_use)
17534         (sc_prohibit_canonicalize_without_use)
17535         (sc_prohibit_root_dev_ino_without_use)
17536         (sc_prohibit_openat_without_use)
17537         (sc_prohibit_c_ctype_without_use)
17538         (sc_prohibit_signal_without_use)
17539         (sc_prohibit_stdio--_without_use)
17540         (sc_prohibit_stdio-safer_without_use)
17541         (sc_prohibit_strings_without_use)
17542         (sc_prohibit_intprops_without_use)
17543         (sc_prohibit_stddef_without_use)
17544         (sc_prohibit_xfreopen_without_use): Update clients.
17545
17546 2011-06-24  Jim Meyering  <meyering@redhat.com>
17547
17548         syntax-check: keep one maint.mk rule in sync with its header
17549         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
17550         of the bug Eric has just fixed, with today's commit 25e4c2ec.
17551         I prefer to avoid temporary files here, so use <(...), but that
17552         is not supported by /bin/sh, so...
17553         (SHELL): Define to /bin/bash.
17554
17555 2011-06-24  Eric Blake  <eblake@redhat.com>
17556
17557         maint.mk: update sc_prohibit_intprops_without_use
17558         * top/maint.mk (_intprops_names): Match recent changes.
17559
17560 2011-06-24  Bruno Haible  <bruno@clisp.org>
17561
17562         strerror-override: No-op tweak.
17563         * lib/strerror-override.h (strerror_override): Reorder conditions,
17564         for consistency with lib/strerror-override.c.
17565
17566 2011-06-23  Eric Blake  <eblake@redhat.com>
17567
17568         maint.mk: test further PATH_MAX issues
17569         * top/maint.mk (sc_prohibit_path_max_array): Rename...
17570         (sc_prohibit_path_max_allocation): ...and also test alloca.
17571         Suggested by Jim Meyering.
17572
17573 2011-06-22  Eric Blake  <eblake@redhat.com>
17574
17575         maint.mk: add syntax-check to avoid char[PATH_MAX]
17576         * top/maint.mk (sc_prohibit_path_max_array): New rule.
17577
17578         stat: be robust to PATH_MAX definition
17579         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
17580         * modules/stat (Depends-on): Add verify.
17581
17582         link: work around IRIX bug
17583         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
17584         * lib/link.c (rpl_link): Work around it.
17585         * tests/test-link.h (test_link): Enhance test.
17586         * doc/posix-functions/link.texi (link): Document the bug.
17587
17588         getopt: silence clang warning
17589         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
17590         dereference.
17591         Reported by Gustavo Martin Domato.
17592
17593 2011-06-22  Jim Meyering  <meyering@redhat.com>
17594
17595         bootstrap: do not insert a blank line into each .gitignore file
17596         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
17597
17598 2011-06-21  Eric Blake  <eblake@redhat.com>
17599
17600         perror: test for output mismatch
17601         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
17602         perror on IRIX.
17603
17604         strerror_r: fix OpenBSD behavior on out-of-range
17605         * lib/strerror_r.c (strerror_r): Always use maximal string.
17606         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
17607
17608         strerror_r: fix OpenBSD behavior on 0
17609         * lib/strerror-override.c (strerror_override): Also override 0
17610         when needed.
17611         * lib/strerror-override.h (strerror_override): Likewise.
17612         * lib/strerror.c (strerror): Simplify, now that 0 override is done
17613         earlier.
17614         * lib/strerror_r.c (strerror_r): Likewise.
17615         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
17616         behavior...
17617         (gl_FUNC_STRERROR_0): ...into new macro.
17618         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
17619         is overridden.
17620         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
17621         * modules/strerror-override (Files): Add strerror.m4.
17622         (configure.ac): Also provide override for 0 when needed.
17623         * doc/posix-functions/strerror.texi (strerror): Document this.
17624         * doc/posix-functions/perror.texi (perror): Likewise.
17625
17626         perror: adjust array size
17627         * modules/perror (Depends-on): Add strerror-override.
17628         * lib/perror.c (perror): Use it to avoid magic number.
17629
17630         strerror-override: reduce size
17631         * lib/strerror-override.c (strerror_override): Use fewer lines.
17632
17633 2011-06-20  Bruno Haible  <bruno@clisp.org>
17634
17635         pathmax: Ensure correct value for PATH_MAX on HP-UX.
17636         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
17637
17638 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
17639
17640         alloca: port to compilers that can optimize like GCC 4.6.0
17641         * lib/alloca.c (find_stack_direction): New signature, taken from
17642         Autoconf git.  This works with GCC 4.6.0.  This code should never
17643         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
17644         be used with other compilers that optimize as well as GCC 4.6.0 does.
17645         (alloca): Adjust to new signature.
17646         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
17647         New macro, which patches Autoconf in a similar way.
17648
17649         c-stack: stop worrying about stack direction
17650         * lib/c-stack.c (find_stack_direction): Remove.
17651         (segv_handler): Don't worry about stack direction growth, as it's
17652         too much of a pain to configure this correctly, given how compilers
17653         are optimizing-away our stack-growth detection code.  Instead, assume
17654         that any access to just before or just after the stack is OK.
17655         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
17656         Don't require AC_FUNC_ALLOCA; no longer needed.
17657
17658 2011-06-20  Eric Blake  <eblake@redhat.com>
17659
17660         test-stat: don't allocate PATH_MAX bytes
17661         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
17662         PATH_MAX-sized buffer.
17663         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
17664         * modules/stat-tests (Depends-on): Likewise.
17665         * tests/test-fstatat.c (includes): Drop pathmax.h.
17666         * tests/test-stat.c (includes): Likewise.
17667         Reported by Bruno Haible.
17668
17669 2011-06-20  Bruno Haible  <bruno@clisp.org>
17670
17671         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
17672         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
17673         * lib/float.c: New file.
17674         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
17675         REPLACE_FLOAT_LDBL.
17676         * modules/float (Files): Add lib/float.c.
17677         (configure.ac): Invoke AC_LIBOBJ.
17678         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
17679
17680 2011-06-20  Bruno Haible  <bruno@clisp.org>
17681
17682         Tests for module 'float'.
17683         * modules/float-tests: New file.
17684         * tests/test-float.c: New file.
17685
17686 2011-06-19  Bruno Haible  <bruno@clisp.org>
17687
17688         isinf: Coding style.
17689         * lib/isinf.c: Use GNU coding style.
17690
17691 2011-06-19  Bruno Haible  <bruno@clisp.org>
17692
17693         linkat test: Avoid test failure on AIX 7.1.
17694         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
17695         * tests/test-link.h (test_link): Likewise.
17696
17697 2011-06-19  Bruno Haible  <bruno@clisp.org>
17698
17699         pread test: Avoid test failure on OpenBSD 4.9.
17700         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
17701
17702 2011-06-19  Bruno Haible  <bruno@clisp.org>
17703
17704         sprintf-posix: Fix test failure on AIX 7.1.
17705         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
17706         * doc/posix-functions/dprintf.texi: Mention limited precision problem
17707         on AIX.
17708         * doc/posix-functions/fprintf.texi: Likewise.
17709         * doc/posix-functions/printf.texi: Likewise.
17710         * doc/posix-functions/snprintf.texi: Likewise.
17711         * doc/posix-functions/sprintf.texi: Likewise.
17712         * doc/posix-functions/vdprintf.texi: Likewise.
17713         * doc/posix-functions/vfprintf.texi: Likewise.
17714         * doc/posix-functions/vprintf.texi: Likewise.
17715         * doc/posix-functions/vsnprintf.texi: Likewise.
17716         * doc/posix-functions/vsprintf.texi: Likewise.
17717
17718 2011-06-19  Bruno Haible  <bruno@clisp.org>
17719
17720         roundl-ieee: Fix test failure on AIX 7.1.
17721         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
17722         * doc/posix-functions/roundl.texi: Mention problem with negative
17723         arguments.
17724
17725 2011-06-19  Bruno Haible  <bruno@clisp.org>
17726
17727         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
17728         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
17729         * doc/posix-functions/round.texi: Mention problem with negative
17730         arguments.
17731         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
17732
17733 2011-06-19  Bruno Haible  <bruno@clisp.org>
17734
17735         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
17736         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
17737         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
17738         * doc/posix-functions/roundf.texi: Mention problem with negative
17739         arguments.
17740         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
17741
17742 2011-06-19  Bruno Haible  <bruno@clisp.org>
17743
17744         ceilf-ieee: Work around bug on MacOS X 10.5.
17745         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
17746
17747         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
17748         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
17749         IEEE compliant, avoid compiler optimizations.
17750         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
17751         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
17752         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
17753         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
17754         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
17755         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
17756         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
17757         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
17758         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
17759         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
17760
17761 2011-06-19  Bruno Haible  <bruno@clisp.org>
17762
17763         ceilf-ieee: Work around bug on AIX 7.1.
17764         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
17765         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
17766
17767 2011-06-19  Bruno Haible  <bruno@clisp.org>
17768
17769         ceil-ieee: Work around bug on AIX 7.1.
17770         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
17771         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
17772
17773 2011-06-18  Bruno Haible  <bruno@clisp.org>
17774
17775         fsync test: Avoid test failure on MacOS X and AIX.
17776         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
17777         EINVAL.
17778
17779 2011-06-18  Bruno Haible  <bruno@clisp.org>
17780
17781         openat, fdopendir tests: Fix link errors.
17782         * modules/openat-tests (Depends-on): Add progname.
17783         * modules/fdopendir-tests (Depends-on): Likewise.
17784         * tests/test-fchownat.c: Include progname.h.
17785         (main): Call set_program_name.
17786         * tests/test-fstatat.c: Include progname.h.
17787         (main): Call set_program_name.
17788         * tests/test-mkdirat.c: Include progname.h.
17789         (main): Call set_program_name.
17790         * tests/test-openat.c: Include progname.h.
17791         (main): Call set_program_name.
17792         * tests/test-unlinkat.c: Include progname.h.
17793         (main): Call set_program_name.
17794         * tests/test-fdopendir.c: Include progname.h.
17795         (main): Call set_program_name.
17796
17797 2011-06-18  Bruno Haible  <bruno@clisp.org>
17798
17799         Doc update.
17800         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
17801         HP-UX.
17802         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
17803
17804 2011-06-18  Bruno Haible  <bruno@clisp.org>
17805
17806         getcwd tests: Avoid compilation error on HP-UX 11.31.
17807         * modules/getcwd-tests (Depends-on): Add pathmax.
17808         * tests/test-getcwd.c: Include pathmax.h.
17809
17810 2011-06-18  Bruno Haible  <bruno@clisp.org>
17811
17812         isfinite, isinf: Fix link error on AIX 6 and 7.
17813         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
17814         needed, also test the macro with a 'float' argument.
17815         * m4/isinf.m4 (gl_ISINF): Likewise.
17816
17817 2011-06-18  Bruno Haible  <bruno@clisp.org>
17818
17819         getloadavg: Don't clobber LIBS. Regression from previous commit.
17820         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
17821         AC_CHECK_LIB from here...
17822         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
17823         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
17824         gl_func_getloadavg_done.
17825         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17826
17827 2011-06-18  Bruno Haible  <bruno@clisp.org>
17828
17829         clean-temp: Improve documentation.
17830         * lib/clean-temp.h: Explain better how to use this module.
17831         Reported by John Darrington <john@darrington.wattle.id.au>.
17832
17833 2011-06-17  Bruno Haible  <bruno@clisp.org>
17834
17835         pread, pwrite: Avoid cc warning on AIX.
17836         * lib/unistd.in.h (pread): Undefine before defining as a macro.
17837         (pwrite): Likewise.
17838
17839 2011-06-17  Bruno Haible  <bruno@clisp.org>
17840
17841         spawn-pipe tests: Fix link error.
17842         * tests/test-spawn-pipe-child.c: Undefine fprintf.
17843         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17844
17845 2011-06-17  Bruno Haible  <bruno@clisp.org>
17846
17847         Tests: Remove unnecessary dependency.
17848         * modules/canonicalize-tests (Depends-on): Remove progname.
17849         * modules/chown-tests (Depends-on): Likewise.
17850         * modules/dirname-tests (Depends-on): Likewise.
17851         * modules/fdopendir-tests (Depends-on): Likewise.
17852         * modules/fdutimensat-tests (Depends-on): Likewise.
17853         * modules/hash-tests (Depends-on): Likewise.
17854         * modules/lchown-tests (Depends-on): Likewise.
17855         * modules/linkat-tests (Depends-on): Likewise.
17856         * modules/renameat-tests (Depends-on): Likewise.
17857         * modules/spawn-pipe-tests (Depends-on): Likewise.
17858         * modules/utimensat-tests (Depends-on): Likewise.
17859
17860 2011-06-17  Bruno Haible  <bruno@clisp.org>
17861
17862         spawn-pipe tests: Fix link error.
17863         * tests/test-spawn-pipe-child.c: Undefine fflush.
17864
17865 2011-06-17  Bruno Haible  <bruno@clisp.org>
17866
17867         Fix tests link errors.
17868         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
17869         * modules/chown-tests (Makefile.am): Don't link test-chown with
17870         LIBINTL.
17871         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
17872         LIBINTL.
17873         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
17874         LIBINTL.
17875         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
17876         LIBINTL.
17877
17878 2011-06-16  Bruno Haible  <bruno@clisp.org>
17879
17880         crypto/gc-sha1: Fix recent regression.
17881         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
17882         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
17883
17884         crypto/gc-md5: Fix recent regression.
17885         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
17886
17887         crypto/gc-md4: Fix recent regression.
17888         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
17889         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
17890
17891         crypto/gc-arctwo: Fix recent regression.
17892         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
17893         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
17894
17895         crypto/gc-rijndael: Fix recent regression.
17896         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
17897         (configure.ac): Invoke AC_LIBOBJ here.
17898         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
17899         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17900
17901         crypto/gc-hmac-sha1: Fix recent regression.
17902         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
17903         (configure.ac): Invoke AC_LIBOBJ here.
17904         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
17905         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17906
17907         crypto/gc-hmac-md5: Fix recent regression.
17908         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
17909         (configure.ac): Invoke AC_LIBOBJ here.
17910         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
17911         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17912
17913         crypto/gc-des: Fix recent regression.
17914         * modules/crypto/gc-des (Files): Remove m4/des.m4.
17915         (configure.ac): Invoke AC_LIBOBJ here.
17916         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
17917         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17918
17919         crypto/gc-arcfour: Fix recent regression.
17920         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
17921         (configure.ac): Invoke AC_LIBOBJ here.
17922         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
17923         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17924
17925 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
17926
17927         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
17928         After the 2011-05-21 change, this macro requires
17929         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
17930         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
17931
17932 2011-06-16  Bruno Haible  <bruno@clisp.org>
17933
17934         fprintftime: Move AC_LIBOBJ invocations to module description.
17935         * m4/fprintftime.m4: Remove file.
17936         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
17937         (configure.ac): Remove gl_FPRINTFTIME call.
17938         (Makefile.am): Augment lib_SOURCES.
17939         Reported by Jim Meyering.
17940
17941 2011-06-16  Bruno Haible  <bruno@clisp.org>
17942
17943         tmpfile-safer: Finish 2011-05-23 commit.
17944         * m4/stdio-safer.m4: Really remove file.
17945         Reported by Jim Meyering.
17946
17947 2011-06-16  Bruno Haible  <bruno@clisp.org>
17948
17949         syntax-check: Fix typo.
17950         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
17951         printf-posix.m4.
17952         Reported by Jim Meyering.
17953
17954 2011-06-13  Jim Meyering  <meyering@redhat.com>
17955
17956         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
17957         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
17958
17959 2011-05-23  Bruno Haible  <bruno@clisp.org>
17960
17961         yesno: Move AC_LIBOBJ invocations to module description.
17962         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
17963         * modules/yesno (Makefile.am): Augment lib_SOURCES.
17964
17965 2011-05-23  Bruno Haible  <bruno@clisp.org>
17966
17967         xstrtol: Move AC_LIBOBJ invocations to module description.
17968         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
17969         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
17970
17971 2011-05-23  Bruno Haible  <bruno@clisp.org>
17972
17973         xstrtold: Move AC_LIBOBJ invocations to module description.
17974         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
17975         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
17976
17977 2011-05-23  Bruno Haible  <bruno@clisp.org>
17978
17979         xstrtod: Move AC_LIBOBJ invocations to module description.
17980         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
17981         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
17982
17983 2011-05-23  Bruno Haible  <bruno@clisp.org>
17984
17985         xnanosleep: Move AC_LIBOBJ invocations to module description.
17986         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
17987         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
17988
17989 2011-05-23  Bruno Haible  <bruno@clisp.org>
17990
17991         xgetcwd: Move AC_LIBOBJ invocations to module description.
17992         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
17993         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
17994
17995 2011-05-23  Bruno Haible  <bruno@clisp.org>
17996
17997         xalloc: Move AC_LIBOBJ invocations to module description.
17998         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
17999         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
18000
18001 2011-05-23  Bruno Haible  <bruno@clisp.org>
18002
18003         write-any-file: Move AC_LIBOBJ invocations to module description.
18004         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
18005         invocation.
18006         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
18007
18008 2011-05-23  Bruno Haible  <bruno@clisp.org>
18009
18010         utimens: Move AC_LIBOBJ invocations to module description.
18011         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
18012         * modules/utimens (Makefile.am): Augment lib_SOURCES.
18013
18014 2011-05-23  Bruno Haible  <bruno@clisp.org>
18015
18016         utimecmp: Move AC_LIBOBJ invocations to module description.
18017         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
18018         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
18019
18020 2011-05-23  Bruno Haible  <bruno@clisp.org>
18021
18022         userspec: Move AC_LIBOBJ invocations to module description.
18023         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
18024         * modules/userspec (Makefile.am): Augment lib_SOURCES.
18025
18026 2011-05-23  Bruno Haible  <bruno@clisp.org>
18027
18028         unlinkdir: Move AC_LIBOBJ invocations to module description.
18029         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
18030         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
18031
18032 2011-05-23  Bruno Haible  <bruno@clisp.org>
18033
18034         unistd-safer: Move AC_LIBOBJ invocations to module description.
18035         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
18036         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
18037
18038 2011-05-23  Bruno Haible  <bruno@clisp.org>
18039
18040         tempname: Move AC_LIBOBJ invocations to module description.
18041         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
18042         * modules/tempname (Makefile.am): Augment lib_SOURCES.
18043
18044 2011-05-23  Bruno Haible  <bruno@clisp.org>
18045
18046         strftime: Move AC_LIBOBJ invocations to module description.
18047         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
18048         * modules/strftime (Makefile.am): Augment lib_SOURCES.
18049
18050 2011-05-23  Bruno Haible  <bruno@clisp.org>
18051
18052         stdlib-safer: Move AC_LIBOBJ invocations to module description.
18053         * m4/stdlib-safer.m4: Remove file.
18054         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
18055         (configure.ac): Remove gl_STDLIB_SAFER call.
18056         (Makefile.am): Augment lib_SOURCES.
18057
18058 2011-05-23  Bruno Haible  <bruno@clisp.org>
18059
18060         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
18061         * m4/stdio-safer.m4: Remove file.
18062         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
18063         (configure.ac): Remove gl_TMPFILE_SAFER call.
18064         (Makefile.am): Augment lib_SOURCES.
18065
18066 2011-05-23  Bruno Haible  <bruno@clisp.org>
18067
18068         popen-safer: Move AC_LIBOBJ invocations to module description.
18069         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
18070         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
18071         (configure.ac): Remove gl_POPEN_SAFER call.
18072         (Makefile.am): Augment lib_SOURCES.
18073
18074 2011-05-23  Bruno Haible  <bruno@clisp.org>
18075
18076         freopen-safer: Move AC_LIBOBJ invocations to module description.
18077         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
18078         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
18079         (configure.ac): Remove gl_FREOPEN_SAFER call.
18080         (Makefile.am): Augment lib_SOURCES.
18081
18082 2011-05-23  Bruno Haible  <bruno@clisp.org>
18083
18084         fopen-safer: Move AC_LIBOBJ invocations to module description.
18085         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
18086         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
18087         (configure.ac): Remove gl_FOPEN_SAFER call.
18088         (Makefile.am): Augment lib_SOURCES.
18089
18090 2011-05-23  Bruno Haible  <bruno@clisp.org>
18091
18092         crypto/sha512: Move AC_LIBOBJ invocations to module description.
18093         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
18094         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
18095
18096 2011-05-23  Bruno Haible  <bruno@clisp.org>
18097
18098         crypto/sha256: Move AC_LIBOBJ invocations to module description.
18099         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
18100         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
18101
18102 2011-05-23  Bruno Haible  <bruno@clisp.org>
18103
18104         crypto/sha1: Move AC_LIBOBJ invocations to module description.
18105         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
18106         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
18107
18108 2011-05-23  Bruno Haible  <bruno@clisp.org>
18109
18110         settime: Move AC_LIBOBJ invocations to module description.
18111         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
18112         * modules/settime (Makefile.am): Augment lib_SOURCES.
18113
18114 2011-05-23  Bruno Haible  <bruno@clisp.org>
18115
18116         savedir: Move AC_LIBOBJ invocations to module description.
18117         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
18118         * modules/savedir (Makefile.am): Augment lib_SOURCES.
18119
18120 2011-05-23  Bruno Haible  <bruno@clisp.org>
18121
18122         save-cwd: Move AC_LIBOBJ invocations to module description.
18123         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
18124         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
18125
18126 2011-05-23  Bruno Haible  <bruno@clisp.org>
18127
18128         same: Move AC_LIBOBJ invocations to module description.
18129         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
18130         * modules/same (Makefile.am): Augment lib_SOURCES.
18131
18132 2011-05-23  Bruno Haible  <bruno@clisp.org>
18133
18134         safe-write: Move AC_LIBOBJ invocations to module description.
18135         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
18136         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
18137         instead of gl_SAFE_WRITE.
18138         (Makefile.am): Augment lib_SOURCES.
18139
18140 2011-05-23  Bruno Haible  <bruno@clisp.org>
18141
18142         safe-read: Move AC_LIBOBJ invocations to module description.
18143         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
18144         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
18145         of gl_SAFE_READ.
18146         (Makefile.am): Augment lib_SOURCES.
18147
18148 2011-05-23  Bruno Haible  <bruno@clisp.org>
18149
18150         safe-alloc: Move AC_LIBOBJ invocations to module description.
18151         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
18152         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
18153
18154 2011-05-23  Bruno Haible  <bruno@clisp.org>
18155
18156         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
18157         * m4/rijndael.m4: Remove file.
18158         * modules/crypto/rijndael (Files): Remove it.
18159         (configure.ac): Remove gl_RIJNDAEL call.
18160         (Makefile.am): Augment lib_SOURCES.
18161
18162 2011-05-23  Bruno Haible  <bruno@clisp.org>
18163
18164         readtokens: Move AC_LIBOBJ invocations to module description.
18165         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
18166         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
18167
18168 2011-05-23  Bruno Haible  <bruno@clisp.org>
18169
18170         read-file: Move AC_LIBOBJ invocations to module description.
18171         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
18172         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
18173         of gl_FUNC_READ_FILE.
18174         (Makefile.am): Augment lib_SOURCES.
18175
18176 2011-05-23  Bruno Haible  <bruno@clisp.org>
18177
18178         quotearg: Move AC_LIBOBJ invocations to module description.
18179         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
18180         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
18181
18182 2011-05-23  Bruno Haible  <bruno@clisp.org>
18183
18184         quote: Move AC_LIBOBJ invocations to module description.
18185         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
18186         * modules/quote (Makefile.am): Augment lib_SOURCES.
18187
18188 2011-05-23  Bruno Haible  <bruno@clisp.org>
18189
18190         posixver: Move AC_LIBOBJ invocations to module description.
18191         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
18192         * modules/posixver (Makefile.am): Augment lib_SOURCES.
18193
18194 2011-05-23  Bruno Haible  <bruno@clisp.org>
18195
18196         posixtm: Move AC_LIBOBJ invocations to module description.
18197         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
18198         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
18199
18200 2011-05-23  Bruno Haible  <bruno@clisp.org>
18201
18202         physmem: Move AC_LIBOBJ invocations to module description.
18203         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
18204         * modules/physmem (Makefile.am): Augment lib_SOURCES.
18205
18206 2011-05-23  Bruno Haible  <bruno@clisp.org>
18207
18208         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
18209         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
18210         invocation.
18211         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
18212
18213 2011-05-23  Bruno Haible  <bruno@clisp.org>
18214
18215         mpsort: Move AC_LIBOBJ invocations to module description.
18216         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
18217         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
18218
18219 2011-05-23  Bruno Haible  <bruno@clisp.org>
18220
18221         modechange: Move AC_LIBOBJ invocations to module description.
18222         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
18223         * modules/modechange (Makefile.am): Augment lib_SOURCES.
18224
18225 2011-05-23  Bruno Haible  <bruno@clisp.org>
18226
18227         mkdir-p: Move AC_LIBOBJ invocations to module description.
18228         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
18229         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
18230
18231 2011-05-23  Bruno Haible  <bruno@clisp.org>
18232
18233         mkancesdirs: Move AC_LIBOBJ invocations to module description.
18234         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
18235         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
18236
18237 2011-05-23  Bruno Haible  <bruno@clisp.org>
18238
18239         mgetgroups: Move AC_LIBOBJ invocations to module description.
18240         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
18241         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
18242
18243 2011-05-23  Bruno Haible  <bruno@clisp.org>
18244
18245         memxor: Move AC_LIBOBJ invocations to module description.
18246         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
18247         * modules/memxor (Makefile.am): Augment lib_SOURCES.
18248
18249 2011-05-23  Bruno Haible  <bruno@clisp.org>
18250
18251         memcoll: Move AC_LIBOBJ invocations to module description.
18252         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
18253         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
18254
18255 2011-05-23  Bruno Haible  <bruno@clisp.org>
18256
18257         memcasecmp: Move AC_LIBOBJ invocations to module description.
18258         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
18259         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
18260
18261 2011-05-23  Bruno Haible  <bruno@clisp.org>
18262
18263         crypto/md5: Move AC_LIBOBJ invocations to module description.
18264         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
18265         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
18266
18267 2011-05-23  Bruno Haible  <bruno@clisp.org>
18268
18269         crypto/md4: Move AC_LIBOBJ invocations to module description.
18270         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
18271         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
18272
18273 2011-05-23  Bruno Haible  <bruno@clisp.org>
18274
18275         crypto/md2: Move AC_LIBOBJ invocations to module description.
18276         * m4/md2.m4: Remove file.
18277         * modules/crypto/md2 (Files): Remove it.
18278         (configure.ac): Remove gl_MD2 call.
18279         (Makefile.am): Augment lib_SOURCES.
18280
18281 2011-05-23  Bruno Haible  <bruno@clisp.org>
18282
18283         long-options: Move AC_LIBOBJ invocations to module description.
18284         * m4/long-options.m4: Remove file.
18285         * modules/long-options (Files): Remove it.
18286         (configure.ac): Remove gl_LONG_OPTIONS call.
18287         (Makefile.am): Augment lib_SOURCES.
18288
18289 2011-05-23  Bruno Haible  <bruno@clisp.org>
18290
18291         i-ring: Move AC_LIBOBJ invocations to module description.
18292         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
18293         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
18294
18295 2011-05-23  Bruno Haible  <bruno@clisp.org>
18296
18297         idcache: Move AC_LIBOBJ invocations to module description.
18298         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
18299         * modules/idcache (Makefile.am): Augment lib_SOURCES.
18300
18301 2011-05-23  Bruno Haible  <bruno@clisp.org>
18302
18303         human: Move AC_LIBOBJ invocations to module description.
18304         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
18305         * modules/human (Makefile.am): Augment lib_SOURCES.
18306
18307 2011-05-23  Bruno Haible  <bruno@clisp.org>
18308
18309         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
18310         * m4/hmac-sha1.m4: Remove file.
18311         * modules/crypto/hmac-sha1 (Files): Remove it.
18312         (configure.ac): Remove gl_HMAC_SHA1 call.
18313         (Makefile.am): Augment lib_SOURCES.
18314
18315 2011-05-23  Bruno Haible  <bruno@clisp.org>
18316
18317         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
18318         * m4/hmac-md5.m4: Remove file.
18319         * modules/crypto/hmac-md5 (Files): Remove it.
18320         (configure.ac): Remove gl_HMAC_MD5 call.
18321         (Makefile.am): Augment lib_SOURCES.
18322
18323 2011-05-23  Bruno Haible  <bruno@clisp.org>
18324
18325         hash: Move AC_LIBOBJ invocations to module description.
18326         * m4/hash.m4: Remove file.
18327         * modules/hash (Files): Remove it.
18328         (configure.ac): Remove gl_HASH call.
18329         (Makefile.am): Augment lib_SOURCES.
18330
18331 2011-05-23  Bruno Haible  <bruno@clisp.org>
18332
18333         hard-locale: Move AC_LIBOBJ invocations to module description.
18334         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
18335         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
18336
18337 2011-05-23  Bruno Haible  <bruno@clisp.org>
18338
18339         getugroups: Move AC_LIBOBJ invocations to module description.
18340         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
18341         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
18342
18343 2011-05-23  Bruno Haible  <bruno@clisp.org>
18344
18345         gettime: Move AC_LIBOBJ invocations to module description.
18346         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
18347         * modules/gettime (Makefile.am): Augment lib_SOURCES.
18348
18349 2011-05-23  Bruno Haible  <bruno@clisp.org>
18350
18351         getndelim2: Move AC_LIBOBJ invocations to module description.
18352         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
18353         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
18354
18355 2011-05-23  Bruno Haible  <bruno@clisp.org>
18356
18357         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
18358         * m4/gc-pbkdf2-sha1.m4: Remove file.
18359         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
18360         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
18361         (Makefile.am): Augment lib_SOURCES.
18362
18363 2011-05-23  Bruno Haible  <bruno@clisp.org>
18364
18365         fts: Move AC_LIBOBJ invocations to module description.
18366         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
18367         * modules/fts (configure.ac): ... to here.
18368
18369 2011-05-23  Bruno Haible  <bruno@clisp.org>
18370
18371         file-type: Move AC_LIBOBJ invocations to module description.
18372         * m4/file-type.m4: Remove file.
18373         * modules/file-type (Files): Remove it.
18374         (configure.ac): Remove gl_FILE_TYPE call.
18375         (Makefile.am): Augment lib_SOURCES.
18376
18377 2011-05-23  Bruno Haible  <bruno@clisp.org>
18378
18379         filenamecat*: Respect rules for use of AC_LIBOBJ.
18380         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
18381         Remove AC_LIBOBJ invocation.
18382         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
18383         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
18384
18385 2011-05-23  Bruno Haible  <bruno@clisp.org>
18386
18387         filemode: Move AC_LIBOBJ invocations to module description.
18388         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
18389         * modules/filemode (Makefile.am): Augment lib_SOURCES.
18390
18391 2011-05-23  Bruno Haible  <bruno@clisp.org>
18392
18393         openat-safer: Move AC_LIBOBJ invocations to module description.
18394         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
18395         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
18396
18397 2011-05-23  Bruno Haible  <bruno@clisp.org>
18398
18399         fcntl-safer: Move AC_LIBOBJ invocations to module description.
18400         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
18401         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
18402
18403 2011-05-23  Bruno Haible  <bruno@clisp.org>
18404
18405         exclude: Move AC_LIBOBJ invocations to module description.
18406         * m4/exclude.m4: Remove file.
18407         * modules/exclude (Files): Remove it.
18408         (configure.ac): Remove gl_EXCLUDE call.
18409         (Makefile.am): Augment lib_SOURCES.
18410
18411 2011-05-23  Bruno Haible  <bruno@clisp.org>
18412
18413         dirname*: Respect rules for use of AC_LIBOBJ.
18414         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
18415         invocations.
18416         * modules/dirname (Makefile.am): Augment lib_SOURCES.
18417         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
18418
18419 2011-05-23  Bruno Haible  <bruno@clisp.org>
18420
18421         dirent-safer: Move AC_LIBOBJ invocations to module description.
18422         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
18423         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
18424
18425 2011-05-23  Bruno Haible  <bruno@clisp.org>
18426
18427         crypto/des: Move AC_LIBOBJ invocations to module description.
18428         * m4/des.m4: Remove file.
18429         * modules/crypto/des (Files): Remove it.
18430         (configure.ac): Remove gl_DES call.
18431         (Makefile.am): Augment lib_SOURCES.
18432
18433 2011-05-23  Bruno Haible  <bruno@clisp.org>
18434
18435         cycle-check: Move AC_LIBOBJ invocations to module description.
18436         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
18437         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
18438
18439 2011-05-23  Bruno Haible  <bruno@clisp.org>
18440
18441         c-strtold: Move AC_LIBOBJ invocations to module description.
18442         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
18443         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
18444
18445 2011-05-23  Bruno Haible  <bruno@clisp.org>
18446
18447         c-strtod: Move AC_LIBOBJ invocations to module description.
18448         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
18449         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
18450
18451 2011-05-23  Bruno Haible  <bruno@clisp.org>
18452
18453         crc: Move AC_LIBOBJ invocations to module description.
18454         * m4/crc.m4: Remove file.
18455         * modules/crc (Files): Remove it.
18456         (configure.ac): Remove gl_CRC call.
18457         (Makefile.am): Augment lib_SOURCES.
18458
18459 2011-05-23  Bruno Haible  <bruno@clisp.org>
18460
18461         close-stream: Move AC_LIBOBJ invocations to module description.
18462         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
18463         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
18464
18465 2011-05-23  Bruno Haible  <bruno@clisp.org>
18466
18467         closeout: Move AC_LIBOBJ invocations to module description.
18468         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
18469         * modules/closeout (Makefile.am): Augment lib_SOURCES.
18470
18471 2011-05-23  Bruno Haible  <bruno@clisp.org>
18472
18473         closein: Move AC_LIBOBJ invocations to module description.
18474         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
18475         * modules/closein (Makefile.am): Augment lib_SOURCES.
18476
18477 2011-05-23  Bruno Haible  <bruno@clisp.org>
18478
18479         cloexec: Move AC_LIBOBJ invocations to module description.
18480         * m4/cloexec.m4: Remove file.
18481         * modules/cloexec (Files): Remove it.
18482         (configure.ac): Remove gl_CLOEXEC call.
18483         (Makefile.am): Augment lib_SOURCES.
18484
18485 2011-05-23  Bruno Haible  <bruno@clisp.org>
18486
18487         check-version: Move AC_LIBOBJ invocations to module description.
18488         * m4/check-version.m4: Remove file.
18489         * modules/check-version (Files): Remove it.
18490         (configure.ac): Remove gl_CHECK_VERSION call.
18491         (Makefile.am): Augment lib_SOURCES.
18492
18493 2011-05-23  Bruno Haible  <bruno@clisp.org>
18494
18495         chdir-safer: Move AC_LIBOBJ invocations to module description.
18496         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
18497         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
18498
18499 2011-05-23  Bruno Haible  <bruno@clisp.org>
18500
18501         canonicalize: Move AC_LIBOBJ invocations to module description.
18502         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
18503         AC_LIBOBJ invocation.
18504         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
18505
18506 2011-05-23  Bruno Haible  <bruno@clisp.org>
18507
18508         canon-host: Move AC_LIBOBJ invocations to module description.
18509         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
18510         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
18511         instead of gl_CANON_HOST.
18512         (Makefile.am): Augment lib_SOURCES.
18513
18514 2011-05-23  Bruno Haible  <bruno@clisp.org>
18515
18516         backupfile: Move AC_LIBOBJ invocations to module description.
18517         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
18518         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
18519
18520 2011-05-23  Bruno Haible  <bruno@clisp.org>
18521
18522         argmatch: Move AC_LIBOBJ invocations to module description.
18523         * m4/argmatch.m4: Remove file.
18524         * modules/argmatch (Files): Remove it.
18525         (configure.ac): Remove gl_ARGMATCH call.
18526         (Makefile.am): Augment lib_SOURCES.
18527
18528 2011-05-23  Bruno Haible  <bruno@clisp.org>
18529
18530         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
18531         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
18532         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
18533
18534 2011-05-23  Bruno Haible  <bruno@clisp.org>
18535
18536         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
18537         * m4/arcfour.m4: Remove file.
18538         * modules/crypto/arcfour (Files): Remove it.
18539         (configure.ac): Remove gl_ARCFOUR call.
18540         (Makefile.am): Augment lib_SOURCES.
18541
18542 2011-05-22  Bruno Haible  <bruno@clisp.org>
18543
18544         write: Move AC_LIBOBJ invocations to module description.
18545         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
18546         * modules/write (configure.ac): ... to here.
18547
18548 2011-05-22  Bruno Haible  <bruno@clisp.org>
18549
18550         wmemset: Move AC_LIBOBJ invocations to module description.
18551         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
18552         here...
18553         * modules/wmemset (configure.ac): ... to here.
18554
18555 2011-05-22  Bruno Haible  <bruno@clisp.org>
18556
18557         wmemmove: Move AC_LIBOBJ invocations to module description.
18558         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
18559         here...
18560         * modules/wmemmove (configure.ac): ... to here.
18561
18562 2011-05-22  Bruno Haible  <bruno@clisp.org>
18563
18564         wmemcpy: Move AC_LIBOBJ invocations to module description.
18565         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
18566         here...
18567         * modules/wmemcpy (configure.ac): ... to here.
18568
18569 2011-05-22  Bruno Haible  <bruno@clisp.org>
18570
18571         wmemcmp: Move AC_LIBOBJ invocations to module description.
18572         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
18573         here...
18574         * modules/wmemcmp (configure.ac): ... to here.
18575
18576 2011-05-22  Bruno Haible  <bruno@clisp.org>
18577
18578         wmemchr: Move AC_LIBOBJ invocations to module description.
18579         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
18580         here...
18581         * modules/wmemchr (configure.ac): ... to here.
18582
18583 2011-05-22  Bruno Haible  <bruno@clisp.org>
18584
18585         wcswidth: Move AC_LIBOBJ invocations to module description.
18586         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
18587         here...
18588         * modules/wcswidth (configure.ac): ... to here.
18589
18590 2011-05-22  Bruno Haible  <bruno@clisp.org>
18591
18592         wcwidth: Respect rules for use of AC_LIBOBJ.
18593         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
18594         invocation from here...
18595         * modules/wcwidth (configure.ac): ... to here.
18596         (Depends-on): Update conditions.
18597
18598 2011-05-22  Bruno Haible  <bruno@clisp.org>
18599
18600         wctype: Move AC_LIBOBJ invocations to module description.
18601         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
18602         invocation from here...
18603         * modules/wctype (configure.ac): ... to here.
18604         (Depends-on): Update conditions.
18605
18606 2011-05-22  Bruno Haible  <bruno@clisp.org>
18607
18608         wctrans: Move AC_LIBOBJ invocations to module description.
18609         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
18610         invocation from here...
18611         * modules/wctrans (configure.ac): ... to here.
18612
18613 2011-05-22  Bruno Haible  <bruno@clisp.org>
18614
18615         wctomb: Move AC_LIBOBJ invocations to module description.
18616         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
18617         invocations from here...
18618         * modules/wctomb (configure.ac): ... to here.
18619
18620 2011-05-22  Bruno Haible  <bruno@clisp.org>
18621
18622         wctob: Move AC_LIBOBJ invocations to module description.
18623         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
18624         gl_PREREQ_WCTOB invocations from here...
18625         * modules/wctob (configure.ac): ... to here.
18626         (Depends-on): Update conditions.
18627
18628 2011-05-22  Bruno Haible  <bruno@clisp.org>
18629
18630         wcsxfrm: Move AC_LIBOBJ invocations to module description.
18631         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
18632         here...
18633         * modules/wcsxfrm (configure.ac): ... to here.
18634
18635 2011-05-22  Bruno Haible  <bruno@clisp.org>
18636
18637         wcstok: Move AC_LIBOBJ invocations to module description.
18638         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
18639         * modules/wcstok (configure.ac): ... to here.
18640
18641 2011-05-22  Bruno Haible  <bruno@clisp.org>
18642
18643         wcsstr: Move AC_LIBOBJ invocations to module description.
18644         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
18645         * modules/wcsstr (configure.ac): ... to here.
18646
18647 2011-05-22  Bruno Haible  <bruno@clisp.org>
18648
18649         wcsspn: Move AC_LIBOBJ invocations to module description.
18650         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
18651         * modules/wcsspn (configure.ac): ... to here.
18652
18653 2011-05-22  Bruno Haible  <bruno@clisp.org>
18654
18655         wcsrtombs: Move AC_LIBOBJ invocations to module description.
18656         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
18657         gl_PREREQ_WCSRTOMBS invocations from here...
18658         * modules/wcsrtombs (configure.ac): ... to here.
18659
18660 2011-05-22  Bruno Haible  <bruno@clisp.org>
18661
18662         wcsrchr: Move AC_LIBOBJ invocations to module description.
18663         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
18664         here...
18665         * modules/wcsrchr (configure.ac): ... to here.
18666
18667 2011-05-22  Bruno Haible  <bruno@clisp.org>
18668
18669         wcspbrk: Move AC_LIBOBJ invocations to module description.
18670         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
18671         here...
18672         * modules/wcspbrk (configure.ac): ... to here.
18673
18674 2011-05-22  Bruno Haible  <bruno@clisp.org>
18675
18676         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
18677         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
18678         gl_PREREQ_WCSNRTOMBS invocations from here...
18679         * modules/wcsnrtombs (configure.ac): ... to here.
18680
18681 2011-05-22  Bruno Haible  <bruno@clisp.org>
18682
18683         wcsnlen: Move AC_LIBOBJ invocations to module description.
18684         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
18685         here...
18686         * modules/wcsnlen (configure.ac): ... to here.
18687
18688 2011-05-22  Bruno Haible  <bruno@clisp.org>
18689
18690         wcsncpy: Move AC_LIBOBJ invocations to module description.
18691         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
18692         here...
18693         * modules/wcsncpy (configure.ac): ... to here.
18694
18695 2011-05-22  Bruno Haible  <bruno@clisp.org>
18696
18697         wcsncmp: Move AC_LIBOBJ invocations to module description.
18698         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
18699         here...
18700         * modules/wcsncmp (configure.ac): ... to here.
18701
18702 2011-05-22  Bruno Haible  <bruno@clisp.org>
18703
18704         wcsncat: Move AC_LIBOBJ invocations to module description.
18705         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
18706         here...
18707         * modules/wcsncat (configure.ac): ... to here.
18708
18709 2011-05-22  Bruno Haible  <bruno@clisp.org>
18710
18711         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
18712         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
18713         from here...
18714         * modules/wcsncasecmp (configure.ac): ... to here.
18715
18716 2011-05-22  Bruno Haible  <bruno@clisp.org>
18717
18718         wcslen: Move AC_LIBOBJ invocations to module description.
18719         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
18720         * modules/wcslen (configure.ac): ... to here.
18721
18722 2011-05-22  Bruno Haible  <bruno@clisp.org>
18723
18724         wcsdup: Move AC_LIBOBJ invocations to module description.
18725         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
18726         * modules/wcsdup (configure.ac): ... to here.
18727
18728 2011-05-22  Bruno Haible  <bruno@clisp.org>
18729
18730         wcscspn: Move AC_LIBOBJ invocations to module description.
18731         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
18732         here...
18733         * modules/wcscspn (configure.ac): ... to here.
18734
18735 2011-05-22  Bruno Haible  <bruno@clisp.org>
18736
18737         wcscpy: Move AC_LIBOBJ invocations to module description.
18738         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
18739         * modules/wcscpy (configure.ac): ... to here.
18740
18741 2011-05-22  Bruno Haible  <bruno@clisp.org>
18742
18743         wcscoll: Move AC_LIBOBJ invocations to module description.
18744         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
18745         here...
18746         * modules/wcscoll (configure.ac): ... to here.
18747
18748 2011-05-22  Bruno Haible  <bruno@clisp.org>
18749
18750         wcscmp: Move AC_LIBOBJ invocations to module description.
18751         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
18752         * modules/wcscmp (configure.ac): ... to here.
18753
18754 2011-05-22  Bruno Haible  <bruno@clisp.org>
18755
18756         wcschr: Move AC_LIBOBJ invocations to module description.
18757         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
18758         * modules/wcschr (configure.ac): ... to here.
18759
18760 2011-05-22  Bruno Haible  <bruno@clisp.org>
18761
18762         wcscat: Move AC_LIBOBJ invocations to module description.
18763         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
18764         * modules/wcscat (configure.ac): ... to here.
18765
18766 2011-05-22  Bruno Haible  <bruno@clisp.org>
18767
18768         wcscasecmp: Move AC_LIBOBJ invocations to module description.
18769         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
18770         here...
18771         * modules/wcscasecmp (configure.ac): ... to here.
18772
18773 2011-05-22  Bruno Haible  <bruno@clisp.org>
18774
18775         wcrtomb: Move AC_LIBOBJ invocations to module description.
18776         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
18777         invocations from here...
18778         * modules/wcrtomb (configure.ac): ... to here.
18779
18780 2011-05-22  Bruno Haible  <bruno@clisp.org>
18781
18782         wcpncpy: Move AC_LIBOBJ invocations to module description.
18783         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
18784         here...
18785         * modules/wcpncpy (configure.ac): ... to here.
18786
18787 2011-05-22  Bruno Haible  <bruno@clisp.org>
18788
18789         wcpcpy: Move AC_LIBOBJ invocations to module description.
18790         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
18791         * modules/wcpcpy (configure.ac): ... to here.
18792
18793 2011-05-22  Bruno Haible  <bruno@clisp.org>
18794
18795         waitpid: Move AC_LIBOBJ invocations to module description.
18796         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
18797         invocation from here...
18798         * modules/waitpid (configure.ac): ... to here.
18799
18800 2011-05-22  Bruno Haible  <bruno@clisp.org>
18801
18802         utimensat: Move AC_LIBOBJ invocations to module description.
18803         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
18804         here...
18805         * modules/utimensat (configure.ac): ... to here.
18806
18807 2011-05-22  Bruno Haible  <bruno@clisp.org>
18808
18809         usleep: Move AC_LIBOBJ invocations to module description.
18810         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
18811         here...
18812         * modules/usleep (configure.ac): ... to here.
18813
18814 2011-05-22  Bruno Haible  <bruno@clisp.org>
18815
18816         unlockpt: Move AC_LIBOBJ invocations to module description.
18817         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
18818         gl_PREREQ_UNLOCKPT invocations from here...
18819         * modules/unlockpt (configure.ac): ... to here.
18820
18821 2011-05-22  Bruno Haible  <bruno@clisp.org>
18822
18823         unlink: Respect rules for use of AC_LIBOBJ.
18824         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
18825         * modules/unlink (configure.ac): ... to here.
18826
18827 2011-05-22  Bruno Haible  <bruno@clisp.org>
18828
18829         uname: Move AC_LIBOBJ invocations to module description.
18830         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
18831         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
18832         here...
18833         * modules/uname (configure.ac): ... to here.
18834
18835 2011-05-22  Bruno Haible  <bruno@clisp.org>
18836
18837         ttyname_r: Move AC_LIBOBJ invocations to module description.
18838         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
18839         gl_PREREQ_TTYNAME_R invocations from here...
18840         * modules/ttyname_r (configure.ac): ... to here.
18841
18842 2011-05-22  Bruno Haible  <bruno@clisp.org>
18843
18844         tsearch: Move AC_LIBOBJ invocations to module description.
18845         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
18846         invocations from here...
18847         * modules/tsearch (configure.ac): ... to here.
18848
18849 2011-05-22  Bruno Haible  <bruno@clisp.org>
18850
18851         towctrans: Move AC_LIBOBJ invocations to module description.
18852         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
18853         AC_LIBOBJ invocation from here...
18854         * modules/towctrans (configure.ac): ... to here.
18855
18856 2011-05-22  Bruno Haible  <bruno@clisp.org>
18857
18858         tmpfile: Move AC_LIBOBJ invocations to module description.
18859         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
18860         invocations from here...
18861         * modules/tmpfile (configure.ac): ... to here.
18862
18863 2011-05-22  Bruno Haible  <bruno@clisp.org>
18864
18865         times: Move AC_LIBOBJ invocations to module description.
18866         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
18867         * modules/times (configure.ac): ... to here.
18868
18869 2011-05-22  Bruno Haible  <bruno@clisp.org>
18870
18871         time_r: Move AC_LIBOBJ invocations to module description.
18872         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
18873         invocations from here...
18874         * modules/time_r (configure.ac): ... to here.
18875
18876 2011-05-22  Bruno Haible  <bruno@clisp.org>
18877
18878         timegm: Move AC_LIBOBJ invocations to module description.
18879         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
18880         invocations from here...
18881         * modules/timegm (configure.ac): ... to here.
18882
18883 2011-05-22  Bruno Haible  <bruno@clisp.org>
18884
18885         tcgetsid: Move AC_LIBOBJ invocations to module description.
18886         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
18887         and gl_PREREQ_TCGETSID invocations from here...
18888         * modules/tcgetsid (configure.ac): ... to here.
18889         (Depends-on): Update conditions.
18890
18891 2011-05-22  Bruno Haible  <bruno@clisp.org>
18892
18893         symlinkat: Move AC_LIBOBJ invocations to module description.
18894         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
18895         here...
18896         * modules/symlinkat (configure.ac): ... to here.
18897
18898 2011-05-22  Bruno Haible  <bruno@clisp.org>
18899
18900         symlink: Move AC_LIBOBJ invocations to module description.
18901         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
18902         here...
18903         * modules/symlink (configure.ac): ... to here.
18904
18905 2011-05-22  Bruno Haible  <bruno@clisp.org>
18906
18907         strverscmp: Move AC_LIBOBJ invocations to module description.
18908         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
18909         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
18910         from here...
18911         * modules/strverscmp (configure.ac): ... to here.
18912
18913 2011-05-22  Bruno Haible  <bruno@clisp.org>
18914
18915         strtok_r: Move AC_LIBOBJ invocations to module description.
18916         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
18917         and gl_PREREQ_STRTOK_R invocations from here...
18918         * modules/strtok_r (configure.ac): ... to here.
18919         (Depends-on): Update conditions.
18920
18921 2011-05-22  Bruno Haible  <bruno@clisp.org>
18922
18923         strtoumax: Move AC_LIBOBJ invocations to module description.
18924         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
18925         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
18926         from here...
18927         * modules/strtoumax (configure.ac): ... to here.
18928
18929 2011-05-22  Bruno Haible  <bruno@clisp.org>
18930
18931         strtoimax: Move AC_LIBOBJ invocations to module description.
18932         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
18933         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
18934         from here...
18935         * modules/strtoimax (configure.ac): ... to here.
18936
18937 2011-05-22  Bruno Haible  <bruno@clisp.org>
18938
18939         strtoull: Move AC_LIBOBJ invocations to module description.
18940         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
18941         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
18942         from here...
18943         * modules/strtoull (configure.ac): ... to here.
18944
18945 2011-05-22  Bruno Haible  <bruno@clisp.org>
18946
18947         strtoll: Move AC_LIBOBJ invocations to module description.
18948         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
18949         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
18950         here...
18951         * modules/strtoll (configure.ac): ... to here.
18952
18953 2011-05-22  Bruno Haible  <bruno@clisp.org>
18954
18955         strtoul: Move AC_LIBOBJ invocations to module description.
18956         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
18957         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
18958         * modules/strtoul (configure.ac): ... to here.
18959
18960 2011-05-22  Bruno Haible  <bruno@clisp.org>
18961
18962         strtol: Move AC_LIBOBJ invocations to module description.
18963         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
18964         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
18965         * modules/strtol (configure.ac): ... to here.
18966
18967 2011-05-22  Bruno Haible  <bruno@clisp.org>
18968
18969         strtod: Move AC_LIBOBJ invocations to module description.
18970         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
18971         invocations from here...
18972         * modules/strtod (configure.ac): ... to here.
18973
18974 2011-05-22  Bruno Haible  <bruno@clisp.org>
18975
18976         strstr*: Move AC_LIBOBJ invocations to module description.
18977         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
18978         invocations from here...
18979         * modules/strstr-simple (configure.ac): ... to here.
18980         * modules/strstr (configure.ac): ... and here.
18981
18982 2011-05-22  Bruno Haible  <bruno@clisp.org>
18983
18984         strsignal: Move AC_LIBOBJ invocations to module description.
18985         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
18986         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
18987         * modules/strsignal (configure.ac): ... to here.
18988         (Depends-on): Update conditions.
18989
18990 2011-05-22  Bruno Haible  <bruno@clisp.org>
18991
18992         strsep: Move AC_LIBOBJ invocations to module description.
18993         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
18994         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
18995         here...
18996         * modules/strsep (configure.ac): ... to here.
18997
18998 2011-05-22  Bruno Haible  <bruno@clisp.org>
18999
19000         strptime: Move AC_LIBOBJ invocations to module description.
19001         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
19002         gl_PREREQ_STRPTIME invocations from here...
19003         * modules/strptime (configure.ac): ... to here.
19004
19005 2011-05-22  Bruno Haible  <bruno@clisp.org>
19006
19007         strpbrk: Move AC_LIBOBJ invocations to module description.
19008         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
19009         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
19010         here...
19011         * modules/strpbrk (configure.ac): ... to here.
19012
19013 2011-05-22  Bruno Haible  <bruno@clisp.org>
19014
19015         strnlen: Move AC_LIBOBJ invocations to module description.
19016         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
19017         invocations from here...
19018         * modules/strnlen (configure.ac): ... to here.
19019
19020 2011-05-22  Bruno Haible  <bruno@clisp.org>
19021
19022         strndup: Move AC_LIBOBJ invocations to module description.
19023         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
19024         invocations from here...
19025         * modules/strndup (configure.ac): ... to here.
19026         (Depends-on): Update conditions.
19027
19028 2011-05-22  Bruno Haible  <bruno@clisp.org>
19029
19030         strncat: Move AC_LIBOBJ invocations to module description.
19031         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
19032         invocations from here...
19033         * modules/strncat (configure.ac): ... to here.
19034
19035 2011-05-22  Bruno Haible  <bruno@clisp.org>
19036
19037         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
19038         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
19039         invocations from here...
19040         * modules/strdup (configure.ac): ... to here.
19041         * modules/strdup-posix (configure.ac): ... and here.
19042
19043 2011-05-22  Bruno Haible  <bruno@clisp.org>
19044
19045         strcspn: Move AC_LIBOBJ invocations to module description.
19046         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
19047         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
19048         here...
19049         * modules/strcspn (configure.ac): ... to here.
19050
19051 2011-05-22  Bruno Haible  <bruno@clisp.org>
19052
19053         strchrnul: Move AC_LIBOBJ invocations to module description.
19054         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
19055         gl_PREREQ_STRCHRNUL invocations from here...
19056         * modules/strchrnul (configure.ac): ... to here.
19057
19058 2011-05-22  Bruno Haible  <bruno@clisp.org>
19059
19060         strcasestr*: Move AC_LIBOBJ invocations to module description.
19061         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
19062         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
19063         * modules/strcasestr-simple (configure.ac): ... to here.
19064         * modules/strcasestr (configure.ac): ... and here.
19065
19066 2011-05-22  Bruno Haible  <bruno@clisp.org>
19067
19068         strcase: Move AC_LIBOBJ invocations to module description.
19069         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
19070         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
19071         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
19072         gl_PREREQ_STRNCASECMP invocations from here...
19073         * modules/strcase (configure.ac): ... to here.
19074
19075 2011-05-22  Bruno Haible  <bruno@clisp.org>
19076
19077         stpncpy: Move AC_LIBOBJ invocations to module description.
19078         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
19079         here...
19080         * modules/stpncpy (configure.ac): ... to here.
19081
19082 2011-05-22  Bruno Haible  <bruno@clisp.org>
19083
19084         stpcpy: Move AC_LIBOBJ invocations to module description.
19085         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
19086         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
19087         here...
19088         * modules/stpcpy (configure.ac): ... to here.
19089
19090 2011-05-21  Bruno Haible  <bruno@clisp.org>
19091
19092         stat: Move AC_LIBOBJ invocations to module description.
19093         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
19094         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
19095         here...
19096         * modules/stat (configure.ac): ... to here.
19097
19098 2011-05-21  Bruno Haible  <bruno@clisp.org>
19099
19100         sleep: Move AC_LIBOBJ invocations to module description.
19101         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
19102         * modules/sleep (configure.ac): ... to here.
19103
19104 2011-05-21  Bruno Haible  <bruno@clisp.org>
19105
19106         signbit: Move AC_LIBOBJ invocations to module description.
19107         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
19108         * modules/signbit (configure.ac): ... to here.
19109
19110 2011-05-21  Bruno Haible  <bruno@clisp.org>
19111
19112         sigprocmask: Move AC_LIBOBJ invocations to module description.
19113         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
19114         gl_PREREQ_SIGPROMASK invocations from here...
19115         * modules/sigprocmask (configure.ac): ... to here.
19116
19117 2011-05-21  Bruno Haible  <bruno@clisp.org>
19118
19119         sigaction: Move AC_LIBOBJ invocations to module description.
19120         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
19121         gl_PREREQ_SIGACTION invocations from here...
19122         * modules/sigaction (configure.ac): ... to here.
19123
19124 2011-05-21  Bruno Haible  <bruno@clisp.org>
19125
19126         sig2str: Move AC_LIBOBJ invocations to module description.
19127         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
19128         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
19129         here...
19130         * modules/sig2str (configure.ac): ... to here.
19131
19132 2011-05-21  Bruno Haible  <bruno@clisp.org>
19133
19134         setlocale: Move AC_LIBOBJ invocations to module description.
19135         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
19136         gl_PREREQ_SETLOCALE invocations from here...
19137         * modules/setlocale (configure.ac): ... to here.
19138
19139 2011-05-21  Bruno Haible  <bruno@clisp.org>
19140
19141         unsetenv: Move AC_LIBOBJ invocations to module description.
19142         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
19143         and gl_PREREQ_UNSETENV invocations from here...
19144         * modules/unsetenv (configure.ac): ... to here.
19145         (Depends-on): Update.
19146
19147 2011-05-21  Bruno Haible  <bruno@clisp.org>
19148
19149         setenv: Move AC_LIBOBJ invocations to module description.
19150         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
19151         here...
19152         * modules/setenv (configure.ac): ... to here.
19153
19154 2011-05-21  Bruno Haible  <bruno@clisp.org>
19155
19156         selinux-h: Move AC_LIBOBJ invocations to module description.
19157         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
19158         AC_LIBOBJ invocation from here...
19159         * modules/selinux-h (configure.ac): ... to here.
19160
19161 2011-05-21  Bruno Haible  <bruno@clisp.org>
19162
19163         select: Respect rules for use of AC_LIBOBJ.
19164         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
19165         here...
19166         * modules/select (configure.ac): ... to here.
19167
19168 2011-05-21  Bruno Haible  <bruno@clisp.org>
19169
19170         scandir: Move AC_LIBOBJ invocations to module description.
19171         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
19172         invocations from here...
19173         * modules/scandir (configure.ac): ... to here.
19174
19175 2011-05-21  Bruno Haible  <bruno@clisp.org>
19176
19177         rpmatch: Move AC_LIBOBJ invocations to module description.
19178         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
19179         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
19180         here...
19181         * modules/rpmatch (configure.ac): ... to here.
19182
19183 2011-05-21  Bruno Haible  <bruno@clisp.org>
19184
19185         rmdir: Respect rules for use of AC_LIBOBJ.
19186         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
19187         * modules/rmdir (configure.ac): ... to here.
19188
19189 2011-05-21  Bruno Haible  <bruno@clisp.org>
19190
19191         renameat: Move AC_LIBOBJ invocations to module description.
19192         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
19193         here...
19194         * modules/renameat (configure.ac): ... to here.
19195
19196 2011-05-21  Bruno Haible  <bruno@clisp.org>
19197
19198         rename: Respect rules for use of AC_LIBOBJ.
19199         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
19200         here...
19201         * modules/rename (configure.ac): ... to here.
19202
19203 2011-05-21  Bruno Haible  <bruno@clisp.org>
19204
19205         remove: Move AC_LIBOBJ invocations to module description.
19206         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
19207         here...
19208         * modules/remove (configure.ac): ... to here.
19209
19210 2011-05-21  Bruno Haible  <bruno@clisp.org>
19211
19212         relocatable-lib: Move AC_LIBOBJ invocations to module description.
19213         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
19214         macro.
19215         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
19216         * modules/relocatable-lib (configure.ac): ... to here.
19217         * modules/relocatable-prog-wrapper (configure.ac): Invoke
19218         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
19219
19220 2011-05-21  Bruno Haible  <bruno@clisp.org>
19221
19222         relocatable-prog: Move AC_LIBOBJ invocations to module description.
19223         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
19224         here...
19225         * modules/relocatable-prog (configure.ac): ... to here.
19226
19227 2011-05-21  Bruno Haible  <bruno@clisp.org>
19228
19229         regex: Move AC_LIBOBJ invocations to module description.
19230         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
19231         invocations from here...
19232         * modules/regex (configure.ac): ... to here.
19233
19234 2011-05-21  Bruno Haible  <bruno@clisp.org>
19235
19236         realloc-*: Move AC_LIBOBJ invocations to module description.
19237         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
19238         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
19239         AC_LIBOBJ invocations from here...
19240         * modules/realloc-gnu (configure.ac): ... to here.
19241         * modules/realloc-posix (configure.ac): ... and here.
19242
19243 2011-05-21  Bruno Haible  <bruno@clisp.org>
19244
19245         readutmp: Move AC_LIBOBJ invocations to module description.
19246         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
19247         * modules/readutmp (configure.ac): ... to here.
19248
19249 2011-05-21  Bruno Haible  <bruno@clisp.org>
19250
19251         readlinkat: Move AC_LIBOBJ invocations to module description.
19252         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
19253         here...
19254         * modules/readlinkat (configure.ac): ... to here.
19255
19256 2011-05-21  Bruno Haible  <bruno@clisp.org>
19257
19258         readlink: Move AC_LIBOBJ invocations to module description.
19259         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
19260         gl_PREREQ_READLINK invocations from here...
19261         * modules/readlink (configure.ac): ... to here.
19262
19263 2011-05-21  Bruno Haible  <bruno@clisp.org>
19264
19265         readline: Move AC_LIBOBJ invocations to module description.
19266         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
19267         gl_PREREQ_READLINE invocations from here...
19268         * modules/readline (configure.ac): ... to here.
19269
19270 2011-05-21  Bruno Haible  <bruno@clisp.org>
19271
19272         read: Move AC_LIBOBJ invocations to module description.
19273         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
19274         * modules/read (configure.ac): ... to here.
19275
19276 2011-05-21  Bruno Haible  <bruno@clisp.org>
19277
19278         rawmemchr: Move AC_LIBOBJ invocations to module description.
19279         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
19280         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
19281         from here...
19282         * modules/rawmemchr (configure.ac): ... to here.
19283
19284 2011-05-21  Bruno Haible  <bruno@clisp.org>
19285
19286         random_r: Move AC_LIBOBJ invocations to module description.
19287         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
19288         gl_PREREQ_RANDOM_R invocations from here...
19289         * modules/random_r (configure.ac): ... to here.
19290
19291 2011-05-21  Bruno Haible  <bruno@clisp.org>
19292
19293         pwrite: Move AC_LIBOBJ invocations to module description.
19294         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
19295         * modules/pwrite (configure.ac): ... to here.
19296
19297 2011-05-21  Bruno Haible  <bruno@clisp.org>
19298
19299         putenv: Move AC_LIBOBJ invocations to module description.
19300         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
19301         * modules/putenv (configure.ac): ... to here.
19302
19303 2011-05-21  Bruno Haible  <bruno@clisp.org>
19304
19305         login_tty: Move AC_LIBOBJ invocations to module description.
19306         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
19307         * modules/login_tty (configure.ac): ... to here.
19308
19309 2011-05-21  Bruno Haible  <bruno@clisp.org>
19310
19311         openpty: Move AC_LIBOBJ invocations to module description.
19312         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
19313         * modules/openpty (configure.ac): ... to here.
19314
19315 2011-05-21  Bruno Haible  <bruno@clisp.org>
19316
19317         forkpty: Move AC_LIBOBJ invocations to module description.
19318         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
19319         * modules/forkpty (configure.ac): ... to here.
19320
19321 2011-05-21  Bruno Haible  <bruno@clisp.org>
19322
19323         ptsname: Move AC_LIBOBJ invocations to module description.
19324         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
19325         invocations from here...
19326         * modules/ptsname (configure.ac): ... to here.
19327
19328 2011-05-21  Bruno Haible  <bruno@clisp.org>
19329
19330         pread: Move AC_LIBOBJ invocations to module description.
19331         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
19332         * modules/pread (configure.ac): ... to here.
19333
19334 2011-05-21  Bruno Haible  <bruno@clisp.org>
19335
19336         posix_spawn*: Move AC_LIBOBJ invocations to module description.
19337         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
19338         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
19339         * modules/posix_spawn (configure.ac): ... to here.
19340         * modules/posix_spawnp (configure.ac): ... and here.
19341
19342 2011-05-21  Bruno Haible  <bruno@clisp.org>
19343
19344         popen: Move AC_LIBOBJ invocations to module description.
19345         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
19346         invocations from here...
19347         * modules/popen (configure.ac): ... to here.
19348
19349 2011-05-21  Bruno Haible  <bruno@clisp.org>
19350
19351         poll: Move AC_LIBOBJ invocations to module description.
19352         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
19353         invocations from here...
19354         * modules/poll (configure.ac): ... to here.
19355
19356 2011-05-21  Bruno Haible  <bruno@clisp.org>
19357
19358         pipe-posix: Move AC_LIBOBJ invocations to module description.
19359         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
19360         * modules/pipe-posix (configure.ac): ... to here.
19361
19362 2011-05-21  Bruno Haible  <bruno@clisp.org>
19363
19364         openat: Respect rules for use of AC_LIBOBJ.
19365         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
19366         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
19367         * modules/openat (configure.ac): ... to here.
19368
19369 2011-05-21  Bruno Haible  <bruno@clisp.org>
19370
19371         obstack-printf*: Move AC_LIBOBJ invocations to module description.
19372         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
19373         invocation from here...
19374         * modules/obstack-printf (configure.ac): ... to here.
19375         * modules/obstack-printf-posix (configure.ac): ... and here.
19376
19377 2011-05-21  Bruno Haible  <bruno@clisp.org>
19378
19379         nl_langinfo: Move AC_LIBOBJ invocations to module description.
19380         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
19381         from here...
19382         * modules/nl_langinfo (configure.ac): ... to here.
19383
19384 2011-05-21  Bruno Haible  <bruno@clisp.org>
19385
19386         nanosleep: Move AC_LIBOBJ invocations to module description.
19387         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
19388         gl_PREREQ_NANOSLEEP invocations from here...
19389         * modules/nanosleep (configure.ac): ... to here.
19390
19391 2011-05-21  Bruno Haible  <bruno@clisp.org>
19392
19393         mountlist: Move AC_LIBOBJ invocations to module description.
19394         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
19395         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
19396         * modules/mountlist (configure.ac): ... to here.
19397
19398 2011-05-21  Bruno Haible  <bruno@clisp.org>
19399
19400         mktime: Respect rules for use of AC_LIBOBJ.
19401         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
19402         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
19403         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
19404         (gl_FUNC_MKTIME_INTERNAL): ... and here...
19405         * modules/mktime (configure.ac): ... to here.
19406         * modules/mktime-internal (configure.ac): ... and here.
19407         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
19408
19409 2011-05-21  Bruno Haible  <bruno@clisp.org>
19410
19411         mkstemps: Move AC_LIBOBJ invocations to module description.
19412         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
19413         here...
19414         * modules/mkstemps (configure.ac): ... to here.
19415
19416 2011-05-21  Bruno Haible  <bruno@clisp.org>
19417
19418         mkstemp: Move AC_LIBOBJ invocations to module description.
19419         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
19420         gl_PREREQ_MKSTEMP invocations from here...
19421         * modules/mkstemp (configure.ac): ... to here.
19422
19423 2011-05-21  Bruno Haible  <bruno@clisp.org>
19424
19425         mkostemps: Move AC_LIBOBJ invocations to module description.
19426         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
19427         here...
19428         * modules/mkostemps (configure.ac): ... to here.
19429
19430 2011-05-21  Bruno Haible  <bruno@clisp.org>
19431
19432         mkostemp: Move AC_LIBOBJ invocations to module description.
19433         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
19434         gl_PREREQ_MKOSTEMP invocations from here...
19435         * modules/mkostemp (configure.ac): ... to here.
19436
19437 2011-05-21  Bruno Haible  <bruno@clisp.org>
19438
19439         mknod: Move AC_LIBOBJ invocations to module description.
19440         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
19441         * modules/mknod (configure.ac): ... to here.
19442
19443 2011-05-21  Bruno Haible  <bruno@clisp.org>
19444
19445         mkfifoat: Move AC_LIBOBJ invocations to module description.
19446         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
19447         here...
19448         * modules/mkfifoat (configure.ac): ... to here.
19449
19450 2011-05-21  Bruno Haible  <bruno@clisp.org>
19451
19452         mkfifo: Respect rules for use of AC_LIBOBJ.
19453         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
19454         here...
19455         * modules/mkfifo (configure.ac): ... to here.
19456
19457 2011-05-21  Bruno Haible  <bruno@clisp.org>
19458
19459         mkdtemp: Move AC_LIBOBJ invocations to module description.
19460         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
19461         invocations from here...
19462         * modules/mkdtemp (configure.ac): ... to here.
19463
19464 2011-05-21  Bruno Haible  <bruno@clisp.org>
19465
19466         mkdir: Move AC_LIBOBJ invocations to module description.
19467         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
19468         * modules/mkdir (configure.ac): ... to here.
19469
19470 2011-05-21  Bruno Haible  <bruno@clisp.org>
19471
19472         memset: Move AC_LIBOBJ invocations to module description.
19473         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
19474         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
19475         here...
19476         * modules/memset (configure.ac): ... to here.
19477
19478 2011-05-21  Bruno Haible  <bruno@clisp.org>
19479
19480         memrchr: Move AC_LIBOBJ invocations to module description.
19481         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
19482         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
19483         here...
19484         * modules/memrchr (configure.ac): ... to here.
19485
19486 2011-05-21  Bruno Haible  <bruno@clisp.org>
19487
19488         mempcpy: Move AC_LIBOBJ invocations to module description.
19489         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
19490         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
19491         here...
19492         * modules/mempcpy (configure.ac): ... to here.
19493
19494 2011-05-21  Bruno Haible  <bruno@clisp.org>
19495
19496         memmove: Move AC_LIBOBJ invocations to module description.
19497         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
19498         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
19499         here...
19500         * modules/memmove (configure.ac): ... to here.
19501
19502 2011-05-21  Bruno Haible  <bruno@clisp.org>
19503
19504         memmem*: Move AC_LIBOBJ invocations to module description.
19505         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
19506         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
19507         here...
19508         (gl_FUNC_MEMMEM): ... and here...
19509         * modules/memmem-simple (configure.ac): ... to here.
19510         * modules/memmem (configure.ac): ... and here.
19511
19512 2011-05-21  Bruno Haible  <bruno@clisp.org>
19513
19514         memcpy: Move AC_LIBOBJ invocations to module description.
19515         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
19516         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
19517         here...
19518         * modules/memcpy (configure.ac): ... to here.
19519
19520 2011-05-21  Bruno Haible  <bruno@clisp.org>
19521
19522         memcmp: Simplify autoconf macro.
19523         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
19524         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
19525         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
19526
19527 2011-05-21  Bruno Haible  <bruno@clisp.org>
19528
19529         memcmp: Move AC_LIBOBJ invocations to module description.
19530         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
19531         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
19532         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
19533         * modules/memcmp (configure.ac): ... to here.
19534         (Depends-on): Update conditions.
19535
19536 2011-05-21  Bruno Haible  <bruno@clisp.org>
19537
19538         memchr: Respect rules for use of AC_LIBOBJ.
19539         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
19540         invocations from here...
19541         * modules/memchr (configure.ac): ... to here.
19542
19543 2011-05-21  Bruno Haible  <bruno@clisp.org>
19544
19545         mbtowc: Move AC_LIBOBJ invocations to module description.
19546         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
19547         invocations from here...
19548         * modules/mbtowc (configure.ac): ... to here.
19549
19550 2011-05-21  Bruno Haible  <bruno@clisp.org>
19551
19552         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
19553         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
19554         gl_PREREQ_MBSRTOWCS invocations from here...
19555         * modules/mbsrtowcs (configure.ac): ... to here.
19556
19557 2011-05-21  Bruno Haible  <bruno@clisp.org>
19558
19559         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
19560         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
19561         gl_PREREQ_MBSNRTOWCS invocations from here...
19562         * modules/mbsnrtowcs (configure.ac): ... to here.
19563
19564 2011-05-21  Bruno Haible  <bruno@clisp.org>
19565
19566         mbsinit: Move AC_LIBOBJ invocations to module description.
19567         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
19568         invocations from here...
19569         * modules/mbsinit (configure.ac): ... to here.
19570
19571 2011-05-21  Bruno Haible  <bruno@clisp.org>
19572
19573         mbrlen: Move AC_LIBOBJ invocations to module description.
19574         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
19575         invocations from here...
19576         * modules/mbrlen (configure.ac): ... to here.
19577
19578 2011-05-21  Bruno Haible  <bruno@clisp.org>
19579
19580         mbrtowc: Respect rules for use of AC_LIBOBJ.
19581         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
19582         invocations from here...
19583         * modules/mbrtowc (configure.ac): ... to here.
19584
19585 2011-05-21  Bruno Haible  <bruno@clisp.org>
19586
19587         malloc-*: Move AC_LIBOBJ invocations to module description.
19588         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
19589         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
19590         AC_LIBOBJ invocations from here...
19591         * modules/malloc-gnu (configure.ac): ... to here.
19592         * modules/malloc-posix (configure.ac): ... and here.
19593
19594 2011-05-21  Bruno Haible  <bruno@clisp.org>
19595
19596         lstat, openat: Respect rules for use of AC_LIBOBJ.
19597         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
19598         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
19599         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
19600         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
19601         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
19602         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
19603         here.
19604         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
19605
19606 2011-05-21  Bruno Haible  <bruno@clisp.org>
19607
19608         lseek: Move AC_LIBOBJ invocations to module description.
19609         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
19610         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
19611         * modules/lseek (configure.ac): ... to here.
19612
19613 2011-05-21  Bruno Haible  <bruno@clisp.org>
19614
19615         linkat: Move AC_LIBOBJ invocations to module description.
19616         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
19617         here...
19618         * modules/linkat (configure.ac): ... to here.
19619
19620 2011-05-21  Bruno Haible  <bruno@clisp.org>
19621
19622         link: Respect rules for use of AC_LIBOBJ.
19623         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
19624         * modules/link (configure.ac): ... to here.
19625
19626 2011-05-21  Bruno Haible  <bruno@clisp.org>
19627
19628         lchown: Move AC_LIBOBJ invocations to module description.
19629         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
19630         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
19631         * modules/lchown (configure.ac): ... to here.
19632
19633 2011-05-21  Bruno Haible  <bruno@clisp.org>
19634
19635         iswctype: Move AC_LIBOBJ invocations to module description.
19636         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
19637         here...
19638         * modules/iswctype (configure.ac): ... to here.
19639
19640 2011-05-21  Bruno Haible  <bruno@clisp.org>
19641
19642         iswblank: Move AC_LIBOBJ invocations to module description.
19643         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
19644         here...
19645         * modules/iswblank (configure.ac): ... to here.
19646
19647 2011-05-21  Bruno Haible  <bruno@clisp.org>
19648
19649         atanl: Move AC_LIBOBJ invocations to module description.
19650         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
19651         * modules/atanl (configure.ac): ... to here.
19652
19653 2011-05-21  Bruno Haible  <bruno@clisp.org>
19654
19655         acosl: Move AC_LIBOBJ invocations to module description.
19656         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
19657         * modules/acosl (configure.ac): ... to here.
19658
19659 2011-05-21  Bruno Haible  <bruno@clisp.org>
19660
19661         asinl: Respect rules for use of AC_LIBOBJ.
19662         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
19663         * modules/asinl (configure.ac): ... to here.
19664
19665 2011-05-21  Bruno Haible  <bruno@clisp.org>
19666
19667         tanl: Move AC_LIBOBJ invocations to module description.
19668         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
19669         * modules/tanl (configure.ac): ... to here.
19670
19671 2011-05-21  Bruno Haible  <bruno@clisp.org>
19672
19673         cosl: Move AC_LIBOBJ invocations to module description.
19674         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
19675         * modules/cosl (configure.ac): ... to here.
19676
19677 2011-05-21  Bruno Haible  <bruno@clisp.org>
19678
19679         sinl: Move AC_LIBOBJ invocations to module description.
19680         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
19681         * modules/sinl (configure.ac): ... to here.
19682
19683 2011-05-21  Bruno Haible  <bruno@clisp.org>
19684
19685         logl: Move AC_LIBOBJ invocations to module description.
19686         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
19687         * modules/logl (configure.ac): ... to here.
19688
19689 2011-05-21  Bruno Haible  <bruno@clisp.org>
19690
19691         expl: Move AC_LIBOBJ invocations to module description.
19692         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
19693         * modules/expl (configure.ac): ... to here.
19694
19695 2011-05-21  Bruno Haible  <bruno@clisp.org>
19696
19697         roundl: Move AC_LIBOBJ invocations to module description.
19698         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
19699         * modules/roundl (configure.ac): ... to here.
19700
19701 2011-05-21  Bruno Haible  <bruno@clisp.org>
19702
19703         round: Move AC_LIBOBJ invocations to module description.
19704         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
19705         * modules/round (configure.ac): ... to here.
19706
19707 2011-05-21  Bruno Haible  <bruno@clisp.org>
19708
19709         roundf: Move AC_LIBOBJ invocations to module description.
19710         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
19711         * modules/roundf (configure.ac): ... to here.
19712
19713 2011-05-21  Bruno Haible  <bruno@clisp.org>
19714
19715         truncl: Move AC_LIBOBJ invocations to module description.
19716         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
19717         * modules/truncl (configure.ac): ... to here.
19718
19719 2011-05-21  Bruno Haible  <bruno@clisp.org>
19720
19721         trunc: Move AC_LIBOBJ invocations to module description.
19722         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
19723         * modules/trunc (configure.ac): ... to here.
19724
19725 2011-05-21  Bruno Haible  <bruno@clisp.org>
19726
19727         truncf: Move AC_LIBOBJ invocations to module description.
19728         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
19729         * modules/truncf (configure.ac): ... to here.
19730
19731 2011-05-21  Bruno Haible  <bruno@clisp.org>
19732
19733         ceill: Move AC_LIBOBJ invocations to module description.
19734         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
19735         * modules/ceill (configure.ac): ... to here.
19736
19737 2011-05-21  Bruno Haible  <bruno@clisp.org>
19738
19739         ceil: Move AC_LIBOBJ invocations to module description.
19740         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
19741         * modules/ceil (configure.ac): ... to here.
19742
19743 2011-05-21  Bruno Haible  <bruno@clisp.org>
19744
19745         ceilf: Move AC_LIBOBJ invocations to module description.
19746         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
19747         * modules/ceilf (configure.ac): ... to here.
19748
19749 2011-05-21  Bruno Haible  <bruno@clisp.org>
19750
19751         floorl: Respect rules for use of AC_LIBOBJ.
19752         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
19753         * modules/floorl (configure.ac): ... to here.
19754
19755 2011-05-21  Bruno Haible  <bruno@clisp.org>
19756
19757         floor: Respect rules for use of AC_LIBOBJ.
19758         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
19759         * modules/floor (configure.ac): ... to here.
19760
19761 2011-05-21  Bruno Haible  <bruno@clisp.org>
19762
19763         floorf: Move AC_LIBOBJ invocations to module description.
19764         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
19765         * modules/floorf (configure.ac): ... to here.
19766
19767 2011-05-20  Bruno Haible  <bruno@clisp.org>
19768
19769         sqrtl: Respect rules for use of AC_LIBOBJ.
19770         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
19771         * modules/sqrtl (configure.ac): ... to here.
19772
19773 2011-05-20  Bruno Haible  <bruno@clisp.org>
19774
19775         ldexpl: Respect rules for use of AC_LIBOBJ.
19776         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
19777         * modules/ldexpl (configure.ac): ... to here.
19778
19779 2011-05-20  Bruno Haible  <bruno@clisp.org>
19780
19781         frexpl*: Respect rules for use of AC_LIBOBJ.
19782         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
19783         invocation from here...
19784         * modules/frexpl (configure.ac): ... to here.
19785         * modules/frexpl-nolibm (configure.ac): ... and here.
19786
19787 2011-05-20  Bruno Haible  <bruno@clisp.org>
19788
19789         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
19790         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
19791         invocation from here...
19792         * modules/frexp (configure.ac): ... to here.
19793         * modules/frexp-nolibm (configure.ac): ... and here.
19794
19795 2011-05-20  Bruno Haible  <bruno@clisp.org>
19796
19797         isnan: Respect rules for use of AC_LIBOBJ.
19798         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
19799         invocations here.
19800         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
19801         REPLACE_ISNAN.
19802         * modules/isnand (configure.ac): Likewise.
19803         * modules/isnanl (configure.ac): Likewise.
19804
19805 2011-05-20  Bruno Haible  <bruno@clisp.org>
19806
19807         isnanl*: Respect rules for use of AC_LIBOBJ.
19808         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
19809         invocation from here...
19810         * modules/isnanl (configure.ac): ... to here.
19811         * modules/isnanl-nolibm (configure.ac): ... and here.
19812
19813 2011-05-20  Bruno Haible  <bruno@clisp.org>
19814
19815         isnand*: Move AC_LIBOBJ invocations to module description.
19816         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
19817         invocation from here...
19818         * modules/isnand (configure.ac): ... to here.
19819         * modules/isnand-nolibm (configure.ac): ... and here.
19820
19821 2011-05-20  Bruno Haible  <bruno@clisp.org>
19822
19823         isnanf*: Move AC_LIBOBJ invocations to module description.
19824         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
19825         invocation from here...
19826         * modules/isnanf (configure.ac): ... to here.
19827         * modules/isnanf-nolibm (configure.ac): ... and here.
19828
19829 2011-05-20  Bruno Haible  <bruno@clisp.org>
19830
19831         isnan*: Separate the AC_LIBOBJ invocations.
19832         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
19833         AC_LIBOBJ invocation.
19834         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
19835         here.
19836         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
19837         AC_LIBOBJ invocation.
19838         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
19839         here.
19840         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
19841         AC_LIBOBJ invocation.
19842         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
19843         here.
19844         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
19845
19846 2011-05-08  Bruno Haible  <bruno@clisp.org>
19847
19848         isinf: Move AC_LIBOBJ invocations to module description.
19849         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
19850         * modules/isinf (configure.ac): ... to here.
19851
19852 2011-05-08  Bruno Haible  <bruno@clisp.org>
19853
19854         isfinite: Move AC_LIBOBJ invocations to module description.
19855         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
19856         * modules/isfinite (configure.ac): ... to here.
19857
19858 2011-05-08  Bruno Haible  <bruno@clisp.org>
19859
19860         isblank: Move AC_LIBOBJ invocations to module description.
19861         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
19862         here...
19863         * modules/isblank (configure.ac): ... to here.
19864
19865 2011-05-08  Bruno Haible  <bruno@clisp.org>
19866
19867         isapipe: Move AC_LIBOBJ invocations to module description.
19868         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
19869         gl_PREREQ_ISAPIPE invocations from here...
19870         * modules/isapipe (configure.ac): ... to here.
19871         (Depends-on): Update condition.
19872
19873 2011-05-08  Bruno Haible  <bruno@clisp.org>
19874
19875         ioctl: Move AC_LIBOBJ invocations to module description.
19876         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
19877         invocations from here...
19878         * modules/ioctl (configure.ac): ... to here.
19879         (Depends-on): Update condition.
19880
19881 2011-05-08  Bruno Haible  <bruno@clisp.org>
19882
19883         imaxdiv: Move AC_LIBOBJ invocations to module description.
19884         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
19885         invocations from here...
19886         * modules/imaxdiv (configure.ac): ... to here.
19887
19888 2011-05-08  Bruno Haible  <bruno@clisp.org>
19889
19890         imaxabs: Move AC_LIBOBJ invocations to module description.
19891         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
19892         invocations from here...
19893         * modules/imaxabs (configure.ac): ... to here.
19894
19895 2011-05-08  Bruno Haible  <bruno@clisp.org>
19896
19897         getaddrinfo: Move AC_LIBOBJ invocations to module description.
19898         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
19899         AC_LIBOBJ invocations from here...
19900         * modules/getaddrinfo (configure.ac): ... to here.
19901         (Depends-on): Add conditions.
19902
19903 2011-05-08  Bruno Haible  <bruno@clisp.org>
19904
19905         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
19906         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
19907         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
19908         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
19909         (gl_PREREQ_INET_PTON): ... from here.
19910         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
19911         gl_PREREQ_INET_PTON here.
19912         (Depends-on): Update condition.
19913
19914 2011-05-08  Bruno Haible  <bruno@clisp.org>
19915
19916         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
19917         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
19918         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
19919         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
19920         (gl_PREREQ_INET_NTOP): ... from here.
19921         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
19922         gl_PREREQ_INET_NTOP here.
19923         (Depends-on): Update condition.
19924
19925 2011-05-08  Bruno Haible  <bruno@clisp.org>
19926
19927         iconv_open: Move AC_LIBOBJ invocations to module description.
19928         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
19929         AC_LIBOBJ invocations from here...
19930         * modules/iconv_open (configure.ac): ... to here.
19931
19932 2011-05-08  Bruno Haible  <bruno@clisp.org>
19933
19934         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
19935         If module 'iconv_open' is among the main modules and module
19936         'iconv_open-utf' is among the tests dependencies, then
19937         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
19938         return the special iconv_t values. Therefore iconv() and iconv_close()
19939         must support these special iconv_t values, already in lib, not only in
19940         tests.
19941         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
19942         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
19943         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
19944         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
19945         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
19946         (Depends-on): Add the dependencies of iconv_open-utf.
19947         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
19948         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
19949         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
19950
19951 2011-05-08  Bruno Haible  <bruno@clisp.org>
19952
19953         group-member: Move AC_LIBOBJ invocations to module description.
19954         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
19955         gl_PREREQ_GROUP_MEMBER invocations from here...
19956         * modules/group-member (configure.ac): ... to here.
19957
19958 2011-05-08  Bruno Haible  <bruno@clisp.org>
19959
19960         grantpt: Move AC_LIBOBJ invocations to module description.
19961         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
19962         invocations from here...
19963         * modules/grantpt (configure.ac): ... to here.
19964
19965 2011-05-08  Bruno Haible  <bruno@clisp.org>
19966
19967         glob: Move AC_LIBOBJ invocations to module description.
19968         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
19969         from here...
19970         * modules/glob (configure.ac): ... to here.
19971
19972 2011-05-08  Bruno Haible  <bruno@clisp.org>
19973
19974         getusershell: Move AC_LIBOBJ invocations to module description.
19975         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
19976         Move AC_LIBOBJ invocation from here...
19977         * modules/getusershell (configure.ac): ... to here.
19978         (Depends-on): Update condition.
19979
19980 2011-05-08  Bruno Haible  <bruno@clisp.org>
19981
19982         gettimeofday: Move AC_LIBOBJ invocations to module description.
19983         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
19984         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
19985         gl_PREREQ_GETTIMEOFDAY invocations from here...
19986         * modules/gettimeofday (configure.ac): ... to here.
19987
19988 2011-05-08  Bruno Haible  <bruno@clisp.org>
19989
19990         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
19991         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
19992         just gl_FUNC_TZSET.
19993         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
19994         (gl_FUNC_TZSET_CLOBBER): Remove actions.
19995         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
19996         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
19997
19998 2011-05-08  Bruno Haible  <bruno@clisp.org>
19999
20000         getsubopt: Move AC_LIBOBJ invocations to module description.
20001         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
20002         gl_PREREQ_GETSUBOPT invocations from here...
20003         * modules/getsubopt (configure.ac): ... to here.
20004
20005 2011-05-08  Bruno Haible  <bruno@clisp.org>
20006
20007         getpass-gnu: Move AC_LIBOBJ invocations to module description.
20008         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
20009         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
20010         * modules/getpass-gnu (configure.ac): ... to here.
20011
20012 2011-05-08  Bruno Haible  <bruno@clisp.org>
20013
20014         getpass: Move AC_LIBOBJ invocations to module description.
20015         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
20016         gl_PREREQ_GETPASS invocations from here...
20017         * modules/getpass (configure.ac): ... to here.
20018
20019 2011-05-08  Bruno Haible  <bruno@clisp.org>
20020
20021         getpagesize: Move AC_LIBOBJ invocations to module description.
20022         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
20023         from here...
20024         * modules/getpagesize (configure.ac): ... to here.
20025
20026 2011-05-08  Bruno Haible  <bruno@clisp.org>
20027
20028         getopt: Move AC_LIBOBJ invocations to module description.
20029         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
20030         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
20031         invocations from here...
20032         * modules/getopt-gnu (configure.ac): ... to here.
20033         * modules/getopt-posix (configure.ac): ... and here.
20034         (Depends-on): Update condition.
20035
20036 2011-05-08  Bruno Haible  <bruno@clisp.org>
20037
20038         getopt, argp: Respect rules for use of AC_LIBOBJ.
20039         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
20040         (gl_REPLACE_GETOPT_ALWAYS): New macro.
20041         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
20042         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
20043
20044 2011-05-08  Bruno Haible  <bruno@clisp.org>
20045
20046         getlogin_r: Move AC_LIBOBJ invocations to module description.
20047         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
20048         gl_PREREQ_GETLOGIN_R invocations from here...
20049         * modules/getlogin_r (configure.ac): ... to here.
20050
20051 2011-05-08  Bruno Haible  <bruno@clisp.org>
20052
20053         getlogin: Move AC_LIBOBJ invocations to module description.
20054         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
20055         here...
20056         * modules/getlogin (configure.ac): ... to here.
20057
20058 2011-05-08  Bruno Haible  <bruno@clisp.org>
20059
20060         getloadavg: Move AC_LIBOBJ invocations to module description.
20061         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
20062         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
20063         * modules/getloadavg (configure.ac): ... to here.
20064
20065 2011-05-08  Bruno Haible  <bruno@clisp.org>
20066
20067         gethrxtime: Move AC_LIBOBJ invocations to module description.
20068         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
20069         LIB_GETHRXTIME from here...
20070         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
20071         invocations from here...
20072         * modules/gethrxtime (configure.ac): ... to here.
20073
20074 2011-05-08  Bruno Haible  <bruno@clisp.org>
20075
20076         gethostname: Move AC_LIBOBJ invocations to module description.
20077         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
20078         gl_PREREQ_GETHOSTNAME invocations from here...
20079         * modules/gethostname (configure.ac): ... to here.
20080
20081 2011-05-08  Bruno Haible  <bruno@clisp.org>
20082
20083         getgroups: Move AC_LIBOBJ invocations to module description.
20084         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
20085         here...
20086         * modules/getgroups (configure.ac): ... to here.
20087
20088 2011-05-08  Bruno Haible  <bruno@clisp.org>
20089
20090         getdtablesize: Move AC_LIBOBJ invocations to module description.
20091         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
20092         invocation from here...
20093         * modules/getdtablesize (configure.ac): ... to here.
20094
20095 2011-05-08  Bruno Haible  <bruno@clisp.org>
20096
20097         getdomainname: Move AC_LIBOBJ invocations to module description.
20098         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
20099         gl_PREREQ_GETDOMAINNAME invocations from here...
20100         * modules/getdomainname (configure.ac): ... to here.
20101
20102 2011-05-08  Bruno Haible  <bruno@clisp.org>
20103
20104         getline: Move AC_LIBOBJ invocations to module description.
20105         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
20106         invocations from here...
20107         * modules/getline (configure.ac): ... to here.
20108
20109 2011-05-08  Bruno Haible  <bruno@clisp.org>
20110
20111         getline: Simplify.
20112         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
20113         It's already handled through the module dependency.
20114
20115 2011-05-08  Bruno Haible  <bruno@clisp.org>
20116
20117         getdelim: Move AC_LIBOBJ invocations to module description.
20118         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
20119         and gl_PREREQ_GETDELIM invocations from here...
20120         * modules/getdelim (configure.ac): ... to here.
20121         (Depends-on): Fix condition.
20122
20123 2011-05-08  Bruno Haible  <bruno@clisp.org>
20124
20125         getcwd: Move AC_LIBOBJ invocations to module description.
20126         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
20127         invocations from here...
20128         * modules/getcwd (configure.ac): ... to here.
20129
20130 2011-05-08  Bruno Haible  <bruno@clisp.org>
20131
20132         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
20133         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
20134         here...
20135         * modules/getcwd-lgpl (configure.ac): ... to here.
20136
20137 2011-05-07  Bruno Haible  <bruno@clisp.org>
20138
20139         crypto/gc: Move AC_LIBOBJ invocations to module description.
20140         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
20141         * modules/crypto/gc (configure.ac): ... to here.
20142
20143 2011-05-07  Bruno Haible  <bruno@clisp.org>
20144
20145         fwriting: Move AC_LIBOBJ invocations to module description.
20146         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
20147         here...
20148         * modules/fwriting (configure.ac): ... to here.
20149
20150 2011-05-07  Bruno Haible  <bruno@clisp.org>
20151
20152         fwritable: Move AC_LIBOBJ invocations to module description.
20153         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
20154         here...
20155         * modules/fwritable (configure.ac): ... to here.
20156
20157 2011-05-07  Bruno Haible  <bruno@clisp.org>
20158
20159         futimens: Move AC_LIBOBJ invocations to module description.
20160         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
20161         here...
20162         * modules/futimens (configure.ac): ... to here.
20163
20164 2011-05-07  Bruno Haible  <bruno@clisp.org>
20165
20166         ftruncate: Move AC_LIBOBJ invocations to module description.
20167         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
20168         gl_PREREQ_FTRUNCATE invocations from here...
20169         * modules/ftruncate (configure.ac): ... to here.
20170
20171 2011-05-07  Bruno Haible  <bruno@clisp.org>
20172
20173         fsync: Move AC_LIBOBJ invocations to module description.
20174         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
20175         invocations from here...
20176         * modules/fsync (configure.ac): ... to here.
20177
20178 2011-05-07  Bruno Haible  <bruno@clisp.org>
20179
20180         fsusage: Move AC_LIBOBJ invocations to module description.
20181         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
20182         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
20183         * modules/fsusage (configure.ac): ... to here.
20184
20185 2011-05-07  Bruno Haible  <bruno@clisp.org>
20186
20187         freopen: Move AC_LIBOBJ invocations to module description.
20188         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
20189         invocations from here...
20190         * modules/freopen (configure.ac): ... to here.
20191
20192 2011-05-07  Bruno Haible  <bruno@clisp.org>
20193
20194         free: Move AC_LIBOBJ invocations to module description.
20195         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
20196         invocations from here...
20197         * modules/free (configure.ac): ... to here.
20198
20199 2011-05-07  Bruno Haible  <bruno@clisp.org>
20200
20201         freadable: Move AC_LIBOBJ invocations to module description.
20202         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
20203         here...
20204         * modules/freadable (configure.ac): ... to here.
20205
20206 2011-05-07  Bruno Haible  <bruno@clisp.org>
20207
20208         fpurge: Move AC_LIBOBJ invocations to module description.
20209         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
20210         invocations from here...
20211         * modules/fpurge (configure.ac): ... to here.
20212
20213 2011-05-07  Bruno Haible  <bruno@clisp.org>
20214
20215         fpending: Move AC_LIBOBJ invocations to module description.
20216         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
20217         gl_FUNC_FPENDING.
20218         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
20219         invocations from here...
20220         * modules/fpending (configure.ac): ... to here.
20221
20222 2011-05-07  Bruno Haible  <bruno@clisp.org>
20223
20224         fopen: Move AC_LIBOBJ invocations to module description.
20225         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
20226         invocations from here...
20227         * modules/fopen (configure.ac): ... to here.
20228
20229 2011-05-07  Bruno Haible  <bruno@clisp.org>
20230
20231         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
20232         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
20233         gl_FUNC_FNMATCH_POSIX.
20234         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
20235         invocations from here...
20236         * modules/fnmatch (configure.ac): ... to here.
20237         * modules/fnmatch-gnu (configure.ac): ... and here.
20238
20239 2011-05-07  Bruno Haible  <bruno@clisp.org>
20240
20241         flock: Move AC_LIBOBJ invocations to module description.
20242         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
20243         invocations from here...
20244         * modules/flock (configure.ac): ... to here.
20245
20246 2011-05-07  Bruno Haible  <bruno@clisp.org>
20247
20248         fileblocks: Move AC_LIBOBJ invocations to module description.
20249         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
20250         gl_PREREQ_FILEBLOCKS invocations from here...
20251         * modules/fileblocks (configure.ac): ... to here.
20252
20253 2011-05-06  Bruno Haible  <bruno@clisp.org>
20254
20255         fflush: Move AC_LIBOBJ invocations to module description.
20256         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
20257         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
20258         invocations from here...
20259         * modules/fflush (configure.ac): ... to here.
20260
20261 2011-05-06  Bruno Haible  <bruno@clisp.org>
20262
20263         fdopendir: Move AC_LIBOBJ invocations to module description.
20264         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
20265         here...
20266         * modules/fdopendir (configure.ac): ... to here.
20267         (Depends-on): Improve conditions.
20268
20269 2011-05-06  Bruno Haible  <bruno@clisp.org>
20270
20271         _Exit: Move AC_LIBOBJ invocations to module description.
20272         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
20273         invocations from here...
20274         * modules/_Exit (configure.ac): ... to here.
20275
20276 2011-05-21  Bruno Haible  <bruno@clisp.org>
20277
20278         euidaccess: Respect rules for use of AC_LIBOBJ.
20279         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
20280         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
20281         from here...
20282         * modules/euidaccess (configure.ac): ... to here.
20283
20284 2011-05-06  Bruno Haible  <bruno@clisp.org>
20285
20286         error: Move AC_LIBOBJ invocations to module description.
20287         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
20288         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
20289         invocations from here...
20290         * modules/error (configure.ac): ... to here.
20291
20292 2011-05-06  Bruno Haible  <bruno@clisp.org>
20293
20294         duplocale: Move AC_LIBOBJ invocations to module description.
20295         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
20296         gl_PREREQ_DUPLOCALE invocations from here...
20297         * modules/duplocale (configure.ac): ... to here.
20298
20299 2011-05-05  Bruno Haible  <bruno@clisp.org>
20300
20301         dirfd: Move AC_LIBOBJ invocations to module description.
20302         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
20303         gl_FUNC_DIRFD.
20304         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
20305         here...
20306         * modules/dirfd (configure.ac): ... to here.
20307         (Depends-on): Fix condition.
20308
20309 2011-05-05  Bruno Haible  <bruno@clisp.org>
20310
20311         chown: Respect rules for use of AC_LIBOBJ.
20312         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
20313         * modules/chown (configure.ac): ... to here.
20314
20315 2011-05-05  Bruno Haible  <bruno@clisp.org>
20316
20317         chdir-long: Move AC_LIBOBJ invocations to module description.
20318         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
20319         gl_PREREQ_CHDIR_LONG invocations from here...
20320         * modules/chdir-long (configure.ac): ... to here.
20321
20322 2011-05-05  Bruno Haible  <bruno@clisp.org>
20323
20324         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
20325         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
20326         from here...
20327         * modules/canonicalize-lgpl (configure.ac): ... to here.
20328
20329 2011-05-05  Bruno Haible  <bruno@clisp.org>
20330
20331         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
20332         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
20333         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
20334         REPLACE_CALLOC.
20335         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
20336         * modules/calloc-gnu (configure.ac): Likewise.
20337
20338 2011-05-05  Bruno Haible  <bruno@clisp.org>
20339
20340         btowc: Move AC_LIBOBJ invocations to module description.
20341         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
20342         invocations from here...
20343         * modules/btowc (configure.ac): ... to here.
20344
20345 2011-05-21  Bruno Haible  <bruno@clisp.org>
20346
20347         atexit: Move AC_LIBOBJ invocations to module description.
20348         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
20349         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
20350         here...
20351         * modules/atexit (configure.ac): ... to here.
20352
20353 2011-05-05  Bruno Haible  <bruno@clisp.org>
20354
20355         atoll: Move AC_LIBOBJ invocations to module description.
20356         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
20357         invocations from here...
20358         * modules/atoll (configure.ac): ... to here.
20359
20360 2011-05-05  Bruno Haible  <bruno@clisp.org>
20361
20362         argz: Move AC_LIBOBJ invocations to module description.
20363         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
20364         * modules/argz (configure.ac): ... to here.
20365
20366 2011-05-05  Bruno Haible  <bruno@clisp.org>
20367
20368         alphasort: Move AC_LIBOBJ invocations to module description.
20369         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
20370         gl_PREREQ_ALPHASORT invocations from here...
20371         * modules/alphasort (configure.ac): ... to here.
20372
20373 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
20374
20375         verify: new macro verify_expr; verify_true deprecated
20376         * NEWS: Mention this.
20377         * doc/verify.texi (Compile-time Assertions): Document this.
20378         * lib/verify.h (verify_true): Deprecate.
20379         (verify_expr): New macro.
20380         * tests/test-verify.c (function): Test verify_expr.
20381
20382 2011-06-14  Jim Meyering  <meyering@redhat.com>
20383
20384         init.sh: give more portable redirection-related advice in a comment
20385         * tests/init.sh (stderr_fileno_): Update the advice in comments.
20386         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
20387         for lots of discussion.  Stefano Lattarini suggested the solution
20388         of putting "9>&2" after the command.  Reported by Bruno Haible.
20389
20390 2011-06-13  Bruno Haible  <bruno@clisp.org>
20391
20392         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
20393         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
20394         'none'.
20395
20396 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
20397
20398         ftoastr: use strtof only if HAVE_STRTOF
20399         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
20400         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
20401         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
20402         * modules/ftoastr (configure.ac): Check for strtof.
20403
20404 2011-06-13  Bruno Haible  <bruno@clisp.org>
20405
20406         gnulib-tool: Addendum to 2011-06-08 commit.
20407         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
20408         and --witness-c-macro have been given, augment AM_CPPFLAGS.
20409
20410 2011-06-13  Bruno Haible  <bruno@clisp.org>
20411
20412         fseeko: Provide a non-inline replacement of fseek().
20413         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
20414         * modules/fseeko (Depends-on): Add fseek.
20415         * modules/fseek (License): Change to LGPLv2+.
20416
20417 2011-06-13  Bruno Haible  <bruno@clisp.org>
20418
20419         ftello: Provide a non-inline replacement of ftell().
20420         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
20421         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
20422         not have ftello() (such as on mingw).
20423         * modules/ftello (Depends-on): Add ftell.
20424         * modules/ftell (License): Change to LGPLv2+.
20425
20426 2011-05-07  Bruno Haible  <bruno@clisp.org>
20427
20428         ftell: Move AC_LIBOBJ invocations to module description.
20429         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
20430         * modules/ftell (configure.ac): ... to here.
20431
20432 2011-05-07  Bruno Haible  <bruno@clisp.org>
20433
20434         ftello: Respect rules for use of AC_LIBOBJ.
20435         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
20436         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
20437         here...
20438         * modules/ftello (configure.ac): ... to here.
20439
20440 2011-05-07  Bruno Haible  <bruno@clisp.org>
20441
20442         fseeko: Simplify.
20443         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
20444         (gl_FUNC_FSEEKO): Inline it here.
20445
20446 2011-05-07  Bruno Haible  <bruno@clisp.org>
20447
20448         fseek: Move AC_LIBOBJ invocations to module description.
20449         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
20450         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
20451         * modules/fseek (configure.ac): ... to here.
20452
20453 2011-05-07  Bruno Haible  <bruno@clisp.org>
20454
20455         fseek: Respect rules for use of AC_LIBOBJ.
20456         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
20457         here...
20458         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
20459
20460 2011-05-07  Bruno Haible  <bruno@clisp.org>
20461
20462         fseeko: Respect rules for use of AC_LIBOBJ.
20463         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
20464         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
20465         here...
20466         * modules/fseeko (configure.ac): ... to here.
20467
20468 2011-06-13  Bruno Haible  <bruno@clisp.org>
20469
20470         gnulib-tool: Allow comments in the 'Depends-on' section.
20471         * doc/gnulib.texi (Module description): Mention comment syntax in the
20472         Depends-on section.
20473         * gnulib-tool (func_get_dependencies): Filter out comment lines.
20474
20475 2011-06-13  Bruno Haible  <bruno@clisp.org>
20476
20477         file-set.h: guard __attibute__ use, now that it's not always defined
20478         * lib/file-set.h (record_file): Use __attribute__ only with compiler
20479         versions that support it.  This fixes a coreutils build failure with
20480         the vendor cc on HP-UX 11.31.
20481
20482 2011-06-12  Bruno Haible  <bruno@clisp.org>
20483
20484         acl: Add support for HP-UX >= 11.11 JFS ACLs.
20485         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
20486         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
20487         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
20488         (acl, aclsort): New declarations.
20489         (aclv_nontrivial): New declaration.
20490         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
20491         (file_has_acl): Read also the second kind of HP-UX ACLs.
20492         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
20493         kind of HP-UX ACLs if the first kind fails.
20494         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
20495         second kind of HP-UX ACLs.
20496         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
20497         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
20498         agree.
20499         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
20500         hpuxjfs.
20501         Handle hpuxjfs.
20502         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
20503         hpuxjfs.
20504         Handle hpuxjfs.
20505         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
20506         (func_test_same_acls): Use both lsacl and getacl.
20507         Handle hpuxjfs.
20508         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
20509         (func_test_same_acls): Use both lsacl and getacl.
20510         Handle hpuxjfs.
20511
20512 2011-06-12  Bruno Haible  <bruno@clisp.org>
20513
20514         acl: Complete the 2010-08-10 fix.
20515         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
20516         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
20517         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
20518         explicitly.
20519         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
20520         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
20521
20522 2011-06-12  Bruno Haible  <bruno@clisp.org>
20523
20524         spawn-pipe tests: Comments.
20525         * tests/test-spawn-pipe-child.c (main): Update comment.
20526         Reported by James Youngman <jay@gnu.org>.
20527
20528 2011-06-11  James Youngman  <jay@gnu.org>
20529
20530         New module 'stat-size'.
20531         * modules/stat-size: New module.  Provides macros for accessing
20532         file size information in instances of struct stat.  Depends on the
20533         fileblocks module because it calls st_blocks.
20534         * lib/stat-size.h: New file, adapted from coreutils' system.h.
20535         * doc/gnulib.texi: Include stat-size.texi.
20536         * doc/stat-size.texi: Documentation for this module.
20537         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
20538         * m4/fileblocks.m4: Mention that stat-size depends on the call to
20539         AC_STRUCT_ST_BLOCKS.
20540
20541 2011-06-09  Bruno Haible  <bruno@clisp.org>
20542
20543         thread: Support pthreads-win32.
20544         * lib/glthread/thread.h (gl_thread_self): Define differently on
20545         pthreads-win32.
20546         (gl_null_thread): New declaration.
20547         (gl_thread_self_pointer): New macro.
20548         * lib/glthread/thread.c (gl_null_thread): New constant.
20549         * tests/test-lock.c: Use gl_thread_self_pointer instead of
20550         gl_thread_self.
20551         * tests/test-tls.c: Likewise.
20552         Suggested by Paul Eggert. Reported by Eric Blake.
20553
20554 2011-06-09  Bruno Haible  <bruno@clisp.org>
20555
20556         thread: Fix confusion between NULL and 0.
20557         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
20558         Reported by Paul Eggert.
20559
20560 2011-06-09  Bruno Haible  <bruno@clisp.org>
20561
20562         spawn-pipe tests: Avoid test failure on HP-UX 11.
20563         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
20564         is closed.
20565
20566 2011-06-09  Bruno Haible  <bruno@clisp.org>
20567
20568         acl tests: Fix compilation error on HP-UX 11.
20569         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
20570
20571 2011-06-09  Bruno Haible  <bruno@clisp.org>
20572
20573         rmdir: Avoid test failure on HP-UX 10.20.
20574         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
20575         EEXIST.
20576
20577 2011-06-08  Eric Blake  <eblake@redhat.com>
20578
20579         perror: fix test on mingw
20580         * modules/perror-tests (Depends-on): Add dup2.
20581
20582         strerror_r-posix: fix on MacOS
20583         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
20584         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
20585         logic bug.
20586         * lib/strerror_r.c (strerror_r): Fix the bug.
20587         * lib/strerror.c (strerror): Likewise.
20588         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
20589         problem.
20590         * doc/posix-functions/strerror.texi (strerror): Likewise.
20591         * doc/posix-functions/perror.texi (perror): Likewise.
20592         * tests/test-strerror.c (main): Enhance test.
20593         * tests/test-strerror_r.c (main): Likewise.
20594
20595 2011-06-08  Bruno Haible  <bruno@clisp.org>
20596
20597         gnulib-tool: Better isolation between different gnulib-tool invocations.
20598         * gnulib-tool: New option --witness-c-macro.
20599         (witness_c_macro): New variable.
20600         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
20601         AM_CPPFLAGS define it as a C macro.
20602         (func_emit_tests_Makefile_am): Likewise.
20603         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
20604         read it from there.
20605         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
20606         m4_define, not AC_DEFUN.
20607         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
20608         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
20609         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
20610         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
20611         s|...|...|, to substitute the values of the GNULIB_* module indicator
20612         variables.
20613         * modules/dirent (Makefile.am): Likewise.
20614         * modules/fcntl-h (Makefile.am): Likewise.
20615         * modules/iconv-h (Makefile.am): Likewise.
20616         * modules/langinfo (Makefile.am): Likewise.
20617         * modules/locale (Makefile.am): Likewise.
20618         * modules/math (Makefile.am): Likewise.
20619         * modules/netdb (Makefile.am): Likewise.
20620         * modules/poll-h (Makefile.am): Likewise.
20621         * modules/pty (Makefile.am): Likewise.
20622         * modules/search (Makefile.am): Likewise.
20623         * modules/signal (Makefile.am): Likewise.
20624         * modules/spawn (Makefile.am): Likewise.
20625         * modules/stdio (Makefile.am): Likewise.
20626         * modules/stdlib (Makefile.am): Likewise.
20627         * modules/string (Makefile.am): Likewise.
20628         * modules/sys_ioctl (Makefile.am): Likewise.
20629         * modules/sys_select (Makefile.am): Likewise.
20630         * modules/sys_socket (Makefile.am): Likewise.
20631         * modules/sys_stat (Makefile.am): Likewise.
20632         * modules/sys_times (Makefile.am): Likewise.
20633         * modules/sys_utsname (Makefile.am): Likewise.
20634         * modules/sys_wait (Makefile.am): Likewise.
20635         * modules/termios (Makefile.am): Likewise.
20636         * modules/time (Makefile.am): Likewise.
20637         * modules/unistd (Makefile.am): Likewise.
20638         * modules/wchar (Makefile.am): Likewise.
20639
20640 2011-06-08  Eric Blake  <eblake@redhat.com>
20641
20642         strerror: simplify replacement
20643         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
20644         * modules/strerror (configure.ac): No prereqs needed here...
20645         * modules/strerror-override (configure.ac): ...but this needs it.
20646         (Files): Add file for needed prereq macro.
20647
20648 2011-06-08  Bruno Haible  <bruno@clisp.org>
20649
20650         strerror_r-posix: Tweaks.
20651         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
20652         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
20653         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
20654         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
20655         (gl_FUNC_STRERROR_R): ... to here.
20656         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
20657
20658 2011-06-07  Eric Blake  <eblake@redhat.com>
20659
20660         perror: document fixed bugs
20661         * doc/posix-functions/perror.texi (perror): Document recent
20662         patches.
20663
20664 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
20665
20666         stat-time: get_stat_birthtime failure is better-defined
20667         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
20668         return a timestamp whose tv_sec and tv_nsec values are both -1.
20669         Previously, the spec said only that the tv_nsec value was negative.
20670         This upward-compatible change simplifies GNU tar a bit.
20671
20672 2011-06-07  Eric Blake  <eblake@redhat.com>
20673
20674         strerror_r-posix: work around cygwin 1.7.9
20675         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
20676         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
20677         bug without replacing strerror_r.
20678         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
20679         strerror_r is buggy, but without requiring strerror_r compilation.
20680         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
20681
20682         test-perror: relax test to ignore cygwin bug
20683         * tests/test-perror2.c (main): Relax test on requiring detection
20684         of stream errors, and use unbuffered stream.
20685         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
20686         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
20687         * doc/posix-functions/fputc.texi (fputc): Likewise.
20688         * doc/posix-functions/fputs.texi (fputs): Likewise.
20689         * doc/posix-functions/fputws.texi (fputws): Likewise.
20690         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
20691         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
20692         * doc/posix-functions/getopt.texi (getopt): Likewise.
20693         * doc/posix-functions/perror.texi (perror): Likewise.
20694         * doc/posix-functions/printf.texi (printf): Likewise.
20695         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
20696         * doc/posix-functions/psignal.texi (psignal): Likewise.
20697         * doc/posix-functions/putc.texi (putc): Likewise.
20698         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
20699         Likewise.
20700         * doc/posix-functions/putchar.texi (putchar): Likewise.
20701         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
20702         Likewise.
20703         * doc/posix-functions/puts.texi (puts): Likewise.
20704         * doc/posix-functions/putwc.texi (putwc): Likewise.
20705         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
20706         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
20707         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
20708         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
20709         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
20710         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
20711         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
20712         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
20713
20714 2011-05-22  Bruno Haible  <bruno@clisp.org>
20715
20716         strerror: Move AC_LIBOBJ invocations to module description.
20717         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
20718         gl_PREREQ_STRERROR invocations from here...
20719         * modules/strerror (configure.ac): ... to here.
20720
20721 2011-05-21  Bruno Haible  <bruno@clisp.org>
20722
20723         perror: Use common idiom.
20724         * modules/perror (configure.ac): Reorder statements.
20725
20726 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
20727
20728         tests: fix usage message in 'mktempd_'
20729         * tests/init.sh (mktempd_): In the usage message, use literal
20730         'mktempd_', not '$ME' (which is even undefined), as the name of
20731         the subroutine.
20732
20733 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
20734
20735         tests init: new function 'fatal_', for hard errors
20736         Before this patch, the only way offered by tests/init.sh to
20737         properly signal a hard error was the `framework_failure_'
20738         function.  But the error message issued by that function,
20739         as its name would suggest, refers to a set-up failure in the
20740         testsuite, while hard errors can obviously also be due to
20741         other reasons.  The best way to fix this inconsistency is to
20742         introduce a new function with a more general error message.
20743         * tests/init.sh (fatal_): New function.
20744
20745 2011-06-06  Eric Blake  <eblake@redhat.com>
20746
20747         canonicalize-lgpl: use common idiom
20748         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
20749         over newer POSIX -Rf.
20750         Reported by Bruno Haible.
20751
20752         canonicalize-lgpl: work around AIX realpath bug
20753         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
20754         * doc/posix-functions/realpath.texi (realpath): Document it.
20755         Reported by Bruno Haible.
20756
20757         strerror: work around FreeBSD bug
20758         * lib/strerror.c (strerror): Special case 0.
20759         Reported by Bruno Haible.
20760
20761         strerror-override: avoid bloating errno module
20762         * modules/errno (Files, configure.ac): Move replacement strings...
20763         * modules/strerror-override: ...to new module.
20764         * modules/strerror (Depends-on): Add strerror-override.
20765         * modules/strerror_r-posix (Depends-on): Likewise.
20766         * MODULES.html.sh: Document new module.
20767         Reported by Bruno Haible.
20768
20769 2011-06-06  Bruno Haible  <bruno@clisp.org>
20770
20771         spawn-pipe tests: Rename program.
20772         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
20773         * tests/test-spawn-pipe-child.c: Update comment.
20774         * tests/test-spawn-pipe.sh: Update.
20775         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
20776
20777         spawn-pipe tests: Link the child program only against libc.
20778         * tests/test-spawn-pipe-child.c: New file, extracted from
20779         tests/test-spawn-pipe.c.
20780         (main): Expect only one argument.
20781         (is_open): New function, copied from tests/test-pipe.c.
20782         * tests/test-spawn-pipe.c: Don't include <errno.h>.
20783         (child_main): Remove function.
20784         (test_pipe): Pass only one argument to the child program.
20785         (main): Remove child process code. Expect the child program's name as
20786         first argument.
20787         * tests/test-spawn-pipe.sh: Pass the child program's name as first
20788         argument.
20789         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
20790         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
20791         test-spawn-pipe-child against no libraries.
20792
20793 2011-06-06  Bruno Haible  <bruno@clisp.org>
20794
20795         careadlinkat: Avoid mismatch between ssize_t and int.
20796         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
20797         * lib/careadlinkat.c (careadlinkatcwd): Define always.
20798
20799 2011-06-06  Jim Meyering  <meyering@redhat.com>
20800
20801         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
20802         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
20803         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
20804
20805 2011-06-05  Bruno Haible  <bruno@clisp.org>
20806
20807         ansi-c++-opt: Interoperability with libtool.
20808         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
20809         set the variable to "no", not to ":".
20810         * NEWS: Mention the change.
20811
20812 2011-06-05  Bruno Haible  <bruno@clisp.org>
20813
20814         acl: Fix test failure on AIX 7.
20815         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
20816         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
20817
20818 2011-06-05  Bruno Haible  <bruno@clisp.org>
20819
20820         pipe-filter-ii: Fix test failure on AIX and IRIX.
20821         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
20822         with EAGAIN, retry with a smaller buffer size.
20823
20824 2011-06-05  Bruno Haible  <bruno@clisp.org>
20825
20826         localename: Fix link dependencies.
20827         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
20828         * modules/localename-tests (Makefile.am): Link test-localename with
20829         $(LIBTHREAD).
20830
20831 2011-06-05  Bruno Haible  <bruno@clisp.org>
20832
20833         error: Avoid gcc warning.
20834         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
20835
20836 2011-06-05  Bruno Haible  <bruno@clisp.org>
20837
20838         unsetenv: Avoid gcc warning.
20839         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
20840
20841 2011-06-05  Bruno Haible  <bruno@clisp.org>
20842
20843         setenv: Avoid gcc warning.
20844         * lib/setenv.c (setenv): Provide declaration if system lacks it.
20845
20846 2011-06-05  Bruno Haible  <bruno@clisp.org>
20847
20848         sys_select: Ensure memset is declared also on AIX 7.
20849         * lib/sys_select.in.h: Include <string.h> also on AIX.
20850         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
20851         self-contained also on AIX 7.1.
20852
20853 2011-06-04  Jim Meyering  <meyering@redhat.com>
20854
20855         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
20856         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
20857         function name, "error".
20858         (_gl_translatable_diag_func_re): New configurable variable.
20859
20860 2011-06-04  Bruno Haible  <bruno@clisp.org>
20861
20862         getopt: Avoid gcc warning.
20863         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
20864
20865 2011-06-04  Bruno Haible  <bruno@clisp.org>
20866
20867         strerror_r: Fix comments.
20868         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
20869         commit.
20870
20871 2011-06-04  Bruno Haible  <bruno@clisp.org>
20872
20873         perror: Fix compilation error.
20874         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
20875         Undefine fprintf, not sprintf.
20876         * modules/perror (Depends-on): Remove intprops, verify.
20877
20878 2011-06-04  Bruno Haible  <bruno@clisp.org>
20879
20880         setlocale: Enable replacement on Cygwin 1.5.
20881         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
20882         Cygwin 1.5.x.
20883         * doc/posix-functions/setlocale.texi: Mention that the problem with the
20884         LC_CTYPE category also exists on Cygwin 1.5.x.
20885
20886 2011-06-04  Bruno Haible  <bruno@clisp.org>
20887
20888         strerror-override: Don't disable symbol renamings.
20889         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
20890         * lib/strerror-override.c: Include config.h.
20891         (strerror_override): Don't undefine.
20892
20893 2011-06-03  Bruno Haible  <bruno@clisp.org>
20894
20895         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
20896         * lib/localename.h: Update copyright header.
20897         * lib/localename.c: Likewise.
20898         * lib/relocatable.h: Likewise.
20899         * lib/relocatable.c: Likewise.
20900
20901 2011-06-02  Bruno Haible  <bruno@clisp.org>
20902
20903         doc: Fix a module name.
20904         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
20905
20906 2011-06-02  Bruno Haible  <bruno@clisp.org>
20907
20908         pipe2: Remove dependency on 'nonblocking' module.
20909         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
20910         O_NONBLOCK is defined by gnulib.
20911         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
20912         is zero.
20913         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
20914         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
20915         defined by gnulib.
20916         (get_nonblocking_flag): New function.
20917         (main): Test O_NONBLOCK flag only if it is nonzero.
20918         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
20919
20920 2011-06-03  Jim Meyering  <meyering@redhat.com>
20921
20922         maint: three new prohibit-header-without-use rules
20923         Prohibit use of cloexec.h, posixver.h, same.h without use.
20924         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
20925         (sc_prohibit_posixver_without_use): Likewise.
20926         (sc_prohibit_same_without_use): Likewise.
20927
20928 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
20929
20930         allocator: 'die' routine is now given requested size
20931         * lib/allocator.h (struct allocator.die): New size arg.
20932         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
20933         If the actual problem is an ssize_t limitation, not a size_t or
20934         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
20935
20936 2011-06-01  Eric Blake  <eblake@redhat.com>
20937
20938         strerror: drop strerror_r dependency
20939         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
20940         * lib/strerror-override.c (strerror_override): ...to new file.
20941         * lib/strerror-override.h: Add prototype.
20942         * lib/strerror-impl.h: Delete.
20943         * lib/strerror.c (strerror): New implementation.
20944         * modules/errno (Files): Add new files.
20945         (configure.ac): Compile new file as appropriate.
20946         * modules/strerror (Files): Drop unused file.
20947         (Depends-on): Drop strerror_r-posix.
20948         * MODULES.html.sh: Document strerror_r-posix.
20949         Requested by Sam Steingold.
20950
20951         perror: call strerror_r directly
20952         * modules/perror (Files): Drop strerror-impl.h.
20953         * lib/perror.c (perror): Use our own stack buffer, rather than
20954         calling a wrapper that uses static storage.
20955         * doc/posix-functions/perror.texi (perror): Document a limitation
20956         of our replacement.
20957
20958         strerror_r: fix includes for FreeBSD
20959         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
20960         since we use abort on some platforms.
20961         Reported by Matthias Bolte.
20962
20963 2011-05-31  Bruno Haible  <bruno@clisp.org>
20964
20965         Fix link errors in tests: openat-die uses gettext-h.
20966         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
20967         against $(LIBINTL).
20968         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
20969         against $(LIBINTL).
20970         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
20971         $(LIBINTL).
20972         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
20973         against $(LIBINTL).
20974         * modules/linkat-tests (Makefile.am): Link test-linkat against
20975         $(LIBINTL).
20976         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
20977         $(LIBINTL).
20978         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
20979         against $(LIBINTL).
20980         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
20981         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
20982         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
20983         $(LIBINTL).
20984         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
20985         $(LIBINTL).
20986         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
20987         $(LIBINTL).
20988         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20989
20990 2011-05-31  Bruno Haible  <bruno@clisp.org>
20991
20992         Fix link errors in tests: wait-process uses gettext-h.
20993         * modules/nonblocking-pipe-tests (Makefile.am): Set
20994         test_nonblocking_pipe_main_LDADD.
20995         * modules/nonblocking-socket-tests (Makefile.am): Link
20996         test-nonblocking-socket-main against $(LIBINTL).
20997         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20998
20999 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
21000
21001         assert-h: work around 'verify' incompatibility
21002         * lib/verify.h: Use @...@ directives, not ifdef.
21003         * modules/assert-h (assert.h): Implement the directives.
21004         (assert.h): Substitute the symbol-prefix more consistently.
21005
21006 2011-05-29  Jim Meyering  <meyering@redhat.com>
21007
21008         trim: remove three superfluous assignments
21009         * lib/trim.c (trim2): Remove three superfluous assignments
21010         and correct brace positioning.
21011
21012 2011-05-29  Bruno Haible  <bruno@clisp.org>
21013
21014         wctype-h: Avoid namespace pollution on Solaris 2.6.
21015         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
21016         identifiers.
21017         * doc/posix-headers/wctype.texi: Mention the problem.
21018         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21019
21020 2011-05-28  Jim Meyering  <meyering@redhat.com>
21021
21022         parse-datetime.y: accommodate -Wstrict-overflow
21023         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
21024         placate -Wstrict-overflow.
21025
21026         trim: avoid a warning from -O2 -Wstrict-overflow
21027         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
21028
21029 2011-05-29  Bruno Haible  <bruno@clisp.org>
21030
21031         gnulib-tool: Fix bug in yesterday's commit.
21032         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
21033         twice.
21034
21035 2011-05-29  Bruno Haible  <bruno@clisp.org>
21036
21037         Allow multiple gnulib generated include files to be combined.
21038         * gnulib-tool (func_compute_include_guard_prefix): New function.
21039         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
21040         ${gl_include_guard_prefix} references.
21041         (func_import, func_create_testdir): Invoke
21042         func_compute_include_guard_prefix.
21043         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
21044         * lib/ctype.in.h: Likewise.
21045         * lib/dirent.in.h: Likewise.
21046         * lib/errno.in.h: Likewise.
21047         * lib/fcntl.in.h: Likewise.
21048         * lib/float.in.h: Likewise.
21049         * lib/getopt.in.h: Likewise.
21050         * lib/iconv.in.h: Likewise.
21051         * lib/langinfo.in.h: Likewise.
21052         * lib/locale.in.h: Likewise.
21053         * lib/math.in.h: Likewise.
21054         * lib/netdb.in.h: Likewise.
21055         * lib/netinet_in.in.h: Likewise.
21056         * lib/poll.in.h: Likewise.
21057         * lib/pthread.in.h: Likewise.
21058         * lib/pty.in.h: Likewise.
21059         * lib/sched.in.h: Likewise.
21060         * lib/se-selinux.in.h: Likewise.
21061         * lib/search.in.h: Likewise.
21062         * lib/signal.in.h: Likewise.
21063         * lib/spawn.in.h: Likewise.
21064         * lib/stdarg.in.h: Likewise.
21065         * lib/stddef.in.h: Likewise.
21066         * lib/stdint.in.h: Likewise.
21067         * lib/stdio.in.h: Likewise.
21068         * lib/stdlib.in.h: Likewise.
21069         * lib/string.in.h: Likewise.
21070         * lib/strings.in.h: Likewise.
21071         * lib/sys_file.in.h: Likewise.
21072         * lib/sys_ioctl.in.h: Likewise.
21073         * lib/sys_select.in.h: Likewise.
21074         * lib/sys_socket.in.h: Likewise.
21075         * lib/sys_stat.in.h: Likewise.
21076         * lib/sys_time.in.h: Likewise.
21077         * lib/sys_times.in.h: Likewise.
21078         * lib/sys_uio.in.h: Likewise.
21079         * lib/sys_utsname.in.h: Likewise.
21080         * lib/sys_wait.in.h: Likewise.
21081         * lib/sysexits.in.h: Likewise.
21082         * lib/termios.in.h: Likewise.
21083         * lib/time.in.h: Likewise.
21084         * lib/unistd.in.h: Likewise.
21085         * lib/wchar.in.h: Likewise.
21086         * lib/wctype.in.h: Likewise.
21087         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
21088         * modules/ctype (Makefile.am): Likewise.
21089         * modules/dirent (Makefile.am): Likewise.
21090         * modules/errno (Makefile.am): Likewise.
21091         * modules/fcntl-h (Makefile.am): Likewise.
21092         * modules/float (Makefile.am): Likewise.
21093         * modules/getopt-posix (Makefile.am): Likewise.
21094         * modules/iconv-h (Makefile.am): Likewise.
21095         * modules/langinfo (Makefile.am): Likewise.
21096         * modules/locale (Makefile.am): Likewise.
21097         * modules/math (Makefile.am): Likewise.
21098         * modules/netdb (Makefile.am): Likewise.
21099         * modules/netinet_in (Makefile.am): Likewise.
21100         * modules/poll-h (Makefile.am): Likewise.
21101         * modules/pthread (Makefile.am): Likewise.
21102         * modules/pty (Makefile.am): Likewise.
21103         * modules/sched (Makefile.am): Likewise.
21104         * modules/search (Makefile.am): Likewise.
21105         * modules/selinux-h (Makefile.am): Likewise.
21106         * modules/signal (Makefile.am): Likewise.
21107         * modules/spawn (Makefile.am): Likewise.
21108         * modules/stdarg (Makefile.am): Likewise.
21109         * modules/stddef (Makefile.am): Likewise.
21110         * modules/stdint (Makefile.am): Likewise.
21111         * modules/stdio (Makefile.am): Likewise.
21112         * modules/stdlib (Makefile.am): Likewise.
21113         * modules/string (Makefile.am): Likewise.
21114         * modules/strings (Makefile.am): Likewise.
21115         * modules/sys_file (Makefile.am): Likewise.
21116         * modules/sys_ioctl (Makefile.am): Likewise.
21117         * modules/sys_select (Makefile.am): Likewise.
21118         * modules/sys_socket (Makefile.am): Likewise.
21119         * modules/sys_stat (Makefile.am): Likewise.
21120         * modules/sys_time (Makefile.am): Likewise.
21121         * modules/sys_times (Makefile.am): Likewise.
21122         * modules/sys_uio (Makefile.am): Likewise.
21123         * modules/sys_utsname (Makefile.am): Likewise.
21124         * modules/sys_wait (Makefile.am): Likewise.
21125         * modules/sysexits (Makefile.am): Likewise.
21126         * modules/termios (Makefile.am): Likewise.
21127         * modules/time (Makefile.am): Likewise.
21128         * modules/unistd (Makefile.am): Likewise.
21129         * modules/wchar (Makefile.am): Likewise.
21130         * modules/wctype-h (Makefile.am): Likewise.
21131         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
21132
21133 2011-05-29  Bruno Haible  <bruno@clisp.org>
21134
21135         assert-h: Allow multiple gnulib generated replacements to coexist.
21136         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
21137
21138 2011-05-29  Bruno Haible  <bruno@clisp.org>
21139
21140         argp: Allow coexistence with strerror_r-posix module.
21141         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
21142         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
21143         by gnulib's <string.h> replacement), assume it has the POSIX signature,
21144         not the glibc signature.
21145
21146 2011-05-28  Bruno Haible  <bruno@clisp.org>
21147
21148         gnulib-tool: Alternative structure of testdirs, similar to --import.
21149         * gnulib-tool: New option --single-configure.
21150         (func_usage): Document it.
21151         (single_configure): New variable.
21152         (func_modules_transitive_closure_separately,
21153         func_modules_transitive_closure_separately,
21154         func_determine_use_libtests, func_modules_add_dummy_separately,
21155         func_modules_to_filelist_separately): New functions, extracted from
21156         func_import.
21157         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
21158         (func_import): Use the new functions.
21159         (func_create_testdir): Set final_modules. Handle $single_configure =
21160         true case.
21161
21162 2011-05-28  Bruno Haible  <bruno@clisp.org>
21163
21164         getloadavg: Remove an unreliable safety check.
21165         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
21166         getloadavg.c is in place.
21167         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
21168         Reported by Sam Steingold <sds@gnu.org>.
21169
21170 2011-05-28  Bruno Haible  <bruno@clisp.org>
21171
21172         doc: Cleanup yet another file produced by texinfo.tex.
21173         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
21174
21175 2011-05-28  Bruno Haible  <bruno@clisp.org>
21176
21177         Finish the conditional dependencies mechanism.
21178         * gnulib-tool: New option --no-conditional-dependencies.
21179         (func_usage): Document it. Don't mark --conditional-dependencies as
21180         experimental.
21181         (cond_dependencies): The possible values can now be true, false, empty.
21182         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
21183         (func_import): Store setting in gnulib-cache.m4 and read it from there.
21184         * doc/gnulib-tool.texi (Conditional dependencies): New section.
21185
21186 2011-05-28  Bruno Haible  <bruno@clisp.org>
21187
21188         doc: Use a recent texinfo.tex.
21189         * doc/Makefile (tex_opts): New variable.
21190         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
21191
21192 2011-05-28  Jim Meyering  <meyering@redhat.com>
21193
21194         intprops.h: adjust comment to match code change
21195         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
21196         only once, it *may* have side effects.  Also fix an unrelated typo.
21197         (_GL_INT_SIGNED): Likewise.
21198
21199 2011-05-26  Simon Josefsson  <simon@josefsson.org>
21200
21201         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
21202
21203 2011-05-26  Bruno Haible  <bruno@clisp.org>
21204
21205         mbsrchr: Avoid collision with system function on Interix.
21206         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
21207         Reported by Markus Duft <mduft@gentoo.org>.
21208
21209 2011-05-15  James Youngman  <jay@gnu.org>
21210
21211         getopt: for ambiguous options, enumerate the possibilities.
21212         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
21213         the ambiguous options when an ambiguous prefix is given. This was
21214         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
21215         glibc change was
21216         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
21217
21218 2011-05-25  Eric Blake  <eblake@redhat.com>
21219
21220         getcwd: work around mingw bug
21221         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
21222         * doc/posix-functions/getcwd.texi (getcwd): Document it.
21223         Reported by Matthias Bolte.
21224
21225 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
21226
21227         test-intprops: disable -Wtype-limits diagnostics
21228         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
21229         diagnostics.  Otherwise, the integer overflow macros generate many
21230         diagnostics.  Reported by Jim Meyering in
21231         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
21232
21233         intprops: shorten, to pacify gcc -Woverlength-strings
21234         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
21235         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
21236         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
21237         likely to run afoul of C compiler limits for string constant lengths.
21238         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
21239
21240 2011-05-24  Eric Blake  <eblake@redhat.com>
21241
21242         docs: document recently fixed glibc printf bug
21243         * doc/posix-functions/fprintf.texi (fprintf): Document it.
21244         * doc/posix-functions/printf.texi (printf): Likewise.
21245         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
21246         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
21247
21248         closein-tests: convert to init.sh
21249         * modules/closein-tests (Files): Add init.sh
21250         * tests/test-closein.sh Use it.
21251
21252         yesno-tests: convert to init.sh
21253         * modules/yesno-tests (Files): Add init.sh.
21254         * tests/test-yesno.sh: Use it.
21255
21256         atexit-tests: ensure reliable exit status
21257         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
21258         Reported by Bruno Haible.
21259
21260 2011-05-24  Bruno Haible  <bruno@clisp.org>
21261
21262         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
21263         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
21264         gl_PREREQ_STRERROR_R invocations from here...
21265         * modules/strerror_r-posix (configure.ac): ... to here.
21266
21267 2011-05-24  Eric Blake  <eblake@redhat.com>
21268
21269         strerror_r: fix missing header
21270         * lib/strerror_r.c: Avoid compiler warning about snprintf.
21271
21272         strerror_r: fix AIX test failures
21273         * lib/strerror_r.c (strerror_r): Convert silent truncation to
21274         ERANGE failure.
21275
21276         strerror_r: fix Solaris test failures
21277         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
21278         failures.
21279         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
21280
21281         strerror_r: enforce POSIX recommendations
21282         * lib/strerror_r.c (safe_copy): New helper method.
21283         (strerror_r): Guarantee a non-empty string.
21284         * tests/test-strerror_r.c (main): Enhance tests to incorporate
21285         recent POSIX rulings and to match our strerror guarantees.
21286         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
21287
21288 2011-05-24  Jim Meyering  <meyering@redhat.com>
21289
21290         test-perror2.c: avoid warning about unused variable
21291         * tests/test-perror2.c (main): Remove declaration of unused "fp".
21292
21293 2011-05-24  Eric Blake  <eblake@redhat.com>
21294
21295         perror: avoid spurious test failure on HP-UX
21296         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
21297
21298         tests: fix logic bug in init.sh
21299         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
21300         shell.
21301
21302 2011-05-24  Jim Meyering  <meyering@redhat.com>
21303
21304         utimensat: do not reference an out-of-scope buffer
21305         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
21306         declared in an inner scope, yet "times" would be dereferenced outside
21307         the scope in which "ts" was valid.
21308         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
21309         of ts[2] "out/up", so that the use of aliased "times" (via
21310         "times = ts;") does not end up referencing an out-of-scope "ts"
21311
21312         opendir-safer.c: don't clobber errno; don't close negative FD
21313         * lib/opendir-safer.c (opendir_safer):
21314         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
21315         file descriptor, and more importantly, don't clobber the
21316         offending errno value with EINVAL.  Before, upon failure
21317         of dup_safer, we would pass the negative file descriptor to
21318         fdopendir, which would clobber errno.
21319
21320 2011-05-23  Bruno Haible  <bruno@clisp.org>
21321
21322         idcache: Fix module description.
21323         * modules/idcache (Include): Set to "idcache.h".
21324
21325 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
21326
21327         gnulib-tool: fix portability problem with MacOS sed
21328         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
21329         before the "}".  Problem reported by Leo in
21330         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
21331         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
21332         sed_extract_condition1, sed_extract_condition2.
21333
21334 2011-05-23  Bruno Haible  <bruno@clisp.org>
21335
21336         hash: Simplify autoconf macro.
21337         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
21338
21339 2011-05-23  Bruno Haible  <bruno@clisp.org>
21340
21341         getugroups: Fix module description.
21342         * modules/getugroups (Include): Set to "getugroups.h".
21343
21344 2011-05-23  Bruno Haible  <bruno@clisp.org>
21345
21346         linkat: Simplify autoconf macro.
21347         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
21348
21349 2011-05-23  Bruno Haible  <bruno@clisp.org>
21350             Eric Blake  <eblake@redhat.com>
21351
21352         linkat, renameat: Update dependencies.
21353         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
21354         * modules/linkat (Depends-on): Likewise. Remove also readlink,
21355         symlinkat.
21356
21357 2011-05-23  Jim Meyering  <meyering@redhat.com>
21358
21359         maint.mk: more tight_scope improvements
21360         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
21361         (_gl_TS_headers): Define only in if-0'd block.
21362         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
21363         sometimes we must *not* use it.  Adjust uses accordingly.
21364         (sc_tight_scope): Use much simpler grep-based test to determine
21365         whether we skip this rule.
21366
21367         maint.mk: generalize/improve the tight-scope rule
21368         * top/maint.mk: Emit a warning when the test is skipped.
21369         (_gl_TS_dir): Add $(srcdir)/ prefix.
21370         (_gl_TS_function_match): Simplify, rather than trying
21371         to enumerate common types.  Otherwise, it would fail to match an
21372         "extern unsigned char const *" declaration in idutils.
21373         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
21374         a way to support use of that type of macro.
21375         (_gl_TS_var_match): Simplify regexp.
21376         (_gl_TS_obj_files): New configurable variable.
21377         (_gl_TS_headers): Likewise.
21378
21379 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
21380
21381         verify: fix bug when gnulib <assert.h> is also included
21382         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
21383         is defined, not if _GL_STATIC_ASSERT_H is not defined.
21384         Perhaps there's a better way, but this fixes the immediate problem.
21385         Problem reported by Bruno Haible in
21386         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
21387
21388 2011-05-22  Bruno Haible  <bruno@clisp.org>
21389
21390         xgetcwd: Simplify autoconf macro.
21391         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
21392
21393 2011-05-22  Bruno Haible  <bruno@clisp.org>
21394
21395         New module 'mktime-internal'.
21396         * modules/mktime-internal: New file.
21397         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
21398         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
21399         mktime_internal as a C macro if libc has __mktime_internal.
21400         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
21401         conditions.
21402         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
21403
21404 2011-05-22  Bruno Haible  <bruno@clisp.org>
21405
21406         timegm: Correct mktime replacement statements.
21407         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
21408         defining mktime as a C macro. This completes a 2009-07-28 commit.
21409
21410 2011-05-22  Bruno Haible  <bruno@clisp.org>
21411
21412         timegm: Simplify autoconf macro.
21413         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
21414
21415 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
21416
21417         clock-time: change to LGPLv2+.
21418         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
21419         BSD-like but we have no mark for that; this is good enough for now.
21420
21421 2011-05-21  Bruno Haible  <bruno@clisp.org>
21422
21423         strerror_r: Fix comments.
21424         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
21425
21426 2011-05-21  Bruno Haible  <bruno@clisp.org>
21427
21428         relocatable-prog-wrapper: Fix possible link error.
21429         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
21430         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
21431         (gl_FUNC_SETENV): ... to here.
21432         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
21433         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
21434
21435 2011-05-21  Bruno Haible  <bruno@clisp.org>
21436
21437         relocatable-prog-wrapper: Assume strerror() exists.
21438         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
21439         m4/strerror.m4.
21440         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
21441         * lib/relocwrapper.c: Remove mention of strerror module.
21442         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
21443         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
21444         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
21445         C macro.
21446
21447 2011-05-21  Bruno Haible  <bruno@clisp.org>
21448
21449         select: Simplify replacement idiom.
21450         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
21451         Win32 platforms.
21452         * lib/sys_select.in.h (select): Simplify accordingly.
21453         * modules/select (Depends-on): Likewise.
21454
21455 2011-05-21  Bruno Haible  <bruno@clisp.org>
21456
21457         mkdir-p: Simplify autoconf macro.
21458         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
21459         gl_FUNC_LCHOWN.
21460
21461 2011-05-21  Eric Blake  <eblake@redhat.com>
21462
21463         strerror_r: avoid clobbering strerror on cygwin
21464         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
21465         fall back instead to sys_errlist.
21466         * modules/strerror (configure.ac): Add witness.
21467         * tests/test-strerror_r.c (main): Enhance test.
21468         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
21469         * tests/test-perror2.c (main): Free memory before exit.
21470
21471 2011-05-21  Bruno Haible  <bruno@clisp.org>
21472
21473         mkdtemp: Use gnulib naming conventions.
21474         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
21475         * modules/mkdtemp (configure.ac): Update.
21476
21477 2011-05-20  Eric Blake  <eblake@redhat.com>
21478
21479         strerror_r: avoid corrupting errno on Solaris
21480         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
21481         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
21482
21483         strerror_r: avoid compiler warning
21484         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
21485
21486         strerror_r: simplify AIX code
21487         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
21488
21489         test-perror: avoid spurious failure on FreeBSD
21490         * modules/perror-tests (Depends-on): Add strerror, now that
21491         strerror_r no longer pulls it in.
21492
21493 2011-05-20  Bruno Haible  <bruno@clisp.org>
21494
21495         strerror_r-posix: Remove unused dependencies.
21496         * modules/strerror_r-posix (Depends-on): Remove strerror.
21497         Reported by Eric Blake.
21498
21499 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
21500
21501         intprops: remove assumption about A|B representation
21502         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
21503         is a valid integer if both A and B are.  Although this is true for
21504         all known practical hosts, the C standard doesn't guarantee it,
21505         and the code need not assume it.  Also, this change may work around
21506         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
21507         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
21508
21509 2011-05-20  Eric Blake  <eblake@redhat.com>
21510
21511         perror: work around FreeBSD bug
21512         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
21513         is broken.  Move AC_LIBOBJ...
21514         * modules/perror (configure.ac): Here.
21515         * doc/posix-functions/perror.texi (perror): Document this.
21516         * tests/test-perror2.c (main): Enhance test.
21517
21518         test-perror: check for strerror interactions
21519         * tests/macros.h (STREQ): Add macro.
21520         * modules/perror-tests (Files): Add second test.
21521         * tests/test-perror2.c (main): New file.
21522         * doc/posix-functions/perror.texi (perror): Document glibc bug.
21523
21524         test-perror: rewrite to use init script
21525         * modules/perror-tests (Files): Add init.sh.
21526         * tests/test-perror.sh: Use temporary directory.
21527
21528 2011-05-20  Jim Meyering  <meyering@redhat.com>
21529
21530         maint: replace misused "a" with "an"
21531         * doc/intprops.texi: "a integer"
21532         * doc/regex.texi: "a explanation"
21533         * lib/alignof.h: "a object"
21534         * lib/argmatch.h: "a explanation"
21535         * lib/argp-help.c: "a option" and "a OPTION_DOC"
21536         * lib/stdint.in.h: "a integer"
21537         * lib/userspec.c: "a owner"
21538         * doc/gnulib.texi: Fix "a idea", and reword.
21539
21540 2011-05-19  Jim Meyering  <meyering@redhat.com>
21541
21542         maint: correct misuse of "a" and "an"
21543         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
21544         * lib/argp-help.c: "an docum...": s/an/a/
21545         * lib/argp-parse.c: "An vector": s/An/A/
21546         * lib/execute.c: "an native": s/an/a/
21547         * lib/spawn-pipe.c: Likewise.
21548         * lib/gc.h: "an Gc_rc": s/an/a/
21549         * lib/unigbrk.in.h: "an grapheme": s/an/a/
21550         * lib/fts.c: "an stat.st_dev": s/an/a/
21551
21552 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
21553
21554         intprops-tests: work around HP-UX 11.23 cc bug with constants
21555         * tests/test-intprops.c (VERIFY): New macro.
21556         (main): Use it, instead of verify, to work around the compiler bug; see
21557         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
21558
21559         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
21560         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
21561         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
21562         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
21563         (_GL_REMAINDER_OVERFLOW): Use it.
21564
21565         intprops-tests: revert unsigned part of previous change
21566         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
21567         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
21568         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
21569         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
21570
21571 2011-05-19  Bruno Haible  <bruno@clisp.org>
21572
21573         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
21574         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
21575         strerror_r() returned without filling the buffer.
21576         Reported by Eric Blake.
21577
21578 2011-05-19  Eric Blake  <eblake@redhat.com>
21579
21580         strerror_r: guarantee unchanged errno
21581         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
21582         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
21583         failure.
21584         * tests/test-strerror_r.c (main): Enhance test.
21585
21586 2011-05-19  Bruno Haible  <bruno@clisp.org>
21587
21588         strerror_r: Reorder #if blocks.
21589         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
21590         for consistency with the previous commit.
21591
21592 2011-05-19  Bruno Haible  <bruno@clisp.org>
21593
21594         perror: Avoid clobbering the strerror buffer when possible.
21595         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
21596         * lib/strerror.c: Include it.
21597         * modules/strerror (Files): Add lib/strerror-impl.h.
21598         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
21599         (my_strerror): New function, defined through lib/strerror-impl.h.
21600         (perror): Use it instead of strerror.
21601         * modules/perror (Files): Add lib/strerror-impl.h.
21602         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
21603
21604 2011-05-19  Eric Blake  <eblake@redhat.com>
21605
21606         strerror_r: fix on newer cygwin
21607         * lib/strerror_r.c (strerror_r): Cygwin now has
21608         __xpg_strerror_r, use it.
21609
21610 2011-05-19  Bruno Haible  <bruno@clisp.org>
21611
21612         strerror_r: Avoid clobbering the strerror buffer when possible.
21613         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
21614         (sys_nerr, sys_errlist): New declarations.
21615         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
21616         HP-UX, native Win32, IRIX, and 32-bit Solaris.
21617         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
21618
21619 2011-05-19  Bruno Haible  <bruno@clisp.org>
21620
21621         strerror_r: Fix test failure on mingw.
21622         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
21623         EXTEND_STRERROR_R.
21624         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
21625         macros from errno.in.h instead.
21626
21627 2011-05-19  Eric Blake  <eblake@redhat.com>
21628
21629         strerror: relax test for Solaris
21630         * tests/test-strerror.c (main): Permit Solaris behavior.
21631         * tests/test-strerror_r.c (main): Likewise.
21632
21633         strerror: enforce POSIX ruling on strerror(0)
21634         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
21635         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
21636         * lib/strerror_r.c (rpl_strerror_r): Work around it.
21637         * doc/posix-functions/strerror.texi (strerror): Document it.
21638         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
21639         * tests/test-strerror.c (main): Strengthen test.
21640         * tests/test-strerror_r.c (main): Likewise.
21641
21642 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
21643
21644         intprop-tests: port to older and more-pedantic compilers
21645         * modules/intprops-tests (Files): Add tests/macros.h.
21646         * tests/test-intprops.c: Include macros.h.
21647         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
21648         it's no longer documented to expand to an integer constant expression.
21649         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
21650         argument is floating point, as it's no longer documented to expand
21651         to an integer constant expression in that case.
21652         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
21653         compiler bugs reported by Bruno Haible.  See
21654         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
21655         (U0, U1): New constants, to work around the same bugs.  Also,
21656         in tests, use e.g., "(unsigned int) 39" rather than "39u".
21657
21658         intprops: work around C compiler bugs
21659         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
21660         bug in Sun C 5.11 2010/08/13 and other compilers; see
21661         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
21662
21663         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
21664         * doc/intprops.texi (Integer Type Determination): Fix
21665         documentation for TYPE_IS_INTEGER: it returns an constant
21666         expression, not an integer constant expression.  Fix doc for
21667         TYPE_SIGNED: it returns an integer constant expression only if its
21668         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
21669         hardly worth documented that way....)
21670
21671 2011-05-18  Bruno Haible  <bruno@clisp.org>
21672
21673         strerror_r: Avoid clobbering the strerror buffer when possible.
21674         * lib/strerror_r.c (strerror_r): Merge the three implementations.
21675         Handle gnulib defined errno values here. When strerror() returns NULL
21676         or an empty string, return EINVAL.
21677         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
21678         gnulib defined errno values here.
21679         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
21680
21681 2011-05-18  Eric Blake  <eblake@redhat.com>
21682
21683         fnmatch: avoid compiler warning
21684         * lib/fnmatch_loop.c (FCT): Use correct type.
21685         Reported by Matthias Bolte.
21686
21687 2011-05-13  Jim Meyering  <meyering@redhat.com>
21688
21689         maint.mk: three new prohibit_<HDR>_without_use rules
21690         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
21691         (sc_prohibit_stdio-safer_without_use): Likewise.
21692         (sc_prohibit_xfreopen_without_use): Likewise.
21693
21694 2011-05-17  Jim Meyering  <meyering@redhat.com>
21695
21696         announce-gen: fail if the NEWS delta is empty
21697         If there's nothing noteworthy in NEWS, then either you forgot
21698         or you shouldn't be releasing.
21699         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
21700
21701 2011-05-17  Pádraig Brady <P@draigBrady.com>
21702
21703         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
21704         reserved symbols starting with double underscore from the check.
21705
21706 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
21707
21708         intprops: add doc
21709         * doc/intprops.texi: New file, documenting intprops.
21710         * doc/gnulib.texi (Particular Modules): Include it.
21711
21712         verify: add doc to gnulib manual and fix example
21713         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
21714         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
21715         (Compile-time Assertions): Fix example so it can't overflow.
21716
21717 2011-05-17  Jim Meyering  <meyering@redhat.com>
21718
21719         warnings.m4: don't usurp save_CPPFLAGS variable name
21720         * m4/warnings.m4: Prefix local temporary variable name with gl_.
21721
21722         doc: fix typo
21723         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
21724
21725 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
21726             Bruno Haible  <bruno@clisp.org>
21727
21728         doc: Tweak recent change.
21729         * README (Portability guidelines): Tweak new text.
21730         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
21731         Interix 6.1.
21732
21733 2011-05-16  Eric Blake  <eblake@redhat.com>
21734
21735         inttypes: avoid autoconf warning
21736         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
21737         * m4/stdint.m4 (gl_STDINT_H): Likewise.
21738
21739 2011-05-16  Sam Steingold <sds@gnu.org>
21740         and Eric Blake  <eblake@redhat.com>
21741
21742         vc-list-files: accept multiple directory operands
21743         * build-aux/vc-list-files: Iterate over all remaining operands.
21744
21745 2011-05-16  Bruno Haible  <bruno@clisp.org>
21746
21747         Fix confusion regarding deprecated modules.
21748         * modules/calloc (Status, Notice): Mark module as deprecated, not
21749         obsolete.
21750         * modules/fnmatch-posix (Status, Notice): Likewise.
21751         * modules/getdate (Status, Notice): Likewise.
21752         * modules/getopt (Status, Notice): Likewise.
21753         * modules/malloc (Status, Notice): Likewise.
21754         * modules/pipe (Status, Notice): Likewise.
21755         * modules/realloc (Status, Notice): Likewise.
21756         * modules/rename-dest-slash (Status, Notice): Likewise.
21757         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
21758         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
21759         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
21760         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
21761         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
21762
21763 2011-05-16  Bruno Haible  <bruno@clisp.org>
21764
21765         doc: List the target platforms.
21766         * doc/gnulib-intro.texi (Target Platforms): New section.
21767         * doc/gnulib.texi (Introduction): Update menu.
21768         * README (Portability guidelines): Refer to the new section. Update
21769         statement about oldest supported environment. Remove rationale why
21770         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
21771         unportable C89 function.
21772         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
21773         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
21774
21775 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
21776
21777         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
21778
21779 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
21780
21781         intprops-tests: new module
21782         * modules/intprops-tests, tests/test-intprops.c: New files.
21783
21784         intprops: add safe, portable integer overflow checking
21785         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
21786         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
21787         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
21788         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
21789         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
21790         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
21791         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
21792         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
21793         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
21794         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
21795         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
21796
21797 2011-05-12  James Youngman  <jay@gnu.org>
21798
21799         Add a test for glibc's Bugzilla bug #12378.
21800         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
21801         doesn't allow the literal matching of a lone "[" (which is
21802         required by POSIX).
21803         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
21804
21805 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
21806
21807         Sync glibc change fixing Bugzilla bug #12378.
21808         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
21809         beginning and fall back to matching as normal character if the
21810         string ends before the matching ']' is found.  This is what POSIX
21811         requires.
21812
21813 2011-05-13  Eric Blake  <eblake@redhat.com>
21814
21815         getcwd-lgpl: relax test for FreeBSD
21816         * doc/posix-functions/getcwd.texi (getcwd): Document portability
21817         issue.
21818         * tests/test-getcwd-lgpl.c (main): Relax test.
21819         Reported by Matthias Bolte.
21820
21821 2011-05-11  Eric Blake  <eblake@redhat.com>
21822
21823         test-fflush: silence compiler warning
21824         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
21825
21826 2011-05-11  Bruno Haible  <bruno@clisp.org>
21827
21828         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
21829         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
21830         * modules/canonicalize (Depends-on): Add 'nocrash'.
21831         * modules/canonicalize-lgpl (Depends-on): Likewise.
21832         * doc/posix-functions/realpath.texi: Update platforms list.
21833         Reported by Ryan Schmidt <ryandesign@macports.org>.
21834
21835 2011-05-11  Bruno Haible  <bruno@clisp.org>
21836
21837         group-member: Declare function in <unistd.h>.
21838         * lib/unistd.in.h (group_member): New declaration.
21839         * lib/group-member.h: Remove file.
21840         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
21841         * tests/test-unistd-c++.cc: Check signature of group_member.
21842         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
21843         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
21844         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
21845         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
21846         HAVE_GROUP_MEMBER.
21847         * modules/group-member (Files): Remove lib/group-member.h.
21848         (Depends-on): Add unistd. Specify conditions.
21849         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
21850         (Include): Change to <unistd.h>.
21851         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
21852         HAVE_GROUP_MEMBER.
21853         * NEWS: Mention the change.
21854         * lib/euidaccess.c: Don't include group-member.h.
21855
21856 2011-05-11  Bruno Haible  <bruno@clisp.org>
21857
21858         group-member: Document module.
21859         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
21860         module.
21861
21862 2011-05-11  Bruno Haible  <bruno@clisp.org>
21863
21864         fclose: Fix mistake earlier today.
21865         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
21866
21867 2011-05-11  Eric Blake  <eblake@redhat.com>
21868
21869         fclose: preserve fflush errors
21870         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
21871         Reported by Jim Meyering.
21872
21873         bootstrap: support a prereq of 'rpcgen -' on RHEL5
21874         * build-aux/bootstrap (check_versions): When no specific version
21875         is required, merely check that the app produces an exit status
21876         that indicates its existence.
21877
21878         maint.mk: drop redundant check
21879         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
21880         the same but better.
21881
21882 2011-05-11  Bruno Haible  <bruno@clisp.org>
21883
21884         fclose: Fix possible link error.
21885         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
21886         unregister_shadow_fd. Improve comments.
21887         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
21888         Eric Blake.
21889
21890 2011-05-11  Jim Meyering  <meyering@redhat.com>
21891
21892         maint.mk: improve "can not" detection and generalize rule name
21893         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
21894         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
21895         Use the same technique as in sc_prohibit_doubled_word, so that
21896         we recognize "can not" also when the words are separated by a newline.
21897         Suggested by Eric Blake.
21898         (perl_filename_lineno_text_): Define.  Factored out of...
21899         (prohibit_doubled_word_): ...here.  Use the new definition.
21900         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
21901         (prohibit_undesirable_word_seq_RE_): New overridable variable.
21902         (ignore_undesirable_word_sequence_RE_): New overridable variable.
21903
21904 2011-05-10  Eric Blake  <eblake@redhat.com>
21905
21906         fclose: avoid double close race when possible
21907         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
21908         all but WINDOWS_SOCKETS.
21909
21910 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
21911
21912         openat: correct new comment
21913         * lib/openat-proc.c (openat_proc_name): Correct the comment.
21914
21915 2011-05-10  Jim Meyering  <meyering@redhat.com>
21916
21917         openat: add comments
21918         * lib/openat-proc.c (openat_proc_name): Add comments,
21919         mostly from Eric Blake.
21920
21921 2011-05-09  Eric Blake  <eblake@redhat.com>
21922
21923         openat: reduce syscalls in first probe of /proc
21924         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
21925         be a directory.  Simplify the probe for .. bugs.
21926         * modules/openat (Depends-on): Drop same-inode.
21927         Reported by Bastien ROUCARIES.
21928
21929 2011-05-09  Jim Meyering  <meyering@redhat.com>
21930
21931         maint.mk: change semantics/name of tight_scope variables
21932         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
21933         Rename variables to align with semantics that make them more useful.
21934
21935         maint.mk: tweak new rule's name not to impinge
21936         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
21937         (sc_tight_scope): Use new rule name rather than $@-0.
21938
21939         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
21940         * top/maint.mk (sc_tight_scope): New rule.
21941         (sc_tight_scope-0): New rule, ifdef'd out.
21942         (_gl_TS_dir): Default.
21943         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
21944         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
21945
21946 2011-05-09  Simon Josefsson  <simon@josefsson.org>
21947
21948         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
21949         Haible <bruno@clisp.org>.
21950
21951 2011-05-08  Bruno Haible  <bruno@clisp.org>
21952
21953         Comments.
21954         * m4/isnanf.m4: Add comment.
21955         * m4/isnanl.m4: Likewise.
21956
21957 2011-05-08  Bruno Haible  <bruno@clisp.org>
21958
21959         glob: Remove obsolete macro.
21960         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
21961
21962 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
21963
21964         intprops: Sun C 5.11 supports __typeof__
21965         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
21966         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
21967         which is new.
21968         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
21969
21970         intprops: switch to usual gnulib indenting and naming
21971         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
21972         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
21973
21974         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
21975
21976 2011-05-08  Jim Meyering  <meyering@redhat.com>
21977
21978         maint.mk: suppress "Entering/Leaving directory" diag in announcement
21979         * top/maint.mk (release-prep): Use make's --no-print-directory
21980         option when generating the announcement.  This eliminates the
21981         pesky "make[2]: Entering/Leaving directory" diagnostics in the
21982         generated announcement template.
21983
21984 2011-05-08  Bruno Haible  <bruno@clisp.org>
21985
21986         tzset: Fix gettimeofday wrapper on Solaris 2.6.
21987         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
21988         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
21989
21990 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
21991
21992         ignore-value, verify: Omit include files from lib_SOURCES.
21993         * modules/ignore-value, modules/verify (Makefile.am):
21994         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
21995         that leads Automake to duplicate use of am__objects_... variables
21996         in Makefile.in.  See
21997         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
21998
21999 2011-05-07  Bruno Haible  <bruno@clisp.org>
22000
22001         fclose: Simplify autoconf macro.
22002         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
22003         defined.
22004
22005 2011-05-07  Bruno Haible  <bruno@clisp.org>
22006
22007         canonicalize-lgpl: Fix autoconf macro ordering bug.
22008         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
22009         gl_STDLIB_H_DEFAULTS.
22010
22011 2011-05-06  Eric Blake  <eblake@redhat.com>
22012
22013         maintainer-makefile: make sc_po_check easier to tune
22014         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
22015         to probe for strings, such as an alternate location for gnulib.
22016
22017         fclose: guarantee behavior on seekable stdin
22018         * modules/fclose (Depends-on): Add fflush.
22019         * doc/posix-functions/fclose.texi (fclose): Document this.
22020         * tests/test-fclose.c (main): Make test for this unconditional.
22021
22022 2011-05-06  Bruno Haible  <bruno@clisp.org>
22023
22024         fflush, fpurge: Relicense under LGPLv2+.
22025         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
22026         * modules/fpurge (License): Likewise.
22027         With permission from Eric Blake and Jim Meyering.
22028         Suggested by Eric Blake.
22029
22030 2011-05-06  Karl Berry  <karl@gnu.org>
22031
22032         * MODULES.html.sh (func_all_modules): remove exit.
22033
22034 2011-05-06  Jim Meyering  <meyering@redhat.com>
22035
22036         maint.mk: use info-gnu@ as the default only for a stable release
22037         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
22038         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
22039         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
22040         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
22041
22042 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
22043
22044         assert-h: new module, which supports C1X-style static_assert
22045         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
22046         * lib/verify.h: Revamp so that this can be copied into assert.h,
22047         while retaining the ability to use it standalone as before.
22048         Rename private identifiers so as not to encroach on the
22049         standard C namespace, since this is now used by assert.h.
22050         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
22051         the old verify_true.
22052         (_GL_VERIFY_TRUE): New macro, with much of the contents of
22053         the old verify_true.  Use _GL_VERIFY_TYPE.
22054         (_GL_VERIFY): New macro, with much of the contents of the old verify.
22055         (static_assert): New macro, if _GL_STATIC_ASSERT_H
22056         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
22057         defined when this file is copied into the replacement assert.h.
22058         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
22059         and _Static_assert is not built in.
22060         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
22061         defined, and use the new macros mentioned above.
22062         * doc/posix-headers/assert.texi: Document this.
22063
22064 2011-05-05  Bruno Haible  <bruno@clisp.org>
22065
22066         fclose, fflush: Respect rules for use of AC_LIBOBJ.
22067         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
22068         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
22069         gl_REPLACE_FCLOSE here.
22070         * modules/fflush (Depends-on): Remove fclose.
22071         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
22072         combination with module 'fclose'.
22073
22074 2011-05-05  Bruno Haible  <bruno@clisp.org>
22075
22076         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
22077         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
22078         gl_FUNC_FFLUSH.
22079         (gl_FUNC_FFLUSH): Use it.
22080         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
22081         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
22082         gl_REPLACE_FSEEKO here.
22083
22084 2011-05-05  Bruno Haible  <bruno@clisp.org>
22085
22086         tzset: Relicense under LGPL.
22087         * modules/tzset (License): Change to LGPL.
22088         No agreement needed; it's a no-op.
22089
22090         strtoimax, strtoumax: Relicense under LGPL.
22091         * modules/strtoimax (License): Change to LGPL.
22092         * modules/strtoumax (License): Likewise.
22093         With permission from Jim Meyering, Paul Eggert:
22094         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
22095         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
22096
22097         getgroups: Relicense under LGPL.
22098         * modules/getgroups (License): Change to LGPL.
22099         With permission from Jim Meyering, Paul Eggert, Eric Blake:
22100         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
22101         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
22102         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
22103
22104         nanosleep: Relicense under LGPL.
22105         * modules/nanosleep (License): Change to LGPL.
22106         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
22107         Haible:
22108         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
22109         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
22110         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
22111         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
22112
22113         futimens: Relicense under LGPL.
22114         * modules/futimens (License): Change to LGPL.
22115         With permission from Eric Blake:
22116         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
22117
22118         fflush: Relicense under LGPL.
22119         * modules/fflush (License): Change to LGPL.
22120         With permission from Eric Blake, Bruno Haible, Jim Meyering:
22121         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
22122         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
22123         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
22124
22125         tmpfile: Relicense under LGPL.
22126         * modules/tmpfile (License): Change to LGPL.
22127         With permission from Ben Pfaff:
22128         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
22129
22130         isfinite: Relicense under LGPL.
22131         * modules/isfinite (License): Change to LGPL.
22132         With permission from Ben Pfaff, Bruno Haible:
22133         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
22134         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
22135
22136         acosl..tanl: Relicense under LGPL.
22137         * modules/acosl (License): Change to LGPL.
22138         * modules/asinl (License): Likewise.
22139         * modules/atanl (License): Likewise.
22140         * modules/cosl (License): Likewise.
22141         * modules/expl (License): Likewise.
22142         * modules/logl (License): Likewise.
22143         * modules/sinl (License): Likewise.
22144         * modules/sqrtl (License): Likewise.
22145         * modules/tanl (License): Likewise.
22146         Source code originally from glibc and Paolo Bonzini. Agreements:
22147         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
22148         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
22149
22150 2011-05-05  Bruno Haible  <bruno@clisp.org>
22151
22152         signal: Define sighandler_t.
22153         * lib/signal.in.h (sighandler_t): New type.
22154         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
22155         whether sighandler_t is defined.
22156         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
22157         * modules/signal (Depends-on): Add extensions.
22158         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
22159         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
22160         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
22161
22162 2011-05-05  Eric Blake  <eblake@redhat.com>
22163
22164         maint: remove useless REPLACE_*_H macros
22165         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
22166         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
22167         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
22168         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
22169         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
22170         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
22171         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
22172         * m4/btowc.m4: Update callers.
22173         * m4/dirfd.m4: Likewise.
22174         * m4/duplocale.m4: Likewise.
22175         * m4/fchdir.m4: Likewise.
22176         * m4/fdopendir.m4: Likewise.
22177         * m4/inet_ntop.m4: Likewise.
22178         * m4/inet_pton.m4: Likewise.
22179         * m4/ioctl.m4: Likewise.
22180         * m4/mbrlen.m4: Likewise.
22181         * m4/mbrtowc.m4: Likewise.
22182         * m4/mbsinit.m4: Likewise.
22183         * m4/mbsnrtowcs.m4: Likewise.
22184         * m4/mbsrtowcs.m4: Likewise.
22185         * m4/poll.m4: Likewise.
22186         * m4/setlocale.m4: Likewise.
22187         * m4/wcrtomb.m4: Likewise.
22188         * m4/wcsnrtombs.m4: Likewise.
22189         * m4/wcsrtombs.m4: Likewise.
22190         * m4/wctob.m4: Likewise.
22191         * m4/wcwidth.m4: Likewise.
22192         * modules/posix_spawn: Likewise.
22193         * modules/posix_spawn_file_actions_addclose: Likewise.
22194         * modules/posix_spawn_file_actions_adddup2: Likewise.
22195         * modules/posix_spawn_file_actions_addopen: Likewise.
22196         * modules/posix_spawn_file_actions_destroy: Likewise.
22197         * modules/posix_spawn_file_actions_init: Likewise.
22198         * modules/posix_spawnattr_destroy: Likewise.
22199         * modules/posix_spawnattr_getflags: Likewise.
22200         * modules/posix_spawnattr_getpgroup: Likewise.
22201         * modules/posix_spawnattr_getschedparam: Likewise.
22202         * modules/posix_spawnattr_getschedpolicy: Likewise.
22203         * modules/posix_spawnattr_getsigdefault: Likewise.
22204         * modules/posix_spawnattr_getsigmask: Likewise.
22205         * modules/posix_spawnattr_init: Likewise.
22206         * modules/posix_spawnattr_setflags: Likewise.
22207         * modules/posix_spawnattr_setpgroup: Likewise.
22208         * modules/posix_spawnattr_setschedparam: Likewise.
22209         * modules/posix_spawnattr_setschedpolicy: Likewise.
22210         * modules/posix_spawnattr_setsigdefault: Likewise.
22211         * modules/posix_spawnattr_setsigmask: Likewise.
22212         * modules/posix_spawnp: Likewise.
22213
22214 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
22215
22216         Add option to do-release-commit-and-tag to specify branch.
22217         * build-aux/do-release-commit-and-tag: Add --branch.
22218
22219 2011-05-03  Bruno Haible  <bruno@clisp.org>
22220
22221         Avoid unnecessary compilation units, through conditional dependencies.
22222         * modules/accept (Depends-on): Add conditions to the dependencies.
22223         * modules/acosl (Depends-on): Likewise.
22224         * modules/argz (Depends-on): Likewise.
22225         * modules/asinl (Depends-on): Likewise.
22226         * modules/atanl (Depends-on): Likewise.
22227         * modules/atoll (Depends-on): Likewise.
22228         * modules/bind (Depends-on): Likewise.
22229         * modules/btowc (Depends-on): Likewise.
22230         * modules/canonicalize-lgpl (Depends-on): Likewise.
22231         * modules/ceil (Depends-on): Likewise.
22232         * modules/ceilf (Depends-on): Likewise.
22233         * modules/ceill (Depends-on): Likewise.
22234         * modules/chdir-long (Depends-on): Likewise.
22235         * modules/chown (Depends-on): Likewise.
22236         * modules/close (Depends-on): Likewise.
22237         * modules/connect (Depends-on): Likewise.
22238         * modules/cosl (Depends-on): Likewise.
22239         * modules/dirfd (Depends-on): Likewise.
22240         * modules/dprintf (Depends-on): Likewise.
22241         * modules/dprintf-posix (Depends-on): Likewise.
22242         * modules/error (Depends-on): Likewise.
22243         * modules/euidaccess (Depends-on): Likewise.
22244         * modules/expl (Depends-on): Likewise.
22245         * modules/faccessat (Depends-on): Likewise.
22246         * modules/fchdir (Depends-on): Likewise.
22247         * modules/fclose (Depends-on): Likewise.
22248         * modules/fcntl (Depends-on): Likewise.
22249         * modules/fdopendir (Depends-on): Likewise.
22250         * modules/fflush (Depends-on): Likewise.
22251         * modules/floor (Depends-on): Likewise.
22252         * modules/floorf (Depends-on): Likewise.
22253         * modules/floorl (Depends-on): Likewise.
22254         * modules/fnmatch (Depends-on): Likewise.
22255         * modules/fopen (Depends-on): Likewise.
22256         * modules/fprintf-posix (Depends-on): Likewise.
22257         * modules/frexp (Depends-on): Likewise.
22258         * modules/frexp-nolibm (Depends-on): Likewise.
22259         * modules/frexpl (Depends-on): Likewise.
22260         * modules/frexpl-nolibm (Depends-on): Likewise.
22261         * modules/fseek (Depends-on): Likewise.
22262         * modules/fsusage (Depends-on): Likewise.
22263         * modules/ftell (Depends-on): Likewise.
22264         * modules/ftello (Depends-on): Likewise.
22265         * modules/futimens (Depends-on): Likewise.
22266         * modules/getcwd (Depends-on): Likewise.
22267         * modules/getcwd-lgpl (Depends-on): Likewise.
22268         * modules/getdelim (Depends-on): Likewise.
22269         * modules/getdomainname (Depends-on): Likewise.
22270         * modules/getgroups (Depends-on): Likewise.
22271         * modules/gethostname (Depends-on): Likewise.
22272         * modules/getline (Depends-on): Likewise.
22273         * modules/getlogin_r (Depends-on): Likewise.
22274         * modules/getopt-posix (Depends-on): Likewise.
22275         * modules/getpeername (Depends-on): Likewise.
22276         * modules/getsockname (Depends-on): Likewise.
22277         * modules/getsockopt (Depends-on): Likewise.
22278         * modules/getsubopt (Depends-on): Likewise.
22279         * modules/getusershell (Depends-on): Likewise.
22280         * modules/glob (Depends-on): Likewise.
22281         * modules/grantpt (Depends-on): Likewise.
22282         * modules/iconv_open (Depends-on): Likewise.
22283         * modules/iconv_open-utf (Depends-on): Likewise.
22284         * modules/inet_ntop (Depends-on): Likewise.
22285         * modules/inet_pton (Depends-on): Likewise.
22286         * modules/ioctl (Depends-on): Likewise.
22287         * modules/isapipe (Depends-on): Likewise.
22288         * modules/isfinite (Depends-on): Likewise.
22289         * modules/isinf (Depends-on): Likewise.
22290         * modules/lchown (Depends-on): Likewise.
22291         * modules/ldexpl (Depends-on): Likewise.
22292         * modules/link (Depends-on): Likewise.
22293         * modules/linkat (Depends-on): Likewise.
22294         * modules/listen (Depends-on): Likewise.
22295         * modules/logl (Depends-on): Likewise.
22296         * modules/lstat (Depends-on): Likewise.
22297         * modules/mbrlen (Depends-on): Likewise.
22298         * modules/mbrtowc (Depends-on): Likewise.
22299         * modules/mbsinit (Depends-on): Likewise.
22300         * modules/mbsnrtowcs (Depends-on): Likewise.
22301         * modules/mbsrtowcs (Depends-on): Likewise.
22302         * modules/mbtowc (Depends-on): Likewise.
22303         * modules/memcmp (Depends-on): Likewise.
22304         * modules/mkdir (Depends-on): Likewise.
22305         * modules/mkdtemp (Depends-on): Likewise.
22306         * modules/mkfifo (Depends-on): Likewise.
22307         * modules/mkfifoat (Depends-on): Likewise.
22308         * modules/mknod (Depends-on): Likewise.
22309         * modules/mkostemp (Depends-on): Likewise.
22310         * modules/mkostemps (Depends-on): Likewise.
22311         * modules/mkstemp (Depends-on): Likewise.
22312         * modules/mkstemps (Depends-on): Likewise.
22313         * modules/mktime (Depends-on): Likewise.
22314         * modules/nanosleep (Depends-on): Likewise.
22315         * modules/open (Depends-on): Likewise.
22316         * modules/openat (Depends-on): Likewise.
22317         * modules/perror (Depends-on): Likewise.
22318         * modules/poll (Depends-on): Likewise.
22319         * modules/popen (Depends-on): Likewise.
22320         * modules/posix_spawn (Depends-on): Likewise.
22321         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
22322         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
22323         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
22324         * modules/posix_spawnp (Depends-on): Likewise.
22325         * modules/pread (Depends-on): Likewise.
22326         * modules/printf-posix (Depends-on): Likewise.
22327         * modules/ptsname (Depends-on): Likewise.
22328         * modules/putenv (Depends-on): Likewise.
22329         * modules/pwrite (Depends-on): Likewise.
22330         * modules/readline (Depends-on): Likewise.
22331         * modules/readlink (Depends-on): Likewise.
22332         * modules/readlinkat (Depends-on): Likewise.
22333         * modules/recv (Depends-on): Likewise.
22334         * modules/recvfrom (Depends-on): Likewise.
22335         * modules/regex (Depends-on): Likewise.
22336         * modules/remove (Depends-on): Likewise.
22337         * modules/rename (Depends-on): Likewise.
22338         * modules/renameat (Depends-on): Likewise.
22339         * modules/rmdir (Depends-on): Likewise.
22340         * modules/round (Depends-on): Likewise.
22341         * modules/roundf (Depends-on): Likewise.
22342         * modules/roundl (Depends-on): Likewise.
22343         * modules/rpmatch (Depends-on): Likewise.
22344         * modules/select (Depends-on): Likewise.
22345         * modules/send (Depends-on): Likewise.
22346         * modules/sendto (Depends-on): Likewise.
22347         * modules/setenv (Depends-on): Likewise.
22348         * modules/setlocale (Depends-on): Likewise.
22349         * modules/setsockopt (Depends-on): Likewise.
22350         * modules/shutdown (Depends-on): Likewise.
22351         * modules/sigaction (Depends-on): Likewise.
22352         * modules/signbit (Depends-on): Likewise.
22353         * modules/sigprocmask (Depends-on): Likewise.
22354         * modules/sinl (Depends-on): Likewise.
22355         * modules/sleep (Depends-on): Likewise.
22356         * modules/snprintf (Depends-on): Likewise.
22357         * modules/snprintf-posix (Depends-on): Likewise.
22358         * modules/socket (Depends-on): Likewise.
22359         * modules/sprintf-posix (Depends-on): Likewise.
22360         * modules/sqrtl (Depends-on): Likewise.
22361         * modules/stat (Depends-on): Likewise.
22362         * modules/strchrnul (Depends-on): Likewise.
22363         * modules/strdup-posix (Depends-on): Likewise.
22364         * modules/strerror (Depends-on): Likewise.
22365         * modules/strerror_r-posix (Depends-on): Likewise.
22366         * modules/strndup (Depends-on): Likewise.
22367         * modules/strnlen (Depends-on): Likewise.
22368         * modules/strptime (Depends-on): Likewise.
22369         * modules/strsep (Depends-on): Likewise.
22370         * modules/strsignal (Depends-on): Likewise.
22371         * modules/strstr-simple (Depends-on): Likewise.
22372         * modules/strtod (Depends-on): Likewise.
22373         * modules/strtoimax (Depends-on): Likewise.
22374         * modules/strtok_r (Depends-on): Likewise.
22375         * modules/strtoumax (Depends-on): Likewise.
22376         * modules/symlink (Depends-on): Likewise.
22377         * modules/symlinkat (Depends-on): Likewise.
22378         * modules/tanl (Depends-on): Likewise.
22379         * modules/tcgetsid (Depends-on): Likewise.
22380         * modules/tmpfile (Depends-on): Likewise.
22381         * modules/trunc (Depends-on): Likewise.
22382         * modules/truncf (Depends-on): Likewise.
22383         * modules/truncl (Depends-on): Likewise.
22384         * modules/uname (Depends-on): Likewise.
22385         * modules/unlink (Depends-on): Likewise.
22386         * modules/unlockpt (Depends-on): Likewise.
22387         * modules/unsetenv (Depends-on): Likewise.
22388         * modules/usleep (Depends-on): Likewise.
22389         * modules/utimensat (Depends-on): Likewise.
22390         * modules/vasprintf (Depends-on): Likewise.
22391         * modules/vdprintf (Depends-on): Likewise.
22392         * modules/vdprintf-posix (Depends-on): Likewise.
22393         * modules/vfprintf-posix (Depends-on): Likewise.
22394         * modules/vprintf-posix (Depends-on): Likewise.
22395         * modules/vsnprintf (Depends-on): Likewise.
22396         * modules/vsnprintf-posix (Depends-on): Likewise.
22397         * modules/vsprintf-posix (Depends-on): Likewise.
22398         * modules/wcrtomb (Depends-on): Likewise.
22399         * modules/wcscasecmp (Depends-on): Likewise.
22400         * modules/wcscspn (Depends-on): Likewise.
22401         * modules/wcsdup (Depends-on): Likewise.
22402         * modules/wcsncasecmp (Depends-on): Likewise.
22403         * modules/wcsnrtombs (Depends-on): Likewise.
22404         * modules/wcspbrk (Depends-on): Likewise.
22405         * modules/wcsrtombs (Depends-on): Likewise.
22406         * modules/wcsspn (Depends-on): Likewise.
22407         * modules/wcsstr (Depends-on): Likewise.
22408         * modules/wcstok (Depends-on): Likewise.
22409         * modules/wcswidth (Depends-on): Likewise.
22410         * modules/wctob (Depends-on): Likewise.
22411         * modules/wctomb (Depends-on): Likewise.
22412         * modules/wctype (Depends-on): Likewise.
22413         * modules/wcwidth (Depends-on): Likewise.
22414         * modules/write (Depends-on): Likewise.
22415
22416 2011-05-03  Bruno Haible  <bruno@clisp.org>
22417
22418         Support for conditional dependencies.
22419         * doc/gnulib.texi (Module description): Document the syntax of
22420         conditional dependencies.
22421         * gnulib-tool: New option --conditional-dependencies.
22422         (func_usage): Document it.
22423         (cond_dependencies): New variable.
22424         (func_get_automake_snippet_conditional,
22425         func_get_automake_snippet_unconditional): New functions, extracted from
22426         func_get_automake_snippet.
22427         (func_get_automake_snippet): Use them.
22428         (sed_first_32_chars): New variable.
22429         (func_module_shellfunc_name): New function.
22430         (func_module_shellvar_name): New function.
22431         (func_module_conditional_name): New function.
22432         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
22433         func_cond_module_condition): New functions.
22434         (func_modules_transitive_closure): Add support for conditional
22435         dependencies.
22436         (func_emit_lib_Makefile_am): For a conditional module, enclose the
22437         conditional automake snippet in an automake conditional.
22438         (func_emit_autoconf_snippets): Emit shell functions that contain the
22439         code for conditional modules.
22440         (func_import, func_create_testdir): Update specification.
22441
22442 2011-05-03  Eric Blake  <eblake@redhat.com>
22443
22444         test-getaddrinfo: report error information
22445         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
22446
22447 2011-05-03  Jim Meyering  <meyering@redhat.com>
22448
22449         bootstrap: avoid build failure when $GZIP is set
22450         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
22451         program name.  If defined at all, it is supposed to list gzip options.
22452         Reported by Alan Curry in http://debbugs.gnu.org/8609
22453
22454 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
22455
22456         readme-release: new module with release instructions
22457         * modules/readme-release: New module.
22458         * top/README-release: New file, from coreutils, grep, diffutils.
22459         * MODULES.html.sh (Support for maintaining and releasing): Add it.
22460
22461 2011-05-02  Eric Blake  <eblake@redhat.com>
22462
22463         fflush: also replace fclose when fixing fflush
22464         * modules/fflush (Depends-on): Add fclose.
22465         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
22466         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
22467         memstreams with no backing fd.
22468         * doc/posix-functions/fclose.texi (fclose): Document the use of
22469         fflush module to fix the bug.
22470         * tests/test-fclose.c (main): Relax test when fclose is used in
22471         isolation.
22472
22473         fclose: add some tests
22474         * modules/fclose-tests: New test module.
22475         * tests/test-fclose.c: New file.
22476         * doc/posix-functions/fclose.texi (fclose): Document the bug.
22477
22478         fclose: reduced dependencies
22479         * modules/fclose (Depends-on): Switch from fflush/fseeko to
22480         simpler lseek.
22481         * lib/fclose.c (rpl_fclose): Likewise.
22482         Reported by Simon Josefsson.
22483
22484         exit: drop remaining clients
22485         * modules/argmatch (Depends-on): Replace exit with stdlib.
22486         * modules/copy-file (Depends-on): Likewise.
22487         * modules/execute (Depends-on): Likewise.
22488         * modules/exitfail (Depends-on): Likewise.
22489         * modules/obstack (Depends-on): Likewise.
22490         * modules/pagealign_alloc (Depends-on): Likewise.
22491         * modules/pipe-filter-gi (Depends-on): Likewise.
22492         * modules/pipe-filter-ii (Depends-on): Likewise.
22493         * modules/savewd (Depends-on): Likewise.
22494         * modules/spawn-pipe (Depends-on): Likewise.
22495         * modules/wait-process (Depends-on): Likewise.
22496         * modules/xsetenv (Depends-on): Likewise.
22497         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
22498         * modules/git-merge-changelog (Depends-on): Likewise.
22499         * modules/long-options (Depends-on): Likewise.
22500         * modules/pt_chown (Depends-on): Likewise.
22501         * modules/sysexits (Depends-on): Likewise.
22502
22503         freading: relax license from LGPLv3+ to LGPLv2+
22504         * modules/freading (License): Relax LGPL version.
22505
22506 2011-05-02  Bruno Haible  <bruno@clisp.org>
22507
22508         fchdir: Remove unused dependencies.
22509         * modules/fchdir (Depends-on): Remove include_next.
22510
22511 2011-05-02  Bruno Haible  <bruno@clisp.org>
22512
22513         gnulib-tool: Refactor.
22514         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
22515         from func_emit_autoconf_snippets.
22516         (func_emit_autoconf_snippets): Use it.
22517
22518 2011-05-02  Simon Josefsson  <simon@josefsson.org>
22519
22520         * NEWS: Document removal of 'exit'.
22521         * modules/exit: Remove file.
22522
22523 2011-05-01  Bruno Haible  <bruno@clisp.org>
22524
22525         Update DEPENDENCIES.
22526         * DEPENDENCIES (gettext): Recommend the newest release.
22527         Reported by Simon Josefsson.
22528
22529 2011-05-01  Bruno Haible  <bruno@clisp.org>
22530
22531         gnulib-tool: Reduce code duplication.
22532         * gnulib-tool (func_emit_autoconf_snippets): New function.
22533         (func_import, func_create_testdir): Use it.
22534
22535 2011-04-30  Eric Blake  <eblake@redhat.com>
22536
22537         fclose: don't fail on non-seekable input stream
22538         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
22539         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
22540         since fflush is allowed to fail in that case.
22541
22542 2011-04-30  Bruno Haible  <bruno@clisp.org>
22543
22544         dup3: cleanup
22545         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
22546
22547 2011-04-30  Bruno Haible  <bruno@clisp.org>
22548
22549         netdb: Make it work in C++ mode.
22550         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
22551         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
22552         module.
22553         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
22554         gl_MODULE_INDICATOR_FOR_TESTS.
22555         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
22556         * modules/netdb-c++-tests: New file.
22557         * tests/test-netdb-c++.cc: New file.
22558
22559 2011-04-30  Bruno Haible  <bruno@clisp.org>
22560
22561         New modules 'vfscanf', 'vscanf'.
22562         * modules/vfscanf: New file.
22563         * modules/vscanf: New file.
22564         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
22565         here.
22566         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
22567         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
22568
22569 2011-04-30  Bruno Haible  <bruno@clisp.org>
22570
22571         passfd: Add comments.
22572         * lib/passfd.c: Add comments about platforms.
22573
22574 2011-04-30  Bruno Haible  <bruno@clisp.org>
22575
22576         sys_uio: Make <sys/uio.h> self-contained.
22577         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
22578         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
22579
22580 2011-04-30  Bruno Haible  <bruno@clisp.org>
22581
22582         sys_socket: Ensure 'struct iovec' definition.
22583         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
22584         <sys/socket.h>.
22585         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
22586
22587 2011-04-30  Bruno Haible  <bruno@clisp.org>
22588
22589         sys_uio: Protect definition of 'struct iovec'.
22590         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
22591         it as a C struct.
22592
22593 2011-04-30  Bruno Haible  <bruno@clisp.org>
22594
22595         manywarnings: fix indentation
22596         * m4/manywarnings.m4: Indent by 2 spaces consistently.
22597
22598 2011-04-30  Pádraig Brady <P@draigBrady.com>
22599
22600         manywarnings: add -Wno-missing-field-initializers if needed.
22601         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
22602         option if it's needed to allow initialization with { 0, }
22603
22604 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
22605
22606         announce-gen: cosmetic improvement
22607         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
22608
22609 2011-04-29  Jim Meyering  <meyering@redhat.com>
22610
22611         vc-list-files: indent with spaces, not TABs
22612         * build-aux/vc-list-files: Convert leading TABs to spaces,
22613         to match the style of most other files in gnulib.
22614
22615         announce-gen: indent with spaces, not TABs
22616         * build-aux/announce-gen: Convert all TABs to spaces, to match
22617         the style of most other files in gnulib.
22618
22619 2011-04-29  Eric Blake  <eblake@redhat.com>
22620
22621         quotearg: avoid uninitialized variable use
22622         * lib/quotearg.c (quoting_options_from_style): Initialize
22623         remaining fields, and ensure that custom styles are only used via
22624         quoting_options rather than quoting_style.
22625
22626 2011-04-29  Jim Meyering  <meyering@redhat.com>
22627
22628         maint.mk: remove unused VC-tag variable
22629         * top/maint.mk (VC-tag): Remove unused variable.
22630
22631 2011-04-29  Bruno Haible  <bruno@clisp.org>
22632
22633         netdb: fix gai_strerror replacements
22634         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
22635         * modules/netdb: Substitute it.
22636
22637 2011-04-29  Jim Meyering  <meyering@redhat.com>
22638
22639         test-getcwd.c: avoid new set-but-not-used warning
22640         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
22641         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
22642         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
22643         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
22644
22645         test-hash.c: avoid a new shadowing warning
22646         * tests/test-hash.c (main): Don't shadow "dup".
22647
22648 2011-04-28  Eric Blake  <eblake@redhat.com>
22649
22650         getaddrinfo: fix gai_strerror signature
22651         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
22652         and work around mingw with UNICODE defined.
22653         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
22654         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
22655         * modules/netdb (Makefile.am): Substitute it.
22656         * lib/netdb.in.h (gai_strerror): Declare replacement.
22657         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
22658         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
22659         the fix.
22660
22661         getsockopt: avoid compiler warning
22662         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
22663         Reported by Matthias Bolte.
22664
22665         tests: drop unused link dependency
22666         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
22667         * modules/dirent-safer-tests (Makefile.am): Likewise.
22668         * modules/fdopendir-tests (Makefile.am): Likewise.
22669         * modules/mkfifoat-tests (Makefile.am): Likewise.
22670         * modules/openat-safer-tests (Makefile.am): Likewise.
22671         * modules/openat-tests (Makefile.am): Likewise.
22672         * modules/readlinkat-tests (Makefile.am): Likewise.
22673         * modules/symlinkat-tests (Makefile.am): Likewise.
22674         * modules/linkat-tests (Makefile.am): Likewise.
22675         (Depends-on): Switch to filenamecat-lgpl.
22676         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
22677         LIBINTL.
22678         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
22679         * tests/test-linkat.c (main): Don't require xalloc.
22680
22681         hash, mgetgroups: drop xalloc dependency
22682         * lib/hash.c (includes): Adjust includes.
22683         * lib/mgetgroups.c (includes): Likewise.
22684         (xgetgroups): Move...
22685         * lib/xgetgroups.c: ...to new file.
22686         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
22687         * modules/xgetgroups: New file, split from...
22688         * modules/mgetgroups: ...here.
22689         (Depends-on): Add xalloc-oversized.
22690         * modules/hash (Depends-on): Likewise.
22691         * modules/hash-tests (Depends-on): Drop xalloc.
22692         (test_hash_LDADD): Drop unused library.
22693         * tests/test-hash.c (main): Break xalloc dependency.
22694         (includes): Drop unused include.
22695
22696         xalloc-oversized: new module
22697         * modules/xalloc-oversized: New module.
22698         * modules/xalloc (Depends-on): Add it.
22699         * lib/xalloc.h (xalloc_oversized): Move...
22700         * lib/xalloc-oversized.h: ...into new file.
22701
22702         utimecmp: drop dependency on xmalloc
22703         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
22704         due to memory pressure.
22705         * modules/utimecmp (Depends-on): Drop xalloc.
22706
22707 2011-04-27  Eric Blake  <eblake@redhat.com>
22708
22709         getcwd: fix mingw bugs
22710         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
22711         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
22712         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
22713
22714 2011-04-27  Bruno Haible  <bruno@clisp.org>
22715
22716         mkstemps: Ensure declaration on MacOS X 10.5.
22717         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
22718         * doc/glibc-functions/mkstemps.texi: Document header file problem on
22719         MacOS X.
22720
22721 2011-04-27  Bruno Haible  <bruno@clisp.org>
22722
22723         mkstemp: More documentation.
22724         * doc/posix-functions/mkstemp.texi: Document header file problem on
22725         MacOS X.
22726
22727 2011-04-27  Bruno Haible  <bruno@clisp.org>
22728
22729         mkstemp: Tweak configure message when cross-compiling.
22730         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
22731         result as a guess.
22732
22733 2011-04-27  Bruno Haible  <bruno@clisp.org>
22734
22735         clean-temp: Clarify what it does.
22736         * lib/clean-temp.h: Add more comments.
22737         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
22738         module.
22739         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
22740         * doc/glibc-functions/mkstemps.texi: Likewise.
22741         * doc/glibc-functions/mkostemps.texi: Likewise.
22742
22743 2011-04-27  Eric Blake  <eblake@redhat.com>
22744
22745         fchdir: avoid extra chdir and fix test
22746         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
22747         getcwd-lgpl.
22748         * lib/fchdir.c (get_name): Any absolute name will do; it does not
22749         have to be canonical.
22750         (canonicalize_file_name): Drop unused macro.
22751         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
22752
22753         filenamecat-lgpl: fix licence
22754         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
22755         when it was first created.
22756
22757         linkat, renameat: add missing dependency
22758         * modules/linkat (Depends-on): Require getcwd-lgpl.
22759         * modules/renameat (Depends-on): Likewise.
22760
22761         tests: reduce dependencies
22762         * tests/test-linkat.c (main): Use lighter-weight getcwd.
22763         * tests/test-renameat.c (main): Likewise.
22764         * modules/linkat-tests (Depends-on): Relax dependency.
22765         * modules/renameat-tests (Depends-on): Likewise.
22766         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
22767         dependency explicit.
22768
22769         save-cwd: reduce default dependency
22770         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
22771         * lib/save-cwd.c: Update comments.
22772         * NEWS: Document the semantic change.
22773
22774         getcwd: enhance tests
22775         * tests/test-getcwd-lgpl.c: New file, taken from...
22776         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
22777         repeat long path stress tests from m4 probe.
22778         * modules/getcwd-lgpl-tests: New module.
22779         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
22780         * m4/getcwd-abort-bug.m4: Update comment.
22781         * m4/getcwd-path-max.m4: Likewise.
22782
22783         getcwd-lgpl: new module
22784         * modules/getcwd-lgpl: New module.
22785         * lib/getcwd-lgpl.c: New file.
22786         * doc/posix-functions/getcwd.texi (getcwd): Document it.
22787         * MODULES.html.sh (lacking POSIX:2008): Likewise.
22788         * modules/getcwd (configure.ac): Set C witness.
22789         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
22790
22791         getcwd: tweak comments
22792         * m4/getcwd-abort-bug.m4: Fix comments.
22793         * m4/getcwd-path-max.m4: Likewise.
22794         * m4/getcwd.m4: Likewise.
22795
22796 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
22797         and Eric Blake  <eblake@redhat.com>
22798
22799         mkstemp: replace if system version uses wrong permissions
22800         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
22801         read/write mode bits set in file created by mkstemp.
22802         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
22803
22804 2011-04-27  Eric Blake  <eblake@redhat.com>
22805
22806         passfd: avoid compiler warning
22807         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
22808         Reported by Laine Stump.
22809
22810 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
22811
22812         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
22813         required by the NetBSD (and perhaps other 4.4BSD derived) join.
22814
22815 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
22816         and Eric Blake  <eblake@redhat.com>
22817
22818         mkstemp: mention clean-temp module
22819         * lib/mkstemp.c: Add comment.
22820         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
22821
22822 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
22823
22824         inttypes: also provide default values for 32-bit tests
22825         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
22826         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
22827
22828 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
22829
22830         strtoumax: remove dependency on strtoimax
22831         This is like the strtoull change of yesterday.
22832         * modules/strtoumax (Files): Add lib/strtoimax.c.
22833         (Depends-on): Remove strtoimax and add verify.
22834
22835         inttypes-incomplete: new module
22836         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
22837         all but the PRI* and SCN* parts of gl_INTTYPES_H.
22838         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
22839         of gl_INTTYPES_H.
22840         (gl_INTTYPES_H): Rewrite in terms of these new macros.
22841         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
22842         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
22843         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
22844         * modules/strtoumax, modules/xstrtol (Depends-on):
22845         Depend on inttypes-incomplete, not inttypes.
22846         * modules/inttypes-incomplete: New module, containing the contents
22847         of the old modules/inttypes module, except that the Files: section
22848         omits m4/inttypes-pri.m4, and the configure.ac section invokes
22849         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
22850         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
22851         (Depends-on): Depend only on inttypes-incomplete.
22852         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
22853
22854         inttypes: omit now-redundant strtoimax and strtoumax work
22855         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
22856         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
22857
22858         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
22859         This supports apps that need pointers to strtoimax and strtoumax,
22860         and ports to HP-UX 11.00 64.bit, which has macros that expand to
22861         nonexistent functions.  See
22862         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
22863         et seq.
22864         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
22865         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
22866         a macro.
22867         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
22868
22869 2011-04-25  Simon Josefsson  <simon@josefsson.org>
22870
22871         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
22872
22873 2011-04-25  Bruno Haible  <bruno@clisp.org>
22874
22875         strtol, strtoul: Mark modules as obsolete.
22876         * modules/strtol (Status, Notice): New sections.
22877         * modules/strtoul (Status, Notice): New sections.
22878
22879 2011-04-25  Bruno Haible  <bruno@clisp.org>
22880
22881         strtod: Remove check for strtod, unless supporting old platforms.
22882         * modules/strtod-obsolete: New file.
22883         * m4/strtod-obsolete.m4: New file.
22884         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
22885         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
22886         * modules/strtod (Depends-on): Add strtod-obsolete.
22887         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
22888
22889 2011-04-25  Bruno Haible  <bruno@clisp.org>
22890
22891         strcase: Make module obsolete.
22892         * modules/strcase (Status, Notice): New sections.
22893
22894 2011-04-25  Bruno Haible  <bruno@clisp.org>
22895
22896         dup2: Remove check for dup2, unless supporting old obsolete platforms.
22897         * modules/dup2-obsolete: New file.
22898         * m4/dup2-obsolete.m4: New file.
22899         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
22900         gl_FUNC_DUP2_OBSOLETE is not also defined.
22901         * modules/dup2 (Depends-on): Add dup2-obsolete.
22902         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
22903
22904 2011-04-25  Bruno Haible  <bruno@clisp.org>
22905
22906         strnlen: Avoid memchr related link error on old obsolete platforms.
22907         * modules/memchr-obsolete: New file.
22908         * m4/memchr-obsolete.m4: New file.
22909         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
22910         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
22911         * modules/memchr (Depends-on): Add memchr-obsolete.
22912         * modules/strnlen (Depends-on): Likewise.
22913         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
22914
22915 2011-04-25  Jim Meyering  <meyering@redhat.com>
22916
22917         maint.mk: makefile_at_at_check extend and clean up
22918         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
22919         in addition to */Makefile.am.
22920         Exempt legitimate uses of @VAR@ notation, e.g.,
22921         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
22922         Remove obsolete coreutils-specific comment.
22923         Prompted by discussion here:
22924         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
22925
22926 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
22927
22928         strtoul: remove dependency on strtol
22929         This is so that 'configure' need not check for strtol merely because
22930         the application needs strtoul.
22931         * modules/strtoul (Files): Add lib/strtol.c.
22932         (Depends-on): Remove strtol.
22933
22934         strtoull: remove dependency on strtoul
22935         This is like the strtoll change.
22936         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
22937         (Depends-on): Remove strtoul.
22938
22939         strtoll: remove dependency on strtol
22940         This is so that 'configure' need not check for strtol merely because
22941         the application needs strtoll.
22942         * modules/strtoll (Files): Add lib/strtol.c.
22943         (Depends-on): Remove strtol.
22944
22945 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
22946
22947         inttypes: Move some configure check to module 'imaxdiv'.
22948         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
22949         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
22950         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
22951
22952 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
22953
22954         inttypes: Move some configure check to module 'imaxabs'.
22955         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
22956         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
22957         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
22958
22959 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
22960
22961         inttypes: Remove configure tests that are not needed since 2009-12-31.
22962         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
22963         gl_cv_header_working_inttypes_h.
22964
22965 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
22966
22967         * modules/strnlen (Depends-on): Remove memchr.
22968         The strnlen implementation doesn't need the memchr module's fixes; see
22969         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
22970
22971         strtol: remove dependency on wchar
22972         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
22973         * modules/strtol (Depends-on): Remove wchar.
22974
22975 2011-04-21  Eric Blake  <eblake@redhat.com>
22976
22977         passfd: fix test regression on Linux
22978         * modules/passfd-tests (configure.ac): Correct socketpair check.
22979
22980         passfd: speed up configure and drop unused code
22981         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
22982         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
22983         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
22984         Instead of probing at configure for unix_scm_rights_bsd44_way,
22985         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
22986         check to a struct member probe.
22987         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
22988         (sendfd, recvfd): Update preprocessor checks.
22989         * modules/passfd (Files): Reflect rename, and drop unused file.
22990         (Depends-on): Drop unused dependency.
22991
22992         passfd: allow compilation on mingw
22993         * modules/sys_socket (Depends-on): Add sys_uio.
22994         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
22995         iovec and a minimal struct msghdr.
22996         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
22997         * tests/test-sys_socket.c (main): Enhance test.
22998         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
22999         guaranteed to provide what we need.
23000         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
23001         * modules/passfd-tests (Depends-on): Add sys_wait.
23002         * tests/test-passfd.c (main): Skip test on mingw, for now.
23003         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
23004         partial 'struct msghdr' implementation.
23005
23006         sys_uio: new module
23007         * modules/sys_uio: New module.
23008         * modules/sys_uio-tests: Likewise.
23009         * lib/sys_uio.in.h: New file.
23010         * m4/sys_uio_h.m4: Likewise.
23011         * tests/test-sys_uio.c: Likewise.
23012         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
23013         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
23014
23015 2011-04-20  Jim Meyering  <meyering@redhat.com>
23016
23017         useless-if-before-free: avoid false-positive
23018         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
23019         disjunct so that it too requires a terminating ";".  Without that,
23020         this script would identify as useless one statement from gcc that
23021         was not:
23022           if (aligned_ptr)
23023             free (((void **) aligned_ptr) [-1]);
23024
23025 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
23026
23027         doc: update users.txt.
23028         * users.txt: Add barcode.
23029
23030 2011-04-19  Bruno Haible  <bruno@clisp.org>
23031
23032         ioctl: Remove link dependency on native Windows.
23033         * lib/fd-hook.h: Renamed from lib/close-hook.h.
23034         (gl_close_fn, gl_ioctl_fn): New types.
23035         (struct fd_hook): Renamed from struct close_hook. Change type of
23036         private_close_fn field. Add private_ioctl_fn field.
23037         (close_hook_fn): Add parameter for primary close method.
23038         (execute_close_hooks, execute_all_close_hooks): Likewise.
23039         (ioctl_hook_fn): New type.
23040         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
23041         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
23042         argument.
23043         (unregister_fd_hook): Renamed from unregister_close_hook.
23044         * lib/fd-hook.c: Renamed from lib/close-hook.c.
23045         Don't include <unistd.h>.
23046         (close): Remove undef.
23047         (anchor): Update.
23048         (execute_close_hooks): Add argument for primary close method.
23049         (execute_all_close_hooks): Likewise.
23050         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
23051         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
23052         argument. Allow each argument to be NULL.
23053         (unregister_fd_hook): Renamed from unregister_close_hook.
23054         * lib/close.c (rpl_close): Pass 'close' function pointer to
23055         execute_all_close_hooks.
23056         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
23057         (primary_ioctl): New function.
23058         (ioctl): Don't call ioctlsocket here. Instead, call
23059         execute_all_ioctl_hooks.
23060         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
23061         close method.
23062         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
23063         (fd_sockets_hook): Renamed from close_sockets_hook.
23064         (gl_sockets_startup, gl_sockets_cleanup): Update.
23065         * modules/fd-hook: Renamed from modules/close-hook. Update.
23066         * modules/close (Depends-on): Add fd-hook, remove close-hook.
23067         * modules/sockets (Depends-on): Likewise.
23068         * modules/ioctl (Depends-on): Add fd-hook.
23069         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
23070         GNULIB_SOCKET.
23071
23072 2011-04-19  Bruno Haible  <bruno@clisp.org>
23073
23074         Move the support of O_NONBLOCK in open() to the 'open' module.
23075         * modules/nonblocking (Depends-on): Remove 'open'.
23076         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
23077         gl_cv_have_open_O_NONBLOCK.
23078         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
23079         O_NONBLOCK support.
23080         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
23081
23082 2011-04-17  Bruno Haible  <bruno@clisp.org>
23083
23084         pipe2: Simplify code.
23085         * lib/pipe2.c (pipe2): Reduce code duplication.
23086
23087 2011-04-17  Bruno Haible  <bruno@clisp.org>
23088
23089         nonblocking: Add comment.
23090         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
23091
23092 2011-04-17  Bruno Haible  <bruno@clisp.org>
23093
23094         nonblocking: Add tests for sockets.
23095         * tests/test-nonblocking-socket.sh: New file.
23096         * tests/test-nonblocking-socket-main.c: New file.
23097         * tests/test-nonblocking-socket-child.c: New file.
23098         * tests/test-nonblocking-socket.h: New file.
23099         * tests/socket-server.h: New file.
23100         * tests/socket-client.h: New file.
23101         * modules/nonblocking-socket-tests: New file.
23102         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
23103
23104 2011-04-17  Bruno Haible  <bruno@clisp.org>
23105
23106         nonblocking: Add tests for pipes.
23107         * tests/test-nonblocking-pipe.sh: New file.
23108         * tests/test-nonblocking-pipe-main.c: New file.
23109         * tests/test-nonblocking-pipe-child.c: New file.
23110         * tests/test-nonblocking-pipe.h: New file.
23111         * tests/test-nonblocking-writer.h: New file.
23112         * tests/test-nonblocking-reader.h: New file.
23113         * tests/test-nonblocking-misc.h: New file.
23114         * modules/nonblocking-pipe-tests: New file.
23115         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
23116
23117 2011-04-16  Bruno Haible  <bruno@clisp.org>
23118
23119         gettext: Clarify the needed programmer actions.
23120         * modules/gettext (Notice): New field.
23121         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
23122
23123 2011-04-16  Bruno Haible  <bruno@clisp.org>
23124
23125         strchrnul: Tweak last commit.
23126         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
23127         bug.
23128         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
23129         as in _GL_FUNCDECL_SYS.
23130         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
23131         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
23132
23133 2011-04-15  Eric Blake  <eblake@redhat.com>
23134
23135         strchrnul: work around cygwin bug
23136         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
23137         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
23138         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
23139         * modules/string (Makefile.am): Substitute it.
23140         * lib/string.in.h (strchrnul): Use it.
23141
23142 2011-04-15  Bruno Haible  <bruno@clisp.org>
23143
23144         Don't require lib/stdio-write.c when only module 'stdio' is used.
23145         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
23146         invocation.
23147         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
23148
23149 2011-04-14  Bruno Haible  <bruno@clisp.org>
23150
23151         Support non-blocking pipe I/O in read() on native Windows.
23152         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
23153         (read): New declaration.
23154         * lib/read.c: New file.
23155         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
23156         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
23157         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
23158         vscanf): New declarations.
23159         * lib/stdio-read.c: New file.
23160         * m4/read.m4: New file.
23161         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
23162         REPLACE_READ.
23163         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
23164         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
23165         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
23166         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
23167         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
23168         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
23169         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
23170         * modules/read: New file.
23171         * modules/nonblocking (Files): Add lib/stdio-read.c.
23172         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
23173         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
23174         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
23175         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
23176         * modules/pread (Depends-on): Add read.
23177         * modules/safe-read (Depends-on): Likewise.
23178         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
23179         gets, scanf, vfscanf, vscanf): Verify signatures.
23180         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
23181         problem with non-blocking pipes.
23182         * doc/posix-functions/fgetc.texi: Likewise.
23183         * doc/posix-functions/fgets.texi: Likewise.
23184         * doc/posix-functions/fread.texi: Likewise.
23185         * doc/posix-functions/fscanf.texi: Likewise.
23186         * doc/posix-functions/getc.texi: Likewise.
23187         * doc/posix-functions/getchar.texi: Likewise.
23188         * doc/posix-functions/gets.texi: Likewise.
23189         * doc/posix-functions/scanf.texi: Likewise.
23190         * doc/posix-functions/vfscanf.texi: Likewise.
23191         * doc/posix-functions/vscanf.texi: Likewise.
23192
23193 2011-04-14  Bruno Haible  <bruno@clisp.org>
23194
23195         Support non-blocking pipe I/O in write() on native Windows.
23196         * lib/write.c (rpl_write): Split a write request that failed merely
23197         because the byte count was larger than the pipe buffer's size.
23198         * doc/posix-functions/write.texi: Mention the problem with large byte
23199         counts.
23200
23201 2011-04-14  Bruno Haible  <bruno@clisp.org>
23202
23203         wchar: Ensure that wchar_t gets defined on uClibc.
23204         * lib/wchar.in.h: On uClibc, include <stddef.h>.
23205         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
23206
23207 2011-04-13  Bruno Haible  <bruno@clisp.org>
23208
23209         safe-write, full-read: Avoid unnecessary compilation units.
23210         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
23211         (Depends-on): Remove safe-read. Add ssize_t.
23212         * modules/full-read (Files): Add lib/full-write.c.
23213         (Depends-on): Add full-write.
23214
23215 2011-04-13  Bruno Haible  <bruno@clisp.org>
23216
23217         Support non-blocking pipe I/O and SIGPIPE in pwrite().
23218         * modules/pwrite (Depends-on): Add 'write'.
23219
23220 2011-04-13  Bruno Haible  <bruno@clisp.org>
23221
23222         Support non-blocking pipe I/O in write() on native Windows.
23223         * lib/unistd.in.h (write): Enable replacement also if
23224         GNULIB_UNISTD_H_NONBLOCKING is 1.
23225         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
23226         (rpl_write): When failing to write on a non-blocking pipe, change
23227         errno from ENOSPC to EAGAIN.
23228         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
23229         putchar, puts, vfprintf, vprintf): Enable replacement also if
23230         GNULIB_STDIO_H_NONBLOCKING is 1.
23231         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
23232         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
23233         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
23234         CALL_WITH_SIGPIPE_EMULATION.
23235         (CALL_WITH_SIGPIPE_EMULATION): Use them.
23236         * m4/nonblocking.m4: New file.
23237         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
23238         for non-blocking I/O support.
23239         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23240         GNULIB_UNISTD_H_NONBLOCKING.
23241         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
23242         required for non-blocking I/O support.
23243         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
23244         * modules/nonblocking (Files): Add m4/nonblocking.m4,
23245         lib/stdio-write.c, m4/asm-underscore.m4.
23246         (Depends-on): Add stdio, unistd.
23247         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
23248         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
23249         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
23250         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
23251         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
23252         problem with non-blocking pipes.
23253         * doc/posix-functions/fputc.texi: Likewise.
23254         * doc/posix-functions/fputs.texi: Likewise.
23255         * doc/posix-functions/fwrite.texi: Likewise.
23256         * doc/posix-functions/printf.texi: Likewise.
23257         * doc/posix-functions/putc.texi: Likewise.
23258         * doc/posix-functions/putchar.texi: Likewise.
23259         * doc/posix-functions/puts.texi: Likewise.
23260         * doc/posix-functions/vfprintf.texi: Likewise.
23261         * doc/posix-functions/vprintf.texi: Likewise.
23262         * doc/posix-functions/write.texi: Likewise.
23263
23264 2011-04-10  Jim Meyering  <meyering@redhat.com>
23265
23266         maint.mk: prohibit doubled words
23267         Detect them also when they're separated by a newline.
23268         There are 3 ways to customize it:
23269           - disable the test on a per file basis, as usual with rules using
23270             $(VC_LIST_EXCEPT)
23271           - replace the default doubled-word-selecting regexp (affects all files)
23272           - ignore a particular file-vs-doubled-word match
23273         I nearly used that last one to ignore the "is is" match in
23274         coreutils' NEWS file, since the text was "ls -is is ..."
23275         To do that, I would have added this line to cfg.mk:
23276           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
23277         but it would have ignored any "is is" match in NEWS.
23278         Low probability, but still...
23279         Instead, I changed the text, slightly:
23280           -  ls -is is now consistent with ls -lis in ignoring values returned
23281           +  "ls -is" is now consistent with ls -lis in ignoring values returned
23282         * top/maint.mk (prohibit_double_word_RE_): Provide default.
23283         (prohibit_doubled_word_): Define.
23284         (sc_prohibit_doubled_word): New rule.
23285         (sc_prohibit_the_the): Remove.  Subsumed by the above.
23286
23287 2011-04-10  Jim Meyering  <meyering@redhat.com>
23288
23289         maint: fix doubled-word typo in comment
23290         * m4/gethostname.m4: s/is is/it is/
23291         * m4/getdomainname.m4: Likewise.
23292
23293 2011-04-10  Jim Meyering  <meyering@redhat.com>
23294
23295         maint: remove doubled word: s/it it/it/
23296         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
23297
23298 2011-04-10  Jim Meyering  <meyering@redhat.com>
23299
23300         maint.mk: remove useless semicolon and backslash
23301         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
23302         semicolon and backslash.
23303
23304 2011-04-10  Bruno Haible  <bruno@clisp.org>
23305
23306         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
23307         * modules/stdint-tests (Depends-on): Add wchar.
23308
23309 2011-04-10  Jim Meyering  <meyering@redhat.com>
23310
23311         maint: remove doubled words in comments, e.g., s/a a/a/
23312         * lib/strptime.c (day_of_the_week): s/the the/the/
23313         * tests/test-chown.h (test_chown): s/a a/a/
23314
23315         test-chown.h: correct a cast
23316         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
23317         when the destination is a stat.st_gid.
23318
23319 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
23320
23321         getaddrinfo: Fix test for sa_len member.
23322         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
23323         include <sys/types.h> before <sys/socket.h>.
23324
23325 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
23326
23327         maint: change "can not" to "cannot"
23328         * doc/posix-functions/iconv.texi (iconv): This one crossed line
23329         boundaries.
23330
23331 2011-04-09  Jim Meyering  <meyering@redhat.com>
23332
23333         maint: change "a a" to "a"
23334         * tests/test-lchown.h (test_lchown): s/a a/a/
23335
23336         maint.mk: prohibit \<the the\>
23337         * top/maint.mk (sc_prohibit_the_the): New rule.
23338
23339         maint: fix "the the" in comment
23340         * lib/count-one-bits.h: s/the the/the/
23341
23342         maint: change "can not" to "cannot"
23343         But do not change the occurrences in maintain.texi or in
23344         build-aux/po/Makefile.in.in, which I presume comes from gettext.
23345         * doc/gnulib-tool.texi: s/can not/cannot/
23346         * doc/posix-functions/accept.texi (accept): Likewise.
23347         * doc/posix-functions/socket.texi (socket): Likewise.
23348         * lib/mbrtowc.c: Likewise.
23349
23350         maint.mk: prohibit use of "can not"
23351         * top/maint.mk (sc_prohibit_can_not): New rule.
23352         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
23353
23354 2011-04-09  Bruno Haible  <bruno@clisp.org>
23355
23356         careadlinkat: Guard against misuse of careadlinkatcwd.
23357         * lib/careadlinkat.c: Include <stdlib.h>.
23358         (careadlinkatcwd): Check that the fd argument is as expected.
23359
23360 2011-04-09  Bruno Haible  <bruno@clisp.org>
23361
23362         careadlinkat: Use common coding style.
23363         * lib/careadlinkat.c: Move gnulib includes after system includes.
23364
23365 2011-04-09  Bruno Haible  <bruno@clisp.org>
23366
23367         careadlinkat: Clarify specification.
23368         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
23369         (careadlinkatcwd): Add comment.
23370         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
23371
23372 2011-04-09  Bruno Haible  <bruno@clisp.org>
23373
23374         areadlinkat: Avoid link error on many platforms.
23375         * modules/areadlinkat (Depends-on): Add areadlink.
23376
23377 2011-04-09  Bruno Haible  <bruno@clisp.org>
23378
23379         allocator, careadlinkat: Fix double-inclusion guard.
23380         * lib/allocator.h: Fix double-inclusion guard.
23381         * lib/careadlinkat.h: Likewise.
23382
23383 2011-04-09  Bruno Haible  <bruno@clisp.org>
23384
23385         relocatable-prog-wrapper: Update after module 'areadlink' changed.
23386         * lib/relocwrapper.c: Update dependencies hierarchy.
23387         * build-aux/install-reloc: Update list of files to be compiled.
23388         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
23389         lib/allocator.[hc].
23390
23391 2011-04-08  Eric Blake  <eblake@redhat.com>
23392
23393         strftime: silence gnulib-tool warning
23394         * modules/strftime-tests (Depends-on): Drop automatic dependency.
23395
23396 2011-04-08  Bruno Haible  <bruno@clisp.org>
23397
23398         verify: Fix syntax error with GCC 4.6 in C++ mode.
23399         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
23400         (HAVE_STATIC_ASSERT): New macro.
23401         (verify_true, verify): Use 'static_assert' if it is supported and
23402         '_Static_assert' is not supported.
23403
23404 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
23405
23406         allocator: New module.
23407         * modules/allocator, lib/allocator.c: New files.
23408         * lib/allocator.h (stdlib_allocator): New decl.
23409         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
23410         Remove.  Do not include <stdlib.h>.
23411         (careadlinkat): Use stdlib_allocator instead of rolling our own.
23412         * modules/careadlinkat (Files): Remove lib/allocator.h.
23413         (Depends-on): Add allocator.
23414
23415         stdlib: let modules use system malloc, realloc
23416         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
23417         if !_GL_USE_STDLIB_ALLOC.
23418         (malloc, realloc): Limit this change to a smaller scope.
23419
23420         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
23421         (malloc, realloc): Don't #undef; no longer needed.
23422         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
23423         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
23424         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
23425         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
23426         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
23427         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
23428         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
23429         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
23430
23431         careadlinkat: rename members to avoid problem
23432         * lib/allocator.h (struct allocator): Rename members from
23433         malloc/realloc to allocate/reallocate, to avoid problems if malloc
23434         and realloc are #define'd.  Reported by Eric Blake in
23435         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
23436         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
23437
23438 2011-04-08  Eric Blake  <eblake@redhat.com>
23439
23440         nonblocking: reduce dependency
23441         * tests/test-nonblocking.c: Only test sockets when in use.
23442         * modules/nonblocking-tests (Depends-on): Drop socket.
23443         (Makefile.am): Link even if sockets are not present.
23444         * modules/pipe2-tests (Makefile.am): Likewise.
23445         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
23446
23447         pipe2: fix O_NONBLOCK support on mingw
23448         * modules/pipe2 (Depends-on): Add nonblocking.
23449         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
23450         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
23451         * tests/test-nonblocking.c (main): Likewise.
23452         * modules/pipe2-tests (Makefile.am): Avoid link failure.
23453
23454         fcntl-h: fix O_ACCMODE on cygwin
23455         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
23456         * lib/fcntl.in.h (O_ACCMODE): Fix it.
23457
23458         pipe-filter: drop O_NONBLOCK workarounds
23459         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
23460         * modules/pipe-filter-ii (Depends-on): Likewise.
23461         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
23462
23463         nonblocking: provide O_NONBLOCK for mingw
23464         * modules/nonblocking (Depends-on): Add open.
23465         (configure.ac): Set new witness macro.
23466         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
23467         * modules/fcntl-h (Makefile.am): Substitute it.
23468         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
23469         nonblocking module is in use.
23470         * lib/nonblocking.c: Adjust portability test.
23471         * lib/open.c (open): Don't let native open see gnulib flag.
23472         * tests/test-fcntl-h.c (main): Enhance test.
23473         * tests/test-open.h (test_open): Likewise.
23474         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
23475
23476         careadlinkat: fix compilation error on mingw
23477         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
23478         within struct allocator.
23479
23480 2011-04-06  Eric Blake  <eblake@redhat.com>
23481
23482         binary-io: relicense under LGPLv2+
23483         * modules/binary-io (License): Relax to LGPLv2+.
23484         Requested for libvirt, and required by pipe2.
23485
23486 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
23487
23488         verify: use _Static_assert if available
23489         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
23490         (verify_true, verify): Use it if available.  This generates better
23491         diagnostics with GCC 4.6.0 and later.
23492
23493 2011-04-05  Bruno Haible  <bruno@clisp.org>
23494
23495         Remove leftover generated .h files after config.status changed.
23496
23497         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
23498         GL_GENERATE_ALLOCA_H.
23499         * modules/alloca-opt (Makefile.am): Remove alloca.h if
23500         GL_GENERATE_ALLOCA_H evaluates to false.
23501
23502         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
23503         GL_GENERATE_ARGZ_H.
23504         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
23505         evaluates to false.
23506
23507         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
23508         GL_GENERATE_BYTESWAP_H.
23509         * modules/byteswap (Makefile.am): Remove byteswap.h if
23510         GL_GENERATE_BYTESWAP_H evaluates to false.
23511
23512         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
23513         GL_GENERATE_ERRNO_H.
23514         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
23515         evaluates to false.
23516
23517         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
23518         GL_GENERATE_FLOAT_H.
23519         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
23520         evaluates to false.
23521
23522         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
23523         GL_GENERATE_FNMATCH_H.
23524         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
23525         GL_GENERATE_FNMATCH_H evaluates to false.
23526
23527         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
23528         GL_GENERATE_GLOB_H.
23529         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
23530         evaluates to false.
23531
23532         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
23533         automake conditional GL_GENERATE_ICONV_H.
23534         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
23535         evaluates to false.
23536
23537         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
23538         GL_GENERATE_NETINET_IN_H.
23539         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
23540         GL_GENERATE_NETINET_IN_H evaluates to false.
23541
23542         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
23543         conditional GL_GENERATE_PTHREAD_H.
23544         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
23545         * modules/pthread (Makefile.am): Remove pthread.h if
23546         GL_GENERATE_PTHREAD_H evaluates to false.
23547
23548         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
23549         GL_GENERATE_SCHED_H.
23550         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
23551         evaluates to false.
23552
23553         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
23554         conditional GL_GENERATE_SELINUX_CONTEXT_H.
23555         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
23556         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
23557
23558         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
23559         GL_GENERATE_STDARG_H.
23560         * modules/stdarg (Makefile.am): Remove stdarg.h if
23561         GL_GENERATE_STDARG_H evaluates to false.
23562
23563         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
23564         GL_GENERATE_STDBOOL_H.
23565         * modules/stdbool (Makefile.am): Remove stdbool.h if
23566         GL_GENERATE_STDBOOL_H evaluates to false.
23567
23568         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
23569         conditional GL_GENERATE_STDDEF_H.
23570         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
23571         * modules/stddef (Makefile.am): Remove stddef.h if
23572         GL_GENERATE_STDDEF_H evaluates to false.
23573
23574         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
23575         GL_GENERATE_STDINT_H.
23576         * modules/stdint (Makefile.am): Remove stdint.h if
23577         GL_GENERATE_STDINT_H evaluates to false.
23578
23579         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
23580         GL_GENERATE_SYSEXITS_H.
23581         * modules/sysexits (Makefile.am): Remove sysexits.h if
23582         GL_GENERATE_SYSEXITS_H evaluates to false.
23583
23584         Reported by Karl Berry and Ralf Wildenhues.
23585
23586 2011-04-05  Bruno Haible  <bruno@clisp.org>
23587
23588         Ensure to rebuild generated .h files when config.status has changed.
23589         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
23590         config.status.
23591         * modules/ctype (Makefile.am): Likewise.
23592         * modules/dirent (Makefile.am): Likewise.
23593         * modules/errno (Makefile.am): Likewise.
23594         * modules/fcntl-h (Makefile.am): Likewise.
23595         * modules/float (Makefile.am): Likewise.
23596         * modules/getopt-posix (Makefile.am): Likewise.
23597         * modules/glob (Makefile.am): Likewise.
23598         * modules/iconv-h (Makefile.am): Likewise.
23599         * modules/inttypes (Makefile.am): Likewise.
23600         * modules/langinfo (Makefile.am): Likewise.
23601         * modules/locale (Makefile.am): Likewise.
23602         * modules/math (Makefile.am): Likewise.
23603         * modules/netdb (Makefile.am): Likewise.
23604         * modules/netinet_in (Makefile.am): Likewise.
23605         * modules/poll-h (Makefile.am): Likewise.
23606         * modules/pthread (Makefile.am): Likewise.
23607         * modules/pty (Makefile.am): Likewise.
23608         * modules/sched (Makefile.am): Likewise.
23609         * modules/search (Makefile.am): Likewise.
23610         * modules/selinux-h (Makefile.am): Likewise.
23611         * modules/signal (Makefile.am): Likewise.
23612         * modules/spawn (Makefile.am): Likewise.
23613         * modules/stdarg (Makefile.am): Likewise.
23614         * modules/stdbool (Makefile.am): Likewise.
23615         * modules/stddef (Makefile.am): Likewise.
23616         * modules/stdint (Makefile.am): Likewise.
23617         * modules/stdio (Makefile.am): Likewise.
23618         * modules/stdlib (Makefile.am): Likewise.
23619         * modules/string (Makefile.am): Likewise.
23620         * modules/strings (Makefile.am): Likewise.
23621         * modules/sys_file (Makefile.am): Likewise.
23622         * modules/sys_ioctl (Makefile.am): Likewise.
23623         * modules/sys_select (Makefile.am): Likewise.
23624         * modules/sys_socket (Makefile.am): Likewise.
23625         * modules/sys_stat (Makefile.am): Likewise.
23626         * modules/sys_time (Makefile.am): Likewise.
23627         * modules/sys_times (Makefile.am): Likewise.
23628         * modules/sys_utsname (Makefile.am): Likewise.
23629         * modules/sys_wait (Makefile.am): Likewise.
23630         * modules/sysexits (Makefile.am): Likewise.
23631         * modules/termios (Makefile.am): Likewise.
23632         * modules/time (Makefile.am): Likewise.
23633         * modules/unistd (Makefile.am): Likewise.
23634         * modules/wchar (Makefile.am): Likewise.
23635         * modules/wctype-h (Makefile.am): Likewise.
23636         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
23637
23638 2011-04-05  Bruno Haible  <bruno@clisp.org>
23639
23640         pipe2: Relicense under LGPLv2+.
23641         * modules/pipe2 (License): Change to LGPLv2+.
23642         Requested by Eric Blake, for libvirt.
23643
23644 2011-04-05  Bruce Korb  <bkorb@gnu.org>
23645
23646         bootstrap: compute gnulib_extra_files after updating build_aux
23647         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
23648         change build_aux or also supply gnulib_extra_files.  Handle correctly.
23649
23650 2011-04-05  Eric Blake  <eblake@redhat.com>
23651
23652         bootstrap: preserve git whitelist item sorting
23653         * build-aux/bootstrap (sort_patterns): New function.
23654         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
23655
23656 2011-04-05  Simon Josefsson  <simon@josefsson.org>
23657
23658         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
23659         sc_space_tab check.
23660
23661 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
23662
23663         areadlink, areadlinkat: rewrite in terms of careadlinkat
23664         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
23665         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
23666         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
23667         (malloc, realloc): Remove #undefs.
23668         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
23669         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
23670         readlink, ssize_t, stdint, unistd.
23671         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
23672         areadlink, stdint.
23673
23674         careadlinkat: new module
23675         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
23676         * modules/careadlinkat: New files, written by me with
23677         a review and feedback from Ben Pfaff in
23678         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
23679
23680 2011-04-01  Bruno Haible  <bruno@clisp.org>
23681
23682         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
23683         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
23684         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
23685         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
23686         Reported by Bruce Korb <bruce.korb@gmail.com>.
23687
23688 2011-04-01  Bruno Haible  <bruno@clisp.org>
23689
23690         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
23691         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
23692         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
23693         * modules/wcpcpy (Depends-on): Add extensions.
23694         * modules/wcpncpy (Depends-on): Likewise.
23695         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
23696         systems.
23697         * doc/posix-functions/wcpncpy.texi: Likewise.
23698         * doc/posix-functions/wcwidth.texi: Likewise.
23699
23700 2011-03-31  Eric Blake  <eblake@redhat.com>
23701
23702         nonblocking: fix mingw test failures
23703         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
23704         non-blocking flag on regular file.
23705         (get_nonblocking_flag): Set errno on invalid fd.
23706         * tests/test-nonblocking.c (main): Avoid test failure on
23707         directories if fchdir is not active.
23708         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
23709
23710 2011-03-31  Bruno Haible  <bruno@clisp.org>
23711
23712         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
23713         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
23714         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
23715         Reported by Simon Josefsson <simon@josefsson.org>.
23716
23717 2011-03-31  Bruno Haible  <bruno@clisp.org>
23718         and Eric Blake  <eblake@redhat.com>
23719
23720         nonblocking: new module
23721         * modules/nonblocking: New module.
23722         * modules/nonblocking-tests: Likewise.
23723         * lib/nonblocking.h: New file.
23724         * lib/nonblocking.c: Likewise.
23725         * tests/test-nonblocking.c: New test.
23726         * lib/ioctl.c (ioctl) [mingw]: Update comment.
23727
23728 2011-03-30  Bruno Haible  <bruno@clisp.org>
23729
23730         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
23731         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
23732         instead of 'printf' format for GCC >= 4.4.
23733         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
23734         (fprintf, printf, vfprintf, vprintf): Declare with
23735         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
23736         the system's vfprintf() function.
23737         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
23738
23739 2011-03-30  Eric Blake  <eblake@redhat.com>
23740
23741         passfd: fix scoping bug
23742         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
23743         before sendmsg/recvmsg.
23744
23745         passfd: standardize coding conventions
23746         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
23747         can be learned at compile time.
23748         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
23749         ifdefs.
23750         (sendfd, recvfd): Follow gnulib code conventions.
23751
23752         passfd: fix incorrect sendmsg arguments
23753         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
23754         incorrect msg_controllen value.
23755         * modules/passfd-tests (Depends-on): Check for alarm.
23756         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
23757         Reported by Bastien ROUCARIES.
23758
23759 2011-03-30  Bruno Haible  <bruno@clisp.org>
23760
23761         c-strcasestr: Relicense under LGPLv2+.
23762         * modules/c-strcasestr (License): Change to LGPLv2+.
23763         Requested by Eric Blake, for libvirt.
23764
23765 2011-03-30  Simon Josefsson  <simon@josefsson.org>
23766
23767         * users.txt: Add libidn2.  Fix libtasn1 link.
23768
23769 2011-03-30  Jim Meyering  <meyering@redhat.com>
23770
23771         tests: readlink* ("",... fails with EINVAL on newer kernels
23772         readlink and readlinkat have typically failed with ENOENT for
23773         the invalid, empty file name,  "".  However, with the advent
23774         of linux-2.6.39, they fail with EINVAL.
23775         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
23776         when operating on the empty file name.
23777         * tests/test-readlink.h (test_readlink): Likewise.
23778
23779 2011-03-29  Bruno Haible  <bruno@clisp.org>
23780
23781         Relicense some modules under LGPLv2+, for libidn2.
23782         * modules/array-mergesort (License): Change to LGPLv2+.
23783         * modules/c-strcaseeq (License): Likewise.
23784         * modules/striconveh (License): Likewise.
23785         * modules/striconveha (License): Likewise.
23786         * modules/uniconv/base (License): Likewise.
23787         * modules/uniconv/u8-conv-from-enc (License): Likewise.
23788         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
23789         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
23790         * modules/unictype/base (License): Likewise.
23791         * modules/unictype/bidiclass-of (License): Likewise.
23792         * modules/unictype/category-M (License): Likewise.
23793         * modules/unictype/category-none (License): Likewise.
23794         * modules/unictype/category-of (License): Likewise.
23795         * modules/unictype/category-test (License): Likewise.
23796         * modules/unictype/category-test-withtable (License): Likewise.
23797         * modules/unictype/combining-class (License): Likewise.
23798         * modules/unictype/joiningtype-of (License): Likewise.
23799         * modules/unictype/scripts (License): Likewise.
23800         * modules/uninorm/base (License): Likewise.
23801         * modules/uninorm/canonical-decomposition (License): Likewise.
23802         * modules/uninorm/composition (License): Likewise.
23803         * modules/uninorm/decompose-internal (License): Likewise.
23804         * modules/uninorm/decomposition-table (License): Likewise.
23805         * modules/uninorm/nfc (License): Likewise.
23806         * modules/uninorm/nfd (License): Likewise.
23807         * modules/uninorm/u32-normalize (License): Likewise.
23808         * modules/unistr/base (License): Likewise.
23809         * modules/unistr/u32-cpy (License): Likewise.
23810         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
23811         * modules/unistr/u32-to-u8 (License): Likewise.
23812         * modules/unistr/u32-uctomb (License): Likewise.
23813         * modules/unistr/u8-check (License): Likewise.
23814         * modules/unistr/u8-mblen (License): Likewise.
23815         * modules/unistr/u8-mbtouc (License): Likewise.
23816         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
23817         * modules/unistr/u8-mbtoucr (License): Likewise.
23818         * modules/unistr/u8-prev (License): Likewise.
23819         * modules/unistr/u8-strlen (License): Likewise.
23820         * modules/unistr/u8-to-u32 (License): Likewise.
23821         * modules/unistr/u8-uctomb (License): Likewise.
23822         * modules/unitypes (License): Likewise.
23823         Requested by Simon Josefsson.
23824
23825 2011-03-29  Simon Josefsson  <simon@josefsson.org>
23826
23827         lib-symbol-visibility: Add a notice.
23828         * modules/lib-symbol-visibility (Notice): New field.
23829
23830 2011-03-29  Bruno Haible  <bruno@clisp.org>
23831
23832         getaddrinfo: Doc fix.
23833         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
23834         section "fixed in Gnulib".
23835
23836 2011-03-28  Simon Josefsson  <simon@josefsson.org>
23837
23838         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
23839         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
23840
23841 2011-03-26  Bruno Haible  <bruno@clisp.org>
23842
23843         unictype/property-byname: Reduce the number of load-time relocations.
23844         * lib/unictype/pr_byname.c: Include <stdlib.h>.
23845         (UC_PROPERTY_INDEX_*): New enumeration values.
23846         (uc_property_byname): Convert an index from the lookup table to an
23847         uc_property_t.
23848         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
23849         values.
23850
23851 2011-03-26  Bruno Haible  <bruno@clisp.org>
23852
23853         unictype/property-byname: Allow omitted word separators and aliases.
23854         * lib/unictype/pr_byname.gperf: Add property names without word
23855         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
23856         for 'space'.
23857
23858 2011-03-26  Bruno Haible  <bruno@clisp.org>
23859
23860         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
23861         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
23862         also hyphens to space.
23863         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
23864         without spaces.
23865         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
23866
23867 2011-03-26  Bruno Haible  <bruno@clisp.org>
23868
23869         unictype/joiningtype-byname: Recognize long names as well.
23870         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
23871         a long name.
23872         * lib/unictype/joiningtype_byname.c: Include <string.h>,
23873         unictype/joiningtype_byname.h.
23874         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
23875         * lib/unictype/joiningtype_byname.gperf: New file.
23876         * modules/unictype/joiningtype-byname (Files): Add
23877         lib/unictype/joiningtype_byname.gperf.
23878         (Depends-on): Add gperf.
23879         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
23880         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
23881         long names.
23882
23883         Tests for module 'unictype/joiningtype-longname'.
23884         * modules/unictype/joiningtype-longname-tests: New file.
23885         * tests/unictype/test-joiningtype_longname.c: New file.
23886
23887         New module 'unictype/joiningtype-longname'.
23888         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
23889         * lib/unictype/joiningtype_longname.c: New file.
23890         * modules/unictype/joiningtype-longname: New file.
23891         * modules/unictype/joiningtype-all (Depends-on): Add
23892         unictype/joiningtype-longname.
23893
23894 2011-03-26  Bruno Haible  <bruno@clisp.org>
23895
23896         unictype/bidiclass-byname: Recognize long names as well.
23897         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
23898         name.
23899         * lib/unictype/bidi_byname.c: Include <string.h>,
23900         unictype/bidi_byname.h.
23901         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
23902         * lib/unictype/bidi_byname.gperf: New file.
23903         * modules/unictype/bidiclass-byname (Files): Add
23904         lib/unictype/bidi_byname.gperf.
23905         (Depends-on): Add gperf.
23906         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
23907         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
23908         long names.
23909
23910         Tests for module 'unictype/bidiclass-longname'.
23911         * modules/unictype/bidiclass-longname-tests: New file.
23912         * tests/unictype/test-bidi_longname.c: New file.
23913
23914         New module 'unictype/bidiclass-longname'.
23915         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
23916         * lib/unictype/bidi_longname.c: New file.
23917         * modules/unictype/bidiclass-longname: New file.
23918         * modules/unictype/bidiclass-all (Depends-on): Add
23919         unictype/bidiclass-longname.
23920
23921 2011-03-26  Bruno Haible  <bruno@clisp.org>
23922
23923         unictype/bidi*: Rename modules.
23924         * modules/unictype/bidiclass-all: Renamed from
23925         modules/unictype/bidicategory-all.
23926         * modules/unictype/bidiclass-name: Renamed from
23927         modules/unictype/bidiclass-name.
23928         (Description): Update.
23929         * modules/unictype/bidiclass-name-tests: Renamed from
23930         modules/unictype/bidicategory-name-tests.
23931         * modules/unictype/bidiclass-byname: Renamed from
23932         modules/unictype/bidicategory-byname.
23933         (Description): Update.
23934         * modules/unictype/bidiclass-byname-tests: Renamed from
23935         modules/unictype/bidicategory-byname-tests.
23936         * modules/unictype/bidiclass-of: Renamed from
23937         modules/unictype/bidicategory-of.
23938         (Description): Update.
23939         * modules/unictype/bidiclass-of-tests: Renamed from
23940         modules/unictype/bidicategory-of-tests.
23941         * modules/unictype/bidiclass-test: Renamed from
23942         modules/unictype/bidicategory-test.
23943         (Description): Update.
23944         * modules/unictype/bidiclass-test-tests: Renamed from
23945         modules/unictype/bidicategory-test-tests.
23946         * modules/unictype/bidicategory-all: New file, a simple redirection.
23947         * modules/unictype/bidicategory-name: Likewise.
23948         * modules/unictype/bidicategory-byname: Likewise.
23949         * modules/unictype/bidicategory-of: Likewise.
23950         * modules/unictype/bidicategory-test: Likewise.
23951         * modules/unictype/property-bidi-* (Dependencies): Update.
23952         * lib/unictype/bidi_*.c: Update comment.
23953
23954 2011-03-26  Bruno Haible  <bruno@clisp.org>
23955
23956         unictype/bidi*: Rename functions, part 2.
23957         * modules/unictype/bidicategory-name (configure.ac): Update required
23958         libunistring version.
23959         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
23960
23961 2011-03-25  Bruno Haible  <bruno@clisp.org>
23962
23963         New module 'unictype/combining-class-all'.
23964         * modules/unictype/combining-class-all: New file.
23965
23966         Tests for module 'unictype/combining-class-byname'.
23967         * modules/unictype/combining-class-byname-tests: New file.
23968         * tests/unictype/test-combiningclass_byname.c: New file.
23969
23970         New module 'unictype/combining-class-byname'.
23971         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
23972         * lib/unictype/combiningclass_byname.c: New file.
23973         * lib/unictype/combiningclass_byname.gperf: New file.
23974         * modules/unictype/combining-class-byname: New file.
23975
23976         Tests for module 'unictype/combining-class-longname'.
23977         * modules/unictype/combining-class-longname-tests: New file.
23978         * tests/unictype/test-combiningclass_longname.c: New file.
23979
23980         New module 'unictype/combining-class-longname'.
23981         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
23982         * lib/unictype/combiningclass_longname.c: New file.
23983         * modules/unictype/combining-class-longname: New file.
23984
23985         Tests for module 'unictype/combining-class-name'.
23986         * modules/unictype/combining-class-name-tests: New file.
23987         * tests/unictype/test-combiningclass_name.c: New file.
23988
23989         New module 'unictype/combining-class-name'.
23990         * lib/unictype.in.h (uc_combining_class_name): New declaration.
23991         * lib/unictype/combiningclass_name.c: New file.
23992         * modules/unictype/combining-class-name: New file.
23993
23994 2011-03-25  Bruno Haible  <bruno@clisp.org>
23995
23996         unictype/combining-class: Rename source files.
23997         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
23998         of unictype/combining.h.
23999         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
24000         Update.
24001         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
24002         * modules/unictype/combining-class (Description): Fix.
24003         (Files, Makefile.am): Update.
24004         * tests/unictype/test-combiningclass.c: Renamed from
24005         tests/unictype/test-combining.c.
24006         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
24007
24008 2011-03-25  Bruno Haible  <bruno@clisp.org>
24009
24010         unictype: Update list of canonical combining classes.
24011         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
24012
24013 2011-03-25  Bruno Haible  <bruno@clisp.org>
24014
24015         unictype/category-byname: Recognize long names as well.
24016         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
24017         a long name.
24018         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
24019         unictype/categ_byname.h.
24020         (UC_CATEGORY_INDEX_*): New enumeration values.
24021         (uc_general_category_byname): Use uc_general_category_lookup and
24022         convert from index to value.
24023         * lib/unictype/categ_byname.gperf: New file.
24024         * modules/unictype/category-byname (Files): Add
24025         lib/unictype/categ_byname.gperf.
24026         (Depends-on): Add gperf.
24027         (Makefile.am): Add rule for generating unictype/categ_byname.h.
24028         * tests/unictype/test-categ_byname.c (main): Test the recognition of
24029         long names.
24030
24031         Tests for module 'unictype/category-longname'.
24032         * modules/unictype/category-longname-tests: New file.
24033         * tests/unictype/test-categ_longname.c: New file.
24034
24035         New module 'unictype/category-longname'.
24036         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
24037         * lib/unictype/categ_longname.c: New file.
24038         * modules/unictype/category-longname: New file.
24039         * modules/unictype/category-all (Depends-on): Add it.
24040
24041 2011-03-25  Bruno Haible  <bruno@clisp.org>
24042
24043         Tests for module 'unictype/category-LC'.
24044         * modules/unictype/category-LC-tests: New file.
24045         * tests/unictype/test-categ_LC.c: New file, automatically generated.
24046
24047         New module 'unictype/category-LC'.
24048         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
24049         (UC_CATEGORY_LC): New declaration.
24050         (UC_CASED_LETTER): New macro.
24051         * lib/gen-uni-tables.c (is_category_LC): New function.
24052         (output_categories): Also handle category LC.
24053         (UC_CATEGORY_MASK_LC): New enumeration value.
24054         (general_category_byname): Also handle category LC.
24055         * lib/unictype/categ_LC.c: New file.
24056         * lib/unictype/categ_LC.h: New file, automatically generated.
24057         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
24058         category LC.
24059         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
24060         * modules/unictype/category-LC: New file.
24061         * modules/unictype/category-byname (Depends-on): Add
24062         unictype/category-LC.
24063         * modules/unictype/category-all (Depends-on): Likewise.
24064
24065 2011-03-25  Eric Blake  <eblake@redhat.com>
24066
24067         xmalloc: revert yesterday's regression
24068         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
24069         realloc's underlying behavior (allowing allocation of zero-size
24070         objects, especially if malloc-gnu is also in use).
24071
24072 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
24073
24074         maint.mk: add missing version to VC-tag
24075         * top/maint.mk: git tag was missing actual tag name; add it.
24076
24077         valgrind: do leak checking, and exit with code 1 on error (not 0)
24078         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
24079         to VALGRIND.
24080
24081 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
24082
24083         posix-modules: say what it does.
24084         * posix-modules: Add a line to the --help output saying what it does.
24085
24086 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
24087
24088         xmalloc: Do not leak if underlying realloc is C99 compatible.
24089         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
24090         This avoids a leak on C99-based systems.  See
24091         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
24092
24093 2011-03-24  Eric Blake  <eblake@redhat.com>
24094
24095         realloc: document portability problem
24096         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
24097         passing 0 size to realloc.
24098
24099 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
24100
24101         doc: update users.txt
24102         * users.txt: Add cvsps, tmpwatch
24103
24104 2011-03-23  Matt Rice  <ratmice@gmail.com>
24105
24106         doc: update users.txt
24107         * users.txt: Add gdb.
24108
24109 2011-03-23  Jim Meyering  <meyering@redhat.com>
24110
24111         doc: update users.txt
24112         Looking through matches up to the following URL (there are still
24113         several more pages), I found several projects that use gnulib:
24114         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
24115         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
24116         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
24117
24118 2011-03-22  Bruno Haible  <bruno@clisp.org>
24119
24120         unictype/bidi*: Rename functions.
24121         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
24122         uc_bidi_class, uc_is_bidi_class): New declarations.
24123         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
24124         uc_bidi_category_byname.
24125         (uc_bidi_category_byname): New function.
24126         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
24127         u_bidi_category_name.
24128         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
24129         (uc_bidi_category_name): New function.
24130         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
24131         uc_bidi_category.
24132         (uc_bidi_category): New function.
24133         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
24134         uc_is_bidi_category. Invoke uc_bidi_class.
24135         (uc_is_bidi_category): New function.
24136         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
24137         instead of uc_bidi_category_byname.
24138         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
24139         instead of uc_bidi_category_name.
24140         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
24141         uc_bidi_category.
24142         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
24143         instead of uc_is_bidi_category.
24144
24145 2011-03-21  Bruno Haible  <bruno@clisp.org>
24146
24147         New module 'unictype/joininggroup-all'.
24148         * modules/unictype/joininggroup-all: New file.
24149
24150         Tests for module 'unictype/joininggroup-of'.
24151         * modules/unictype/joininggroup-of-tests: New file.
24152         * tests/unictype/test-joininggroup_of.c: New file.
24153         * tests/unictype/test-joininggroup_of.h: New file, automatically
24154         generated by gen-uni-tables.
24155
24156         New module 'unictype/joininggroup-of'.
24157         * modules/unictype/joininggroup-of: New file.
24158         * lib/unictype/joininggroup_of.c: New file.
24159         * lib/unictype/joininggroup_of.h: New file, automatically generated by
24160         gen-uni-tables.
24161
24162         Tests for module 'unictype/joininggroup-byname'.
24163         * modules/unictype/joininggroup-byname-tests: New file.
24164         * tests/unictype/test-joininggroup_byname.c: New file.
24165
24166         New module 'unictype/joininggroup-byname'.
24167         * modules/unictype/joininggroup-byname: New file.
24168         * lib/unictype/joininggroup_byname.c: New file.
24169         * lib/unictype/joininggroup_byname.gperf: New file.
24170
24171         Tests for module 'unictype/joininggroup-name'.
24172         * modules/unictype/joininggroup-name-tests: New file.
24173         * tests/unictype/test-joininggroup_name.c: New file.
24174
24175         New module 'unictype/joininggroup-name'.
24176         * modules/unictype/joininggroup-name: New file.
24177         * lib/unictype/joininggroup_name.c: New file.
24178         * lib/unictype/joininggroup_name.h: New file.
24179
24180         New module 'unictype/joiningtype-all'.
24181         * modules/unictype/joiningtype-all: New file.
24182
24183         Tests for module 'unictype/joiningtype-of'.
24184         * modules/unictype/joiningtype-of-tests: New file.
24185         * tests/unictype/test-joiningtype_of.c: New file.
24186         * tests/unictype/test-joiningtype_of.h: New file, automatically
24187         generated by gen-uni-tables.
24188
24189         New module 'unictype/joiningtype-of'.
24190         * modules/unictype/joiningtype-of: New file.
24191         * lib/unictype/joiningtype_of.c: New file.
24192         * lib/unictype/joiningtype_of.h: New file, automatically generated by
24193         gen-uni-tables.
24194
24195         Tests for module 'unictype/joiningtype-byname'.
24196         * modules/unictype/joiningtype-byname-tests: New file.
24197         * tests/unictype/test-joiningtype_byname.c: New file.
24198
24199         New module 'unictype/joiningtype-byname'.
24200         * modules/unictype/joiningtype-byname: New file.
24201         * lib/unictype/joiningtype_byname.c: New file.
24202
24203         Tests for module 'unictype/joiningtype-name'.
24204         * modules/unictype/joiningtype-name-tests: New file.
24205         * tests/unictype/test-joiningtype_name.c: New file.
24206
24207         New module 'unictype/joiningtype-name'.
24208         * modules/unictype/joiningtype-name: New file.
24209         * lib/unictype/joiningtype_name.c: New file.
24210
24211         unictype: Add support for Arabic shaping properties.
24212         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
24213         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
24214         declarations.
24215         (UC_JOINING_GROUP_*): New enumeration values.
24216         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
24217         declarations.
24218         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
24219         (unicode_joining_type): New variable.
24220         (UC_JOINING_GROUP_*): New enumeration values.
24221         (unicode_joining_group): New variable.
24222         (fill_arabicshaping, joining_type_as_c_identifier,
24223         output_joining_type_test, output_joining_type,
24224         joining_group_as_c_identifier, output_joining_group_test,
24225         output_joining_group): New functions.
24226         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
24227         fill_arabicshaping and output_joining_type_test, output_joining_type,
24228         output_joining_group_test, output_joining_group.
24229         Reported by Simon Josefsson.
24230
24231 2011-03-21  Jim Meyering  <meyering@redhat.com>
24232
24233         strftime: fix a bug in yesterday's change
24234         * lib/strftime.c (add): Accommodate width's initial value of -1.
24235         Otherwise, nstrftime would copy uninitialized data into
24236         the result buffer.
24237
24238 2011-03-21  Jim Meyering  <meyering@redhat.com>
24239
24240         tests: add strftime-tests module
24241         * tests/test-strftime.c: New file.
24242         * modules/strftime-tests: New module.
24243
24244 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
24245
24246         strftime: don't assume a byte count fits in 'int'
24247         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
24248         found this problem by static analysis, using gcc -Wstrict-overflow
24249         (GCC 4.5.2, x86-64).  This reported an optimization that depended
24250         on an integer overflow having undefined behavior, but it turns out
24251         that the argument is a size, which might not fit in 'int' anyway,
24252
24253 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
24254
24255         stdio: don't require ignore_value around fwrite
24256
24257         This patch works around libc bug 11959
24258         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
24259         Without this patch, applications must often write
24260         ignore_value (fwrite (...)) even though the ignore_value is
24261         not helpful here.  It's common to write many objects, using
24262         fwrite/printf/etc., and then use ferror to detect output error.
24263
24264         I considered making this patch optional, but decided against it,
24265         because libc is obviously being inconsistent here: there is no
24266         reason libc should insist that user code must inspect fwrite
24267         return's value without also insisting that it inspect printf's,
24268         putchar's, etc.  If user code wants to have a strict style where
24269         all these functions' values are checked (so that ferror need not
24270         be checked), we could add support for that style in a new gnulib
24271         module, but in the meantime it's better to be consistent and to
24272         support common usage.
24273
24274         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
24275         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
24276         that we are compiling in checking mode, and if not C++, and
24277         if not already wrapping fwrite for some other reason.
24278         (fwrite): #define to rpl_fwrite if the latter is defined.
24279
24280 2011-03-20  Bruno Haible  <bruno@clisp.org>
24281
24282         verror: Fix compilation error introduced on 2011-02-13.
24283         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
24284         instead of __attribute__.
24285         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24286
24287 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
24288             Bruno Haible  <bruno@clisp.org>
24289
24290         socklen: do not depend on sys_socket
24291         While trying to modify Emacs to use gnulib's socklen module,
24292         I discovered a circular dependency: socklen depends on sys_socket
24293         and vice versa.  Emacs can use socklen, but it does not need
24294         sys_socket because it has its own substitute for sys/socket.h.
24295         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
24296         gl_TYPE_SOCKLEN_T.
24297         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
24298         gl_PREREQ_SYS_H_SOCKET.
24299         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
24300         gl_PREREQ_SYS_H_SOCKET.
24301         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
24302         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
24303         * modules/socklen (Depends-on): Do not depend on sys_socket.
24304         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
24305
24306 2011-03-20  Jim Meyering  <meyering@redhat.com>
24307
24308         maint.mk: sort file names *after* new transformation
24309         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
24310         prefix would have led to an unwarranted failure in GNU parted.
24311         Sort after that transformation.
24312
24313 2011-03-19  Jim Meyering  <meyering@redhat.com>
24314
24315         maint.mk: fix po-file syntax-check rule
24316         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
24317         Patch by Bruno Haible.
24318
24319 2011-03-19  Bruno Haible  <bruno@clisp.org>
24320
24321         socklen: Update comment.
24322         * m4/socklen.m4: Update comment about platforms.
24323
24324 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
24325             Bruno Haible  <bruno@clisp.org>
24326
24327         inet_ntop, inet_pton: Simplify.
24328         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
24329         documented to provide socklen_t and we already depend on sys_socket.
24330         * modules/inet_pton (Depends-on): Likewise.
24331         * lib/arpa_inet.in.h: Adjust comment.
24332
24333 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
24334             Bruno Haible  <bruno@clisp.org>
24335
24336         netdb: Simplify.
24337         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
24338         documented to provide socklen_t and we already depend on sys_socket.
24339         * lib/netdb.in.h: Adjust comment.
24340
24341 2011-03-19  Bruno Haible  <bruno@clisp.org>
24342
24343         sys_socket, netdb: Document problem with socklen_t.
24344         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
24345         platforms.
24346         * doc/posix-headers/netdb.texi: Likewise.
24347
24348 2011-03-18  Eric Blake  <eblake@redhat.com>
24349
24350         maint.mk: let po check work in VPATH build
24351         * top/maint.mk (po_file): Allow cfg.mk override.
24352         (sc_po_check): Allow VPATH use.
24353         Reported by Jiri Denemark.
24354
24355 2011-03-16  Jim Meyering  <meyering@redhat.com>
24356
24357         maint.mk: allow fine-grained syntax-check exclusion via Make variables
24358         Before, you would have had to create one .x-sc_ file per rule in order
24359         to exempt offending files.  Now, you may instead use a Make variable --
24360         usually defined in cfg.mk -- whose name identifies the affected rule.
24361         * top/maint.mk (_sc_excl): Define.
24362         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
24363         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
24364
24365 2011-03-13  Bruno Haible  <bruno@clisp.org>
24366
24367         ignore-value tests: Avoid warnings.
24368         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
24369         empty for gcc < 3.4.
24370
24371 2011-03-13  Bruno Haible  <bruno@clisp.org>
24372
24373         passfd: Fix link error on Solaris.
24374         * modules/passfd (Description): Correct.
24375         (Depends-on): Add socketlib.
24376         (Link): New section.
24377         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
24378
24379 2011-03-13  Bruno Haible  <bruno@clisp.org>
24380
24381         passfd: Fix link error on AIX 5.2.
24382         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
24383
24384 2011-03-13  Bruno Haible  <bruno@clisp.org>
24385
24386         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
24387         * lib/sys_socket.in.h: Include <stddef.h>.
24388         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
24389         CMSG_FIRSTHDR. Remove unused variable.
24390
24391 2011-03-13  Bruno Haible  <bruno@clisp.org>
24392
24393         passfd: Fix compilation error on OpenBSD.
24394         * lib/passfd.c: Include <sys/uio.h>.
24395
24396 2011-03-13  Bruno Haible  <bruno@clisp.org>
24397
24398         passfd test: Fix warnings.
24399         * tests/test-passfd.c: Include <sys/wait.h>.
24400         (main): Fix typo.
24401
24402 2011-03-13  Bruno Haible  <bruno@clisp.org>
24403
24404         passfd module, part 4, tweaks.
24405         * tests/test-passfd.c: Reorder includes.
24406         (main): Fix perror and printf calls.
24407
24408 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
24409
24410         passfd module, part 4.
24411         * modules/passfd-tests: New file.
24412         * tests/test-passfd.c: New file.
24413
24414 2011-03-13  Jim Meyering  <meyering@redhat.com>
24415
24416         Makefile: rely on GNU make; derive syntax-check rule names
24417         Rather than requiring that each sc_ rule be listed as a dependent
24418         of "check", use features of GNU make to derive the list.
24419         * Makefile (syntax-check-rules): Define.
24420         (check): Depend on the new variable, not the hard-coded list.
24421
24422 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
24423             Bruno Haible  <bruno@clisp.org>
24424
24425         passfd module, part 3.
24426         * lib/passfd.h (recvfd): Add a flags argument.
24427         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
24428         (recvfd): Add a flags argument.
24429         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
24430         exists.
24431         * modules/passfd (Depends-on): Add cloexec.
24432         Suggested by Eric Blake.
24433
24434 2011-03-13  Bruno Haible  <bruno@clisp.org>
24435
24436         passfd module, part 2, tweaks.
24437         * modules/passfd (Files): Reorder.
24438         (Depends-on): Remove errno.
24439         (Include): Remove <sys/socket.h>, <sys/un.h>.
24440         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
24441         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
24442         specification header. Include <sys/socket.h> always. Don't include
24443         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
24444         (sendfd): Clarify that it sets errno when it fails.
24445         (recvfd): Fix specification.
24446
24447 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
24448
24449         passfd module, part 2.
24450         * modules/passfd: New file.
24451         * lib/passfd.h: New file.
24452         * lib/passfd.c: New file.
24453
24454 2011-03-12  Bruno Haible  <bruno@clisp.org>
24455
24456         wcswidth, mbswidth: Avoid integer overflow.
24457         * lib/wcswidth.c: Include <limits.h>.
24458         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
24459         * lib/mbswidth.c: Include <limits.h>.
24460         (mbsnwidth): Avoid 'int' overflow.
24461         Reported by Jim Meyering.
24462
24463 2011-03-12  Bruno Haible  <bruno@clisp.org>
24464
24465         futimens, utimensat: Avoid endless recursion on Solaris 10.
24466         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
24467         Solaris.
24468         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
24469         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
24470
24471 2011-03-11  Jim Meyering  <meyering@redhat.com>
24472
24473         maint.mk: relax a regexp to accommodate other formatting styles
24474         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
24475         between "ngettext" and the following "(".
24476
24477 2011-03-11  Pádraig Brady <P@draigBrady.com>
24478
24479         maint.mk: suppress a false positive warning
24480         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
24481         diagnostics are marked with ngettext.
24482
24483 2011-03-10  Eric Blake  <eblake@redhat.com>
24484
24485         wchar: add explicit dependencies, for Tru64
24486         * modules/mbmemcasecoll (Depends-on): Add wchar.
24487         * modules/mbtowc (Depends-on): Likewise.
24488         * modules/vasnprintf (Depends-on): Likewise.
24489         * modules/unistdio/u-printf-args (Depends-on): Likewise.
24490         * modules/wctomb (Depends-on): Likewise.
24491         Reported by Peter O'Gorman.
24492
24493 2011-03-08  Bruno Haible  <bruno@clisp.org>
24494
24495         passfd module, part 1, tweaks.
24496         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
24497         Improve indentation. Improve AC_MSG_CHECKING messages.
24498         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
24499         gl_SOCKET_FAMILIES.
24500
24501 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
24502
24503         passfd module, part 1.
24504         * m4/afunix.m4: New file.
24505         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
24506         sockets.
24507
24508 2011-03-08  Bruno Haible  <bruno@clisp.org>
24509
24510         regex-quote: New API.
24511         * lib/regex-quote.h: Include <stdbool.h>.
24512         (struct regex_quote_spec): New type.
24513         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
24514         New declarations.
24515         (regex_quote_length, regex_quote_copy, regex_quote): Take a
24516         'const struct regex_quote_spec *' argument.
24517         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
24518         (pcre_special): New constant.
24519         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
24520         New functions.
24521         (regex_quote_length, regex_quote_copy, regex_quote): Take a
24522         'const struct regex_quote_spec *' argument.
24523         * modules/regex-quote (Depends-on): Add stdbool.
24524         * tests/test-regex-quote.c (check): Update for new API. Add test for
24525         anchored results.
24526         * NEWS: Mention the API change.
24527         Reported by Reuben Thomas and Eric Blake.
24528
24529 2011-03-06  Bruno Haible  <bruno@clisp.org>
24530
24531         regex-quote: Fix creation of POSIX extended regular expressions.
24532         * lib/regex-quote.c (ere_special): Add grouping and alternation
24533         operators.
24534
24535 2011-03-05  Bruno Haible  <bruno@clisp.org>
24536
24537         doc: Improve doc regarding autopoint vs. gnulib.
24538         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
24539         disable autopoint while running autoreconf.
24540         Suggested by Ralf Wildenhues.
24541
24542 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24543
24544         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
24545         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
24546
24547 2011-03-03  Bruce Korb  <bkorb@gnu.org>
24548
24549         parse-duration: remove xalloc.h dependency
24550         * lib/parse-duration.c (parse_period): handle NULL return from
24551         strdup instead of calling xstrdup().
24552         * modules/parse-duration: remove "xalloc" dependency
24553
24554 2011-03-03  Matthew Booth  <mbooth@redhat.com>
24555
24556         bootstrap: honor m4_base when running aclocal
24557         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
24558
24559 2011-03-02  Jim Meyering  <meyering@redhat.com>
24560
24561         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
24562         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
24563         on request from Matt Booth.
24564
24565 2011-03-01  Eric Blake  <eblake@redhat.com>
24566
24567         test-link: work on Hurd
24568         * tests/test-link.h (test_link): Hurd rejects linking directories
24569         with EISDIR instead of the POSIX-mandated EPERM.
24570
24571 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
24572
24573         stdio: simplify by moving files to printf-posix, sigpipe
24574         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
24575         since this symbol is needed only if printf is replaced.
24576         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
24577         Require gl_ASM_SYMBOL_PREFIX.
24578         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
24579         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
24580         (Depends-on): Add 'raise'.
24581         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
24582         * modules/stdio (Files): Remove lib/stdio-write.c,
24583         m4/asm-underscore.m4.
24584         (Depends-on): Remove 'raise'.
24585
24586         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
24587         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
24588         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
24589         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
24590
24591 2011-02-28  Bruno Haible  <bruno@clisp.org>
24592
24593         localcharset: Assume ANSI C behaviour of free().
24594         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
24595         calling free().
24596         Suggested by Simon Josefsson <simon@josefsson.org>.
24597
24598 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
24599             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
24600             Bruno Haible  <bruno@clisp.org>  (tiny change)
24601
24602         On Cygwin, use /proc file system instead of win32 API.
24603         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
24604         Win32 file names.
24605         (DllMain): Simplify by removing Cygwin specific code.
24606         (find_shared_library_fullname): Use Linux specific implementation also
24607         for Cygwin.
24608         (get_shared_library_fullname): Update accordingly.
24609         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
24610         Win32 file names.
24611         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
24612         Cygwin specific code.
24613
24614 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
24615             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
24616
24617         Fix OpenMP flag detection for various Fortran compilers.
24618         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
24619         OpenMP-conditional compilation construct, to force compile
24620         failure with missing OpenMP flag.
24621         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
24622
24623 2011-02-25  Eric Blake  <eblake@redhat.com>
24624
24625         strstr: expand test coverage
24626         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
24627         compilation.
24628         * tests/test-memmem.c (main): Duplicate tests.
24629         * tests/test-strcasestr.c (main): Likewise.
24630         * tests/test-c-strcasestr.c (main): Likewise.
24631
24632 2011-02-25  Jim Meyering  <meyering@redhat.com>
24633
24634         maint.mk: detect missing-NL-at-EOF, too
24635         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
24636         it also detects when a file lacks a newline at EOF.
24637         (require_exactly_one_NL_at_EOF_): Renamed from
24638         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
24639         since people may well have .x-sc_... file names tied to the
24640         existing name.  Suggested by Eric Blake.
24641
24642 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
24643
24644         dirname: move m4/dos.m4 functionality into lib/dosname.h
24645
24646         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
24647         extracts symbols from it, puts them into config.h; but it's much
24648         easier to use the symbols directly.  filename.h already does this,
24649         but it disagrees with dos.m4 in some respects.  This patch
24650         introduces a different include file dosname.h that packages up
24651         dos.m4, and then later we can work on merging filename.h and
24652         dosname.h.  Applications that need only the easy-to-configure
24653         symbols should consider including dosname.h rather than dirname.h.
24654         * NEWS: Mention incompatible changes.
24655         * m4/dos.m4: Remove.
24656         * lib/dosname.h, modules/dosname: New files.
24657         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
24658         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
24659         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
24660         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
24661         Include dosname.h, not dirname.h.
24662         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
24663         Include dosname.h, for definitions of symbols like ISSLASH
24664         that used to be in config.h.
24665         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
24666         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
24667         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
24668         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
24669         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
24670         * modules/rmdir (Files): Likewise.
24671         * modules/stat (Files): Likewise.
24672         * modules/unlink (Files): Likewise.
24673         * modules/dirname-lgpl (Depends-on): Add dosname.
24674         * modules/lstat (Depends-on): Likewise.
24675         * modules/openat (Depends-on): Likewise.
24676         * modules/rmdir (Depends-on): Likewise.
24677         * modules/savewd (Depends-on): Likewise.
24678         * modules/stat (Depends-on): Likewise.
24679         * modules/unlink (Depends-on): Likewise.
24680         * modules/openat (Depends-on): Remove dirname-lgpl.
24681         * modules/savewd (Depends-on): Likewise.
24682         * tests/test-dirname.c: Do not use removed symbols like
24683         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
24684         the remaining symbols, e.g., ISSLASH ('\\').
24685
24686 2011-02-25  Eric Blake  <eblake@redhat.com>
24687
24688         strstr: revert patches that introduced bug and pessimization
24689         * lib/str-two-way.h: Add another reference.
24690         (two_way_short_needle, two_way_long_needle): Revert changes from
24691         2011-02-24; they pessimize search speed.
24692         (critical_factorization): Partially revert changes from
24693         2010-06-22; they violate the requirement that the left half of the
24694         needle be smaller than the period of the needle.
24695
24696 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
24697
24698         filenamecat: remove unnecessary dependency on dirname-lgpl
24699         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
24700         is no direct dependency, just an indirect one via filenamecat-lgpl.
24701
24702         remove: remove unnecessary use of m4/dos.m4
24703         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
24704         * modules/remove (FILES): Remove m4/dos.m4.
24705
24706         * lib/openat-proc.c: Don't include dirname.h; not needed.
24707
24708         backupfile: remove unnecessary use of m4/dos.m4
24709         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
24710         of its symbols are used by the backupfile code.  backupfile.c does
24711         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
24712         for the rare case of programs that want all their backup file
24713         names to live within 8+3 limits, and dos.m4 doesn't address that.
24714         * modules/backupfile (Files): Remove m4/dos.m4.
24715
24716 2011-02-24  Jim Meyering  <meyering@redhat.com>
24717
24718         strstr: fix a bug whereby strstr would mistakenly return NULL
24719         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
24720         in period calculation.
24721         (two_way_long_needle): Likewise.
24722         The original problem was reported by Mike Stump in
24723         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
24724         Ralf Wildenhues provided the short needle and haystack.
24725         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
24726         Add a more involved test to trigger the bug in two_way_long_needle.
24727
24728 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
24729
24730         gnulib-tool: remove use of bold display in help screen
24731         * gnulib-tool (func_usage): Do not use bold display anymore in the
24732         help screen.  That was just meant to be a temporary emphasis for a
24733         backward-incompatible change.
24734
24735 2011-02-23  Bruno Haible  <bruno@clisp.org>
24736
24737         Fix misindentation of preprocessor directives.
24738         * lib/argp-namefrob.h: Reindent preprocessor directives.
24739         * lib/getopt_int.h (struct _getopt_data): Likewise.
24740         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
24741         * lib/vasnprintf.c (decode_long_double): Likewise.
24742         * tests/test-argmatch.c: Insert blank lines, for clarity.
24743         * tests/test-exclude.c: Likewise.
24744
24745 2011-02-22  Bruno Haible  <bruno@clisp.org>
24746
24747         ioctl: Fix for MacOS X in 64-bit mode.
24748         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
24749         value.
24750         Suggested by Eric Blake.
24751         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
24752
24753 2011-02-22  Jim Meyering  <meyering@redhat.com>
24754
24755         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
24756         * Makefile (sc_cpp_indent_check): Don't limit the check to files
24757         in lib/.
24758
24759 2011-02-22  Eric Blake  <eblake@redhat.com>
24760
24761         maint: avoid any CDPATH issue
24762         * Makefile (sc_cpp_indent_check): Anchor cd argument.
24763
24764         maint: adjust cpp indentation for my modules, as well
24765         * Makefile (sc_cpp_indent_check): Add my name.
24766         * lib/fbufmode.c: Filter through cppi.
24767         * lib/fpurge.c: Likewise.
24768         * lib/freadable.c: Likewise.
24769         * lib/freading.c: Likewise.
24770         * lib/fwritable.c: Likewise.
24771         * lib/fwriting.c: Likewise.
24772         * lib/sigaction.c: Likewise.
24773
24774 2011-02-22  Jim Meyering  <meyering@redhat.com>
24775
24776         maint: adjust cpp indentation to reflect nesting depth
24777         I.e., in a block of code that begins with an unnested "#if",
24778         put one space between the "#" in column 1 and following token.
24779         For example,
24780         -#include <sys/vfs.h>
24781         +# include <sys/vfs.h>
24782         Do this only in .c files that are part of a module I maintain.
24783         * lib/linkat.c: Filter through cppi.
24784         * lib/nanosleep.c: Likewise.
24785         * lib/openat.c: Likewise.
24786         * lib/openat-die.c: Likewise.
24787         * lib/dup3.c: Likewise.
24788         * lib/fchownat.c: Likewise.
24789         * lib/flock.c: Likewise.
24790         * lib/fsync.c: Likewise.
24791         * lib/fts.c: Likewise.
24792         * lib/getpass.c: Likewise.
24793         * lib/gettimeofday.c: Likewise.
24794         * lib/userspec.c: Likewise.
24795         * Makefile (sc_cpp_indent_check): New rule, to check this.
24796
24797 2011-02-22  Bruno Haible  <bruno@clisp.org>
24798
24799         New module 'wctomb'.
24800         * lib/stdlib.in.h (wctomb): New declaration.
24801         * lib/wctomb.c: New file.
24802         * lib/wctomb-impl.h: New file.
24803         * m4/wctomb.m4: New file.
24804         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
24805         REPLACE_WCTOMB.
24806         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
24807         REPLACE_WCTOMB.
24808         * modules/wctomb: New file.
24809         * tests/test-stdlib-c++.cc: Test signature of wctomb.
24810         * doc/posix-functions/wctomb.texi: Mention the new module.
24811         * modules/wctob (Depends-on): Add wctomb.
24812
24813 2011-02-22  Bruno Haible  <bruno@clisp.org>
24814
24815         New module 'mbtowc'.
24816         * lib/stdlib.in.h (mbtowc): New declaration.
24817         * lib/mbtowc.c: New file.
24818         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
24819         * m4/mbtowc.m4: New file.
24820         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
24821         REPLACE_MBTOWC.
24822         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
24823         REPLACE_MBTOWC.
24824         * modules/mbtowc: New file.
24825         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
24826         * doc/posix-functions/mbtowc.texi: Mention the new module.
24827         * modules/btowc (Depends-on): Add mbtowc.
24828
24829 2011-02-22  Bruno Haible  <bruno@clisp.org>
24830
24831         wcrtomb: Add more tests for native Windows platforms.
24832         * tests/test-wcrtomb-w32-1.sh: New file.
24833         * tests/test-wcrtomb-w32-2.sh: New file.
24834         * tests/test-wcrtomb-w32-3.sh: New file.
24835         * tests/test-wcrtomb-w32-4.sh: New file.
24836         * tests/test-wcrtomb-w32-5.sh: New file.
24837         * tests/test-wcrtomb-w32.c: New file.
24838         * modules/wcrtomb-tests (Files): Add them.
24839         (Makefile.am): Arrange to run these tests.
24840         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
24841         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
24842
24843 2011-02-20  Bruno Haible  <bruno@clisp.org>
24844
24845         wcrtomb: Enhance test.
24846         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
24847
24848 2011-02-20  Bruno Haible  <bruno@clisp.org>
24849
24850         mbrtowc: Tiny optimization.
24851         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
24852
24853 2011-02-20  Jim Meyering  <meyering@redhat.com>
24854
24855         test-exclude.c: remove unmatched #endif
24856         * tests/test-exclude.c: Remove stray #endif, left over from
24857         the change of a week ago.
24858
24859 2011-02-19  Jim Meyering  <meyering@redhat.com>
24860
24861         git-version-gen: skip "-dirty" check when appropriate
24862         * build-aux/git-version-gen: Don't run any git commands when the
24863         version string comes from .tarball-version.  Prior to this, we
24864         would run git update-index --refresh even from a just-unpacked
24865         tarball directory, and that could affect a .git/ directory in a
24866         parent of the build directory.  Reported by Mike Frysinger.
24867
24868 2011-02-19  Bruno Haible  <bruno@clisp.org>
24869
24870         unictype/property-byname: Reduce the size of the 'data' segment.
24871         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
24872
24873 2011-02-19  Bruno Haible  <bruno@clisp.org>
24874
24875         unictype/scripts: Reduce the size of the 'data' segment.
24876         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
24877         '%pic'.
24878         * lib/unictype/scripts_byname.gperf: Regenerated.
24879
24880 2011-02-19  Bruno Haible  <bruno@clisp.org>
24881
24882         stdint: Update documentation.
24883         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
24884
24885 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
24886
24887         stdint: omit redundant check for wchar.h
24888         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
24889         always tests whether wchar.h exists, so remove the now-redundant test.
24890
24891 2011-02-18  Bruno Haible  <bruno@clisp.org>
24892
24893         stdint: Cut dependency to module 'wchar'.
24894         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
24895         include the necessary prerequisites.
24896         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
24897         * modules/stdint (Depends-on): Remove wchar.
24898         (Makefile.am): Substitute HAVE_WCHAR_H.
24899         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
24900
24901 2011-02-18  Eric Blake  <eblake@redhat.com>
24902
24903         longlong: skip, rather than fail, on cross-compilation
24904         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
24905         when cross-compiling; regression from 2011-02-16.
24906
24907 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
24908
24909         * NEWS: Mention 2011-02-08 change to stdlib.
24910
24911 2011-02-17  Bruno Haible  <bruno@clisp.org>
24912
24913         getloadavg: Add comments about platforms.
24914         * m4/getloadavg.m4: Add comment.
24915         * lib/getloadavg.c: Likewise.
24916
24917 2011-02-17  Bruno Haible  <bruno@clisp.org>
24918
24919         getloadavg: Fix link error on Solaris 2.6.
24920         * modules/getloadavg (Link): New section.
24921         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
24922         linking test-getloadavg.
24923         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
24924         getloadavg.
24925
24926 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
24927
24928         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
24929         It was 'int', but this doesn't match the IRIX 6.5 manual.
24930         Suggested by Bruno Haible in
24931         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
24932
24933 2011-02-17  Bruno Haible  <bruno@clisp.org>
24934
24935         havelib: Fix comments.
24936         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
24937         change.
24938
24939 2011-02-17  Bruno Haible  <bruno@clisp.org>
24940
24941         havelib: Update config.rpath.
24942         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
24943
24944 2011-02-17  Bruno Haible  <bruno@clisp.org>
24945
24946         getloadavg test: Add some plausibility checks.
24947         * tests/test-getloadavg.c (check_avg): Print a warning when the value
24948         is improbable.
24949
24950 2011-02-16  Eric Blake  <eblake@redhat.com>
24951
24952         maintainer-makefile: make syntax-check a no-op from tarballs
24953         * top/maint.mk (no-vc-detected): New rule.
24954         (local-checks-available): Use it to avoid hanging if someone tries
24955         'make syntax-check' from a tarball.  Also append to any non-syntax
24956         checks already defined in cfg.mk.
24957
24958 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
24959
24960         longlong: tune, particularly for common case of c99
24961
24962         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
24963         or running anything if c99, or if unsigned long long int does not
24964         work.  In either case, we know the answer without further tests.
24965         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
24966         it at most once, and use its results for both long long int and
24967         unsigned long long int.  This is more likely to be efficient in
24968         the common case where the program wants to check for both long
24969         long int and unsigned long long int.
24970         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
24971         since the answer is already known.
24972
24973 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
24974
24975         getloadavg: set errno
24976         * lib/getloadavg.c: Set errno when returning -1.  If no other
24977         error number looks appropriate, set it to ENOSYS if the getloadavg
24978         looks like it can't possibly ever work, ENOTSUP otherwise.
24979         Suggested by Bruno Haible in
24980         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
24981
24982         getloadavg: trim unused parts and speed up 'configure'
24983         * NEWS: Document this.
24984         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
24985         always compiled if getloadavg is absent.
24986         Move test code to ...
24987         * tests/test-getloadavg.c: New file, containing previous
24988         contents of test from lib/getloadavg.c.  It also contains
24989         suggestions by Bruno Haible in
24990         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
24991         * modules/getloadavg-tests: New file.
24992         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
24993         Do tests in the same order as they're needed for getloadavg.c.
24994         Omit setgid-related tests that generate symbols KMEM_GROUP,
24995         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
24996         Do only the tests that are needed to see whether the system has
24997         getloadavg, moving the other tests into ...
24998         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
24999         NLIST_NAME_UNION; nobody should be using it.  Do not define
25000         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
25001         relevant, as the user of this module shouldn't care how getloadavg
25002         is implemented.
25003
25004         getloadavg: omit unused var
25005         * lib/getloadavg.c (getloadavg): Omit unused local variable.
25006
25007 2011-02-15  Jim Meyering  <meyering@redhat.com>
25008
25009         doc: update users.txt
25010         * users.txt: Update iwhd's URL.
25011
25012 2011-02-13  Bruno Haible  <bruno@clisp.org>
25013
25014         Consistent macro naming for macros that use GCC __attribute__.
25015         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
25016         _ATTRIBUTE_NONNULL_.
25017         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
25018         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
25019         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
25020         ATTRIBUTE_DEPRECATED.
25021         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
25022         ATTRIBUTE_NORETURN.
25023         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
25024         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
25025         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
25026         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
25027         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
25028         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
25029         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
25030         ATTRIBUTE_SENTINEL.
25031         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
25032         ATTRIBUTE_RETURN_CHECK.
25033         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
25034         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
25035         ATTRIBUTE_NORETURN.
25036         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
25037         Reported by Paul Eggert.
25038
25039 2011-02-13  Bruno Haible  <bruno@clisp.org>
25040
25041         Don't interfere with a program's definition of __attribute__.
25042         * lib/argp.h (__attribute__): Remove definition.
25043         (_GL_ATTRIBUTE_FORMAT): New macro.
25044         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
25045         * lib/argp-fmtstream.h (__attribute__): Remove definition.
25046         (_GL_ATTRIBUTE_FORMAT): New macro.
25047         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
25048         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
25049         GCC 3 or newer.
25050         * lib/error.h (__attribute__): Remove definition.
25051         (_GL_ATTRIBUTE_FORMAT): New macro.
25052         (error, error_at_line): Use it.
25053         * lib/hash.h (__attribute__): Remove definition.
25054         (ATTRIBUTE_WUR): Update definition. Define always.
25055         * lib/openat.h (__attribute__): Remove definition.
25056         (ATTRIBUTE_NORETURN): Update definition. Define always.
25057         * lib/sigpipe-die.h (__attribute__): Remove definition.
25058         (ATTRIBUTE_NORETURN): Update definition. Define always.
25059         * lib/vasnprintf.h (__attribute__): Remove definition.
25060         (_GL_ATTRIBUTE_FORMAT): New macro.
25061         (asnprintf, vasnprintf): Use it.
25062         * lib/xalloc.h (__attribute__): Remove definition.
25063         (ATTRIBUTE_NORETURN): Update definition. Define always.
25064         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
25065         * lib/xmemdup0.h (__attribute__): Remove definition.
25066         (ATTRIBUTE_NORETURN): Update definition. Define always.
25067         * lib/xprintf.h (__attribute__): Remove definition.
25068         (_GL_ATTRIBUTE_FORMAT): New macro.
25069         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
25070         * lib/xstrtol.h (__attribute__): Remove definition.
25071         (ATTRIBUTE_NORETURN): Update definition. Define always.
25072         * lib/xvasprintf.h (__attribute__): Remove definition.
25073         (_GL_ATTRIBUTE_FORMAT): New macro.
25074         (xasprintf, xvasprintf): Use it.
25075         * tests/test-argmatch.c (__attribute__): Remove definition.
25076         (ATTRIBUTE_NORETURN): Update definition. Define always.
25077         * tests/test-exclude.c (__attribute__): Remove definition.
25078         (ATTRIBUTE_NORETURN): Update definition. Define always.
25079         Reported by Paul Eggert.
25080
25081 2011-02-13  Bruno Haible  <bruno@clisp.org>
25082
25083         mbrtowc: Add more tests for native Windows platforms.
25084         * tests/test-mbrtowc-w32-1.sh: New file.
25085         * tests/test-mbrtowc-w32-2.sh: New file.
25086         * tests/test-mbrtowc-w32-3.sh: New file.
25087         * tests/test-mbrtowc-w32-4.sh: New file.
25088         * tests/test-mbrtowc-w32-5.sh: New file.
25089         * tests/test-mbrtowc-w32.c: New file.
25090         * modules/mbrtowc-tests (Files): Add them.
25091         (Makefile.am): Arrange to run these tests.
25092         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
25093         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
25094
25095 2011-02-13  Bruno Haible  <bruno@clisp.org>
25096
25097         mbrtowc: Work around native Windows bug.
25098         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
25099         guess when no suitable locale for testing was found.
25100         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
25101
25102 2011-02-13  Bruno Haible  <bruno@clisp.org>
25103
25104         mbsinit: Work around mingw bug.
25105         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
25106         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
25107         Windows.
25108         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
25109
25110 2011-02-13  Bruno Haible  <bruno@clisp.org>
25111
25112         mbsinit: Don't crash for a NULL argument.
25113         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
25114         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
25115
25116 2011-02-13  Bruno Haible  <bruno@clisp.org>
25117
25118         Don't interfere with a program's definition of __attribute__.
25119         * lib/stdio.in.h (__attribute__): Remove definition.
25120         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
25121         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
25122         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
25123         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
25124         * lib/string.in.h (__attribute__): Remove definition.
25125         Reported by Paul Eggert.
25126
25127 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
25128
25129         stdlib: don't get in the way of non-GCC __attribute__
25130         See thread starting at
25131         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
25132         Revert previous stdlib change, installing the following instead:
25133         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
25134         to get in the way of a non-GCC compiler that supports __attribute__.
25135         (_GL_ATTRIBUTE_RETURN): New macro.
25136         (_Exit): Use it instead of __attribute__.
25137
25138 2011-02-12  Bruno Haible  <bruno@clisp.org>
25139
25140         quotearg test: Avoid test failure on mingw.
25141         * tests/test-quotearg.sh: Convert the locale identifier from native
25142         Windows syntax to Unix syntax.
25143
25144 2011-02-12  Bruno Haible  <bruno@clisp.org>
25145
25146         setlocale: Prefer gnulib's override over libintl's override.
25147         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
25148         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
25149         GNULIB_defined_setlocale is set.
25150
25151 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
25152
25153         stdlib: support non-GCC __attribute__
25154
25155         Fix a serious and tricky problem encountered when attempting to
25156         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
25157         5.5, but it crashed due to memory corruption on Solaris 10 with
25158         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
25159         bits that are otherwise zero.  This tagging is optional inside
25160         Emacs but is preferred and is used when __attribute__ ((__aligned
25161         (8))) works, as it does with both recent-enough GCC and with Sun C
25162         5.11.  However, Sun C 5.11 is not GCC and does not #define
25163         __GNUC__ and __GNUC_MINOR__.
25164
25165         When I added the getloadavg module to Emacs, it brought in
25166         stdlib.in.h, which contained this fragment:
25167
25168            #ifndef __attribute__
25169            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
25170            #  define __attribute__(Spec)   /* empty */
25171            # endif
25172            #endif
25173
25174         When files that include <stdlib.h> were compiled with Sun C 5.11,
25175         the above code disabled __attribute__ ((__aligned (8))), which
25176         caused variables to not be properly aligned, which eventually led
25177         to the pointer corruption mentioned above.  (This was a bit hard
25178         to diagnose, unfortunately.)
25179
25180         Several "#define __attribute__(X) /* empty */" code snippets need
25181         to be eradicated from Gnulib to work with non-GCC compilers that
25182         support __attribute__.  The Autoconf way to do this is to test for
25183         each kind of attribute that we want support for, and selectively
25184         enable that in source code.
25185
25186         Fix this problem just for stdlib.h, by adding a test for the
25187         __noreturn__ attribute, and change stdlib.in.h to use that test
25188         when needed.  This technique can be easily generalized to the
25189         other *.in.h files and attributes, and a similar technique can be
25190         used for *.h and *.c files.  This patch is enough to solve the
25191         problem for Emacs + getloadavg, and I thought I'd publish it for
25192         feedback before undertaking further, similar fixes in other
25193         modules.
25194
25195         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
25196         because it's not needed for stdlib.h.  It merely substitutes the
25197         value directly into stdlib.h.  We may well need to #define it, or
25198         similar symbols, for other modules, but it's nice to also have an
25199         option to not #define it for applications like Emacs that do not
25200         need it.
25201
25202         * lib/stdlib.in.h (__attribute__): Do not #define.
25203         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
25204         be defined only if the _Exit module is also used.
25205         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
25206         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
25207         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
25208         platforms.
25209         * modules/_Exit (Files): Add m4/attribute.m4.
25210         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
25211         * m4/attribute.m4: New file.
25212
25213 2011-02-12  Bruno Haible  <bruno@clisp.org>
25214
25215         wcsrtombs: Work around bug on native Windows.
25216         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
25217         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
25218         instead of len.
25219         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
25220
25221 2011-02-12  Bruno Haible  <bruno@clisp.org>
25222
25223         mbsrtowcs: Work around bug on native Windows.
25224         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
25225         against mingw bug.
25226         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
25227
25228 2011-02-12  Bruno Haible  <bruno@clisp.org>
25229
25230         Avoid setlocale bugs in tests.
25231         * modules/btowc (Dependencies): Add setlocale.
25232         * modules/c-strcase (Dependencies): Likewise.
25233         * modules/mbmemcasecmp (Dependencies): Likewise.
25234         * modules/mbmemcasecoll (Dependencies): Likewise.
25235         * modules/mbrtowc (Dependencies): Likewise.
25236         * modules/mbscasecmp (Dependencies): Likewise.
25237         * modules/mbscasestr (Dependencies): Likewise.
25238         * modules/mbschr (Dependencies): Likewise.
25239         * modules/mbscspn (Dependencies): Likewise.
25240         * modules/mbsinit (Dependencies): Likewise.
25241         * modules/mbsncasecmp (Dependencies): Likewise.
25242         * modules/mbsnrtowcs (Dependencies): Likewise.
25243         * modules/mbspbrk (Dependencies): Likewise.
25244         * modules/mbspcasecmp (Dependencies): Likewise.
25245         * modules/mbsrchr (Dependencies): Likewise.
25246         * modules/mbsrtowcs (Dependencies): Likewise.
25247         * modules/mbsspn (Dependencies): Likewise.
25248         * modules/mbsstr (Dependencies): Likewise.
25249         * modules/nl_langinfo (Dependencies): Likewise.
25250         * modules/quotearg (Dependencies): Likewise.
25251         * modules/unicase/locale-language (Dependencies): Likewise.
25252         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
25253         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
25254         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
25255         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
25256         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
25257         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
25258         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
25259         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
25260         * modules/vasnprintf-posix (Dependencies): Likewise.
25261         * modules/wcrtomb (Dependencies): Likewise.
25262         * modules/wcsnrtombs (Dependencies): Likewise.
25263         * modules/wcsrtombs (Dependencies): Likewise.
25264
25265 2011-02-12  Bruno Haible  <bruno@clisp.org>
25266
25267         setlocale: Workaround native Windows bug.
25268         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
25269         succeeds but sets LC_CTYPE to "C", report a failure.
25270         * tests/test-setlocale2.sh: New file.
25271         * tests/test-setlocale2.c: New file.
25272         * modules/setlocale-tests (Files): Add the new files.
25273         (Makefile.am): Enable test-setlocale2.sh test.
25274         * doc/posix-functions/setlocale.texi: Mention workaround.
25275
25276 2011-02-11  Bruno Haible  <bruno@clisp.org>
25277
25278         Tests for module 'setlocale'.
25279         * modules/setlocale-tests: New file.
25280         * tests/test-setlocale1.sh: New file.
25281         * tests/test-setlocale1.c: New file.
25282
25283         New module 'setlocale'.
25284         * lib/locale.in.h (setlocale): New declaration.
25285         * lib/setlocale.c: New file, based on
25286         gettext/gettext-runtime/intl/setlocale.c.
25287         * m4/setlocale.m4: New file.
25288         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
25289         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
25290         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
25291         REPLACE_SETLOCALE.
25292         * modules/setlocale: New file.
25293         * tests/test-locale-c++.cc: Test the declaration of setlocale.
25294         * doc/posix-functions/setlocale.texi: Mention the new module.
25295
25296 2011-02-11  Bruno Haible  <bruno@clisp.org>
25297
25298         Prepare for locale dependent tests on mingw.
25299         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
25300         because it has the wrong locale encoding.
25301         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
25302         French_France.1252 instead of "fr".
25303         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
25304         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
25305         because it has the wrong locale encoding.
25306         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
25307         native Windows, try Turkish_Turkey.65001.
25308         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
25309         Chinese_China.54936.
25310
25311         Prepare for locale dependent tests on mingw.
25312         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
25313         differently.
25314         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
25315         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
25316         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
25317         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
25318
25319 2011-02-11  Eric Blake  <eblake@redhat.com>
25320
25321         strptime: avoid compiler warnings
25322         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
25323         compiler warnings about dead code.
25324         Reported by Daniel P. Berrange.
25325
25326 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
25327
25328         doc: update users.txt
25329         * users.txt: Add rcs.
25330
25331 2011-02-10  John W. Eaton  <jwe@gnu.org>
25332
25333         doc: update users.txt
25334         * users.txt: Add octave.
25335
25336 2011-02-10  Jim Meyering  <meyering@redhat.com>
25337
25338         doc: update users.txt
25339         * users.txt: Add iwhd.
25340
25341 2011-02-09  Bruno Haible  <bruno@clisp.org>
25342
25343         gnulib-tool: Make copyright notice adjustment more robust.
25344         * gnulib-tool (func_import): In sed_transform_main_lib_file,
25345         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
25346         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
25347         License".
25348         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
25349
25350 2011-02-06  Bruno Haible  <bruno@clisp.org>
25351
25352         New module 'towctrans'.
25353         * modules/towctrans: New file.
25354         * lib/wctype.in.h (towctrans): New declaration.
25355         * lib/towctrans.c: New file.
25356         * lib/towctrans-impl.h: New file.
25357         * m4/towctrans.m4: New file.
25358         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
25359         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
25360         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
25361         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
25362         * doc/posix-functions/towctrans.texi: Mention the new module.
25363
25364 2011-02-06  Bruno Haible  <bruno@clisp.org>
25365
25366         New module 'wctrans'.
25367         * modules/wctrans: New file.
25368         * lib/wctype.in.h (wctrans): New declaration.
25369         * lib/wctrans.c: New file.
25370         * lib/wctrans-impl.h: New file.
25371         * m4/wctrans.m4: New file.
25372         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
25373         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
25374         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
25375         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
25376         * doc/posix-functions/wctrans.texi: Mention the new module.
25377
25378 2011-02-06  Bruno Haible  <bruno@clisp.org>
25379
25380         New module 'iswctype'.
25381         * modules/iswctype: New file.
25382         * lib/wctype.in.h (iswctype): New declaration.
25383         * lib/iswctype.c: New file.
25384         * lib/iswctype-impl.h: New file.
25385         * m4/iswctype.m4: New file.
25386         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
25387         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
25388         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
25389         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
25390         * doc/posix-functions/iswctype.texi: Mention the new module and the
25391         HP-UX 11.00 problem.
25392
25393 2011-02-06  Bruno Haible  <bruno@clisp.org>
25394
25395         New module 'wctype'.
25396         * modules/wctype: Change to represent the wctype() substitute.
25397         * lib/wctype.in.h (wctype): New declaration.
25398         * lib/wctype.c: New file.
25399         * lib/wctype-impl.h: New file.
25400         * m4/wctype.m4: New file.
25401         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
25402         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
25403         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
25404         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
25405         * doc/posix-functions/wctype.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         wctype-h: Ensure wctype_t and wctrans_t are defined.
25411         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
25412         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
25413         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
25414         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
25415         HAVE_WCTRANS_T.
25416         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
25417
25418 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
25419
25420         flock: fix license typo
25421
25422         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
25423         omitted.
25424
25425 2011-02-08  Bruno Haible  <bruno@clisp.org>
25426
25427         Split large sed scripts, for HP-UX sed.
25428         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
25429         to avoid HP-UX limit of 99 commands, in the near future.
25430         * modules/stdlib (Makefile.am): Likewise.
25431         * modules/unistd (Makefile.am): Likewise.
25432         * modules/wchar (Makefile.am): Likewise.
25433         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
25434         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
25435         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
25436
25437 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
25438             Bruno Haible  <bruno@clisp.org>
25439
25440         stdlib: improve random_r modularization
25441         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
25442         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
25443         you also need the random_r module to get this material right.
25444         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
25445         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
25446         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
25447
25448 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
25449
25450         stdlib: don't depend on stdint
25451         * lib/stdlib.in.h: Don't include <stdint.h> merely because
25452         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
25453         be independent of whether stdint.h is needed.
25454         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
25455         here, instead of ...
25456         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
25457         struct random_data should be using the random_r module, not just
25458         the stdlib module (which wouldn't make sense: what package needs
25459         just struct random_data without also needing random_r?).
25460         * modules/stdlib (Depends-on): Remove stdint.
25461
25462         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
25463         See the thread rooted at
25464         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
25465         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
25466         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
25467         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
25468         __VMS)); previously it was always included (via fcntl--.h).
25469         (getloadavg): Do not use c_strtod.  Instead, approximate it by
25470         hand; this is good enough for load averages.  Also, do not use
25471         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
25472         flags directly if available and don't bother otherwise.  (Packages
25473         that need the extra reliability should use the modules that define
25474         these flags on older platforms that lack them.)
25475         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
25476         fcntl-safer.
25477
25478 2011-02-08  Jim Meyering  <meyering@redhat.com>
25479
25480         di-set.h, ino-map.h: add multiple-inclusion guard
25481         Technically, the guard is required only for ino-map.h, due to its
25482         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
25483         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
25484         * lib/ino-map.h: Likewise.
25485
25486 2011-02-06  Bruno Haible  <bruno@clisp.org>
25487
25488         iswblank: Ensure declaration on glibc systems.
25489         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
25490         * modules/iswblank (Dependencies): Add 'extensions'.
25491         * doc/posix-functions/iswblank.texi: Document the glibc problem.
25492
25493 2011-02-06  Bruno Haible  <bruno@clisp.org>
25494
25495         New module 'iswblank'.
25496         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
25497         * modules/iswblank: New file.
25498         * modules/wctype-h (Files): Remove lib/iswblank.c.
25499         (Makefile.am): Substitute GNULIB_ISWBLANK.
25500         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
25501         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
25502         (gl_WCTYPE_H_DEFAULTS): New macro.
25503         (gl_WCTYPE_H): Require it. Remove iswblank related code.
25504         * modules/iswblank-tests: New file.
25505         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
25506         * tests/test-wctype-h.c (main): Remove iswblank tests.
25507         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
25508         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
25509         of 'wctype-h'.
25510         * NEWS: Mention the change.
25511         * modules/mbchar (Depends-on): Add iswblank.
25512
25513 2011-02-08  Bruno Haible  <bruno@clisp.org>
25514
25515         di-set tests: Refactor.
25516         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
25517         unnecessary includes.
25518         (ASSERT): Remove macro.
25519         (main): Make C90 compliant by avoiding variable declaration after
25520         statement.
25521         * modules/di-set-tests (Files): Add tests/macros.h.
25522
25523 2011-02-08  Bruno Haible  <bruno@clisp.org>
25524
25525         ino-map tests: Refactor.
25526         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
25527         unnecessary includes.
25528         (ASSERT): Remove macro.
25529         (main): Make C90 compliant by avoiding variable declaration after
25530         statement.
25531         * modules/ino-map-tests (Files): Add tests/macros.h.
25532
25533 2011-02-08  Jim Meyering  <meyering@redhat.com>
25534
25535         di-set: add "const" to a cast
25536         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
25537         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
25538
25539 2011-02-06  Bruno Haible  <bruno@clisp.org>
25540
25541         Rename module 'wctype' to 'wctype-h'.
25542         * modules/wctype-h: Renamed from modules/wctype.
25543         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
25544         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
25545         (Files, Depends-on, Makefile.am): Update.
25546         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
25547         (Files, Makefile.am): Update.
25548         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
25549         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
25550         * doc/posix-headers/wctype.texi: Update.
25551         * doc/posix-functions/iswalnum.texi: Update.
25552         * doc/posix-functions/iswalpha.texi: Update.
25553         * doc/posix-functions/iswblank.texi: Update.
25554         * doc/posix-functions/iswcntrl.texi: Update.
25555         * doc/posix-functions/iswdigit.texi: Update.
25556         * doc/posix-functions/iswgraph.texi: Update.
25557         * doc/posix-functions/iswlower.texi: Update.
25558         * doc/posix-functions/iswprint.texi: Update.
25559         * doc/posix-functions/iswpunct.texi: Update.
25560         * doc/posix-functions/iswspace.texi: Update.
25561         * doc/posix-functions/iswupper.texi: Update.
25562         * doc/posix-functions/iswxdigit.texi: Update.
25563         * doc/posix-functions/towlower.texi: Update.
25564         * doc/posix-functions/towupper.texi: Update.
25565         * NEWS: Mention the change.
25566         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
25567         * modules/mbchar (Dependencies): Likewise.
25568         * modules/mbswidth (Dependencies): Likewise.
25569         * modules/quotearg (Dependencies): Likewise.
25570         * modules/regex (Dependencies): Likewise.
25571         * modules/wcscasecmp (Dependencies): Likewise.
25572         * modules/wcsncasecmp (Dependencies): Likewise.
25573         * modules/wcwidth (Dependencies): Likewise.
25574
25575 2011-02-06  Bruno Haible  <bruno@clisp.org>
25576
25577         New module 'wcswidth'.
25578         * modules/wcswidth: New file.
25579         * lib/wchar.in.h (wcswidth): New declaration.
25580         * lib/wcswidth.c: New file.
25581         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
25582         * m4/wcswidth.m4: New file.
25583         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
25584         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
25585         REPLACE_WCSWIDTH.
25586         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
25587         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
25588         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
25589         * doc/posix-functions/wcswidth.texi: Mention the new module.
25590
25591 2011-02-06  Bruno Haible  <bruno@clisp.org>
25592
25593         New module 'wcstok'.
25594         * modules/wcstok: New file.
25595         * lib/wchar.in.h (wcstok): New declaration.
25596         * lib/wcstok.c: New file.
25597         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
25598         * m4/wcstok.m4: New file.
25599         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
25600         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
25601         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
25602         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
25603         * doc/posix-functions/wcstok.texi: Mention the new module.
25604
25605 2011-02-06  Bruno Haible  <bruno@clisp.org>
25606
25607         New module 'wcsstr'.
25608         * modules/wcsstr: New file.
25609         * lib/wchar.in.h (wcsstr): New declaration.
25610         * lib/wcsstr.c: New file.
25611         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
25612         * m4/wcsstr.m4: New file.
25613         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
25614         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
25615         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
25616         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
25617         * doc/posix-functions/wcsstr.texi: Mention the new module.
25618
25619 2011-02-06  Bruno Haible  <bruno@clisp.org>
25620
25621         New module 'wcspbrk'.
25622         * modules/wcspbrk: New file.
25623         * lib/wchar.in.h (wcspbrk): New declaration.
25624         * lib/wcspbrk.c: New file.
25625         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
25626         * m4/wcspbrk.m4: New file.
25627         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
25628         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
25629         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
25630         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
25631         * doc/posix-functions/wcspbrk.texi: Mention the new module.
25632
25633 2011-02-06  Bruno Haible  <bruno@clisp.org>
25634
25635         New module 'wcsspn'.
25636         * modules/wcsspn: New file.
25637         * lib/wchar.in.h (wcsspn): New declaration.
25638         * lib/wcsspn.c: New file.
25639         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
25640         * m4/wcsspn.m4: New file.
25641         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
25642         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
25643         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
25644         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
25645         * doc/posix-functions/wcsspn.texi: Mention the new module.
25646
25647 2011-02-06  Bruno Haible  <bruno@clisp.org>
25648
25649         New module 'wcscspn'.
25650         * modules/wcscspn: New file.
25651         * lib/wchar.in.h (wcscspn): New declaration.
25652         * lib/wcscspn.c: New file.
25653         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
25654         * m4/wcscspn.m4: New file.
25655         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
25656         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
25657         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
25658         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
25659         * doc/posix-functions/wcscspn.texi: Mention the new module.
25660
25661 2011-02-06  Bruno Haible  <bruno@clisp.org>
25662
25663         New module 'wcsrchr'.
25664         * modules/wcsrchr: New file.
25665         * lib/wchar.in.h (wcsrchr): New declaration.
25666         * lib/wcsrchr.c: New file.
25667         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
25668         * m4/wcsrchr.m4: New file.
25669         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
25670         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
25671         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
25672         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
25673         * doc/posix-functions/wcsrchr.texi: Mention the new module.
25674
25675 2011-02-06  Bruno Haible  <bruno@clisp.org>
25676
25677         New module 'wcschr'.
25678         * modules/wcschr: New file.
25679         * lib/wchar.in.h (wcschr): New declaration.
25680         * lib/wcschr.c: New file.
25681         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
25682         * m4/wcschr.m4: New file.
25683         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
25684         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
25685         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
25686         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
25687         * doc/posix-functions/wcschr.texi: Mention the new module.
25688
25689 2011-02-06  Bruno Haible  <bruno@clisp.org>
25690
25691         New module 'wcsdup'.
25692         * modules/wcsdup: New file.
25693         * lib/wchar.in.h (wcsdup): New declaration.
25694         * lib/wcsdup.c: New file.
25695         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
25696         * m4/wcsdup.m4: New file.
25697         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
25698         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
25699         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
25700         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
25701         * doc/posix-functions/wcsdup.texi: Mention the new module.
25702
25703 2011-02-06  Bruno Haible  <bruno@clisp.org>
25704
25705         New module 'wcsxfrm'.
25706         * modules/wcsxfrm: New file.
25707         * lib/wchar.in.h (wcsxfrm): New declaration.
25708         * lib/wcsxfrm.c: New file.
25709         * lib/wcsxfrm-impl.h: New file.
25710         * m4/wcsxfrm.m4: New file.
25711         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
25712         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
25713         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
25714         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
25715         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
25716
25717 2011-02-06  Bruno Haible  <bruno@clisp.org>
25718
25719         New module 'wcscoll'.
25720         * modules/wcscoll: New file.
25721         * lib/wchar.in.h (wcscoll): New declaration.
25722         * lib/wcscoll.c: New file.
25723         * lib/wcscoll-impl.h: New file.
25724         * m4/wcscoll.m4: New file.
25725         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
25726         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
25727         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
25728         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
25729         * doc/posix-functions/wcscoll.texi: Mention the new module.
25730
25731 2011-02-06  Bruno Haible  <bruno@clisp.org>
25732
25733         New module 'wcsncasecmp'.
25734         * modules/wcsncasecmp: New file.
25735         * lib/wchar.in.h (wcsncasecmp): New declaration.
25736         * lib/wcsncasecmp.c: New file.
25737         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
25738         * m4/wcsncasecmp.m4: New file.
25739         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
25740         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
25741         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
25742         HAVE_WCSNCASECMP.
25743         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
25744         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
25745
25746 2011-02-06  Bruno Haible  <bruno@clisp.org>
25747
25748         New module 'wcscasecmp'.
25749         * modules/wcscasecmp: New file.
25750         * lib/wchar.in.h (wcscasecmp): New declaration.
25751         * lib/wcscasecmp.c: New file.
25752         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
25753         * m4/wcscasecmp.m4: New file.
25754         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
25755         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
25756         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
25757         HAVE_WCSCASECMP.
25758         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
25759         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
25760
25761 2011-02-05  Bruno Haible  <bruno@clisp.org>
25762
25763         New module 'wcsncmp'.
25764         * modules/wcsncmp: New file.
25765         * lib/wchar.in.h (wcsncmp): New declaration.
25766         * lib/wcsncmp.c: New file.
25767         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
25768         * m4/wcsncmp.m4: New file.
25769         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
25770         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
25771         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
25772         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
25773         * doc/posix-functions/wcsncmp.texi: Mention the new module.
25774
25775 2011-02-05  Bruno Haible  <bruno@clisp.org>
25776
25777         New module 'wcscmp'.
25778         * modules/wcscmp: New file.
25779         * lib/wchar.in.h (wcscmp): New declaration.
25780         * lib/wcscmp.c: New file.
25781         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
25782         * m4/wcscmp.m4: New file.
25783         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
25784         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
25785         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
25786         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
25787         * doc/posix-functions/wcscmp.texi: Mention the new module.
25788
25789 2011-02-05  Bruno Haible  <bruno@clisp.org>
25790
25791         New module 'wcsncat'.
25792         * modules/wcsncat: New file.
25793         * lib/wchar.in.h (wcsncat): New declaration.
25794         * lib/wcsncat.c: New file.
25795         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
25796         * m4/wcsncat.m4: New file.
25797         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
25798         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
25799         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
25800         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
25801         * doc/posix-functions/wcsncat.texi: Mention the new module.
25802
25803 2011-02-05  Bruno Haible  <bruno@clisp.org>
25804
25805         New module 'wcscat'.
25806         * modules/wcscat: New file.
25807         * lib/wchar.in.h (wcscat): New declaration.
25808         * lib/wcscat.c: New file.
25809         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
25810         * m4/wcscat.m4: New file.
25811         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
25812         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
25813         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
25814         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
25815         * doc/posix-functions/wcscat.texi: Mention the new module.
25816
25817 2011-02-05  Bruno Haible  <bruno@clisp.org>
25818
25819         New module 'wcpncpy'.
25820         * modules/wcpncpy: New file.
25821         * lib/wchar.in.h (wcpncpy): New declaration.
25822         * lib/wcpncpy.c: New file.
25823         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
25824         * m4/wcpncpy.m4: New file.
25825         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
25826         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
25827         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
25828         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
25829         * doc/posix-functions/wcpncpy.texi: Mention the new module.
25830
25831 2011-02-05  Bruno Haible  <bruno@clisp.org>
25832
25833         New module 'wcsncpy'.
25834         * modules/wcsncpy: New file.
25835         * lib/wchar.in.h (wcsncpy): New declaration.
25836         * lib/wcsncpy.c: New file.
25837         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
25838         * m4/wcsncpy.m4: New file.
25839         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
25840         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
25841         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
25842         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
25843         * doc/posix-functions/wcsncpy.texi: Mention the new module.
25844
25845 2011-02-05  Bruno Haible  <bruno@clisp.org>
25846
25847         New module 'wcpcpy'.
25848         * modules/wcpcpy: New file.
25849         * lib/wchar.in.h (wcpcpy): New declaration.
25850         * lib/wcpcpy.c: New file.
25851         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
25852         * m4/wcpcpy.m4: New file.
25853         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
25854         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
25855         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
25856         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
25857         * doc/posix-functions/wcpcpy.texi: Mention the new module.
25858
25859 2011-02-05  Bruno Haible  <bruno@clisp.org>
25860
25861         New module 'wcscpy'.
25862         * modules/wcscpy: New file.
25863         * lib/wchar.in.h (wcscpy): New declaration.
25864         * lib/wcscpy.c: New file.
25865         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
25866         * m4/wcscpy.m4: New file.
25867         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
25868         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
25869         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
25870         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
25871         * doc/posix-functions/wcscpy.texi: Mention the new module.
25872
25873 2011-02-05  Bruno Haible  <bruno@clisp.org>
25874
25875         New module 'wcsnlen'.
25876         * modules/wcsnlen: New file.
25877         * lib/wchar.in.h (wcsnlen): New declaration.
25878         * lib/wcsnlen.c: New file.
25879         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
25880         * m4/wcsnlen.m4: New file.
25881         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
25882         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
25883         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
25884         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
25885         * doc/posix-functions/wcsnlen.texi: Mention the new module.
25886
25887 2011-02-05  Bruno Haible  <bruno@clisp.org>
25888
25889         New module 'wcslen'.
25890         * modules/wcslen: New file.
25891         * lib/wchar.in.h (wcslen): New declaration.
25892         * lib/wcslen.c: New file.
25893         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
25894         * m4/wcslen.m4: New file.
25895         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
25896         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
25897         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
25898         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
25899         * doc/posix-functions/wcslen.texi: Mention the new module.
25900
25901 2011-02-05  Bruno Haible  <bruno@clisp.org>
25902
25903         New module 'wmemset'.
25904         * modules/wmemset: New file.
25905         * lib/wchar.in.h (wmemset): New declaration.
25906         * lib/wmemset.c: New file.
25907         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
25908         * m4/wmemset.m4: New file.
25909         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
25910         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
25911         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
25912         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
25913         * doc/posix-functions/wmemset.texi: Mention the new module.
25914
25915 2011-02-05  Bruno Haible  <bruno@clisp.org>
25916
25917         New module 'wmemmove'.
25918         * modules/wmemmove: New file.
25919         * lib/wchar.in.h (wmemmove): New declaration.
25920         * lib/wmemmove.c: New file.
25921         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
25922         * m4/wmemmove.m4: New file.
25923         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
25924         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
25925         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
25926         HAVE_WMEMMOVE.
25927         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
25928         * doc/posix-functions/wmemmove.texi: Mention the new module.
25929
25930 2011-02-05  Bruno Haible  <bruno@clisp.org>
25931
25932         New module 'wmemcpy'.
25933         * modules/wmemcpy: New file.
25934         * lib/wchar.in.h (wmemcpy): New declaration.
25935         * lib/wmemcpy.c: New file.
25936         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
25937         * m4/wmemcpy.m4: New file.
25938         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
25939         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
25940         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
25941         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
25942         * doc/posix-functions/wmemcpy.texi: Mention the new module.
25943
25944 2011-02-05  Bruno Haible  <bruno@clisp.org>
25945
25946         New module 'wmemcmp'.
25947         * modules/wmemcmp: New file.
25948         * lib/wchar.in.h (wmemcmp): New declaration.
25949         * lib/wmemcmp.c: New file.
25950         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
25951         * m4/wmemcmp.m4: New file.
25952         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
25953         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
25954         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
25955         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
25956         * doc/posix-functions/wmemcmp.texi: Mention the new module.
25957
25958 2011-02-07  Jim Meyering  <meyering@redhat.com>
25959
25960         di-set, ino-map: new modules, from coreutils
25961         * lib/di-set.c: New file.
25962         * lib/di-set.h: Likewise.
25963         * lib/ino-map.c: Likewise.
25964         * lib/ino-map.h: Likewise.
25965         * modules/di-set: Likewise.
25966         * modules/di-set-tests: Likewise.
25967         * modules/ino-map: Likewise.
25968         * modules/ino-map-tests: Likewise.
25969         * tests/test-di-set.c: Likewise.
25970         * tests/test-ino-map.c: Likewise.
25971
25972 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
25973
25974         getloadavg: merge minor changes from Emacs
25975
25976         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
25977         (getloadavg): Use memset, not bzero.
25978
25979         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
25980         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
25981         clash (bug#86).
25982
25983 2010-11-14  Bruno Haible  <bruno@clisp.org>
25984
25985         Allow multiple gnulib generated replacements to coexist.
25986         * lib/getopt.in.h (struct option): Avoid identical redefinition.
25987         * lib/inttypes.in.h (imaxdiv_t): Likewise.
25988         * lib/langinfo.in.h (nl_item): Likewise.
25989         * lib/math.in.h (_NaN, NAN): Likewise.
25990         * lib/netdb.in.h (struct addrinfo): Likewise.
25991         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
25992         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
25993         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
25994         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
25995         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
25996         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
25997         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
25998         pthread_mutexattr_init, pthread_mutexattr_settype,
25999         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
26000         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
26001         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
26002         pthread_spin_trylock, pthread_spin_unlock): Likewise.
26003         * lib/sched.in.h (struct sched_param): Likewise.
26004         * lib/se-selinux.in.h (security_class_t, security_context_t,
26005         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
26006         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
26007         lsetfilecon, fsetfilecon, security_check_context,
26008         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
26009         Likewise.
26010         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
26011         Likewise.
26012         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
26013         _gl_function_taking_int_returning_void_t, union sigval,
26014         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
26015         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
26016         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
26017         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
26018         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
26019         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
26020         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
26021         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
26022         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
26023         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
26024         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
26025         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
26026         socklen_t, rpl_fd_isset): Likewise.
26027         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
26028         * lib/sys_time.in.h (struct timeval): Likewise.
26029         * lib/sys_times.in.h (struct tms): Likewise.
26030         * lib/sys_utsname.in.h (struct utsname):
26031         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
26032         * lib/unistd.in.h (getpagesize): Likewise.
26033         * lib/wchar.in.h (mbstate_t): Likewise.
26034         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
26035         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
26036         towlower, towupper): Likewise.
26037         Reported by Sam Steingold <sds@gnu.org>.
26038
26039 2011-02-05  Eric Blake  <eblake@redhat.com>
26040
26041         unsetenv: work around Haiku issues
26042         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
26043         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
26044
26045 2010-12-30  Bruce Korb  <bkorb@gnu.org>
26046
26047         libposix: avoid calling error() within libposix
26048         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
26049         is defined.
26050
26051 2011-02-05  Eric Blake  <eblake@redhat.com>
26052
26053         strerror_r-posix: port to cygwin
26054         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
26055         implementation.
26056         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
26057         * tests/test-strerror_r.c (main): Fix test.
26058         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
26059         issue.
26060
26061 2011-02-05  Bruno Haible  <bruno@clisp.org>
26062
26063         New module 'wmemchr'.
26064         * modules/wmemchr: New file.
26065         * lib/wchar.in.h (wmemchr): New declaration.
26066         * lib/wmemchr.c: New file.
26067         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
26068         * m4/wmemchr.m4: New file.
26069         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
26070         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
26071         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
26072         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
26073         * doc/posix-functions/wmemchr.texi: Mention the new module.
26074
26075 2011-02-04  Eric Blake  <eblake@redhat.com>
26076
26077         fdopendir: detect FreeBSD bug
26078         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
26079         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
26080
26081 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
26082
26083         stdbool: do not define HAVE_STDBOOL_H
26084         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
26085         AC_HEADER_STDBOOL.  All uses changed.  Do not define
26086         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
26087         imported from the latest Autoconf git.  It was motivated by Emacs,
26088         which uses gnulib but does not need HAVE_STDBOOL_H.
26089
26090 2011-02-04  Bruno Haible  <bruno@clisp.org>
26091
26092         wcsnrtombs: Prepare for new module wwcsnrtombs.
26093         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
26094         * lib/wcsnrtombs.c: Include it.
26095         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
26096
26097         wcsrtombs: Prepare for new module wwcsrtombs.
26098         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
26099         * lib/wcsrtombs.c: Include it.
26100         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
26101
26102         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
26103         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
26104         * lib/mbsnrtowcs.c: Include it.
26105         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
26106
26107         mbsrtowcs: Prepare for new module mbsrtowwcs.
26108         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
26109         * lib/mbsrtowcs.c: Include it.
26110         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
26111
26112 2011-02-04  Bruno Haible  <bruno@clisp.org>
26113
26114         vasnprintf: Reduce use of malloc for small format strings.
26115         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
26116         (arguments): Add room for the first 7 arguments.
26117         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
26118         (char_directives, u8_directives, u16_directives, u32_directives): Add
26119         room for the first 7 directives.
26120         * lib/printf-parse.c: Include <string.h>.
26121         (PRINTF_PARSE): Change memory handling code so that it uses the first
26122         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
26123         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
26124         Reported by Pádraig Brady <P@draigbrady.com>.
26125
26126 2011-01-31  Eric Blake  <eblake@redhat.com>
26127
26128         dup2: work around Haiku bug
26129         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
26130         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
26131         * doc/posix-functions/dup2.texi (dup2): Document the bug.
26132         * tests/test-dup2.c (main): Enhance test.
26133
26134 2011-01-31  Simon Josefsson  <simon@josefsson.org>
26135
26136         doc: off_t is not available in eglibc 2.11.2 stdio.h.
26137         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
26138         declared by eglibc 2.11.2.
26139         * lib/stdio.in.h: Likewise.
26140
26141 2011-01-31  Eric Blake  <eblake@redhat.com>
26142
26143         ignore-value: add missing test dependency
26144         * tests/test-ignore-value.c: Revert previous change; stdio.h
26145         provides off_t.
26146         * modules/ignore-value-tests (Depends-on): Add missing dependency.
26147
26148 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
26149
26150         mktime: clarify long_int width checking
26151         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
26152         the top level, to make it clearer that the assumption about
26153         long_int width is being checked.  See
26154         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
26155
26156 2011-01-30  Simon Josefsson  <simon@josefsson.org>
26157
26158         ignore-value: Fix self-test.
26159         * tests/test-ignore-value.c: Include sys/types.h for off_t.
26160
26161 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
26162
26163         TYPE_MAXIMUM: avoid theoretically undefined behavior
26164         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
26165         negative number, which the C Standard says has undefined behavior.
26166         In practice this is not a problem, but might as well do it by the book.
26167         Reported by Rich Felker and Eric Blake; see
26168         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
26169         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
26170         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
26171         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
26172         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
26173         * m4/stdint.m4 (gl_STDINT_H): Likewise.
26174         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
26175
26176         mktime: #undef mktime before #defining it
26177         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
26178
26179         mktime: systematically normalize tm_isdst comparisons
26180         * lib/mktime.c (isdst_differ): New function.
26181         (__mktime_internal): Use it systematically for all isdst comparisons.
26182         This completes the fix for libc BZ #6723, and removes the need for
26183         normalizing tm_isdst.  See
26184         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
26185         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
26186
26187         mktime: fix some integer overflow issues and sidestep the rest
26188
26189         This was prompted by a bug report by Benjamin Lindner for MinGW
26190         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
26191         His bug is due to signed integer overflow (0 - INT_MIN), and I
26192         I scanned through mktime.c looking for other integer overflow
26193         problems, fixing all the bugs I found.
26194
26195         Although the C Standard says the resulting code is still not safe
26196         in the presence of integer overflow, in practice it should be good
26197         enough for all real-world two's-complement implementations, except
26198         for debugging environments that deliberately trap on integer
26199         overflow (e.g., gcc -ftrapv).
26200
26201         * lib/mktime.c (WRAPV): New macro.
26202         (SHR): Also check that long_int and time_t shift right in the
26203         usual way, before using the fast-but-unportable method.
26204         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
26205         used.  The code already assumed two's complement, so there's
26206         no need to test for alternatives.  All uses removed.
26207         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
26208         the C standard.  Problem reported by Rich Felker in
26209         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
26210         (twos_complement_arithmetic): Also check long_int and time_t.
26211         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
26212         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
26213         (__mktime_internal): Avoid integer overflow with unary subtraction
26214         in two instances where -1 - X is an adequate replacement for -X,
26215         since the calculations are approximate.
26216
26217 2011-01-29  Eric Blake  <eblake@redhat.com>
26218
26219         mktime: avoid infinite loop
26220         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
26221         type; behavior is still undefined but portable to all known targets.
26222         Reported by Rich Felker.
26223
26224 2011-01-29  Simon Josefsson  <simon@josefsson.org>
26225
26226         rename, unlink, same-inode: Relicense.
26227         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
26228         * modules/unlink (License): Likewise.
26229         * modules/same-inode (License): Likewise.
26230
26231 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
26232
26233         mktime: avoid problems on NetBSD 5 / i386
26234         * lib/mktime.c (long_int): New type.  This works around a problem
26235         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
26236         but time_t is 64 bits, and where I expect the existing code is
26237         wrong in some cases.
26238         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
26239         (ydhms_diff): Bring back the compile-time check for wide-enough
26240         year and yday.
26241
26242         mktime: fix misspelling in comment
26243         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
26244         This merges all recent glibc changes of importance.
26245
26246 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26247
26248         move-if-change: cope with concurrent mv of identical file.
26249         * build-aux/move-if-change (CMPPROG): Accept environment
26250         variable as an override for `cmp'.
26251         (usage): Document CMPPROG.
26252         Adjust comparison to drop stdout.  Cope with failure of mv if
26253         the target file exists and is identical to the source, for
26254         parallel builds.
26255         Report from H.J. Lu against binutils in PR binutils/12283.
26256
26257 2011-01-28  Bruce Korb  <bkorb@gnu.org>
26258
26259         * users.txt: Mention sharutils.
26260
26261 2011-01-28  Simon Josefsson  <simon@josefsson.org>
26262
26263         * users.txt: Mention OATH Toolkit.
26264
26265 2011-01-27  Bruno Haible  <bruno@clisp.org>
26266
26267         Prepare for supporting FreeBSD 10.
26268         * build-aux/config.libpath: Remove handling of freebsd1*.
26269
26270 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
26271
26272         Prepare for supporting FreeBSD 10.
26273         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
26274         match FreeBSD 10.0.
26275
26276 2011-01-27  Bruno Haible  <bruno@clisp.org>
26277
26278         vma-iter, get-rusage-as: Add OpenBSD support.
26279         * modules/vma-iter (configure.ac): Test for mquery.
26280         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
26281         * lib/vma-iter.c: Include <sys/mman.h>.
26282         (vma_iterate): Add an implementation based on mquery().
26283         * lib/resource-ext.h (get_rusage_as): Update comments.
26284         * lib/get-rusage-as.c: Likewise.
26285         * lib/get-rusage-data.c: Likewise.
26286
26287 2011-01-26  Karl Berry  <karl@gnu.org>
26288
26289         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
26290         variables to make it easier to override the makeinfo program used.
26291
26292 2011-01-26  Eric Blake  <eblake@redhat.com>
26293
26294         fcntl: work around Haiku F_DUPFD bugs
26295         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
26296         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
26297         cloexec bit on duplication.
26298         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
26299
26300 2011-01-26  Bruno Haible  <bruno@clisp.org>
26301
26302         Enable memory leak tests on AIX.
26303         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
26304         * tests/test-fprintf-posix3.c (main): Likewise.
26305
26306 2011-01-26  Bruno Haible  <bruno@clisp.org>
26307
26308         Tests for module 'get-rusage-data'.
26309         * modules/get-rusage-data-tests: New file.
26310         * tests/test-get-rusage-data.c: New file.
26311
26312         New module 'get-rusage-data'.
26313         * lib/resource-ext.h (get_rusage_data): New declaration.
26314         * lib/get-rusage-data.c: New file.
26315         * modules/get-rusage-data: New file.
26316
26317 2011-01-25  Bruno Haible  <bruno@clisp.org>
26318
26319         get-rusage-as: Allow for easier testing.
26320         * lib/resource-ext.h (get_rusage_as): Add comment.
26321         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
26322         (main): New function for interactive testing.
26323
26324 2011-01-25  Bruno Haible  <bruno@clisp.org>
26325
26326         vma-iter: Treat Haiku like BeOS.
26327         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
26328         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
26329
26330 2011-01-25  Eric Blake  <eblake@redhat.com>
26331
26332         c-stack: fix regression on cygwin when libsigsegv is present
26333         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
26334
26335 2011-01-24  Bruno Haible  <bruno@clisp.org>
26336
26337         vma-iter: Avoid empty intervals.
26338         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
26339         on an empty interval.
26340
26341 2011-01-24  Jim Meyering  <meyering@redhat.com>
26342
26343         u64: remove unnecessary #include
26344         * lib/u64.h: Don't include <stddef.h>.  It was not used.
26345
26346 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
26347
26348         Allow the user to avoid the HAVE_RAW_DECL_* macros.
26349         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
26350
26351 2011-01-23  Bruno Haible  <bruno@clisp.org>
26352
26353         New module 'vma-iter'.
26354         * lib/vma-iter.h: New file.
26355         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
26356         * modules/vma-iter: New file.
26357         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
26358         for get_rusage_as_via_iterator.
26359         (vma_iterate_callback): New function.
26360         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
26361         * modules/get-rusage-as (Depends-on): Add vma-iter.
26362
26363 2011-01-23  Bruno Haible  <bruno@clisp.org>
26364
26365         uninorm: Tweak includes.
26366         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
26367         Reported by Jim Meyering.
26368
26369 2011-01-23  Bruno Haible  <bruno@clisp.org>
26370
26371         get-rusage-as: Improve on NetBSD.
26372         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
26373         /proc, like on FreeBSD.
26374
26375 2011-01-23  Jim Meyering  <meyering@redhat.com>
26376
26377         xreadlink.h: remove unnecessary #include
26378         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
26379
26380         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
26381         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
26382
26383 2011-01-23  Bruno Haible  <bruno@clisp.org>
26384
26385         get-rusage-as: Fix bug.
26386         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
26387         original limit when aborting the first loop.
26388
26389 2011-01-23  Bruno Haible  <bruno@clisp.org>
26390
26391         wctype: Ensure valid C syntax.
26392         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
26393         unconditionally, instead of gl_NEXT_HEADERS conditionally.
26394
26395 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
26396
26397         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
26398         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
26399         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
26400         as they are needed only for configure's test case.
26401         This removes two unnecessary symbols from config.h.
26402
26403         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
26404         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
26405         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
26406         AC_CHECK_HEADERS_ONCE on a header that we also invoke
26407         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
26408         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
26409         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
26410         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
26411         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
26412         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
26413         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
26414         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
26415         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
26416         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
26417         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
26418         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
26419         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
26420         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
26421
26422 2011-01-21  Eric Blake  <eblake@redhat.com>
26423
26424         maintainer-makefile: work with older git for submodule check
26425         * top/maint.mk (public-submodule-commit): Rewrite to avoid
26426         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
26427         Reported by Matthias Bolte.
26428
26429         bootstrap: minor portability fixes
26430         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
26431         (usage): Omit leading capital and trailing . on help phrases, per
26432         GNU Coding Standards.
26433         (check_versions, top level): Prefix messages with script name.
26434
26435 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
26436
26437         bootstrap: support --no-git option
26438         * build-aux/bootstrap: Add --no-git option, to be used when
26439         --gnulib-srcdir points to the exact desired checkout.
26440
26441 2011-01-21  Eric Blake  <eblake@redhat.com>
26442
26443         strerror_r-posix: work with glibc 2.13
26444         * lib/strerror_r.c (strerror_r): Fix return type.
26445
26446 2011-01-21  Pádraig Brady  <P@draigBrady.com>
26447             Bruno Haible  <bruno@clisp.org>
26448
26449         uN_strstr: New unit tests.
26450         * modules/unistr/u8-strstr-tests: New file.
26451         * modules/unistr/u16-strstr-tests: New file.
26452         * modules/unistr/u32-strstr-tests: New file.
26453         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
26454         * tests/unistr/test-u8-strstr.c: New file.
26455         * tests/unistr/test-u16-strstr.c: New file.
26456         * tests/unistr/test-u32-strstr.c: New file.
26457
26458 2011-01-21  Pádraig Brady  <P@draigBrady.com>
26459             Bruno Haible  <bruno@clisp.org>
26460
26461         Make uN_strstr functions O(n) worst-case.
26462         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
26463         16-bit and 32-bit unit cases, use the unibyte algorithm from
26464         lib/mbsstr.c.
26465         * lib/unistr/u8-strstr.c: Include <string.h>.
26466         (UNIT_IS_UINT8_T): New macro.
26467         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
26468         (U_STRLEN, U_STRNLEN): New macros.
26469         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
26470         (U_STRLEN, U_STRNLEN): New macros.
26471         * modules/unistr/u8-strstr (Depends-on): Add strstr.
26472         (configure.ac): Update required libunistring version.
26473         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
26474         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
26475         malloca.
26476         (configure.ac): Update required libunistring version.
26477         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
26478         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
26479         malloca.
26480         (configure.ac): Update required libunistring version.
26481
26482 2011-01-21  Pádraig Brady  <P@draigBrady.com>
26483             Bruno Haible  <bruno@clisp.org>
26484
26485         Prepare for faster uN_strstr functions.
26486         * lib/str-kmp.h: Support definable UNITs.
26487         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
26488         needle_len argument.
26489         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
26490         * lib/mbscasestr.c (mbscasestr): Likewise.
26491
26492 2011-01-21  Pádraig Brady <P@draigBrady.com>
26493
26494         malloca-tests: make faster by unsetting MALLOC_PERTURB_
26495         * tests/test-malloca.c (main): Unset the environment variable
26496         to greatly speed up the test.
26497         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
26498         * modules/malloca-tests: Depend on unsetenv.
26499
26500 2011-01-21  Pádraig Brady <P@draigBrady.com>
26501
26502         ignore-value: remove stdint dependency
26503         * lib/ignore-value.h: Remove <stdint.h>
26504         * modules/ignore-value: Remove stdint dependency.
26505
26506 2011-01-21  Jim Meyering  <meyering@redhat.com>
26507
26508         maint.mk: adjust variable name to be consistent with other gl_ vars
26509         * top/maint.mk (gl_public_submodule_commit): Rename the variable
26510         to be lower case.
26511
26512 2011-01-20  Jim Meyering  <meyering@redhat.com>
26513
26514         maint.mk: make "check" depend on public-submodule-commit by default
26515         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
26516
26517 2011-01-20  Bruno Haible  <bruno@clisp.org>
26518
26519         mbfile, mbiter: Complete change from 2008-12-21.
26520         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
26521         * m4/mbiter.m4 (gl_MBITER): Likewise.
26522
26523 2011-01-20  Jim Meyering  <meyering@redhat.com>
26524
26525         init.sh: insert space between each function name and "()"
26526         * tests/init.sh: Make it a little easier to see that a function's
26527         name is "warn_", and not "warn" when looking at the first part of
26528         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
26529
26530 2011-01-20  Jim Meyering  <meyering@redhat.com>
26531
26532         mountlist: clean up code formatting
26533         * lib/mountlist.c (read_file_system_list): Split a long line,
26534         correct bracing style, use NULL in place of "(struct statfs *)0",
26535         don't parenthesize return value, add spaces around "=" and after
26536         ";-in-for-stmt".
26537
26538 2011-01-14  Markus Duft <mduft@gentoo.org>
26539
26540         mountlist: add support for Interix
26541         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
26542         Apply statvfs to all entries of /dev/fs.
26543         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
26544         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
26545
26546 2011-01-20  Jim Meyering  <meyering@redhat.com>
26547
26548         maint.mk: improve the public-submodule-commit rule
26549         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
26550         to suppress printing of its commands... unless V=1.
26551         Add git submodule's --quiet option to suppress printing of e.g.,
26552         "Entering gnulib" output.
26553         "cd" into $(srcdir) before running git submodule.
26554
26555 2011-01-20  Bruno Haible  <bruno@clisp.org>
26556
26557         include_next: Fix bug introduced on 2011-01-18.
26558         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
26559         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
26560         ac_cv_header_... variable if the second argument is not 'check'.
26561         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
26562         gl_NEXT_HEADERS_INTERNAL.
26563
26564 2011-01-20  Bruno Haible  <bruno@clisp.org>
26565
26566         Allow the user to avoid the GNULIB_TEST_* macros.
26567         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
26568         Suggested by Paul Eggert.
26569
26570 2011-01-14  Jim Meyering  <meyering@redhat.com>
26571
26572         bootstrap: avoid failure when there is no .gitmodules file
26573         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
26574         has been assigned to, even when its value is the empty string.
26575         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
26576         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
26577         Reported by John W. Eaton <jwe@gnu.org>.
26578
26579 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
26580
26581         assume <ctype.h>, ..., <time.h> exist
26582         For years gnulib has been assuming the existence of the headers
26583         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
26584         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
26585         them, since they don't appear to be needed.
26586         * README (Portability guidelines): Document this.
26587         * lib/flock.c: Assume <fcntl.h> exists.
26588         * lib/regex_internal.h: Assume <locale.h> exists.
26589         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
26590         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
26591         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
26592         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
26593         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
26594         * m4/regex.m4 (gl_REGEX): Likewise.
26595         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
26596         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
26597         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
26598         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
26599         * tests/test-argp.c: Likewise.
26600         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
26601
26602         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
26603         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
26604         AA_APPLE_UNIVERSAL_BUILD.  See
26605         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
26606         * NEWS: Document this.
26607
26608 2011-01-19  Eric Blake  <eblake@redhat.com>
26609
26610         c-stack: assume stack overflow if SA_SIGINFO unsupported
26611         * lib/c-stack.c (SIGACTION_WORKS): Rename...
26612         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
26613         sigaction will work.
26614         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
26615         behavior match Linux.
26616         * tests/test-c-stack.c (main): Prefer NULL for pointers.
26617
26618         stdbool-tests: accommodate Haiku
26619         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
26620
26621         binary-io: fix O_TEXT on Haiku
26622         * modules/binary-io (Depends-on): Add fcntl-h.
26623         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
26624         than blindly undefining O_TEXT.
26625         Reported by Scott McCreary.
26626
26627 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
26628
26629         include_next: do not check for standard headers like stddef.h
26630
26631         I found this problem when modifying Emacs to use gnulib.
26632         I noticed that it added HAVE_STDDEF_H to config.h, even though
26633         gnulib always assumes <stddef.h> exists as per README and this
26634         symbol is unnecessary.
26635         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
26636         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
26637         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
26638         faster for headers like stddef.h that are known to exist.
26639         (gl_CHECK_NEXT_HEADERS): Use it.
26640         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
26641         rather than gl_CHECK_NEXT_HEADERS.
26642         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
26643         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
26644
26645 2011-01-18  Eric Blake  <eblake@redhat.com>
26646
26647         ansi-c++-opt: skip C++ dependency style if C++ is unused
26648         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
26649         tests when we know C++ compilation is not desired.
26650         Reported by Scott McCreary.
26651
26652 2011-01-18  Bruno Haible  <bruno@clisp.org>
26653
26654         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
26655         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
26656         (main): Perform test also when getrlimit and setrlimit don't exist or
26657         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
26658         limiting the address space size using setrlimit, compare the address
26659         space size before and after the the test.
26660         * tests/test-dprintf-posix2.c: Likewise.
26661         * tests/test-fprintf-posix3.sh: Update skip messages.
26662         * tests/test-dprintf-posix2.sh: Likewise.
26663         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
26664         * modules/dprintf-posix-tests (Depends-on): Likewise.
26665         Reported by Bruce Korb <bkorb@gnu.org> and
26666         Gary V. Vaughan <gary@gnu.org>.
26667
26668 2011-01-18  Bruno Haible  <bruno@clisp.org>
26669
26670         get-rusage-as: Improvement for Cygwin.
26671         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
26672         areas that are merely reserved.
26673
26674 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
26675
26676         strftime: remove dependencies on multibyte modules
26677
26678         strftime depended on mbrlen, mbsinit, and wchar, but these modules
26679         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
26680         only if __osf__ is defined, and I suspect OSF doesn't need these
26681         other modules.  If my guess is wrong, we'll need to come up with a
26682         variant of strftime that doesn't need the multibyte modules.
26683
26684         I discovered this problem when attempting modify Emacs to use the
26685         strftime module.  With the previous gnulib, this caused Emacs to
26686         need 31 new files, ranging from lib/config.charset to
26687         m4/wint_t.m4.  This was overkill and I expect would be offputting
26688         to the Emacs maintainers.  After this change, only 6 new files are
26689         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
26690         stdbool.m4, and tm_gmtoff.m4.
26691
26692         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
26693         Suggested by Bruno Haible in
26694         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
26695         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
26696         and do not check for wchar.h.
26697         * modules/strftime (Files): Remove m4/mbstate_t.m4.
26698         (Depends-on): Remove mbrlen, mbsinit, wchar.
26699
26700 2011-01-18  Bruno Haible  <bruno@clisp.org>
26701
26702         Tests for module 'get-rusage-as'.
26703         * modules/get-rusage-as-tests: New file.
26704         * tests/test-get-rusage-as.c: New file.
26705
26706         New module 'get-rusage-as'.
26707         * modules/get-rusage-as: New file.
26708         * lib/resource-ext.h: New file.
26709         * lib/get-rusage-as.c: New file.
26710
26711 2011-01-17  Eric Blake  <eblake@redhat.com>
26712
26713         sigaction: relax license from LGPLv3+ to LGPLv2+
26714         * modules/sigaction (License): Relax to LGPLv2+.
26715
26716 2011-01-14  Bruno Haible  <bruno@clisp.org>
26717
26718         filemode: Make function declarations usable in C++ mode.
26719         * lib/filemode.h: Enclose function declarations in extern "C" block.
26720         Reported by John W. Eaton <jwe@gnu.org>.
26721
26722 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
26723
26724         save-cwd: no longer include "xgetcwd.h"
26725         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
26726         This avoids a compilation failure in projects that use save-cwd
26727         without also using the xgetcwd module.
26728
26729 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
26730
26731         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
26732         This is so that a program like Emacs, which needs only dtoastr,
26733         does not have to bother with distributing and compiling ftoastr
26734         and ldtoastr.
26735         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
26736         * modules/dtoastr, modules/ldtoastr: New files.
26737         * modules/ftoastr: Now works just for 'float'.
26738         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
26739         (Makefile.am): Remove ftoastr.h (not needed and no effect),
26740         dtoastr.c, ldtoastr.c.
26741
26742 2011-01-11  Jim Meyering  <meyering@redhat.com>
26743
26744         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
26745         There is no need to work around the lack of the fchdir function,
26746         since gnulib can now provide a replacement when required.
26747         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
26748         * modules/save-cwd (Depends-on): Add fchdir.
26749
26750 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
26751
26752         openat, save-cwd: avoid xmalloc
26753
26754         This removes a direct (but undocumented) dependency of openat on
26755         xalloc, along with an indirect dependency via save-cwd.  It also
26756         removes a dependency of save-cwd on xgetcwd, and thereby
26757         indirectly on xalloc.  This change causes the openat substitute
26758         to fall back on save_cwd when memory is tight, and for save_cwd to
26759         fail instead of dying when memory is tight, but that's good enough.
26760         Problem and initial idea for fix reported by Bastien Roucaries in
26761         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
26762
26763         * lib/openat-proc.c: Include stdlib.h (for malloc), not
26764         xalloc.h (for xmalloc).
26765         (openat_proc_name): Use malloc, not xmalloc.
26766         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
26767         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
26768
26769         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
26770         This avoids heap allocation for file names whose lengths are in
26771         the range 512..1023, with the upper bound increasing to at most
26772         4031 depending on the platform's PATH_MAX.  (We do not want
26773         pathmax.h here as it might supply a non-constant PATH_MAX.)
26774         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
26775         Perhaps they should be moved to malloca.h?
26776         (OPENAT_BUFFER_SIZE): Use them.
26777
26778 2011-01-10  Bruno Haible  <bruno@clisp.org>
26779
26780         doc: Update users.txt.
26781         * users.txt: Add recutils.
26782
26783 2011-01-09  Karl Berry  <karl@gnu.org>
26784
26785         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
26786
26787         * doc/configmake.texi: New file.
26788         * doc/gnulib.texi: Include it.
26789         * modules/configmake: Move documentation from here.
26790
26791 2011-01-09  Bruno Haible  <bruno@clisp.org>
26792
26793         Update to Unicode 6.0.0.
26794         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
26795         (get_lbp): Update for Unicode 6.0.0.
26796         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
26797         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
26798         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
26799         U+11001, U+11038..U+11046. Remove U+06DE.
26800         (uc_width): Fix bounds of planes.
26801         * tests/uniwidth/test-uc_width2.sh: Same updates as in
26802         lib/uniwidth/width.c.
26803         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
26804         trailing whitespace removed.
26805         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
26806         without comments, but with the original copyright notice.
26807         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
26808         * lib/unicase/ignorable.h: Likewise.
26809         * lib/unicase/tocasefold.h: Likewise.
26810         * lib/unicase/tolower.h: Likewise.
26811         * lib/unicase/totitle.h: Likewise.
26812         * lib/unicase/toupper.h: Likewise.
26813         * lib/unictype/bidi_of.h: Likewise.
26814         * lib/unictype/blocks.h: Likewise.
26815         * lib/unictype/categ_C.h: Likewise.
26816         * lib/unictype/categ_Cn.h: Likewise.
26817         * lib/unictype/categ_L.h: Likewise.
26818         * lib/unictype/categ_Ll.h: Likewise.
26819         * lib/unictype/categ_Lm.h: Likewise.
26820         * lib/unictype/categ_Lo.h: Likewise.
26821         * lib/unictype/categ_Lu.h: Likewise.
26822         * lib/unictype/categ_M.h: Likewise.
26823         * lib/unictype/categ_Mc.h: Likewise.
26824         * lib/unictype/categ_Me.h: Likewise.
26825         * lib/unictype/categ_Mn.h: Likewise.
26826         * lib/unictype/categ_N.h: Likewise.
26827         * lib/unictype/categ_Nd.h: Likewise.
26828         * lib/unictype/categ_No.h: Likewise.
26829         * lib/unictype/categ_P.h: Likewise.
26830         * lib/unictype/categ_Po.h: Likewise.
26831         * lib/unictype/categ_S.h: Likewise.
26832         * lib/unictype/categ_Sc.h: Likewise.
26833         * lib/unictype/categ_Sk.h: Likewise.
26834         * lib/unictype/categ_Sm.h: Likewise.
26835         * lib/unictype/categ_So.h: Likewise.
26836         * lib/unictype/categ_of.h: Likewise.
26837         * lib/unictype/combining.h: Likewise.
26838         * lib/unictype/ctype_alnum.h: Likewise.
26839         * lib/unictype/ctype_alpha.h: Likewise.
26840         * lib/unictype/ctype_graph.h: Likewise.
26841         * lib/unictype/ctype_lower.h: Likewise.
26842         * lib/unictype/ctype_print.h: Likewise.
26843         * lib/unictype/ctype_punct.h: Likewise.
26844         * lib/unictype/ctype_upper.h: Likewise.
26845         * lib/unictype/decdigit.h: Likewise.
26846         * lib/unictype/digit.h: Likewise.
26847         * lib/unictype/numeric.h: Likewise.
26848         * lib/unictype/pr_alphabetic.h: Likewise.
26849         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
26850         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
26851         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
26852         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
26853         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
26854         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
26855         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
26856         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
26857         * lib/unictype/pr_case_ignorable.h: Likewise.
26858         * lib/unictype/pr_cased.h: Likewise.
26859         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
26860         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
26861         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
26862         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
26863         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
26864         * lib/unictype/pr_combining.h: Likewise.
26865         * lib/unictype/pr_composite.h: Likewise.
26866         * lib/unictype/pr_currency_symbol.h: Likewise.
26867         * lib/unictype/pr_decimal_digit.h: Likewise.
26868         * lib/unictype/pr_deprecated.h: Likewise.
26869         * lib/unictype/pr_format_control.h: Likewise.
26870         * lib/unictype/pr_grapheme_base.h: Likewise.
26871         * lib/unictype/pr_grapheme_extend.h: Likewise.
26872         * lib/unictype/pr_grapheme_link.h: Likewise.
26873         * lib/unictype/pr_id_continue.h: Likewise.
26874         * lib/unictype/pr_id_start.h: Likewise.
26875         * lib/unictype/pr_ideographic.h: Likewise.
26876         * lib/unictype/pr_lowercase.h: Likewise.
26877         * lib/unictype/pr_math.h: Likewise.
26878         * lib/unictype/pr_numeric.h: Likewise.
26879         * lib/unictype/pr_other_alphabetic.h: Likewise.
26880         * lib/unictype/pr_other_id_continue.h: Likewise.
26881         * lib/unictype/pr_other_math.h: Likewise.
26882         * lib/unictype/pr_punctuation.h: Likewise.
26883         * lib/unictype/pr_sentence_terminal.h: Likewise.
26884         * lib/unictype/pr_terminal_punctuation.h: Likewise.
26885         * lib/unictype/pr_unassigned_code_value.h: Likewise.
26886         * lib/unictype/pr_unified_ideograph.h: Likewise.
26887         * lib/unictype/pr_uppercase.h: Likewise.
26888         * lib/unictype/pr_xid_continue.h: Likewise.
26889         * lib/unictype/pr_xid_start.h: Likewise.
26890         * lib/unictype/scripts.h: Likewise.
26891         * lib/unictype/scripts_byname.gperf: Likewise.
26892         * lib/unictype/sy_java_ident.h: Likewise.
26893         * lib/unigbrk/gbrkprop.h: Likewise.
26894         * lib/unilbrk/lbrkprop1.h: Likewise.
26895         * lib/unilbrk/lbrkprop2.h: Likewise.
26896         * lib/uninorm/decomposition-table2.h: Likewise.
26897         * lib/uniwbrk/wbrkprop.h: Likewise.
26898         * tests/unicase/test-cased.c: Likewise.
26899         * tests/unicase/test-ignorable.c: Likewise.
26900         * tests/unicase/test-uc_tolower.c: Likewise.
26901         * tests/unicase/test-uc_totitle.c: Likewise.
26902         * tests/unicase/test-uc_toupper.c: Likewise.
26903         * tests/unictype/test-categ_C.c: Likewise.
26904         * tests/unictype/test-categ_Cn.c: Likewise.
26905         * tests/unictype/test-categ_L.c: Likewise.
26906         * tests/unictype/test-categ_Ll.c: Likewise.
26907         * tests/unictype/test-categ_Lm.c: Likewise.
26908         * tests/unictype/test-categ_Lo.c: Likewise.
26909         * tests/unictype/test-categ_Lu.c: Likewise.
26910         * tests/unictype/test-categ_M.c: Likewise.
26911         * tests/unictype/test-categ_Mc.c: Likewise.
26912         * tests/unictype/test-categ_Me.c: Likewise.
26913         * tests/unictype/test-categ_Mn.c: Likewise.
26914         * tests/unictype/test-categ_N.c: Likewise.
26915         * tests/unictype/test-categ_Nd.c: Likewise.
26916         * tests/unictype/test-categ_No.c: Likewise.
26917         * tests/unictype/test-categ_P.c: Likewise.
26918         * tests/unictype/test-categ_Po.c: Likewise.
26919         * tests/unictype/test-categ_S.c: Likewise.
26920         * tests/unictype/test-categ_Sc.c: Likewise.
26921         * tests/unictype/test-categ_Sk.c: Likewise.
26922         * tests/unictype/test-categ_Sm.c: Likewise.
26923         * tests/unictype/test-categ_So.c: Likewise.
26924         * tests/unictype/test-ctype_alnum.c: Likewise.
26925         * tests/unictype/test-ctype_alpha.c: Likewise.
26926         * tests/unictype/test-ctype_graph.c: Likewise.
26927         * tests/unictype/test-ctype_lower.c: Likewise.
26928         * tests/unictype/test-ctype_print.c: Likewise.
26929         * tests/unictype/test-ctype_punct.c: Likewise.
26930         * tests/unictype/test-ctype_upper.c: Likewise.
26931         * tests/unictype/test-decdigit.h: Likewise.
26932         * tests/unictype/test-digit.h: Likewise.
26933         * tests/unictype/test-numeric.h: Likewise.
26934         * tests/unictype/test-pr_alphabetic.c: Likewise.
26935         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
26936         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
26937         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
26938         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
26939         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
26940         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
26941         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
26942         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
26943         * tests/unictype/test-pr_case_ignorable.c: Likewise.
26944         * tests/unictype/test-pr_cased.c: Likewise.
26945         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
26946         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
26947         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
26948         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
26949         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
26950         * tests/unictype/test-pr_combining.c: Likewise.
26951         * tests/unictype/test-pr_composite.c: Likewise.
26952         * tests/unictype/test-pr_currency_symbol.c: Likewise.
26953         * tests/unictype/test-pr_decimal_digit.c: Likewise.
26954         * tests/unictype/test-pr_deprecated.c: Likewise.
26955         * tests/unictype/test-pr_format_control.c: Likewise.
26956         * tests/unictype/test-pr_grapheme_base.c: Likewise.
26957         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
26958         * tests/unictype/test-pr_grapheme_link.c: Likewise.
26959         * tests/unictype/test-pr_id_continue.c: Likewise.
26960         * tests/unictype/test-pr_id_start.c: Likewise.
26961         * tests/unictype/test-pr_ideographic.c: Likewise.
26962         * tests/unictype/test-pr_lowercase.c: Likewise.
26963         * tests/unictype/test-pr_math.c: Likewise.
26964         * tests/unictype/test-pr_numeric.c: Likewise.
26965         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
26966         * tests/unictype/test-pr_other_id_continue.c: Likewise.
26967         * tests/unictype/test-pr_other_math.c: Likewise.
26968         * tests/unictype/test-pr_punctuation.c: Likewise.
26969         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
26970         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
26971         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
26972         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
26973         * tests/unictype/test-pr_uppercase.c: Likewise.
26974         * tests/unictype/test-pr_xid_continue.c: Likewise.
26975         * tests/unictype/test-pr_xid_start.c: Likewise.
26976         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
26977         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
26978         changes.
26979         * lib/unictype/categ_Cc.h: Likewise.
26980         * lib/unictype/categ_Cf.h: Likewise.
26981         * lib/unictype/categ_Co.h: Likewise.
26982         * lib/unictype/categ_Cs.h: Likewise.
26983         * lib/unictype/categ_Lt.h: Likewise.
26984         * lib/unictype/categ_Nl.h: Likewise.
26985         * lib/unictype/categ_Pc.h: Likewise.
26986         * lib/unictype/categ_Pd.h: Likewise.
26987         * lib/unictype/categ_Pe.h: Likewise.
26988         * lib/unictype/categ_Pf.h: Likewise.
26989         * lib/unictype/categ_Pi.h: Likewise.
26990         * lib/unictype/categ_Ps.h: Likewise.
26991         * lib/unictype/categ_Z.h: Likewise.
26992         * lib/unictype/categ_Zl.h: Likewise.
26993         * lib/unictype/categ_Zp.h: Likewise.
26994         * lib/unictype/categ_Zs.h: Likewise.
26995         * lib/unictype/ctype_blank.h: Likewise.
26996         * lib/unictype/ctype_cntrl.h: Likewise.
26997         * lib/unictype/ctype_digit.h: Likewise.
26998         * lib/unictype/ctype_space.h: Likewise.
26999         * lib/unictype/ctype_xdigit.h: Likewise.
27000         * lib/unictype/mirror.h: Likewise.
27001         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
27002         * lib/unictype/pr_bidi_block_separator.h: Likewise.
27003         * lib/unictype/pr_bidi_common_separator.h: Likewise.
27004         * lib/unictype/pr_bidi_control.h: Likewise.
27005         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
27006         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
27007         * lib/unictype/pr_bidi_european_digit.h: Likewise.
27008         * lib/unictype/pr_bidi_pdf.h: Likewise.
27009         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
27010         * lib/unictype/pr_bidi_whitespace.h: Likewise.
27011         * lib/unictype/pr_dash.h: Likewise.
27012         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
27013         * lib/unictype/pr_diacritic.h: Likewise.
27014         * lib/unictype/pr_extender.h: Likewise.
27015         * lib/unictype/pr_hex_digit.h: Likewise.
27016         * lib/unictype/pr_hyphen.h: Likewise.
27017         * lib/unictype/pr_ids_binary_operator.h: Likewise.
27018         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
27019         * lib/unictype/pr_ignorable_control.h: Likewise.
27020         * lib/unictype/pr_iso_control.h: Likewise.
27021         * lib/unictype/pr_join_control.h: Likewise.
27022         * lib/unictype/pr_left_of_pair.h: Likewise.
27023         * lib/unictype/pr_line_separator.h: Likewise.
27024         * lib/unictype/pr_logical_order_exception.h: Likewise.
27025         * lib/unictype/pr_non_break.h: Likewise.
27026         * lib/unictype/pr_not_a_character.h: Likewise.
27027         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
27028         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
27029         * lib/unictype/pr_other_id_start.h: Likewise.
27030         * lib/unictype/pr_other_lowercase.h: Likewise.
27031         * lib/unictype/pr_other_uppercase.h: Likewise.
27032         * lib/unictype/pr_paired_punctuation.h: Likewise.
27033         * lib/unictype/pr_paragraph_separator.h: Likewise.
27034         * lib/unictype/pr_pattern_syntax.h: Likewise.
27035         * lib/unictype/pr_pattern_white_space.h: Likewise.
27036         * lib/unictype/pr_private_use.h: Likewise.
27037         * lib/unictype/pr_quotation_mark.h: Likewise.
27038         * lib/unictype/pr_radical.h: Likewise.
27039         * lib/unictype/pr_soft_dotted.h: Likewise.
27040         * lib/unictype/pr_space.h: Likewise.
27041         * lib/unictype/pr_titlecase.h: Likewise.
27042         * lib/unictype/pr_variation_selector.h: Likewise.
27043         * lib/unictype/pr_white_space.h: Likewise.
27044         * lib/unictype/pr_zero_width.h: Likewise.
27045         * lib/unictype/sy_c_ident.h: Likewise.
27046         * lib/unictype/sy_c_whitespace.h: Likewise.
27047         * lib/unictype/sy_java_whitespace.h: Likewise.
27048         * lib/uninorm/composition-table.gperf: Likewise.
27049         * lib/uninorm/decomposition-table1.h: Likewise.
27050         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
27051         LB8.
27052         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
27053         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
27054         * modules/unictype/*: Bump version number of expected libunistring
27055         version.
27056
27057 2011-01-09  Bruno Haible  <bruno@clisp.org>
27058
27059         Update to Unicode 5.2.0.
27060         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
27061         trailing whitespace removed.
27062
27063 2011-01-09  Bruno Haible  <bruno@clisp.org>
27064
27065         New Unicode character properties, from Unicode 5.2.0.
27066         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
27067         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
27068         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
27069         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
27070         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
27071         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
27072         uc_is_property_cased, uc_is_property_case_ignorable,
27073         uc_is_property_changes_when_lowercased,
27074         uc_is_property_changes_when_uppercased,
27075         uc_is_property_changes_when_titlecased,
27076         uc_is_property_changes_when_casefolded,
27077         uc_is_property_changes_when_casemapped): New declarations.
27078         * lib/unictype/pr_byname.gperf: Add the new properties.
27079         * modules/unictype/property-byname (Depends-on): Depend on the new
27080         properties modules.
27081         * modules/unictype/property-all (Depends-on): Likewise.
27082         * MODULES.html.sh (Unicode string functions): Add
27083         unictype/property-case-ignorable, unictype/property-cased,
27084         unictype/property-changes-when-casefolded,
27085         unictype/property-changes-when-casemapped,
27086         unictype/property-changes-when-lowercased,
27087         unictype/property-changes-when-titlecased,
27088         unictype/property-changes-when-uppercased.
27089
27090         New module 'unictype/property-changes-when-casemapped'.
27091         * modules/unictype/property-changes-when-casemapped: New file.
27092         * lib/unictype/pr_changes_when_casemapped.c: New file.
27093         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
27094         generated by gen-uni-tables.
27095         * modules/unictype/property-changes-when-casemapped-tests: New file.
27096         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
27097         automatically generated by gen-uni-tables.
27098
27099         New module 'unictype/property-changes-when-casefolded'.
27100         * modules/unictype/property-changes-when-casefolded: New file.
27101         * lib/unictype/pr_changes_when_casefolded.c: New file.
27102         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
27103         generated by gen-uni-tables.
27104         * modules/unictype/property-changes-when-casefolded-tests: New file.
27105         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
27106         automatically generated by gen-uni-tables.
27107
27108         New module 'unictype/property-changes-when-titlecased'.
27109         * modules/unictype/property-changes-when-titlecased: New file.
27110         * lib/unictype/pr_changes_when_titlecased.c: New file.
27111         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
27112         generated by gen-uni-tables.
27113         * modules/unictype/property-changes-when-titlecased-tests: New file.
27114         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
27115         automatically generated by gen-uni-tables.
27116
27117         New module 'unictype/property-changes-when-uppercased'.
27118         * modules/unictype/property-changes-when-uppercased: New file.
27119         * lib/unictype/pr_changes_when_uppercased.c: New file.
27120         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
27121         generated by gen-uni-tables.
27122         * modules/unictype/property-changes-when-uppercased-tests: New file.
27123         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
27124         automatically generated by gen-uni-tables.
27125
27126         New module 'unictype/property-changes-when-lowercased'.
27127         * modules/unictype/property-changes-when-lowercased: New file.
27128         * lib/unictype/pr_changes_when_lowercased.c: New file.
27129         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
27130         generated by gen-uni-tables.
27131         * modules/unictype/property-changes-when-lowercased-tests: New file.
27132         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
27133         automatically generated by gen-uni-tables.
27134
27135         New module 'unictype/property-case-ignorable'.
27136         * modules/unictype/property-case-ignorable: New file.
27137         * lib/unictype/pr_case_ignorable.c: New file.
27138         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
27139         by gen-uni-tables.
27140         * modules/unictype/property-case-ignorable-tests: New file.
27141         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
27142         generated by gen-uni-tables.
27143
27144         New module 'unictype/property-cased'.
27145         * modules/unictype/property-cased: New file.
27146         * lib/unictype/pr_cased.c: New file.
27147         * lib/unictype/pr_cased.h: New file, automatically generated by
27148         gen-uni-tables.
27149         * modules/unictype/property-cased-tests: New file.
27150         * tests/unictype/test-pr_cased.c: New file, automatically generated by
27151         gen-uni-tables.
27152
27153 2011-01-09  Bruno Haible  <bruno@clisp.org>
27154
27155         Update to Unicode 5.2.0.
27156         * lib/gen-uni-tables.c (output_predicate, output_category,
27157         output_combclass, output_bidi_category, output_decimal_digit_test,
27158         output_decimal_digit, output_digit_test, output_digit,
27159         output_numeric_test, output_numeric, output_mirror, output_scripts,
27160         output_scripts_byname, output_blocks, output_ident_category): Fix
27161         comment header.
27162         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
27163         get_wbp.
27164         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
27165         items.
27166         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
27167         Changes_When_Lowercased, Changes_When_Uppercased,
27168         Changes_When_Titlecased, Changes_When_Casefolded,
27169         Changes_When_Casemapped.
27170         (is_property_alphabetic, is_property_default_ignorable_code_point):
27171         Update for Unicode 5.2.0.
27172         (is_property_cased, is_property_case_ignorable,
27173         is_property_changes_when_lowercased,
27174         is_property_changes_when_uppercased,
27175         is_property_changes_when_titlecased,
27176         is_property_changes_when_casefolded,
27177         is_property_changes_when_casemapped): New functions.
27178         (output_properties): Output also the properties cased, case_ignorable,
27179         changes_when_lowercased, changes_when_uppercased,
27180         changes_when_titlecased, changes_when_casefolded,
27181         changes_when_casemapped.
27182         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
27183         Unicode TR#11 revision 17 -> 19.
27184         (LBP_CP): New enumeration value.
27185         (LBP_*): Adjust values accordingly.
27186         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
27187         TR#14 revision 22 -> 24.
27188         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
27189         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
27190         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
27191         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
27192         is_WBP_MIDLETTER.
27193         (output_composition_tables): Allow for 24 bits instead of 16 bits in
27194         the code1 and code2 of each composition rule.
27195         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
27196         * lib/unicase/ignorable.h: Likewise.
27197         * lib/unicase/tocasefold.h: Likewise.
27198         * lib/unicase/tolower.h: Likewise.
27199         * lib/unicase/totitle.h: Likewise.
27200         * lib/unicase/toupper.h: Likewise.
27201         * lib/unictype/bidi_of.h: Likewise.
27202         * lib/unictype/blocks.h: Likewise.
27203         * lib/unictype/categ_C.h: Likewise.
27204         * lib/unictype/categ_Cf.h: Likewise.
27205         * lib/unictype/categ_Cn.h: Likewise.
27206         * lib/unictype/categ_L.h: Likewise.
27207         * lib/unictype/categ_Ll.h: Likewise.
27208         * lib/unictype/categ_Lm.h: Likewise.
27209         * lib/unictype/categ_Lo.h: Likewise.
27210         * lib/unictype/categ_Lu.h: Likewise.
27211         * lib/unictype/categ_M.h: Likewise.
27212         * lib/unictype/categ_Mc.h: Likewise.
27213         * lib/unictype/categ_Mn.h: Likewise.
27214         * lib/unictype/categ_N.h: Likewise.
27215         * lib/unictype/categ_Nd.h: Likewise.
27216         * lib/unictype/categ_Nl.h: Likewise.
27217         * lib/unictype/categ_No.h: Likewise.
27218         * lib/unictype/categ_P.h: Likewise.
27219         * lib/unictype/categ_Pd.h: Likewise.
27220         * lib/unictype/categ_Po.h: Likewise.
27221         * lib/unictype/categ_S.h: Likewise.
27222         * lib/unictype/categ_Sc.h: Likewise.
27223         * lib/unictype/categ_So.h: Likewise.
27224         * lib/unictype/categ_of.h: Likewise.
27225         * lib/unictype/combining.h: Likewise.
27226         * lib/unictype/ctype_alnum.h: Likewise.
27227         * lib/unictype/ctype_alpha.h: Likewise.
27228         * lib/unictype/ctype_graph.h: Likewise.
27229         * lib/unictype/ctype_lower.h: Likewise.
27230         * lib/unictype/ctype_print.h: Likewise.
27231         * lib/unictype/ctype_punct.h: Likewise.
27232         * lib/unictype/ctype_upper.h: Likewise.
27233         * lib/unictype/decdigit.h: Likewise.
27234         * lib/unictype/digit.h: Likewise.
27235         * lib/unictype/numeric.h: Likewise.
27236         * lib/unictype/pr_alphabetic.h: Likewise.
27237         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
27238         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
27239         * lib/unictype/pr_bidi_european_digit.h: Likewise.
27240         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
27241         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
27242         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
27243         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
27244         * lib/unictype/pr_combining.h: Likewise.
27245         * lib/unictype/pr_composite.h: Likewise.
27246         * lib/unictype/pr_currency_symbol.h: Likewise.
27247         * lib/unictype/pr_dash.h: Likewise.
27248         * lib/unictype/pr_decimal_digit.h: Likewise.
27249         * lib/unictype/pr_deprecated.h: Likewise.
27250         * lib/unictype/pr_diacritic.h: Likewise.
27251         * lib/unictype/pr_extender.h: Likewise.
27252         * lib/unictype/pr_grapheme_base.h: Likewise.
27253         * lib/unictype/pr_grapheme_extend.h: Likewise.
27254         * lib/unictype/pr_grapheme_link.h: Likewise.
27255         * lib/unictype/pr_id_continue.h: Likewise.
27256         * lib/unictype/pr_id_start.h: Likewise.
27257         * lib/unictype/pr_ideographic.h: Likewise.
27258         * lib/unictype/pr_ignorable_control.h: Likewise.
27259         * lib/unictype/pr_logical_order_exception.h: Likewise.
27260         * lib/unictype/pr_lowercase.h: Likewise.
27261         * lib/unictype/pr_numeric.h: Likewise.
27262         * lib/unictype/pr_other_alphabetic.h: Likewise.
27263         * lib/unictype/pr_punctuation.h: Likewise.
27264         * lib/unictype/pr_sentence_terminal.h: Likewise.
27265         * lib/unictype/pr_terminal_punctuation.h: Likewise.
27266         * lib/unictype/pr_unassigned_code_value.h: Likewise.
27267         * lib/unictype/pr_unified_ideograph.h: Likewise.
27268         * lib/unictype/pr_uppercase.h: Likewise.
27269         * lib/unictype/pr_xid_continue.h: Likewise.
27270         * lib/unictype/pr_xid_start.h: Likewise.
27271         * lib/unictype/pr_zero_width.h: Likewise.
27272         * lib/unictype/scripts.h: Likewise.
27273         * lib/unictype/scripts_byname.gperf: Likewise.
27274         * lib/unictype/sy_java_ident.h: Likewise.
27275         * lib/unigbrk/gbrkprop.h: Likewise.
27276         * lib/unilbrk/lbrkprop1.h: Likewise.
27277         * lib/unilbrk/lbrkprop2.h: Likewise.
27278         * lib/unilbrk/lbrktables.h: Likewise.
27279         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
27280         LBP_CP. Implement rule LB30.
27281         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
27282         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
27283         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
27284         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
27285         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
27286         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
27287         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
27288         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
27289         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
27290         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
27291         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
27292         bits instead of 16 bits in the code1 and code2 of each composition
27293         rule.
27294         (uc_composition): Update for Unicode 5.2.0.
27295         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
27296         * lib/uninorm/decomposition-table2.h: Likewise.
27297         * lib/uniwbrk/wbrkprop.h: Likewise.
27298         * tests/unicase/test-cased.c: Likewise.
27299         * tests/unicase/test-ignorable.c: Likewise.
27300         * tests/unicase/test-uc_tolower.c: Likewise.
27301         * tests/unicase/test-uc_totitle.c: Likewise.
27302         * tests/unicase/test-uc_toupper.c: Likewise.
27303         * tests/unictype/test-categ_C.c: Likewise.
27304         * tests/unictype/test-categ_Cf.c: Likewise.
27305         * tests/unictype/test-categ_Cn.c: Likewise.
27306         * tests/unictype/test-categ_L.c: Likewise.
27307         * tests/unictype/test-categ_Ll.c: Likewise.
27308         * tests/unictype/test-categ_Lm.c: Likewise.
27309         * tests/unictype/test-categ_Lo.c: Likewise.
27310         * tests/unictype/test-categ_Lu.c: Likewise.
27311         * tests/unictype/test-categ_M.c: Likewise.
27312         * tests/unictype/test-categ_Mc.c: Likewise.
27313         * tests/unictype/test-categ_Mn.c: Likewise.
27314         * tests/unictype/test-categ_N.c: Likewise.
27315         * tests/unictype/test-categ_Nd.c: Likewise.
27316         * tests/unictype/test-categ_Nl.c: Likewise.
27317         * tests/unictype/test-categ_No.c: Likewise.
27318         * tests/unictype/test-categ_P.c: Likewise.
27319         * tests/unictype/test-categ_Pd.c: Likewise.
27320         * tests/unictype/test-categ_Po.c: Likewise.
27321         * tests/unictype/test-categ_S.c: Likewise.
27322         * tests/unictype/test-categ_Sc.c: Likewise.
27323         * tests/unictype/test-categ_So.c: Likewise.
27324         * tests/unictype/test-ctype_alnum.c: Likewise.
27325         * tests/unictype/test-ctype_alpha.c: Likewise.
27326         * tests/unictype/test-ctype_graph.c: Likewise.
27327         * tests/unictype/test-ctype_lower.c: Likewise.
27328         * tests/unictype/test-ctype_print.c: Likewise.
27329         * tests/unictype/test-ctype_punct.c: Likewise.
27330         * tests/unictype/test-ctype_upper.c: Likewise.
27331         * tests/unictype/test-decdigit.h: Likewise.
27332         * tests/unictype/test-digit.h: Likewise.
27333         * tests/unictype/test-numeric.h: Likewise.
27334         * tests/unictype/test-pr_alphabetic.c: Likewise.
27335         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
27336         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
27337         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
27338         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
27339         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
27340         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
27341         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
27342         * tests/unictype/test-pr_combining.c: Likewise.
27343         * tests/unictype/test-pr_composite.c: Likewise.
27344         * tests/unictype/test-pr_currency_symbol.c: Likewise.
27345         * tests/unictype/test-pr_dash.c: Likewise.
27346         * tests/unictype/test-pr_decimal_digit.c: Likewise.
27347         * tests/unictype/test-pr_deprecated.c: Likewise.
27348         * tests/unictype/test-pr_diacritic.c: Likewise.
27349         * tests/unictype/test-pr_extender.c: Likewise.
27350         * tests/unictype/test-pr_grapheme_base.c: Likewise.
27351         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
27352         * tests/unictype/test-pr_grapheme_link.c: Likewise.
27353         * tests/unictype/test-pr_id_continue.c: Likewise.
27354         * tests/unictype/test-pr_id_start.c: Likewise.
27355         * tests/unictype/test-pr_ideographic.c: Likewise.
27356         * tests/unictype/test-pr_ignorable_control.c: Likewise.
27357         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
27358         * tests/unictype/test-pr_lowercase.c: Likewise.
27359         * tests/unictype/test-pr_numeric.c: Likewise.
27360         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
27361         * tests/unictype/test-pr_punctuation.c: Likewise.
27362         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
27363         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
27364         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
27365         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
27366         * tests/unictype/test-pr_uppercase.c: Likewise.
27367         * tests/unictype/test-pr_xid_continue.c: Likewise.
27368         * tests/unictype/test-pr_xid_start.c: Likewise.
27369         * tests/unictype/test-pr_zero_width.c: Likewise.
27370         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
27371         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
27372         changed behaviour: line breaking is now disallowed between a letter
27373         or '=' and '('.
27374         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
27375         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
27376         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
27377         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
27378         * tests/uniwidth/test-uc_width2.sh: Same updates as in
27379         lib/uniwidth/width.c.
27380         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
27381         without comments, but with the original copyright notice.
27382         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
27383         changes.
27384         * lib/unictype/categ_Cc.h: Likewise.
27385         * lib/unictype/categ_Co.h: Likewise.
27386         * lib/unictype/categ_Cs.h: Likewise.
27387         * lib/unictype/categ_Lt.h: Likewise.
27388         * lib/unictype/categ_Me.h: Likewise.
27389         * lib/unictype/categ_Pc.h: Likewise.
27390         * lib/unictype/categ_Pe.h: Likewise.
27391         * lib/unictype/categ_Pf.h: Likewise.
27392         * lib/unictype/categ_Pi.h: Likewise.
27393         * lib/unictype/categ_Ps.h: Likewise.
27394         * lib/unictype/categ_Sk.h: Likewise.
27395         * lib/unictype/categ_Sm.h: Likewise.
27396         * lib/unictype/categ_Z.h: Likewise.
27397         * lib/unictype/categ_Zl.h: Likewise.
27398         * lib/unictype/categ_Zp.h: Likewise.
27399         * lib/unictype/categ_Zs.h: Likewise.
27400         * lib/unictype/ctype_blank.h: Likewise.
27401         * lib/unictype/ctype_cntrl.h: Likewise.
27402         * lib/unictype/ctype_digit.h: Likewise.
27403         * lib/unictype/ctype_space.h: Likewise.
27404         * lib/unictype/ctype_xdigit.h: Likewise.
27405         * lib/unictype/mirror.h: Likewise.
27406         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
27407         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
27408         * lib/unictype/pr_bidi_block_separator.h: Likewise.
27409         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
27410         * lib/unictype/pr_bidi_common_separator.h: Likewise.
27411         * lib/unictype/pr_bidi_control.h: Likewise.
27412         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
27413         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
27414         * lib/unictype/pr_bidi_pdf.h: Likewise.
27415         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
27416         * lib/unictype/pr_bidi_whitespace.h: Likewise.
27417         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
27418         * lib/unictype/pr_format_control.h: Likewise.
27419         * lib/unictype/pr_hex_digit.h: Likewise.
27420         * lib/unictype/pr_hyphen.h: Likewise.
27421         * lib/unictype/pr_ids_binary_operator.h: Likewise.
27422         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
27423         * lib/unictype/pr_iso_control.h: Likewise.
27424         * lib/unictype/pr_join_control.h: Likewise.
27425         * lib/unictype/pr_left_of_pair.h: Likewise.
27426         * lib/unictype/pr_line_separator.h: Likewise.
27427         * lib/unictype/pr_math.h: Likewise.
27428         * lib/unictype/pr_non_break.h: Likewise.
27429         * lib/unictype/pr_not_a_character.h: Likewise.
27430         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
27431         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
27432         * lib/unictype/pr_other_id_continue.h: Likewise.
27433         * lib/unictype/pr_other_id_start.h: Likewise.
27434         * lib/unictype/pr_other_lowercase.h: Likewise.
27435         * lib/unictype/pr_other_math.h: Likewise.
27436         * lib/unictype/pr_other_uppercase.h: Likewise.
27437         * lib/unictype/pr_paired_punctuation.h: Likewise.
27438         * lib/unictype/pr_paragraph_separator.h: Likewise.
27439         * lib/unictype/pr_pattern_syntax.h: Likewise.
27440         * lib/unictype/pr_pattern_white_space.h: Likewise.
27441         * lib/unictype/pr_private_use.h: Likewise.
27442         * lib/unictype/pr_quotation_mark.h: Likewise.
27443         * lib/unictype/pr_radical.h: Likewise.
27444         * lib/unictype/pr_soft_dotted.h: Likewise.
27445         * lib/unictype/pr_space.h: Likewise.
27446         * lib/unictype/pr_titlecase.h: Likewise.
27447         * lib/unictype/pr_variation_selector.h: Likewise.
27448         * lib/unictype/pr_white_space.h: Likewise.
27449         * lib/unictype/sy_c_ident.h: Likewise.
27450         * lib/unictype/sy_c_whitespace.h: Likewise.
27451         * lib/unictype/sy_java_whitespace.h: Likewise.
27452         * modules/uni*/*: Bump version number of expected libunistring version.
27453         Reported by Simon Josefsson.
27454
27455 2011-01-09  Karl Heuer  <kwzh@gnu.org>
27456
27457         useless-if-before-free: fix typo in --help and make the internal,
27458         automatic version date update process work once again.
27459         --help output contained a NUL character instead of the
27460         backslash-zero that was intended.  Also, the "must lie within
27461         the first 8 lines" line is on line 9, and hence not getting
27462         automatically updated.
27463         * build-aux/useless-if-before-free: Fix the former by adding a
27464         backslash, and the latter by condensing the three lines of what-it-does
27465         to a single line, leaving one line of slack for the future.
27466
27467 2011-01-09  Bruno Haible  <bruno@clisp.org>
27468
27469         uniwidth/width: Fix width of U+1D173..U+1D17A.
27470         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
27471         symbolic_width, output_width_property_test): New functions.
27472         (main): Invoke output_nonspacing_property, output_width_property_test.
27473         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
27474         U+1D173..U+1D17A.
27475         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
27476         1.
27477         * modules/uniwidth/*: Bump version number of expected libunistring
27478         version.
27479         * modules/unilbrk/*: Likewise.
27480
27481 2011-01-08  Bruno Haible  <bruno@clisp.org>
27482
27483         uninorm tests: Preserve copyright of Unicode data file.
27484         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
27485         Mention modifications.
27486
27487 2011-01-08  Bruno Haible  <bruno@clisp.org>
27488
27489         gen-uni-tables: Prepare for Unicode 5.2.0.
27490         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
27491         (debug_output_lbp, output_lbp): Update.
27492
27493 2011-01-08  Bruno Haible  <bruno@clisp.org>
27494
27495         unilbrk: Clarify gen-uni-tables.c code.
27496         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
27497         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
27498         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
27499
27500 2011-01-07  Bruno Haible  <bruno@clisp.org>
27501
27502         strtod: Restore errno when successfully parsing Infinity or NaN.
27503         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
27504         restore the original errno.
27505
27506 2011-01-07  Bruno Haible  <bruno@clisp.org>
27507
27508         remove test: Avoid failure on HP-UX 11.
27509         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
27510
27511 2011-01-07  Bruno Haible  <bruno@clisp.org>
27512
27513         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
27514         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
27515         error code.
27516
27517 2011-01-07  Pádraig Brady <P@draigBrady.com>
27518
27519         ignore-value: fixup comments, and add Eric Blake
27520         as an author since he rewrote the macros.
27521         * lib/ignore-value.h (ignore_value):  State that
27522         we now support aggregates.  Also specify exactly
27523         when the GCC warn_unused_result feature was added.
27524
27525 2011-01-06  Eric Blake  <eblake@redhat.com>
27526
27527         ignore-value: support aggregate types
27528         * lib/ignore-value.h (ignore_value): Provide separate gcc
27529         definition.
27530         * modules/ignore-value-tests: New test module.
27531         * tests/test-ignore-value.c: New test.
27532
27533         maint.mk: improve sc_prohibit_strcmp regex
27534         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
27535         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
27536         definition of STRNEQ.
27537
27538         signal: work around Haiku issue with SIGBUS
27539         * lib/siglist.h: Add comment.
27540         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
27541         strsignal's favoring of SIGSEGV.
27542         * tests/test-signal.c (main): Avoid test failure.
27543         * doc/posix-headers/signal.texi (signal.h): Document the issue.
27544         Reported by Scott McCreary.
27545
27546         maint.mk: add pre-release check to ensure submodule commits are public
27547         * top/maint.mk (public-submodule-commit): New rule.
27548         (submodule-checks): New variable.
27549         (alpha beta stable): Depend on the variable.
27550
27551 2011-01-05  Pádraig Brady <P@draigBrady.com>
27552         and Jim Meyering  <meyering@redhat.com>
27553
27554         ignore-value: make ignore_value more generic; deprecate ignore_ptr
27555         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
27556         (ATTRIBUTE_DEPRECATED): Define.
27557         (_ignore_case): New function.
27558         (ignore_value): New macro, to replace the old function.
27559         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
27560         * modules/ignore-value (Depends-on): Add stdint.
27561
27562 2011-01-04  Eric Blake  <eblake@redhat.com>
27563
27564         doc: regenerate INSTALL
27565         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
27566         @firstparagraphindent support, now that autoconf dropped it.
27567         (INSTALL_PRELUDE): Reinstate old macro.
27568         * doc/install.texi: Resync from autoconf.
27569         * doc/INSTALL: Reflect recent autoconf update.
27570         * doc/INSTALL.ISO: Likewise.
27571         * doc/INSTALL.UTF-8: Likewise.
27572         Reported by Karl Berry.
27573
27574 2011-01-04  Bruce Korb  <address@hidden>
27575
27576         git-version-gen: avoid a sub-shell
27577         * build-aux/git-version-gen: Redirect stderr in `...` via
27578         "exec 2>...", rather than via an added sub-shell.
27579
27580 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
27581
27582         git-version-gen: use (...) rather than sh -c '...'
27583         * build-aux/git-version-gen: Rather than hard-coding a shell's name
27584         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
27585
27586 2011-01-03  Jim Meyering  <meyering@redhat.com>
27587
27588         git-version-gen: convert leading TABs to spaces
27589         * build-aux/git-version-gen: Expand leading TABs.
27590
27591         git-version-gen: handle failed "git rev-list"
27592         * build-aux/git-version-gen: Rather than leaking a "fatal" error
27593         from git and proceeding as if it had succeeded but printed no SHA1
27594         checksums, suppress the diagnostic and handle the failure.
27595         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
27596
27597         git-version-gen: include command name in one more diagnostic
27598         * build-aux/git-version-gen: When the required .tarball-version file
27599         was missing or unreadable, you might see the diagnostic from "cat",
27600         but no trace of the name of the invoking script.  Now, you still see
27601         the diagnostic from cat, but also get one from "git-version-gen: ".
27602         Inspired by a patch from Bruce Korb.
27603
27604         update-copyright: adjust test to match changed code
27605         * tests/test-update-copyright.sh: Change test's expected output
27606         to match new actual output.
27607
27608 2011-01-02  Bruno Haible  <bruno@clisp.org>
27609
27610         getlogin_r: Avoid test failure on HP-UX 11.
27611         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
27612         ERANGE when the second argument is zero.
27613         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
27614         portability problem.
27615
27616 2011-01-02  Bruce Korb  <bkorb@gnu.org>
27617
27618         * build-aux/update-copyright: doc Simon's changes
27619
27620 2011-01-02  Simon Josefsson  <simon@josefsson.org>
27621
27622         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
27623         environment variable.
27624
27625 2011-01-02  Bruno Haible  <bruno@clisp.org>
27626
27627         unigbrk: Avoid gcc warnings.
27628         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
27629         unused variable.
27630         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
27631         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
27632         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
27633         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
27634         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
27635         Change type of first argument to 'const char *'.
27636         (main): Remove unused variable.
27637         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
27638         type of first argument to 'const char *'.
27639         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
27640         Likewise.
27641         (main): Change type of variable 's'.
27642         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
27643         to 'int'.
27644
27645 2011-01-02  Bruno Haible  <bruno@clisp.org>
27646
27647         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
27648         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
27649         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
27650         bug.
27651         * lib/pwrite.c: Undo 2010-12-31 patch.
27652         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
27653
27654 2011-01-02  Bruno Haible  <bruno@clisp.org>
27655
27656         pread: Fix test whether it works.
27657         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
27658
27659 2011-01-02  Bruno Haible  <bruno@clisp.org>
27660
27661         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
27662         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
27663         ends in "6". Don't require a specific month name. Try also the locale
27664         names found on HP-UX 11 and Solaris 7.
27665
27666 2011-01-02  Bruno Haible  <bruno@clisp.org>
27667
27668         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
27669         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
27670         C linkage.
27671         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
27672
27673 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
27674
27675         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
27676         for consistency, since the "cluster" term is not used elsewhere.
27677         * lib/unigbrk.in.h: Update name.
27678         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
27679         * lib/unigbrk/u16-grapheme-next.c: Update name.
27680         * lib/unigbrk/u16-grapheme-prev.c: Update name.
27681         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
27682         * lib/unigbrk/u32-grapheme-next.c: Update name.
27683         * lib/unigbrk/u32-grapheme-prev.c: Update name.
27684         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
27685         * lib/unigbrk/u8-grapheme-next.c: Update name.
27686         * lib/unigbrk/u8-grapheme-prev.c: Update name.
27687         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
27688         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
27689         Suggested by Bruno Haible.
27690
27691 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
27692
27693         Remove module 'u8-grapheme-len' as too redundant with
27694         'u8-grapheme-next'.
27695         * modules/unigbrk/u8-grapheme-len: Delete file.
27696         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
27697         * lib/unigbrk.in.h: Remove prototype for deleted function.
27698         * lib/unigbrk/u8-grapheme-len.c: Delete file.
27699         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
27700
27701         Remove module 'u16-grapheme-len' as too redundant with
27702         'u16-grapheme-next'.
27703         * modules/unigbrk/u16-grapheme-len: Delete file.
27704         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
27705         * lib/unigbrk.in.h: Remove prototype for deleted function.
27706         * lib/unigbrk/u16-grapheme-len.c: Delete file.
27707         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
27708
27709         Remove module 'u32-grapheme-len' as too redundant with
27710         'u32-grapheme-next'.
27711         * modules/unigbrk/u32-grapheme-len: Delete file.
27712         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
27713         * lib/unigbrk.in.h: Remove prototype for deleted function.
27714         * lib/unigbrk/u32-grapheme-len.c: Delete file.
27715         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
27716
27717         Suggested by Bruno Haible.
27718
27719 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
27720
27721         * unigbrk.in.h: Fix typo: "ben" => "been".
27722         Reported by Bruno Haible.
27723
27724 2011-01-01  Jim Meyering  <meyering@redhat.com>
27725
27726         maint: update almost all copyright ranges to include 2011
27727         Run the new "make update-copyright" rule.
27728
27729 2011-01-01  Jim Meyering  <meyering@redhat.com>
27730
27731         maint: update-copyright: exempt doc/INSTALL*
27732         * Makefile (update-copyright): Also exclude doc/INSTALL*,
27733         since they are generated.  Suggested by Bruno Haible.
27734
27735 2011-01-01  Jim Meyering  <meyering@redhat.com>
27736
27737         maint: refine the update-copyright rule
27738         * Makefile (update-copyright): Also exclude any file that includes
27739         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
27740         code that merely generates the comment.
27741
27742 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
27743
27744         New module 'u8-grapheme-len'.
27745         * modules/unigbrk/u8-grapheme-len: New file.
27746         * modules/unigbrk/u8-grapheme-len-tests: New file.
27747         * lib/unigbrk.in.h: Add prototype for new function.
27748         * lib/unigbrk/u8-grapheme-len.c: New file.
27749         * tests/unigbrk/test-u8-grapheme-len.c: New file.
27750
27751         New module 'u16-grapheme-len'.
27752         * modules/unigbrk/u16-grapheme-len: New file.
27753         * modules/unigbrk/u16-grapheme-len-tests: New file.
27754         * lib/unigbrk.in.h: Add prototype for new function.
27755         * lib/unigbrk/u16-grapheme-len.c: New file.
27756         * tests/unigbrk/test-u16-grapheme-len.c: New file.
27757
27758         New module 'u32-grapheme-len'.
27759         * modules/unigbrk/u32-grapheme-len: New file.
27760         * modules/unigbrk/u32-grapheme-len-tests: New file.
27761         * lib/unigbrk.in.h: Add prototype for new function.
27762         * lib/unigbrk/u32-grapheme-len.c: New file.
27763         * tests/unigbrk/test-u32-grapheme-len.c: New file.
27764
27765         New module 'u8-grapheme-next'.
27766         * modules/unigbrk/u8-grapheme-next: New file.
27767         * modules/unigbrk/u8-grapheme-next-tests: New file.
27768         * lib/unigbrk.in.h: Add prototype for new function.
27769         * lib/unigbrk/u8-grapheme-next.c: New file.
27770         * tests/unigbrk/test-u8-grapheme-next.c: New file.
27771
27772         New module 'u16-grapheme-next'.
27773         * modules/unigbrk/u16-grapheme-next: New file.
27774         * modules/unigbrk/u16-grapheme-next-tests: New file.
27775         * lib/unigbrk.in.h: Add prototype for new function.
27776         * lib/unigbrk/u16-grapheme-next.c: New file.
27777         * tests/unigbrk/test-u16-grapheme-next.c: New file.
27778
27779         New module 'u32-grapheme-next'.
27780         * modules/unigbrk/u32-grapheme-next: New file.
27781         * modules/unigbrk/u32-grapheme-next-tests: New file.
27782         * lib/unigbrk.in.h: Add prototype for new function.
27783         * lib/unigbrk/u32-grapheme-next.c: New file.
27784         * tests/unigbrk/test-u32-grapheme-next.c: New file.
27785
27786         New module 'u8-grapheme-prev'.
27787         * modules/unigbrk/u8-grapheme-prev: New file.
27788         * modules/unigbrk/u8-grapheme-prev-tests: New file.
27789         * lib/unigbrk.in.h: Add prototype for new function.
27790         * lib/unigbrk/u8-grapheme-prev.c: New file.
27791         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
27792
27793         New module 'u16-grapheme-prev'.
27794         * modules/unigbrk/u16-grapheme-prev: New file.
27795         * modules/unigbrk/u16-grapheme-prev-tests: New file.
27796         * lib/unigbrk.in.h: Add prototype for new function.
27797         * lib/unigbrk/u16-grapheme-prev.c: New file.
27798         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
27799
27800         New module 'u32-grapheme-prev'.
27801         * modules/unigbrk/u32-grapheme-prev: New file.
27802         * modules/unigbrk/u32-grapheme-prev-tests: New file.
27803         * lib/unigbrk.in.h: Add prototype for new function.
27804         * lib/unigbrk/u32-grapheme-prev.c: New file.
27805         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
27806
27807         New module 'u8-grapheme-breaks'.
27808         * modules/unigbrk/u8-grapheme-breaks: New file.
27809         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
27810         * lib/unigbrk.in.h: Add prototype for new function.
27811         * lib/unigbrk/u8-grapheme-breaks.c: New file.
27812         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
27813
27814         New module 'u16-grapheme-breaks'.
27815         * modules/unigbrk/u16-grapheme-breaks: New file.
27816         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
27817         * lib/unigbrk.in.h: Add prototype for new function.
27818         * lib/unigbrk/u16-grapheme-breaks.c: New file.
27819         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
27820
27821         New module 'u32-grapheme-breaks'.
27822         * modules/unigbrk/u32-grapheme-breaks: New file.
27823         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
27824         * lib/unigbrk.in.h: Add prototype for new function.
27825         * lib/unigbrk/u32-grapheme-breaks.c: New file.
27826         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
27827
27828         New module 'ulc-grapheme-breaks'.
27829         * modules/unigbrk/ulc-grapheme-breaks: New file.
27830         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
27831         * m4/locale-ar.m4: New file.
27832         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
27833         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
27834         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
27835
27836 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
27837
27838         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
27839         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
27840         modified how this file was generated before I initially submitted
27841         the module, but failed to regenerate it.  This meant that several
27842         of the level2 entries were wrong.
27843         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
27844         Remove the division-by-2 that is folded into the table now that
27845         gbrkprop.h has been regenerated properly.  Now -1 entries are
27846         handled correctly.
27847
27848         New module 'unigbrk/uc-gbrk-prop-tests'.
27849         * modules/unigbrk/uc-gbrk-prop-tests: New file.
27850         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
27851         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
27852         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
27853
27854 2011-01-01  Bruno Haible  <bruno@clisp.org>
27855
27856         Avoid use of hexadecimal escapes.
27857         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
27858         instead of hexadecimal escapes.
27859
27860 2011-01-01  Jim Meyering  <meyering@redhat.com>
27861
27862         maint: new rule to update copyright year ranges
27863         * Makefile (update-copyright): New rule.
27864
27865         maint: indent with TABs in Makefile
27866         * Makefile: Expand leading sequences of spaces to TABs
27867
27868         version-etc: update the copyright year it reports
27869         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
27870
27871 2010-12-31  Bruno Haible  <bruno@clisp.org>
27872
27873         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
27874         * lib/isfinite.c (zerof, zerod, zerol): New variables.
27875         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
27876         zero.
27877
27878 2010-12-31  Bruno Haible  <bruno@clisp.org>
27879
27880         pwrite: Work around HP-UX 11.11 bug.
27881         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
27882         works and set REPLACE_PWRITE if not.
27883         * lib/pwrite.c (pwrite): Add an implementation that uses the system
27884         function.
27885         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
27886
27887 2010-12-31  Bruno Haible  <bruno@clisp.org>
27888
27889         pread: Work around HP-UX 11 bugs.
27890         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
27891         and set REPLACE_PREAD if not.
27892         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
27893
27894 2010-12-31  Eric Blake  <eblake@redhat.com>
27895
27896         nl_langinfo: fix YESEXPR on Irix 6.5
27897         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
27898         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
27899         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
27900         it.
27901
27902 2010-12-31  Bruno Haible  <bruno@clisp.org>
27903
27904         iconv: Document HP-UX 11 bug.
27905         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
27906
27907 2010-12-31  Bruno Haible  <bruno@clisp.org>
27908
27909         ldexpl: Fix link error on HP-UX 11.
27910         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
27911         LDEXPL_LIBM, using $ISNANL_LIBM.
27912
27913 2010-12-31  Eric Blake  <eblake@redhat.com>
27914
27915         ftello: avoid compilation failure with SunStudio c89
27916         * lib/ftello.c (ftello): Use lseek, not llseek.
27917
27918         tests: avoid failing coreutils tests on cygwin
27919         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
27920         (create_exe_shims_): Return 0 when skipping.
27921
27922 2010-12-31  Bruno Haible  <bruno@clisp.org>
27923
27924         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
27925         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
27926
27927 2010-12-31  Bruno Haible  <bruno@clisp.org>
27928
27929         waitpid: Fix link error in C++ mode.
27930         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
27931
27932 2010-12-31  Bruno Haible  <bruno@clisp.org>
27933
27934         isnan: Use GCC built-ins when possible.
27935         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
27936         __builtin_isnan.
27937         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
27938         (isnan): Define using GCC built-ins for GCC >= 4.0.
27939
27940 2010-12-31  Bruno Haible  <bruno@clisp.org>
27941
27942         isnand: Fix mistake.
27943         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
27944         __builtin_isnand.
27945
27946 2010-12-31  Bruno Haible  <bruno@clisp.org>
27947
27948         open: Avoid C++ error on HP-UX 11.
27949         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
27950
27951 2010-12-31  Bruno Haible  <bruno@clisp.org>
27952
27953         time_r: Add missing declarations on HP-UX 11.
27954         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
27955         instead of HAVE_LOCALTIME_R.
27956         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
27957         HAVE_LOCALTIME_R always.
27958         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
27959         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
27960         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
27961         HAVE_LOCALTIME_R.
27962         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
27963         * doc/posix-functions/localtime_r.texi: Likewise.
27964
27965 2010-12-29  Eric Blake  <eblake@redhat.com>
27966
27967         mountlist: tweak previous commit
27968         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
27969         Reported by Paul Eggert.
27970
27971         mountlist: fix local drive detection on cygwin
27972         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
27973         that works for cygwin.
27974
27975 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
27976
27977         ftoastr, snprintf: ftoastr + snprintf module
27978         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
27979         since the snprintf module now should be good enough here.
27980         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
27981         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
27982         and gl_MODULE_INDICATOR([snprintf]), but the former enables
27983         GNULIB_SNPRINTF only for the test directory, and the latter
27984         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
27985         seems to suffice by itself.
27986
27987 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
27988
27989         alloca: one step towards thread-safety
27990         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
27991         need for a static variable.  All callers changed.  This does not
27992         make the alloca replacement thread-safe, but it's one step.
27993
27994         tests: minor indenting change
27995         * tests/init.sh: Sync from coreutils housekeeping patch
27996         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
27997         to keep lines within 80 columns.
27998
27999 2010-12-28  Jim Meyering  <meyering@redhat.com>
28000
28001         regex: don't infloop on persistent failing calloc
28002         * lib/regexec.c (build_trtable): Return failure indication upon
28003         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
28004         In glibc, this was fixed for version 2.13:
28005         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
28006
28007 2010-12-28  Bruno Haible  <bruno@clisp.org>
28008             Paul Eggert <eggert@cs.ucla.edu>
28009
28010         linkat: Make implementation robust against system behaviour variations.
28011         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
28012         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
28013         way, and to -2 if it needs a generic runtime test.
28014         * lib/linkat.c (solaris_optimized_link_immediate,
28015         solaris_optimized_link_follow): New functions.
28016         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
28017         (check_same_link): Use it.
28018
28019 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
28020
28021         New module 'unigbrk/base'.
28022         * modules/unigbrk/base: New file.
28023         * lib/unigbrk.in.h: New file.
28024
28025         New module 'unigbrk/uc-gbrk-prop'.
28026         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
28027         * modules/unigbrk/uc-gbrk-prop: New file.
28028         * lib/unigbrk/gbrkprop.h: New file.
28029         * lib/unigbrk/uc-gbrk-prop.c: New file.
28030
28031         New module 'unigbrk/uc-is-grapheme-break'.
28032         * modules/unigbrk/uc-is-grapheme-break: New file.
28033         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
28034         * lib/unigbrk/uc-is-grapheme-break.c: New file.
28035         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
28036         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
28037         * tests/unigbrk/GraphemeBreakTest.txt: New file.
28038
28039         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
28040
28041 2010-12-27  Bruno Haible  <bruno@clisp.org>
28042
28043         linkat test: Avoid failure on Solaris 11 2010-11.
28044         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
28045
28046 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
28047
28048         utimens: work around glibc rounding bug on more platforms
28049         * lib/utimens.c (fdutimens): Work around rounding bug even if
28050         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
28051         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
28052
28053 2010-12-27  Bruno Haible  <bruno@clisp.org>
28054
28055         select tests: Improve comments.
28056         * tests/test-select.c (do_select): Add comments.
28057
28058 2010-12-27  Bruno Haible  <bruno@clisp.org>
28059
28060         select tests: Safer way of handling timeout.
28061         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
28062         at every invocation.
28063
28064 2010-12-27  Bruno Haible  <bruno@clisp.org>
28065
28066         select tests: Use 'bool' where appropriate.
28067         * tests/test-select.c (connect_to_socket): Change argument type to
28068         'bool'.
28069
28070 2010-12-27  Bruno Haible  <bruno@clisp.org>
28071
28072         select tests: Use existing modules.
28073         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
28074         (configure.ac): Don't test for unistd.h.
28075         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
28076         declared in <unistd.h>.
28077
28078 2010-12-27  Bruno Haible  <bruno@clisp.org>
28079
28080         mbrtowc: Work around a Solaris 7 bug.
28081         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
28082         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
28083         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
28084         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
28085         MBRTOWC_NULL_ARG1_BUG.
28086         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
28087         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
28088         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
28089         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
28090
28091 2010-12-27  Jim Meyering  <meyering@redhat.com>
28092
28093         read-file.c: tweak syntax
28094         * lib/read-file.c (fread_file): Remove space after "*" in function
28095         definitions.
28096
28097 2010-12-27  Bruno Haible  <bruno@clisp.org>
28098
28099         times test: Avoid gcc warnings on OSF/1.
28100         * tests/test-times.c (main): Cast printf arguments from clock_t to
28101         'long int'.
28102
28103 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
28104
28105         utimens: work around glibc rounding bug on older Linux kernels
28106         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
28107         on Linux with a glibc whose utimes might not work, then work
28108         around a longstanding glibc bug involving rounding rather than
28109         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
28110         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
28111
28112 2010-12-26  Bruno Haible  <bruno@clisp.org>
28113
28114         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
28115         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
28116         _GL_CXXALIAS_SYS.
28117         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28118
28119 2010-12-26  Bruno Haible  <bruno@clisp.org>
28120
28121         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
28122         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
28123         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
28124         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
28125         looking for the declaration.
28126         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
28127         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
28128         problem.
28129         * doc/posix-functions/inet_pton.texi: Likewise.
28130
28131 2010-12-26  Bruno Haible  <bruno@clisp.org>
28132
28133         arpa_inet: Use the common idioms with C++ support.
28134         * lib/arpa_inet.in.h: Include c++defs.h.
28135         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
28136         support.
28137         * modules/arpa_inet (Depends-on): Add c++defs.
28138         (Makefile.am): Substitute the contents of c++defs.h.
28139         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
28140         * modules/arpa_inet-c++-tests: New file.
28141         * tests/test-arpa_inet-c++.cc: New file.
28142
28143 2010-12-25  Bruno Haible  <bruno@clisp.org>
28144
28145         Fix more C++ link errors on Solaris 8.
28146         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
28147         $(LIB_EACCESS).
28148         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
28149         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
28150         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
28151         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
28152         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
28153
28154 2010-12-25  Bruno Haible  <bruno@clisp.org>
28155
28156         printf-posix: Fix link error when a non-GCC compiler is used.
28157         * lib/stdio.in.h (printf): When not using GCC, override printf
28158         correctly.
28159         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28160
28161 2010-12-25  Bruno Haible  <bruno@clisp.org>
28162
28163         strerror_r-posix: Update doc.
28164         * doc/posix-functions/strerror_r.texi: Update doc about the return
28165         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
28166
28167 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
28168
28169         utimens: simplify the logic of the previous change
28170         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
28171         This should not affect whether the test succeeds or fails.
28172
28173         utimens: configure better on hosts with NFS clock skew
28174         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
28175         uses the clock of the local host.  It might use the clock of the
28176         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
28177         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
28178
28179 2010-12-25  Bruno Haible  <bruno@clisp.org>
28180
28181         ptsname test: Avoid failure on Solaris.
28182         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
28183         open a pseudo-terminal; don't use BSD-style ptys.
28184         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
28185
28186 2010-12-25  Bruno Haible  <bruno@clisp.org>
28187
28188         ptsname: Avoid ERANGE failure on some systems.
28189         * lib/ptsname.c (buffer): Increase size.
28190
28191 2010-12-25  Bruno Haible  <bruno@clisp.org>
28192
28193         rename, renameat: Avoid test failures at NFS mounted locations.
28194         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
28195         so that subsequent mkdir calls succeed.
28196
28197 2010-12-25  Bruno Haible  <bruno@clisp.org>
28198
28199         iswblank: Fix C++ link error on Solaris 8.
28200         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
28201         _GL_FUNCDECL_SYS.
28202
28203 2010-12-25  Bruno Haible  <bruno@clisp.org>
28204
28205         unistd: Fix C++ link error on Solaris 8.
28206         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
28207
28208 2010-12-25  Bruno Haible  <bruno@clisp.org>
28209
28210         readlink doc: Mention an old glibc bug.
28211         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
28212
28213 2010-12-25  Bruno Haible  <bruno@clisp.org>
28214
28215         fcntl-h: Fix for use of C++ on glibc systems.
28216         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
28217         also on glibc systems in C++ mode.
28218         Reported by Gary V. Vaughan <gary@gnu.org>.
28219
28220 2010-12-25  Bruno Haible  <bruno@clisp.org>
28221
28222         roundl-ieee: Make it work on OSF/1 5.1 with cc.
28223         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
28224
28225 2010-12-25  Bruno Haible  <bruno@clisp.org>
28226
28227         truncl-ieee: Make it work on OSF/1 5.1 with cc.
28228         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
28229         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
28230         test whether truncl works according to ISO C 99 with IEC 60559.
28231         * m4/truncl-ieee.m4: New file.
28232         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
28233         m4/signbit.m4.
28234         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
28235
28236 2010-12-25  Bruno Haible  <bruno@clisp.org>
28237
28238         ceill-ieee: Make it work on OSF/1 5.1 with cc.
28239         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
28240         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
28241         test whether ceill works according to ISO C 99 with IEC 60559.
28242         * m4/ceill-ieee.m4: New file.
28243         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
28244         m4/signbit.m4.
28245         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
28246
28247 2010-12-25  Bruno Haible  <bruno@clisp.org>
28248
28249         Ensure all prerequisites of <wchar.h> are included.
28250         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
28251         before <wchar.h>.
28252         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
28253         gl_MBRLEN_NUL_RETVAL): Likewise.
28254         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
28255         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
28256         AC_FUNC_MBRTOWC): Likewise.
28257         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
28258         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
28259         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
28260         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
28261         Likewise.
28262         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
28263         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
28264         (gl_WCHAR_H): Improve comments.
28265         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
28266
28267 2010-12-25  Bruno Haible  <bruno@clisp.org>
28268
28269         strtok_r: Fix C syntax error in autoconf macro.
28270         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
28271         characters in test program.
28272
28273 2010-12-24  Bruno Haible  <bruno@clisp.org>
28274
28275         ceil, trunc, round: Fix gcc warnings.
28276         * lib/ceil.c (MIN): Undefine before redefining.
28277         * lib/trunc.c (MIN): Likewise.
28278         * lib/round.c (MIN): Likewise.
28279         Include <math.h> first.
28280
28281 2010-12-24  Bruno Haible  <bruno@clisp.org>
28282
28283         select tests: Avoid failures on OSF/1 5.1.
28284         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
28285         failure of closing the last socket; it may fail with ECONNRESET.
28286
28287 2010-12-24  Eric Blake  <eblake@redhat.com>
28288
28289         stdint: avoid HP-UX 10.20 preprocessor bug
28290         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
28291         than #if.
28292         * tests/test-floor2.c (main): Likewise.
28293         Reported by Peter O'Gorman.
28294
28295         pipe: make obsoletion transition easier
28296         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
28297         * modules/pipe (Files): Include revived file.
28298         (Include): Drop reference, to mirror getdate's behavior.
28299
28300 2010-12-24  Bruno Haible  <bruno@clisp.org>
28301
28302         sys_socket: Hide mismatch of declarations on NonStop Kernel.
28303         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
28304         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
28305         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28306
28307 2010-12-24  Bruno Haible  <bruno@clisp.org>
28308
28309         gethostname: Ensure declaration on NonStop Kernel.
28310         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
28311         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28312
28313 2010-12-24  Bruno Haible  <bruno@clisp.org>
28314
28315         sys_select: Ensure all necessary types on NonStop Kernel.
28316         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
28317         include <sys/time.h>.
28318         * doc/posix-headers/sys_select.texi: Mention that it's missing on
28319         NonStop Kernel.
28320         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28321
28322 2010-12-24  Bruno Haible  <bruno@clisp.org>
28323
28324         sys_select: Remove unneeded include.
28325         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
28326         have <sys/select.h>.
28327
28328 2010-12-24  Bruno Haible  <bruno@clisp.org>
28329
28330         gethostname: Provide a fallback for HOST_NAME_MAX.
28331         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
28332         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
28333         instead.
28334         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28335
28336 2010-12-24  Bruno Haible  <bruno@clisp.org>
28337
28338         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
28339         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
28340         (SA_RESTART): Likewise.
28341         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28342
28343 2010-12-24  Bruno Haible  <bruno@clisp.org>
28344
28345         signal: Define NSIG.
28346         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
28347         * tests/test-signal.c (nsig): New variable.
28348         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28349
28350 2010-12-24  Bruno Haible  <bruno@clisp.org>
28351
28352         rename, renameat: Avoid test failures on OSF/1 5.1.
28353         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
28354         alternative error codes.
28355         * tests/test-renameat.c (main): Likewise.
28356
28357 2010-12-24  Bruno Haible  <bruno@clisp.org>
28358
28359         *printf: Detect large precisions bug on Solaris 10/SPARC.
28360         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
28361         by Paul Eggert.
28362         * tests/test-snprintf-posix.h (test_function): Add this test code here
28363         too.
28364         * tests/test-sprintf-posix.h (test_function): Likewise.
28365         * tests/test-vasnprintf-posix.c (test_function): Likewise.
28366         * tests/test-vasprintf-posix.c (test_function): Likewise.
28367         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
28368         around by gnulib.
28369         * doc/posix-functions/printf.texi: Likewise.
28370         * doc/posix-functions/snprintf.texi: Likewise.
28371         * doc/posix-functions/sprintf.texi: Likewise.
28372         * doc/posix-functions/vfprintf.texi: Likewise.
28373         * doc/posix-functions/vprintf.texi: Likewise.
28374         * doc/posix-functions/vsnprintf.texi: Likewise.
28375         * doc/posix-functions/vsprintf.texi: Likewise.
28376         * doc/posix-functions/dprintf.texi: Undo last commit.
28377         * doc/posix-functions/vdprintf.texi: Likewise.
28378
28379 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
28380
28381         tests: port test-fdutimensat.c to Solaris 8
28382         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
28383         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
28384         On Solaris 8, it fails with errno == ENOSYS, because there is no
28385         futimens (so it can't use the fd), and there is no lutimens (so it
28386         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
28387
28388         vsnprintf: make more consistent with snprintf; doc fixes
28389
28390         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
28391         the byte count return problem was promoted from the snprintf-posix
28392         to the snprintf module.
28393         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
28394         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
28395         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
28396         * tests/test-snprintf.c (main): Check the byte count returned.
28397         * tests/test-vsnprintf.c (main): Likewise.
28398
28399 2010-12-23  Eric Blake  <eblake@redhat.com>
28400
28401         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
28402         * modules/sigpipe (License): Relax license.
28403
28404 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
28405
28406         doc: document Solaris printf bug with large float precisions
28407         * doc/posix-functions/dprintf.texi (dprintf):
28408         * doc/posix-functions/fprintf.texi (fprintf):
28409         * doc/posix-functions/printf.texi (printf):
28410         * doc/posix-functions/snprintf.texi (snprintf):
28411         * doc/posix-functions/sprintf.texi (sprintf):
28412         * doc/posix-functions/vdprintf.texi (vdprintf):
28413         * doc/posix-functions/vfprintf.texi (vfprintf):
28414         * doc/posix-functions/vprintf.texi (vprintf):
28415         * doc/posix-functions/vsnprintf.texi (vsnprintf):
28416         * doc/posix-functions/vsprintf.texi (vsprintf):
28417         Mention that these functions mishandle large floating point
28418         precisions on Solaris 10.  The same bug is also present in Solaris
28419         8, and I assume earlier.  This causes "cd gnulib-tests; make
28420         check" to fail on Solaris 8 (and I assume, later) when building
28421         the latest coreutils, in test-vasprintf-posix's call to
28422         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
28423         the wide flavors (e.g., wprintf) so this patch just updates the
28424         documentation for the narrow ones.
28425
28426         test-posixtm.c: add two tests
28427         * tests/test-posixtm.c: Add two tests, to highlight the
28428         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
28429         around this bug; this is merely to document it.
28430
28431 2010-12-22  Bruno Haible  <bruno@clisp.org>
28432
28433         getlogin_r: Work around portability problem on OSF/1.
28434         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
28435         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
28436         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
28437         test for a truncated result.
28438         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
28439         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
28440         * modules/getlogin_r (Depends-on): Add memchr.
28441         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
28442
28443 2010-12-22  Bruno Haible  <bruno@clisp.org>
28444
28445         ptsname: Avoid test failure on OSF/1 5.1.
28446         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
28447         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
28448         (same_slave): New function.
28449         (main): Use it to compare ptsname's result with the expected file name.
28450
28451 2010-12-22  Bruno Haible  <bruno@clisp.org>
28452
28453         Port extended stdio modules to HP NonStop Kernel.
28454         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
28455         macros.
28456         * lib/fbufmode.c: Update comments.
28457         * lib/fflush.c: Likewise.
28458         * lib/fpurge.c: Likewise.
28459         * lib/freadable.c: Likewise.
28460         * lib/freadahead.c: Likewise.
28461         * lib/freading.c: Likewise.
28462         * lib/freadptr.c: Likewise.
28463         * lib/freadseek.c: Likewise.
28464         * lib/fseeko.c: Likewise.
28465         * lib/fseterr.c: Likewise.
28466         * lib/fwritable.c: Likewise.
28467         * lib/fwriting.c: Likewise.
28468         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28469
28470 2010-12-22  Bruno Haible  <bruno@clisp.org>
28471
28472         ttyname_r: Work around bug on OSF/1 5.1.
28473         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
28474         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
28475         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
28476         present.
28477         * lib/ttyname_r.c (ttyname_r): Update comments.
28478
28479 2010-12-22  Bruno Haible  <bruno@clisp.org>
28480
28481         round: Implement result sign according to IEEE 754.
28482         * lib/round.c (MIN, MINUS_ZERO): New macros.
28483         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
28484         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
28485         * tests/test-round-ieee.c (main): Likewise.
28486         * tests/test-roundl-ieee.c (main): Likewise.
28487
28488         trunc: Implement result sign according to IEEE 754.
28489         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
28490         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
28491         * tests/test-trunc2.c: Include minus-zero.h.
28492         (MINUS_ZERO): New macro.
28493         (trunc_reference): Keep in sync with lib/trunc.c.
28494         * tests/test-truncf2.c: Include minus-zero.h.
28495         (MINUS_ZERO): New macro.
28496         (truncf_reference): Keep in sync with lib/trunc.c.
28497         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
28498         * tests/test-trunc-ieee.c (main): Likewise.
28499         * tests/test-truncl-ieee.c (main): Likewise.
28500
28501         ceil: Implement result sign according to IEEE 754.
28502         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
28503         (FUNC): Return -0.0 for -1 < x < 0.
28504         * tests/test-ceil2.c: Include minus-zero.h.
28505         (MINUS_ZERO): New macro.
28506         (ceil_reference): Keep in sync with lib/ceil.c.
28507         * tests/test-ceilf2.c: Include minus-zero.h.
28508         (MINUS_ZERO): New macro.
28509         (ceilf_reference): Keep in sync with lib/ceil.c.
28510         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
28511         * tests/test-ceil-ieee.c (main): Likewise.
28512         * tests/test-ceill-ieee.c (main): Likewise.
28513
28514         floor: Implement result sign according to IEEE 754.
28515         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
28516         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
28517         * tests/test-floorf2.c (floorf_reference): Likewise.
28518         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
28519         * tests/test-floor-ieee.c (main): Likewise.
28520         * tests/test-floorl-ieee.c (main): Likewise.
28521
28522 2010-12-22  Bruno Haible  <bruno@clisp.org>
28523
28524         getaddrinfo: Update doc.
28525         * doc/posix-functions/gai_strerror.texi: Return type is also different
28526         on AIX and HP-UX.
28527
28528 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
28529
28530         getaddrinfo, inet_ntop: Update doc for Solaris.
28531         * doc/posix-functions/gai_strerror.texi: Return type is also an
28532         issue on Solaris 9 and earlier.
28533         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
28534         on Solaris 10 and earlier.
28535
28536 2010-12-21  Bruno Haible  <bruno@clisp.org>
28537
28538         New module 'roundl-ieee'.
28539         * modules/roundl-ieee: New file.
28540         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
28541         test whether roundl works according to ISO C 99 with IEC 60559.
28542         * m4/roundl-ieee.m4: New file.
28543         * modules/roundl-ieee-tests: New file.
28544         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
28545         * tests/test-roundl.c (main): Remove signbit tests.
28546         * modules/roundl-tests (Depends-on): Remove signbit.
28547         * doc/posix-functions/roundl.texi: Mention the new module.
28548
28549 2010-12-21  Bruno Haible  <bruno@clisp.org>
28550
28551         New module 'truncl-ieee'.
28552         * modules/truncl-ieee: New file.
28553         * modules/truncl-ieee-tests: New file.
28554         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
28555         * tests/test-truncl.c (main): Remove signbit tests.
28556         * modules/truncl-tests (Depends-on): Remove signbit.
28557         * doc/posix-functions/truncl.texi: Mention the new module.
28558
28559 2010-12-21  Bruno Haible  <bruno@clisp.org>
28560
28561         New module 'ceill-ieee'.
28562         * modules/ceill-ieee: New file.
28563         * modules/ceill-ieee-tests: New file.
28564         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
28565         * tests/test-ceill.c (main): Remove signbit tests.
28566         * modules/ceill-tests (Depends-on): Remove signbit.
28567         * doc/posix-functions/ceill.texi: Mention the new module.
28568
28569 2010-12-21  Bruno Haible  <bruno@clisp.org>
28570
28571         New module 'floorl-ieee'.
28572         * modules/floorl-ieee: New file.
28573         * modules/floorl-ieee-tests: New file.
28574         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
28575         * tests/test-floorl.c (main): Remove signbit tests.
28576         * modules/floorl-tests (Depends-on): Remove signbit.
28577         * doc/posix-functions/floorl.texi: Mention the new module.
28578
28579 2010-12-21  Bruno Haible  <bruno@clisp.org>
28580
28581         New module 'round-ieee'.
28582         * modules/round-ieee: New file.
28583         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
28584         whether round works according to ISO C 99 with IEC 60559.
28585         * m4/round-ieee.m4: New file.
28586         * modules/round-ieee-tests: New file.
28587         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
28588         * tests/test-round1.c (main): Remove signbit tests.
28589         * modules/round-tests (Depends-on): Remove 'signbit'.
28590         * doc/posix-functions/round.texi: Mention the new module.
28591
28592 2010-12-21  Bruno Haible  <bruno@clisp.org>
28593
28594         New module 'trunc-ieee'.
28595         * modules/trunc-ieee: New file.
28596         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
28597         whether trunc works according to ISO C 99 with IEC 60559.
28598         * m4/trunc-ieee.m4: New file.
28599         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
28600         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
28601         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
28602         * modules/trunc-ieee-tests: New file.
28603         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
28604         * tests/test-trunc1.c (main): Remove signbit tests.
28605         * modules/trunc-tests (Depends-on): Remove 'signbit'.
28606         * doc/posix-functions/trunc.texi: Mention the new module.
28607
28608 2010-12-21  Bruno Haible  <bruno@clisp.org>
28609
28610         New module 'ceil-ieee'.
28611         * modules/ceil-ieee: New file.
28612         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
28613         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
28614         ISO C 99 with IEC 60559.
28615         * m4/ceil-ieee.m4: New file.
28616         * modules/ceil (Files): Add lib/ceil.c.
28617         (Depends-on): Add 'float'.
28618         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
28619         * lib/math.in.h (ceil): New declaration.
28620         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
28621         REPLACE_CEIL.
28622         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
28623         * modules/ceil-ieee-tests: New file.
28624         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
28625         * tests/test-math-c++.cc: Check the signature of 'ceil'.
28626         * doc/posix-functions/ceil.texi: Mention the new module.
28627
28628 2010-12-21  Bruno Haible  <bruno@clisp.org>
28629
28630         New module 'floor-ieee'.
28631         * modules/floor-ieee: New file.
28632         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
28633         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
28634         ISO C 99 with IEC 60559.
28635         * m4/floor-ieee.m4: New file.
28636         * modules/floor (Files): Add lib/floor.c.
28637         (Depends-on): Add 'float'.
28638         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
28639         * lib/math.in.h (floor): New declaration.
28640         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
28641         REPLACE_FLOOR.
28642         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
28643         * modules/floor-ieee-tests: New file.
28644         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
28645         * tests/test-math-c++.cc: Check the signature of 'floor'.
28646         * doc/posix-functions/floor.texi: Mention the new module.
28647
28648 2010-12-21  Bruno Haible  <bruno@clisp.org>
28649
28650         New module 'roundf-ieee'.
28651         * modules/roundf-ieee: New file.
28652         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
28653         test whether roundf works according to ISO C 99 with IEC 60559.
28654         * m4/roundf-ieee.m4: New file.
28655         * modules/roundf-ieee-tests: New file.
28656         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
28657         * tests/test-roundf1.c (main): Remove signbit tests.
28658         * modules/roundf-tests (Depends-on): Remove 'signbit'.
28659         * doc/posix-functions/roundf.texi: Mention the new module.
28660
28661 2010-12-21  Bruno Haible  <bruno@clisp.org>
28662
28663         New module 'truncf-ieee'.
28664         * modules/truncf-ieee: New file.
28665         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
28666         test whether truncf works according to ISO C 99 with IEC 60559.
28667         * m4/truncf-ieee.m4: New file.
28668         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
28669         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
28670         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
28671         * modules/truncf-ieee-tests: New file.
28672         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
28673         * tests/test-truncf1.c (main): Remove signbit tests.
28674         * modules/truncf-tests (Depends-on): Remove 'signbit'.
28675         * doc/posix-functions/truncf.texi: Mention the new module.
28676
28677 2010-12-21  Bruno Haible  <bruno@clisp.org>
28678
28679         New module 'ceilf-ieee'.
28680         * modules/ceilf-ieee: New file.
28681         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
28682         test whether ceilf works according to ISO C 99 with IEC 60559.
28683         * m4/ceilf-ieee.m4: New file.
28684         * modules/ceilf-ieee-tests: New file.
28685         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
28686         * tests/test-ceilf1.c (main): Remove signbit tests.
28687         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
28688         * doc/posix-functions/ceilf.texi: Mention the new module.
28689
28690 2010-12-21  Bruno Haible  <bruno@clisp.org>
28691
28692         New module 'floorf-ieee'.
28693         * modules/floorf-ieee: New file.
28694         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
28695         test whether floorf works according to ISO C 99 with IEC 60559.
28696         * m4/floorf-ieee.m4: New file.
28697         * modules/floorf-ieee-tests: New file.
28698         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
28699         * tests/test-floorf1.c (main): Remove signbit tests.
28700         * modules/floorf-tests (Depends-on): Remove 'signbit'.
28701         * doc/posix-functions/floorf.texi: Mention the new module.
28702
28703 2010-12-21  Bruno Haible  <bruno@clisp.org>
28704
28705         Support for minus zero in autoconf macros.
28706         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
28707         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
28708         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
28709         * tests/minus-zero.h: Update comments.
28710
28711 2010-12-21  Bruno Haible  <bruno@clisp.org>
28712
28713         Tests for module 'ceil'.
28714         * modules/ceil-tests: New file.
28715         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
28716         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
28717
28718 2010-12-21  Bruno Haible  <bruno@clisp.org>
28719
28720         Tests for module 'floor'.
28721         * modules/floor-tests: New file.
28722         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
28723         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
28724
28725 2010-12-21  Bruno Haible  <bruno@clisp.org>
28726
28727         math: Fix indentation.
28728         * lib/math.in.h (floorf): Fix indentation.
28729
28730 2010-12-21  Bruno Haible  <bruno@clisp.org>
28731
28732         Fix cross-compilation guesses on Solaris.
28733         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
28734         not match "solaris2.10".
28735         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
28736         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
28737         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
28738
28739 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
28740
28741         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
28742         This fixes a problem observed with the latest coreutils snapshot
28743         that caused a test to fail on Solaris 8.  src/csplit.c's call
28744         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
28745         earlier, instead of returning the number of bytes that would have
28746         been generated; this causes csplit to incorrectly report memory
28747         exhaustion.
28748         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
28749         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
28750         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
28751         comments to match.
28752         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
28753         Fix typo in matching older versions of Solaris: "solaris2.10"
28754         is matched by the shell pattern "solaris2.[0-9]*".  This matters
28755         only for guessing while cross-compiling.
28756         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
28757
28758 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
28759
28760         ftoastr: fix comment again
28761         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
28762         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
28763         Also, simplify example a bit by using flags = 0.
28764
28765 2010-12-20  Bruno Haible  <bruno@clisp.org>
28766
28767         round*, trunc*: Update documentation regarding glibc.
28768         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
28769         * doc/posix-functions/round.texi: Likewise.
28770         * doc/posix-functions/roundl.texi: Likewise.
28771         * doc/posix-functions/truncf.texi: Likewise.
28772         * doc/posix-functions/trunc.texi: Likewise.
28773         * doc/posix-functions/truncl.texi: Likewise.
28774
28775 2010-12-20  Bruno Haible  <bruno@clisp.org>
28776
28777         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
28778         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
28779         * doc/posix-functions/round.texi: Likewise.
28780         * doc/posix-functions/roundl.texi: Likewise.
28781
28782 2010-12-20  Bruno Haible  <bruno@clisp.org>
28783
28784         ttyname_r: Add missing declaration on HP-UX 11.
28785         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
28786         HAVE_TTYNAME_R.
28787         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
28788         declared. Set HAVE_TTYNAME_R always.
28789         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28790         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
28791         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
28792         HAVE_TTYNAME_R.
28793         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
28794
28795 2010-12-20  Bruno Haible  <bruno@clisp.org>
28796
28797         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
28798         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
28799         * doc/posix-functions/getlogin_r.texi: Likewise.
28800         * tests/test-getlogin.c: Include <errno.h>.
28801         (main): Avoid test failure on HP-UX 11.11.
28802         * tests/test-getlogin_r.c (main): Likewise.
28803
28804 2010-12-20  Bruno Haible  <bruno@clisp.org>
28805
28806         getlogin_r: Add missing declaration on HP-UX 11.
28807         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
28808         declared also when it exists as a function.
28809         * doc/posix-functions/getlogin_r.texi: Document this workaround.
28810
28811 2010-12-20  Bruno Haible  <bruno@clisp.org>
28812
28813         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
28814         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
28815         through wcrtomb.
28816
28817 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
28818
28819         ftoastr: fix comment
28820         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
28821         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
28822
28823 2010-12-19  Bruno Haible  <bruno@clisp.org>
28824
28825         isnan: Ensure it is a macro.
28826         * lib/math.in.h (isnan): Define as a macro if not already a macro.
28827         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
28828         Solaris.
28829
28830 2010-12-19  Bruno Haible  <bruno@clisp.org>
28831
28832         ldexpl test: Fix link error on OSF/1 5.1.
28833         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
28834
28835 2010-12-19  Bruno Haible  <bruno@clisp.org>
28836
28837         wctype: Make it work in C++ mode on OSF/1 5.1.
28838         * lib/wctype.in.h (iswblank): Declare but not define here.
28839         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
28840         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
28841         * modules/wctype (Files): Add lib/iswblank.c.
28842
28843 2010-12-19  Bruno Haible  <bruno@clisp.org>
28844
28845         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
28846         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
28847         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
28848
28849 2010-12-19  Bruno Haible  <bruno@clisp.org>
28850
28851         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
28852         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
28853         _POSIX_PII_SOCKET.
28854         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
28855         * doc/posix-functions/recvfrom.texi: Likewise.
28856         * doc/posix-functions/send.texi: Likewise.
28857         * doc/posix-functions/sendto.texi: Likewise.
28858
28859 2010-12-19  Bruno Haible  <bruno@clisp.org>
28860
28861         tcgetsid: Add missing declaration on OSF/1 5.1.
28862         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
28863         HAVE_TCGETSID.
28864         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
28865         Don't set HAVE_TCGETSID.
28866         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
28867         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
28868         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
28869         HAVE_TCGETSID.
28870         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
28871
28872 2010-12-19  Bruno Haible  <bruno@clisp.org>
28873
28874         stdio: Fix problem with popen() declaration on OSF/1 5.1.
28875         * lib/stdio.in.h: During the include_next statement, let recursive
28876         includes of this file include only the system header file.
28877
28878 2010-12-19  Bruno Haible  <bruno@clisp.org>
28879
28880         iconv_open: Fix regression from 2010-12-04.
28881         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
28882         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
28883
28884 2010-12-19  Bruno Haible  <bruno@clisp.org>
28885
28886         stdbool test: Avoid a gcc warning.
28887         * tests/test-stdbool.c (main): Fail if e1 is false.
28888         Reported by Jim Meyering.
28889
28890 2010-12-19  Jim Meyering  <meyering@redhat.com>
28891
28892         setenv: restore to working order
28893         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
28894         mistakenly removed.
28895         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
28896         HAVE_SETENV.
28897         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
28898         HAVE_SETENV.
28899
28900 2010-12-19  Bruno Haible  <bruno@clisp.org>
28901
28902         Document some different function declarations on OSF/1 5.1.
28903         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
28904         * doc/posix-functions/inet_ntop.texi: Likewise.
28905         * doc/posix-functions/gethostname.texi: Likewise.
28906         * lib/unistd.in.h (gethostname): Update comment.
28907
28908 2010-12-19  Bruno Haible  <bruno@clisp.org>
28909
28910         doc: Mention vasprintf-posix module.
28911         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
28912         the 'vasprintf-posix' module.
28913         * doc/glibc-functions/vasprintf.texi: Likewise.
28914
28915 2010-12-19  Bruno Haible  <bruno@clisp.org>
28916
28917         unsetenv: Add missing declaration on OSF/1 5.1.
28918         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
28919         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
28920         Don't set HAVE_UNSETENV. In the test program, set _BSD.
28921         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
28922         not HAVE_UNSETENV.
28923         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
28924         HAVE_UNSETENV.
28925         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
28926
28927 2010-12-19  Bruno Haible  <bruno@clisp.org>
28928
28929         setenv: Add missing declaration on OSF/1 5.1.
28930         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
28931         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
28932         declared. Don't set HAVE_SETENV.
28933         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
28934         not HAVE_SETENV.
28935         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
28936         HAVE_SETENV.
28937         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
28938
28939 2010-12-19  Bruno Haible  <bruno@clisp.org>
28940
28941         nl_langinfo tests: Avoid gcc warning.
28942         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
28943
28944 2010-12-19  Bruno Haible  <bruno@clisp.org>
28945
28946         mknod: Avoid error in C++ mode on OSF/1 with GCC.
28947         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
28948         _GL_CXXALIAS_SYS.
28949
28950 2010-12-19  Bruno Haible  <bruno@clisp.org>
28951
28952         stdbool: Relax test.
28953         * tests/test-stdbool.c (e): Don't require that casts from a variable's
28954         address to 'bool' work in static initializer, for compilers other than
28955         GCC.
28956
28957 2010-12-19  Bruno Haible  <bruno@clisp.org>
28958
28959         ftello: Add missing declaration on OSF/1 5.1.
28960         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
28961         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
28962         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
28963         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
28964         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
28965
28966 2010-12-19  Bruno Haible  <bruno@clisp.org>
28967
28968         fseeko: Add missing declaration on OSF/1 5.1.
28969         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
28970         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
28971         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
28972         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
28973         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
28974
28975 2010-12-19  Bruno Haible  <bruno@clisp.org>
28976
28977         fchdir: Add missing declaration on OSF/1 5.1.
28978         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
28979         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
28980         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
28981         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
28982         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
28983
28984 2010-12-19  Bruno Haible  <bruno@clisp.org>
28985
28986         relocatable-prog-wrapper: Separate from relocatable-prog.
28987         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
28988         uninstall-relocwrapper rule here.
28989         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
28990         Reported by Ian Beckwith <ianb@erislabs.net>.
28991
28992 2010-12-19  Bruno Haible  <bruno@clisp.org>
28993
28994         unistr/u8-mbsnlen: Add missing dependency.
28995         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
28996         Reported by Ian Beckwith <ianb@erislabs.net>.
28997
28998 2010-12-19  Bruno Haible  <bruno@clisp.org>
28999
29000         iconv: Make it possible again to use this module without 'iconv-h'.
29001         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
29002         if it is not defined.
29003         Reported by Ian Beckwith <ianb@erislabs.net>.
29004
29005 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
29006
29007         acl: port to Solaris 8 when copying from tmpfs to ufs
29008         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
29009         error number.  Problem observed on Solaris 8 with latest
29010         coreutils, with "mv A B", where A is on a tmpfs file system and B
29011         is on a ufs file system.  This caused coreutils' mv/part-symlink
29012         test to fail.
29013
29014         tests: set fail=0 at start
29015         * tests/init.sh (setup_): Move fail=0 initialization here ...
29016         (mktempd_): ... from here, so that tests can rely on fail being
29017         set to 0 initially.  This fixes a problem in coreutils; see:
29018         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
29019
29020 2010-12-18  Bruno Haible  <bruno@clisp.org>
29021
29022         memmem-simple: Stylistic changes.
29023         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
29024         Fix preprocessor directive indentation.
29025
29026 2010-12-15  Pádraig Brady <P@draigBrady.com>
29027
29028         memmem, memmem-simple: reorganize and expand empty needle check
29029         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
29030         functional checks to memmem-simple so that one has a fully functional
29031         memmem by using just this module.
29032         Restrict the performance only check to the memmem module.
29033         Also expand the empty needle check to ensure the correct
29034         pointer is returned, not just a non NULL pointer.
29035         * doc/glibc-functions/memmem.texi: Rearrange the portability
29036         documentation to correlate with the rearranged checks.
29037         Clarify exactly how the memmem and memmem-simple modules
29038         relate to each other.
29039
29040 2010-12-15  Pádraig Brady <P@draigBrady.com>
29041             Bruno Haible  <bruno@clisp.org>
29042
29043         Improve cross-compilation guesses for uClibc.
29044         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
29045         that uClibc does not have the glibc bug.
29046         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
29047         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
29048
29049 2010-12-14  Eric Blake  <eblake@redhat.com>
29050
29051         configmake: provide fallbacks for oldest supported autotools
29052         * m4/configmake.m4: New file.
29053         * modules/configmake (Files): Ship it.
29054         (configure.ac): Use it to guarantee fallbacks.
29055
29056 2010-12-13  Pádraig Brady <P@draigBrady.com>
29057
29058         read-file: Improve handling of large files
29059         * lib/read-file.c (fread_file): Minimize realloc()s
29060         for regular files, and better manage sizes around SIZE_MAX.
29061
29062 2010-12-13  Eric Blake  <eblake@redhat.com>
29063
29064         cloexec, fcntl: relax license
29065         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
29066         consent from all contributors.
29067         * modules/fcntl (License): Likewise.
29068
29069 2010-12-10  Bruno Haible  <bruno@clisp.org>
29070
29071         Tests for module 'pipe-posix'.
29072         * modules/pipe-posix-tests: New file.
29073         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
29074
29075 2010-12-10  Bruno Haible  <bruno@clisp.org>
29076
29077         pipe-posix: Make it work in C++ mode.
29078         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
29079         (pipe): Use common idiom, not a macro definition.
29080         * lib/pipe.c: New file.
29081         * m4/pipe.m4: New file.
29082         * modules/pipe-posix (Description): Enhance.
29083         (Files): Add lib/pipe.c, m4/pipe.m4.
29084         (configure.ac): Invoke gl_FUNC_PIPE.
29085         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
29086         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
29087         * tests/test-unistd-c++.cc: Check the signature of pipe.
29088
29089 2010-12-10  Bruno Haible  <bruno@clisp.org>
29090
29091         Rename module 'pipe' to 'spawn-pipe'.
29092         * modules/spawn-pipe: New file, renamed from modules/pipe.
29093         (Files, configure.ac, Makefile.am): Update.
29094         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
29095         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
29096         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
29097         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
29098         "spawn-pipe.h" instead of "pipe.h".
29099         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
29100         to gl_SPAWN_PIPE.
29101         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
29102         (Files, Makefile.am): Update.
29103         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
29104         Update.
29105         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
29106         Include "spawn-pipe.h" instead of "pipe.h".
29107         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
29108         * lib/javacomp.c: Likewise.
29109         * lib/javaversion.c: Likewise.
29110         * lib/pipe-filter-gi.c: Likewise.
29111         * lib/pipe-filter-ii.c: Likewise.
29112         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
29113         * modules/javacomp (Depends-on): Likewise.
29114         * modules/javaversion (Depends-on): Likewise.
29115         * modules/pipe-filter-gi (Depends-on): Likewise.
29116         * modules/pipe-filter-ii (Depends-on): Likewise.
29117         * MODULES.html.sh (Executing programs): Update.
29118         * NEWS: Mention the change.
29119
29120 2010-12-10  Eric Blake  <eblake@redhat.com>
29121
29122         pipe-posix: new module
29123         * modules/pipe-posix: New file.
29124         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
29125         (gl_UNISTD_H): Check for declaration.
29126         * modules/unistd (Makefile.am): Substitute it.
29127         * lib/unistd.in.h (pipe): Provide it for mingw.
29128         * doc/posix-functions/pipe.texi (pipe): Update documentation.
29129         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
29130
29131 2010-12-07  Bruno Haible  <bruno@clisp.org>
29132
29133         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
29134         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
29135         u8_strcmp_gnu.
29136         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
29137
29138 2010-12-06  Bruno Haible  <bruno@clisp.org>
29139
29140         Update internal documentation.
29141         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
29142
29143 2010-12-04  Bruno Haible  <bruno@clisp.org>
29144
29145         Put more information about failed tests into the test return codes.
29146         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
29147         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
29148         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
29149         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
29150         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
29151         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
29152         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
29153         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
29154         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
29155         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
29156         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
29157         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
29158         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
29159         * m4/stdint.m4 (gl_STDINT_H): Likewise.
29160         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
29161         returns a bit mask.
29162         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
29163         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
29164         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
29165         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
29166         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
29167         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
29168         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
29169         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
29170         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
29171         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
29172         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
29173         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
29174         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
29175         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
29176         * m4/link.m4 (gl_FUNC_LINK): Likewise.
29177         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
29178         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
29179         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
29180         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
29181         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
29182         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
29183         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
29184         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
29185         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
29186         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
29187         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
29188         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
29189         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
29190         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
29191         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
29192         gl_PRINTF_PRECISION): Likewise.
29193         * m4/regex.m4 (gl_REGEX): Likewise.
29194         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
29195         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
29196         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
29197         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
29198         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
29199         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
29200         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
29201         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
29202         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
29203         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
29204         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
29205         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
29206         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
29207         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
29208         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
29209         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
29210         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
29211         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
29212         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
29213         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
29214         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
29215         enumerated value.
29216         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
29217
29218 2010-12-04  Bruno Haible  <bruno@clisp.org>
29219
29220         Update for Solaris 11 2010-11.
29221         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
29222         Express, released in November 2010.
29223
29224 2010-12-04  Bruno Haible  <bruno@clisp.org>
29225
29226         nproc: Relax license.
29227         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
29228         and Paul Eggert.
29229         Requested by Ludovic Courtès <ludo@gnu.org>.
29230
29231 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
29232
29233         utimecmp: fine-grained src to nearby coarse-grained dest
29234
29235         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
29236         and the source is on a file system with higher-resolution time
29237         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
29238         not work, and the time stamps are close together, the algorithm to
29239         determine the exact resolution from the read-back mtime was buggy:
29240         it had a "!=" where it should have had an "==".  This bug has been
29241         in the code ever since it was introduced to gnulib.
29242         Problem reported by Dan Jacobson in
29243         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
29244
29245 2010-11-30  Bruno Haible  <bruno@clisp.org>
29246
29247         strerror_r-posix: Fix autoconf test.
29248         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
29249
29250 2010-11-28  Bruno Haible  <bruno@clisp.org>
29251             Paul Eggert  <eggert@cs.ucla.edu>
29252
29253         Tests for module 'getdomainname'.
29254         * modules/getdomainname-tests: New file.
29255         * tests/test-getdomainname.c: New file, based on
29256         tests/test-gethostname.c.
29257
29258 2010-11-28  Bruno Haible  <bruno@clisp.org>
29259             Paul Eggert  <eggert@cs.ucla.edu>
29260
29261         getdomainname: Use the system function when possible.
29262         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
29263         (getdomainname): Replace if needed. Provide the declaration if it is
29264         missing. Don't use _GL_CXXALIAS_SYS_CAST.
29265         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
29266         (getdomainname): When the system has getdomainname, call the system
29267         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
29268         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
29269         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
29270         found in libnsl. Look for the declaration also in <netdb.h>. Replace
29271         the function if its second argument is of type 'int' or if it is found
29272         in libnsl.
29273         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
29274         <sys/systeminfo.h> and sysinfo().
29275         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
29276         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
29277         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
29278         HAVE_GETDOMAINNAME.
29279         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
29280         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
29281         * doc/glibc-functions/getdomainname.texi: Document the problems with
29282         the getdomainname declaration.
29283
29284 2010-11-28  Bruno Haible  <bruno@clisp.org>
29285
29286         sys_socket: Ensure ss_family field on AIX.
29287         * lib/sys_socket.in.h (ss_family): New macro definition.
29288         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
29289         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
29290         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
29291         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
29292         * modules/sys_socket (Makefile.am): Substitute
29293         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
29294         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
29295
29296 2010-11-27  Bruno Haible  <bruno@clisp.org>
29297
29298         readline: Improve configure output.
29299         * m4/readline.m4 (gl_FUNC_READLINE): Make the
29300         "checking for readline..." result understandable.
29301
29302 2010-11-27  Bruno Haible  <bruno@clisp.org>
29303
29304         *printf-posix: Detect a bug on Solaris 10/x86.
29305         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
29306         for floating-point output.
29307         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
29308         directive.
29309         * tests/test-snprintf-posix.h (test_function): Likewise.
29310         * tests/test-sprintf-posix.h (test_function): Likewise.
29311         * tests/test-vasprintf-posix.c (test_function): Likewise.
29312         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
29313         * doc/posix-functions/printf.texi: Likewise.
29314         * doc/posix-functions/snprintf.texi: Likewise.
29315         * doc/posix-functions/sprintf.texi: Likewise.
29316         * doc/posix-functions/vfprintf.texi: Likewise.
29317         * doc/posix-functions/vprintf.texi: Likewise.
29318         * doc/posix-functions/vsnprintf.texi: Likewise.
29319         * doc/posix-functions/vsprintf.texi: Likewise.
29320         * doc/glibc-functions/obstack_printf.texi: Likewise.
29321         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
29322
29323 2010-11-27  Bruno Haible  <bruno@clisp.org>
29324
29325         Fix link error when module libunistring-optional is in use.
29326         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
29327         * modules/striconveha-tests (Makefile.am): Likewise.
29328
29329 2010-11-27  Bruno Haible  <bruno@clisp.org>
29330
29331         regex: Mention link dependencies.
29332         * modules/regex (Link): New section.
29333         * modules/rpmatch (Link): Likewise.
29334         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
29335
29336 2010-11-27  Bruno Haible  <bruno@clisp.org>
29337
29338         ftoastr: Fix compilation error on Solaris.
29339         * lib/ftoastr.c: Include <config.h>.
29340
29341 2010-11-27  Bruno Haible  <bruno@clisp.org>
29342
29343         getloadavg: Update documentation.
29344         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
29345
29346 2010-11-27  Bruno Haible  <bruno@clisp.org>
29347
29348         sys_socket: Fix test whether the functions are declared.
29349         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
29350         not <sys/select.h>.
29351
29352 2010-11-27  Bruno Haible  <bruno@clisp.org>
29353
29354         getpass: Make sure to get system declaration on some platforms.
29355         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
29356         gl_USE_SYSTEM_EXTENSIONS.
29357         * modules/getpass (Depends-on): Add extensions.
29358
29359 2010-11-26  Bruno Haible  <bruno@clisp.org>
29360
29361         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
29362         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
29363         'iconv' module is present.
29364         (ICONV_CONST): New macro.
29365         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
29366         ICONV_CONST.
29367         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
29368         set ICONV_CONST.
29369         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
29370         here.
29371         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
29372         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
29373         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
29374         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
29375         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
29376         present.
29377
29378 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
29379
29380         ftoastr: comment fix
29381         * lib/ftoastr.c: "little" -> "little or no" in comment
29382
29383 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
29384
29385         stdint: port to GCC 4.3 + OSX + Octave
29386         On this platform, stdint.h is buggy and defines int64_t to long
29387         long int.  The replacement defined it to long int, causing
29388         problems with C++ style name mangling.  Instead, trust the system
29389         definition if INT64_MAX is defined, and likewise for the unsigned
29390         variant.   Problem reported by Jarno Rajahalme in
29391         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
29392         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
29393         and don't mess with int64_t and INT64_MAX in this case.
29394         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
29395
29396 2010-11-24  Bruno Haible  <bruno@clisp.org>
29397
29398         doc: Corrections regarding MacOS X 10.4 and 10.5.
29399         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
29400         MacOS X.
29401         Reported by Simon Josefsson.
29402
29403 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
29404
29405         Uninstall ".bin" files installed by relocwrapper.
29406         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
29407         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
29408         unless it is already there.
29409
29410 2010-11-21  Bruno Haible  <bruno@clisp.org>
29411
29412         Update for NetBSD 5.0.
29413         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
29414         NetBSD; the test fails on NetBSD 5.0.
29415         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
29416         about NetBSD.
29417
29418 2010-11-21  Bruno Haible  <bruno@clisp.org>
29419
29420         Update for HP-UX 11.23 and HP-UX 11.31.
29421         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
29422         HP-UX.
29423
29424 2010-11-21  Bruno Haible  <bruno@clisp.org>
29425
29426         Update for MacOS X 10.5.
29427         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
29428         MacOS X; the test fails on MacOS X 10.5.8.
29429         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
29430         about MacOS X.
29431
29432 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
29433
29434         bootstrap: add bootstrap_sync option.
29435         See discussion at
29436         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
29437         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
29438         * build-aux/bootstrap: Accept --bootstrap-sync to update
29439         bootstrap if it is not identical to the local gnulib's
29440         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
29441         enable this by default.  Accept --no-bootstrap-sync to disable
29442         it.
29443
29444 2010-11-20  Bruno Haible  <bruno@clisp.org>
29445
29446         Ensure that <features.h> is included before __GLIBC__ is tested.
29447         * lib/printf-parse.h: Include <features.h>.
29448         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
29449         Reported by Mike Frysinger <vapier@gentoo.org>.
29450
29451         Ensure that <features.h> is included before __GLIBC__ is tested.
29452         * lib/wchar.in.h: Include <features.h>.
29453         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
29454         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
29455         Reported by Mike Frysinger <vapier@gentoo.org>.
29456
29457         Ensure that <features.h> is included before __GLIBC__ is tested.
29458         * lib/arpa_inet.in.h: Include <features.h>.
29459         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
29460         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
29461         Reported by Mike Frysinger <vapier@gentoo.org>.
29462
29463         Ensure that <features.h> is included before __GLIBC__ is tested.
29464         * build-aux/link-warning.h: Include <features.h>.
29465         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
29466         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
29467         Reported by Mike Frysinger <vapier@gentoo.org>.
29468
29469         Ensure that <features.h> is included before __GLIBC__ is tested.
29470         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
29471         Reported by Mike Frysinger <vapier@gentoo.org>.
29472
29473 2010-11-20  Bruno Haible  <bruno@clisp.org>
29474
29475         memmem: Fix autoconf test.
29476         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
29477
29478 2010-11-20  Bruno Haible  <bruno@clisp.org>
29479
29480         Port to uClibc.
29481         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
29482         * lib/fcntl.in.h: Likewise.
29483         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
29484         * lib/mbrtowc.c (mbrtowc): Likewise.
29485         * lib/relocatable.c (find_shared_library_fullname): Likewise.
29486         * lib/strerror_r.c: Likewise.
29487         * lib/unistr/u8-strnlen.c: Likewise.
29488         * lib/vasnprintf.c (decimal_point_char): Likewise.
29489         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
29490         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
29491         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
29492         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
29493         * tests/test-sigaction.c (handler, main): Likewise.
29494         * lib/freading.h: Treat uClibc like a non-glibc platform.
29495         * lib/freading.c: Likewise.
29496         * lib/gettext.h: Likewise.
29497         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
29498         Likewise.
29499         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
29500         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
29501         * lib/propername.c (proper_name_utf8): Likewise.
29502         * lib/spawn.in.h: Likewise.
29503         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
29504         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
29505         mem_cd_iconveh_internal): Likewise.
29506         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
29507         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
29508         strstr, strcasestr): Likewise.
29509         * lib/unicodeio.c (unicode_to_mb): Likewise.
29510         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
29511         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
29512         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
29513         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
29514         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
29515         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
29516         * lib/unistr/u8-stpncpy.c: Likewise.
29517         * lib/vasnprintf.c (VASNPRINTF): Likewise.
29518         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
29519         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
29520         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
29521         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
29522         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
29523         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
29524         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
29525         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
29526         Likewise.
29527         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
29528         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
29529         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
29530         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29531         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
29532         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
29533         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
29534         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
29535         * tests/test-getopt.h (OPTIND_MIN): Likewise.
29536         * tests/test-striconveha.c (main): Likewise.
29537         * tests/test-vasnprintf-posix.c (test_function): Likewise.
29538         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
29539         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
29540         * doc/posix-functions/getline.texi: Likewise.
29541         Reported by Mike Frysinger <vapier@gentoo.org>.
29542
29543 2010-11-20  Bruno Haible  <bruno@clisp.org>
29544
29545         nproc: Fix condition.
29546         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
29547         HAVE_PTHREAD_AFFINITY_NP.
29548
29549 2010-11-20  Bruno Haible  <bruno@clisp.org>
29550
29551         Fix a comment.
29552         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
29553
29554 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
29555
29556         ftoastr: don't assume snprintf
29557         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
29558         Implement a subset of snprintf here, by using sprintf safely.
29559         * modules/ftoastr (Depends-on): Remove snprintf.
29560
29561 2010-11-19  Jim Meyering  <meyering@redhat.com>
29562
29563         test-rename.h: fix compilation failure
29564         * tests/test-rename.h (test_rename): Add omitted "}".
29565
29566 2010-11-17  Jim Meyering  <meyering@redhat.com>
29567
29568         maint.mk: add a URL discussing the no-@acronym policy
29569         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
29570
29571 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
29572
29573         ftoastr: depend on snprintf, improve comments
29574         * lib/ftoastr.c: Also mention Loitsch's draft.
29575         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
29576         needed in the current implementation, but it might simplify
29577         speeding up the code later.
29578         * modules/ftoastr: Depend on snprintf; this improves portability.
29579         Suggested by Bruno Haible in the same email.
29580
29581         ftoastr: port to hosts lacking strtof and strtold
29582         Problem reported by Bruno Haible in
29583         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
29584         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
29585         environment and strtold (and presumably strtof) are not available.
29586         * modules/ftoastr (Files): Add m4/c-strtod.m4.
29587         (configure.ac): Require gl_C99_STRTOLD.
29588
29589 2010-11-18  Bruno Haible  <bruno@clisp.org>
29590
29591         c-strtold: Avoid link error on AIX 7.
29592         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
29593         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
29594         (gl_C_STRTOLD): Test whether strtold_l exists.
29595         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
29596
29597 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
29598
29599         intprops: new macro INT_BITS_STRLEN_BOUND
29600         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
29601         ftoastr.h.  This exposes an internal of intprops.h that was formerly
29602         not exposed.  Also, it uses a slightly tighter bound than before;
29603         though this makes no practical difference, we might as well be as
29604         tight as we easily can.
29605
29606         ftoastr: new module, for lossless conversion of floats to short strings
29607         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
29608         * modules/ftoastr: New files.
29609
29610 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
29611
29612         bootstrap: port to Solaris sed
29613         * build-aux/bootstrap (get_version): Port to Solaris sed.
29614         See Ralf Wildenhues's note in
29615         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
29616
29617 2010-11-14  Jim Meyering  <meyering@redhat.com>
29618
29619         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
29620         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
29621         and move definition closer to sole use.
29622
29623 2010-11-13  Jim Meyering  <meyering@redhat.com>
29624
29625         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
29626         Now we require at least autoconf-2.59, which means the work-around
29627         is no longer needed.
29628         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
29629         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
29630         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
29631         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
29632         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
29633
29634 2010-11-13  Bruno Haible  <bruno@clisp.org>
29635
29636         rename, renameat: Avoid test failures at NFS mounted locations.
29637         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
29638         functions.
29639         (test_rename): Use assert_nonexistent.
29640         * tests/test-rename.c: Include <dirent.h>.
29641         * tests/test-renameat.c: Likewise.
29642         Reported by Gary V. Vaughan <gary@gnu.org>.
29643
29644         rename, renameat: Document Linux bug with NFS
29645         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
29646         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
29647         * doc/posix-functions/renameat.texi: Likewise.
29648         Suggested by Eric Blake.
29649
29650 2010-11-13  Bruno Haible  <bruno@clisp.org>
29651
29652         rename test: Add comments.
29653         * tests/test-rename.h (test_rename): Add structure and comments.
29654
29655 2010-11-13  Eric Blake  <eblake@redhat.com>
29656
29657         maintainer-makefile: cover a few more files
29658         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
29659         scripts generated within C files, for libvirt.
29660
29661 2010-11-13  Bruno Haible  <bruno@clisp.org>
29662
29663         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
29664         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
29665         character, return the number of bytes that belong together, not always
29666         1.
29667         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
29668         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
29669         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
29670         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
29671         number of bytes of an invalid character.
29672         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
29673         (main): Invoke it.
29674         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
29675         results.
29676         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
29677         malformed byte sequences.
29678         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
29679         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
29680         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
29681         Reported by Ben Pfaff and Paolo Bonzini.
29682
29683 2010-11-13  Bruno Haible  <bruno@clisp.org>
29684
29685         openat: Work around glibc bug with fchownat() and empty file names.
29686         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
29687         (gl_FUNC_FCHOWNAT): Invoke it.
29688         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
29689         * doc/posix-functions/fchownat.texi: Document the glibc bug.
29690         Reported by Gary V. Vaughan <gary@gnu.org>.
29691
29692 2010-11-13  Bruno Haible  <bruno@clisp.org>
29693
29694         openat: Ensure autoconf macro ordering.
29695         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
29696         gl_USE_SYSTEM_EXTENSIONS.
29697         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
29698
29699 2010-11-13  Bruno Haible  <bruno@clisp.org>
29700
29701         Update comments.
29702         * lib/unistr/u8-check.c: Update file name in comments.
29703         * lib/unistr/u8-mblen.c: Likewise.
29704         * lib/unistr/u8-prev.c: Likewise.
29705         * lib/unistr/u8-strmblen.c: Likewise.
29706         * lib/unistr/u8-strmbtouc.c: Likewise.
29707
29708 2010-11-13  Jim Meyering  <meyering@redhat.com>
29709
29710         tests: avoid test failure on Solaris 10 due to lack of PATH export
29711         * tests/test-update-copyright.sh: Don't forget to export PATH.
29712
29713         init.sh: ensure that IFS is defined, just in case...
29714         * tests/init.sh (setup_): Ensure that IFS is defined,
29715         so that saving and restoring it works as expected.  This
29716         appears to be useful at least for an old version of dash
29717         from a long time ago (RH 6).  See here for details:
29718         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
29719
29720         maint.mk: tighten "test a == b" check
29721         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
29722         test to files that contain something like #!/bin/sh.
29723         Without this, coreutils would get two false positives in
29724         the comments of C source files.
29725
29726 2010-11-12  Eric Blake  <eblake@redhat.com>
29727
29728         bootstrap: fix typo in previous attempt
29729         * build-aux/bootstrap (buildreq): Correct the grouping.
29730         Reported by Paul Eggert.
29731
29732         maintainer-makefile: prohibit test x == x
29733         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
29734         Based on a report by Matthias Bolte.
29735
29736         bootstrap: allow FreeBSD gzip
29737         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
29738         which has no '.' and goes to stderr.
29739         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
29740         Reported by Matthias Bolte.
29741
29742         maintainer-makefile: check for i18n setup
29743         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
29744         will likely work.
29745
29746 2010-11-12  Bruno Haible  <bruno@clisp.org>
29747
29748         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
29749         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
29750         * lib/nanosleep.c (nanosleep): Likewise.
29751
29752 2010-11-11  Bruno Haible  <bruno@clisp.org>
29753
29754         fcntl-h: Fix for use of C++ on glibc systems.
29755         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
29756         also on glibc systems in C++ mode.
29757         Reported by Gary V. Vaughan <gary@gnu.org>.
29758
29759 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
29760
29761         mknod: avoid false failure with dash
29762         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
29763
29764 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
29765
29766         unlink: Fix "is it should" typo in diagnostic.
29767         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
29768         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
29769
29770 2010-11-11  Bruno Haible  <bruno@clisp.org>
29771
29772         Tests for module 'strerror_r-posix'.
29773         * modules/strerror_r-posix-tests: New file.
29774         * tests/test-strerror_r.c: New file.
29775         * tests/test-string-c++.cc: Check the signature of strerror_r.
29776
29777         New module 'strerror_r-posix'.
29778         * lib/string.in.h (strerror_r): New declaration.
29779         * lib/strerror_r.c: New file.
29780         * m4/strerror_r.m4: New file.
29781         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
29782         of strerror_r.
29783         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
29784         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
29785         * modules/strerror_r-posix: New file.
29786         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
29787         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
29788         * doc/posix-functions/strerror_r.texi: Mention the new module and the
29789         portability problems.
29790
29791 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
29792
29793         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
29794         line is also considered for output. Quoted function name in shell
29795         command, so temporary files for functions like MyClass::operator()
29796         are removed correctly without errors.
29797
29798 2010-11-09  Bruno Haible  <bruno@clisp.org>
29799
29800         * doc/posix-functions/strerror.texi: List more failing platforms.
29801
29802         * doc/posix-functions/strerror.texi: Add a comment.
29803
29804 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
29805
29806         fdopendir: fix bug on MacOS X when low on file descriptors
29807
29808         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
29809         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
29810         All callers changed.
29811         (fdopendir): Invoke save_cwd at the top level, not after using
29812         multiple dup() calls to use up file descriptors.  Then retry
29813         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
29814         less than the maximum number of open file descriptors, because
29815         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
29816         on Mac OS X 10.6.4 for tar 1.24
29817         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
29818         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
29819         and for tar 1.25
29820         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
29821
29822 2010-11-07  Bruno Haible  <bruno@clisp.org>
29823
29824         vasnprintf: Support I flag on glibc systems.
29825         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
29826         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
29827         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
29828         snprintf function.
29829         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
29830         glibc systems.
29831         * tests/test-vasnprintf-posix3.c: New file.
29832         * modules/vasnprintf-posix-tests (Files): Add it.
29833         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
29834
29835 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
29836
29837         [html] Fix copy/paste bug: Use unique name for compiler warnings.
29838         * MODULES.html.sh: For compiler warnings, use name
29839         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
29840
29841 2010-11-05  Eric Blake  <eblake@redhat.com>
29842
29843         ceil, floor: avoid spurious failure with icc
29844         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
29845         [denormals-as-zero] when optimizing without -mieee-fp option.
29846         * tests/test-floorf2.c (floorf_reference): Likewise.
29847         * tests/test-ceilf1.c (dummy): New function.
29848         (main): Use it to outsmart icc's optimization.
29849         * tests/test-floorf1.c (dummy, main): Likewise.
29850
29851         tests: require working signbit
29852         * modules/ceilf-tests (Depends-on): Add signbit.
29853         * modules/ceill-tests (Depends-on): Likewise.
29854         * modules/floorf-tests (Depends-on): Likewise.
29855         * modules/floorl-tests (Depends-on): Likewise.
29856         * modules/round-tests (Depends-on): Likewise.
29857         * modules/roundf-tests (Depends-on): Likewise.
29858         * modules/roundl-tests (Depends-on): Likewise.
29859         * modules/trunc-tests (Depends-on): Likewise.
29860         * modules/truncf-tests (Depends-on): Likewise.
29861         * modules/truncl-tests (Depends-on): Likewise.
29862
29863         strtod: work around icc bug
29864         * lib/strtod.c (minus_zero): Define to working value.
29865         (strtod): Use it to avoid icc bug.
29866
29867         copysign: enhance tests
29868         * modules/copysign-tests (Files): Add minus-zero.h.
29869         * tests/test-copysign.c (main): Also test zeros.
29870
29871 2010-11-04  Eric Blake  <eblake@redhat.com>
29872
29873         ceil, floor, round, trunc: enhance tests of -0
29874         * tests/test-ceilf1.c (main): Ensure correct sign of result.
29875         * tests/test-ceill.c (main): Likewise.
29876         * tests/test-floorf1.c (main): Likewise.
29877         * tests/test-floorl.c (main): Likewise.
29878         * tests/test-round1.c (main): Likewise.
29879         * tests/test-roundf1.c (main): Likewise.
29880         * tests/test-roundl.c (main): Likewise.
29881         * tests/test-trunc1.c (main): Likewise.
29882         * tests/test-truncf1.c (main): Likewise.
29883         * tests/test-truncl.c (main): Likewise.
29884
29885 2010-11-04  Eric Blake  <eblake@redhat.com>
29886
29887         frexp, tests: work around ICC bug with -zero
29888         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
29889         works with more compilers.
29890         * tests/minus-zero.h: New file.
29891         * modules/ceilf-tests (Files): Include it.
29892         * modules/ceill-tests (Files): Likewise.
29893         * modules/floorf-tests (Files): Likewise.
29894         * modules/floorl-tests (Files): Likewise.
29895         * modules/frexp-nolibm-tests (Files): Likewise.
29896         * modules/frexp-tests (Files): Likewise.
29897         * modules/frexpl-nolibm-tests (Files): Likewise.
29898         * modules/frexpl-tests (Files): Likewise.
29899         * modules/isnan-tests (Files): Likewise.
29900         * modules/isnand-nolibm-tests (Files): Likewise.
29901         * modules/isnand-tests (Files): Likewise.
29902         * modules/isnanf-nolibm-tests (Files): Likewise.
29903         * modules/isnanf-tests (Files): Likewise.
29904         * modules/isnanl-nolibm-tests (Files): Likewise.
29905         * modules/isnanl-tests (Files): Likewise.
29906         * modules/round-tests (Files): Likewise.
29907         * modules/roundf-tests (Files): Likewise.
29908         * modules/roundl-tests (Files): Likewise.
29909         * modules/ldexpl-tests (Files): Likewise.
29910         * modules/signbit-tests (Files): Likewise.
29911         * modules/snprintf-posix-tests (Files): Likewise.
29912         * modules/sprintf-posix-tests (Files): Likewise.
29913         * modules/strtod-tests (Files): Likewise.
29914         * modules/trunc-tests (Files): Likewise.
29915         * modules/truncf-tests (Files): Likewise.
29916         * modules/truncl-tests (Files): Likewise.
29917         * modules/vsnprintf-posix-tests (Files): Likewise.
29918         * modules/vsprintf-posix-tests (Files): Likewise.
29919         * modules/vasnprintf-posix-tests (Files): Likewise.
29920         * modules/vasprintf-posix-tests (Files): Likewise.
29921         * tests/test-ceilf1.c (main): Use it.
29922         * tests/test-ceill.c (main): Likewise.
29923         * tests/test-floorf1.c (main): Likewise.
29924         * tests/test-floorl.c (main): Likewise.
29925         * tests/test-frexp.c (main): Likewise.
29926         * tests/test-frexpl.c (main): Likewise.
29927         * tests/test-isnan.c (main): Likewise.
29928         * tests/test-isnand.h (main): Likewise.
29929         * tests/test-isnanf.h (main): Likewise.
29930         * tests/test-isnanl.h (main): Likewise.
29931         * tests/test-ldexpl.c (main): Likewise.
29932         * tests/test-round.c (main): Likewise.
29933         * tests/test-roundf.c (main): Likewise.
29934         * tests/test-roundl.c (main): Likewise.
29935         * tests/test-signbit.c (test_signbitf, test_signbitd)
29936         (test_signbitl): Likewise.
29937         * tests/test-snprintf-posix.h (test_function): Likewise.
29938         * tests/test-sprintf-posix.h (test_function): Likewise.
29939         * tests/test-strtod.c (main): Likewise.
29940         * tests/test-trunc1.c (main): Likewise.
29941         * tests/test-truncf1.c (main): Likewise.
29942         * tests/test-truncl.c (main): Likewise.
29943
29944         isnanl: work around icc bug
29945         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
29946
29947 2010-11-03  Eric Blake  <eblake@redhat.com>
29948
29949         tests: fix compiler warnings
29950         * tests/test-getopt.h (test_getopt): Fix condition.
29951         * tests/test-getopt_long.h (test_getopt_long): Likewise.
29952         * tests/test-pipe2.c (main): Likewise.
29953         * tests/test-quotearg-simple.c (main): Avoid icc warning.
29954
29955         utimens: fix broken m4 test
29956         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
29957
29958 2010-10-28  Bruno Haible  <bruno@clisp.org>
29959
29960         posix_spawn*, getdtablesize: Relax license.
29961         * modules/posix_spawn (License): Change to LGPLv2+.
29962         * modules/posix_spawnp (License): Likewise.
29963         * modules/posix_spawn-internal (License): Likewise.
29964         * modules/posix_spawnattr_init (License): Likewise.
29965         * modules/posix_spawnattr_getflags (License): Likewise.
29966         * modules/posix_spawnattr_setflags (License): Likewise.
29967         * modules/posix_spawnattr_getpgroup (License): Likewise.
29968         * modules/posix_spawnattr_setpgroup (License): Likewise.
29969         * modules/posix_spawnattr_getschedparam (License): Likewise.
29970         * modules/posix_spawnattr_setschedparam (License): Likewise.
29971         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
29972         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
29973         * modules/posix_spawnattr_getsigdefault (License): Likewise.
29974         * modules/posix_spawnattr_setsigdefault (License): Likewise.
29975         * modules/posix_spawnattr_getsigmask (License): Likewise.
29976         * modules/posix_spawnattr_setsigmask (License): Likewise.
29977         * modules/posix_spawnattr_destroy (License): Likewise.
29978         * modules/posix_spawn_file_actions_init (License): Likewise.
29979         * modules/posix_spawn_file_actions_addclose (License): Likewise.
29980         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
29981         * modules/posix_spawn_file_actions_addopen (License): Likewise.
29982         * modules/posix_spawn_file_actions_destroy (License): Likewise.
29983         * modules/getdtablesize (License): Likewise.
29984         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
29985
29986 2010-10-26  Bruno Haible  <bruno@clisp.org>
29987
29988         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
29989         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
29990         Cygwin and mingw.
29991         Suggested by Eric Blake.
29992
29993 2010-10-26  Bruno Haible  <bruno@clisp.org>
29994
29995         stdio: Work around compilation error due to renameat() on Solaris 10.
29996         * lib/stdio.in.h: Include <unistd.h> on Solaris.
29997         * lib/renameat.c: Don't include <unistd.h> here.
29998         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
29999         Reported by Paul Eggert and Eric Blake.
30000
30001 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
30002
30003         renameat: port to Solaris 10, which declares renameat in unistd.h
30004
30005         * lib/renameat.c: Include unistd.h before stdio.h, because
30006         Solaris 10 declares renameat in unistd.h.  Problem encountered
30007         when building GNU tar 1.24 on Solaris 10.
30008
30009 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
30010
30011         fdopendir: fix C89 compilation
30012         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
30013         compilers.
30014
30015 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
30016
30017         inttostr: simplify by removing unnecessary redundancy
30018         * lib/anytostr.c: Don't include verify.h.
30019         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
30020         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
30021         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
30022         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
30023         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
30024         Likewise.
30025         * modules/inttostr (Depends-on): Remove 'verify'.
30026
30027 2010-10-23  Bruno Haible  <bruno@clisp.org>
30028
30029         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
30030         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
30031         Reported by Eric Blake.
30032
30033 2010-10-23  Bruno Haible  <bruno@clisp.org>
30034
30035         Tests: Fix LOCALE_JA on MirBSD 10.
30036         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
30037         to an UTF-8 locale.
30038         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
30039         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
30040         Reported by Eric Blake.
30041
30042 2010-10-21  Bruno Haible  <bruno@clisp.org>
30043
30044         nl_langinfo test: Avoid test failure on NetBSD 5.
30045         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
30046         Reported by Eric Blake.
30047
30048 2010-10-21  Eric Blake  <eblake@redhat.com>
30049
30050         c-stack: work around libsigsegv 2.8 bug
30051         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
30052         overflow on at least PowerPC64.
30053
30054 2010-10-17  Bruno Haible  <bruno@clisp.org>
30055
30056         userspec: Drop redundant file.
30057         * modules/userspec (Files): Remove lib/inttostr.h.
30058
30059 2010-10-17  Bruno Haible  <bruno@clisp.org>
30060
30061         nl_langinfo tests: Silence some warnings.
30062         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
30063         Reported by Jim Meyering.
30064
30065 2010-10-17  Bruno Haible  <bruno@clisp.org>
30066
30067         Make use of GCC's attribute __alloc_size__.
30068         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
30069         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
30070         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
30071         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
30072         __alloc_size__.
30073         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
30074         Suggested by Jim Meyering.
30075
30076 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
30077
30078         bootstrap: anchor .gitignore entries.
30079         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
30080         with...
30081         (insert_vc_ignore): ... this new function, which prepends `/' to
30082         all .gitignore entries before passing them to
30083         insert_sorted_if_absent.
30084
30085 2010-10-16  Bruno Haible  <bruno@clisp.org>
30086
30087         nextafter: Fix configure check.
30088         * modules/nextafter (configure.ac): Correct expected prototype.
30089
30090 2010-10-16  Bruno Haible  <bruno@clisp.org>
30091
30092         termios: Update documentation.
30093         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
30094
30095 2010-10-16  Bruno Haible  <bruno@clisp.org>
30096
30097         tests: Make them compile with TinyCC.
30098         * tests/test-strstr.c (main): Remove parentheses around array
30099         initializer.
30100
30101 2010-10-15  Eric Blake  <eblake@redhat.com>
30102
30103         ignore-value: make header idempotent
30104         * lib/ignore-value.h: Add double-inclusion guards.
30105         Reported by Stefan Berger.
30106
30107 2010-10-15  Jim Meyering  <meyering@redhat.com>
30108
30109         GNUmakefile: handle "stable" target, not "major"
30110         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
30111         lists in maint.mk and announce-gen.  Without this, "make stable"
30112         would fail to ensure that $(VERSION) is up to date.
30113
30114 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
30115
30116         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
30117         & co.
30118
30119 2010-10-14  Bruno Haible  <bruno@clisp.org>
30120
30121         vasnprintf: Don't set errno to 0.
30122         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
30123         block that sets it to 0.
30124         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
30125
30126 2010-10-14  Bruno Haible  <bruno@clisp.org>
30127
30128         socketlib: Fix.
30129         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
30130         gl_PREREQ_SYS_H_WINSOCK2.
30131         Reported by Ian Beckwith <ianb@erislabs.net>.
30132
30133 2010-10-13  Jim Meyering  <meyering@redhat.com>
30134
30135         test-select-stdin.c: avoid warn_unused_result warnings
30136         * tests/test-select-stdin.c: Include "macros.h".
30137         ASSERT that read and fflush succeed.
30138
30139 2010-10-13  Jim Meyering  <meyering@redhat.com>
30140
30141         git-version-gen: do require git-VC'd files in cwd
30142         * build-aux/git-version-gen: Reject a git version string
30143         if there are no commits associated with the current directory.
30144         This avoids an unlikely false-positive (unrelated dir whose parent
30145         repository also contains a tag matching v*), as pointed out
30146         by Giuseppe Scrivano in
30147         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
30148
30149 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
30150
30151         argv-iter: omit nonconforming declaration
30152         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
30153         enum arg_iter_err declaration, which doesn't conform to C99.
30154         Solaris 10 cc warns about this.
30155
30156 2010-10-13  Eric Blake  <eblake@redhat.com>
30157
30158         termios: fix compilation on mingw
30159         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
30160         (gl_TERMIOS_H): Adjust it on mingw.
30161         * modules/termios (Makefile.am): Substitute new key.
30162         * lib/termios.in.h (includes): Make include_next conditional.
30163         * doc/posix-headers/termios.texi (termios.h): Update
30164         documentation.
30165         Reported by Daniel P. Berrange.
30166
30167 2010-10-13  Jim Meyering  <meyering@redhat.com>
30168
30169         git-version-gen: don't require that .git/ be in the current dir
30170         * build-aux/git-version-gen: Adjust this script so that it works
30171         when run from any working directory beneath the top-level .git/-
30172         containing directory.  Inspired by a patch from Giuseppe Scrivano,
30173         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
30174
30175         test-select: avoid warn_unused_result warnings
30176         * tests/test-select.c: Include "macros.h".
30177         ASSERT that each call to read, write, and pipe succeeds.
30178         While not technically required, also check each "close".
30179         * modules/select-tests (Files): Add tests/macros.h.
30180
30181         test-symlinkat: remove declaration of unused local
30182         * tests/test-symlinkat.c (main): Remove unused local, "buf".
30183
30184         test-inttostr: avoid shadowing warnings
30185         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
30186         and use malloc rather than the stack for the same reason as
30187         mentioned in the comment justifying the other allocation.
30188
30189 2010-10-11  Bruno Haible  <bruno@clisp.org>
30190
30191         stdlib: Allow multiple gnulib generated replacements to coexist.
30192         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
30193         Reported by Sam Steingold <sds@gnu.org>.
30194
30195 2010-10-11  Jim Meyering  <meyering@redhat.com>
30196
30197         fix a documentation typo
30198         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
30199
30200 2010-10-11  Eric Blake  <eblake@redhat.com>
30201
30202         futimens: work around Solaris 11 bug
30203         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
30204         * tests/test-futimens.h (test_futimens): Enhance, rather than
30205         weaken test.
30206         * doc/posix-functions/futimens.texi (futimens): Document the bug.
30207
30208 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
30209
30210         Indentation.
30211         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
30212         higher-level operators more to the left.
30213
30214 2010-10-11  Jim Meyering  <meyering@redhat.com>
30215
30216         test-futimens: avoid unwarranted test failure on Solaris 5.11
30217         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
30218         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
30219         because it tries to dereference the NULL name argument.
30220
30221 2010-10-11  Bruno Haible  <bruno@clisp.org>
30222
30223         Indentation.
30224         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
30225         indentation.
30226
30227 2010-10-11  Jim Meyering  <meyering@redhat.com>
30228
30229         spawn.in.h: make indentation consistent with parentheses
30230         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
30231         Make indentation consistent with parentheses.
30232
30233 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
30234
30235         Fix mismatched parens in previous commit
30236         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
30237         parens.
30238
30239 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
30240
30241         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
30242
30243         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
30244         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
30245         * lib/malloca.c: Include "verify.h".
30246         (verify1): Remove, replacing with a verify call.
30247         * lib/relocwrapper.c (verify1): Likewise.
30248         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
30249         Likewise.
30250         * modules/malloca (Depends-on): Add 'verify'.
30251         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
30252         * modules/vasnprintf (Depends-on): Add 'verify'.
30253         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
30254         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
30255         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
30256         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
30257         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
30258         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
30259         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
30260
30261         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
30262
30263         Formerly the style was sometimes 2*X - 1, because the C standard
30264         was wrongly thought to disallow ?: in integral constant expressions.
30265         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
30266         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
30267         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
30268         * lib/stdint.in.h (_verify_intmax_size): Likewise.
30269         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
30270         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
30271         verify that time_t cannot be floating.
30272
30273 2010-10-08  Eric Blake  <eblake@redhat.com>
30274
30275         time: enforce recent POSIX ruling that time_t is integral
30276         * lib/time.in.h (__time_t_must_be_integral): Detect any
30277         problematic systems, allowing the rest of gnulib to assume POSIX.
30278
30279 2010-10-08  Jim Meyering  <meyering@redhat.com>
30280
30281         fdopendir: fix a bug on systems lacking openat and /proc support
30282         OpenBSD 4.7 is one such system.  The most noticeable effect was
30283         failure of any application making nontrivial use of fts: rm, du,
30284         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
30285           ./rm: traversal failed: `a': Bad file descriptor
30286         Debugging that, you see that even though FD 6 was closed just
30287         prior to the opendir call in fd_clone_opendir, its resulting
30288         dir->dd_fd was 8, rather than the expected value of 6:
30289
30290         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
30291         93                close (fd);
30292         (gdb) n
30293         94                dir = fd_clone_opendir (dupfd);
30294         (gdb) n
30295         95                saved_errno = errno;
30296         (gdb) p dir->dd_fd
30297         $11 = 8
30298
30299         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
30300         The problem is that on OpenBSD, fd_clone_opendir has to resort
30301         to using the old-style save/restore CWD mechanism, due to its
30302         lack of openat/proc support, and *that* would steal the FD (6)
30303         that opendir was supposed to use.
30304
30305         The fix is to squirrel away the desired FD so that save_cwd uses a
30306         different one, and then free the dest FD right before calling opendir.
30307         That guarantees opendir will use the required file descriptor.
30308
30309         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
30310
30311 2010-10-08  Bruno Haible  <bruno@clisp.org>
30312
30313         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
30314         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
30315
30316 2010-10-08  Bruno Haible  <bruno@clisp.org>
30317
30318         nanosleep: Make replacement POSIX compliant.
30319         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
30320         is out of range.
30321         Reported by Jim Meyering.
30322
30323 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
30324
30325         bootstrap: add hook for altering gnulib.mk, for Bison
30326         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
30327         the Bison bootstrapping process can rewrite file names and variables
30328         in this file before later parts of 'bootstrap' use the file.
30329         Bison wants to include lib/gnulib.mk from the top-level makefile,
30330         so it needs the file names in this file to be relative to the top
30331         level, not relative to lib; plus it needs variable names to be
30332         rewritten.
30333         (slurp): Use the new function.
30334
30335         bootstrap: reformat for readability
30336         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
30337
30338 2010-10-08  Eric Blake  <eblake@redhat.com>
30339
30340         docs: update cygwin progress
30341         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
30342         1.7.7.
30343         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
30344         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
30345         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
30346         * doc/posix-functions/carg.texi (carg): Likewise.
30347         * doc/posix-functions/cargf.texi (cargf): Likewise.
30348         * doc/posix-functions/casin.texi (casin): Likewise.
30349         * doc/posix-functions/casinf.texi (casinf): Likewise.
30350         * doc/posix-functions/casinh.texi (casinh): Likewise.
30351         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
30352         * doc/posix-functions/catan.texi (catan): Likewise.
30353         * doc/posix-functions/catanf.texi (catanf): Likewise.
30354         * doc/posix-functions/catanh.texi (catanh): Likewise.
30355         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
30356         * doc/posix-functions/ccos.texi (ccos): Likewise.
30357         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
30358         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
30359         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
30360         * doc/posix-functions/cexp.texi (cexp): Likewise.
30361         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
30362         * doc/posix-functions/cimag.texi (cimag): Likewise.
30363         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
30364         * doc/posix-functions/clog.texi (clog): Likewise.
30365         * doc/posix-functions/clogf.texi (clogf): Likewise.
30366         * doc/posix-functions/conj.texi (conj): Likewise.
30367         * doc/posix-functions/conjf.texi (conjf): Likewise.
30368         * doc/posix-functions/cpow.texi (cpow): Likewise.
30369         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
30370         * doc/posix-functions/cproj.texi (cproj): Likewise.
30371         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
30372         * doc/posix-functions/creal.texi (creal): Likewise.
30373         * doc/posix-functions/crealf.texi (crealf): Likewise.
30374         * doc/posix-functions/csin.texi (csin): Likewise.
30375         * doc/posix-functions/csinf.texi (csinf): Likewise.
30376         * doc/posix-functions/csinh.texi (csinh): Likewise.
30377         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
30378         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
30379         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
30380         * doc/posix-functions/ctan.texi (ctan): Likewise.
30381         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
30382         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
30383         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
30384         * doc/posix-headers/complex.texi (complex.h): Likewise.
30385
30386 2010-10-07  Jim Meyering  <meyering@redhat.com>
30387
30388         parse-datetime: avoid compilation failure on OpenBSD 4.7
30389         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
30390         This works around a compilation failure on OpenBSD 4.7:
30391         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
30392
30393 2010-10-07  Eric Blake  <eblake@redhat.com>
30394
30395         docs: update cygwin progress
30396         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
30397         1.7.6.
30398         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
30399         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
30400         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
30401         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
30402         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
30403         Likewise.
30404         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
30405         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
30406         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
30407         Likewise.
30408         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
30409         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
30410         Likewise.
30411         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
30412         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
30413         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
30414         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
30415         Likewise.
30416         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
30417         Likewise.
30418         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
30419
30420         docs: update parse-datetime history
30421         * doc/parse-datetime.texi (Authors of parse_datetime): Better
30422         documentation of this function's history and alternatives.
30423
30424         cygwin: use more robust version check
30425         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
30426         exclude an eventual cygwin 1.9.1.
30427         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
30428         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
30429         (gl_FUNC_STRCASESTR): Likewise.
30430         Reported by Bruno Haible.
30431
30432 2010-10-06  Bruno Haible  <bruno@clisp.org>
30433
30434         string, sys_select: Avoid #including large headers unless necessary.
30435         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
30436         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
30437         OSF/1, BeOS, Haiku.
30438         Reported by Jim Meyering.
30439
30440 2010-10-05  Eric Blake  <eblake@redhat.com>
30441
30442         memmem, strstr, strcasestr: fix bug with long periodic needle
30443         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
30444         periodic needle having false positive.
30445         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
30446         and cygwin 1.7.7.
30447         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
30448         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
30449         (gl_FUNC_STRCASESTR): Likewise.
30450         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
30451         * tests/test-memmem.c (main): Expose the bug.
30452         * tests/test-strcasestr.c (main): Likewise.
30453         * tests/test-strstr.c (main): Likewise.
30454         * tests/test-c-strcasestr.c (main): Likewise.
30455         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
30456         * doc/posix-functions/strstr.texi (strstr): Likewise.
30457         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
30458         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
30459
30460 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
30461
30462         parse-datetime: do some more renaming
30463         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
30464         parse_datetime, not get_date.  Mention the renaming.
30465         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
30466         in comments.
30467         * m4/bison.m4: Likewise.
30468
30469 2010-10-05  Eric Blake  <eblake@redhat.com>
30470
30471         parse-datetime: better name than get_date
30472         * NEWS: Reword the deprecation notice.
30473         * modules/get_date: Rename to modules/parse-datetime.
30474         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
30475         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
30476         * lib/get_date.y: Rename to lib/parse-datetime.y.
30477         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
30478         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
30479         * doc/getdate.texi: Provide fallback wrapper.
30480         * lib/getdate.h: Move guts, and wrap...
30481         * lib/parse-datetime.h: ...new file.
30482         * lib/parse-datetime.y (get_date): Rename...
30483         (parse_datetime): ...to this.
30484         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
30485         (gl_PARSE_DATETIME): ...to this.
30486         * doc/posix-functions/getdate.texi (get_date): Provide fallback
30487         documentation.
30488         * modules/getdate (Files): Provide fallback docs and header.
30489         (Notice, Depends-on): Update references.
30490         * tests/test-parse-datetime.c: Likewise.
30491         * DEPENDENCIES: Likewise.
30492         * MODULES.html.sh (Date and time <time.h>): Likewise.
30493         * doc/parse-datetime.texi (Date input formats)
30494         (Authors of parse_datetime): Likewise.
30495         * modules/parse-datetime (Files, configure.ac, Makefile.am)
30496         (Include): Likewise.
30497         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
30498         * gnulib-tool: Likewise.
30499         * m4/bison.m4 (gl_BISON): Likewise.
30500         Suggested by Bruno Haible.
30501
30502 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
30503
30504         more ports to Solaris tr, which needs [] around ranges
30505         * gnulib-tool: Solaris tr needs [] around ranges.
30506         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
30507         * tests/test-pipe-filter-gi1.c (main): Likewise.
30508         * tests/test-pipe-filter-ii1.c (main): Likewise.
30509
30510 2010-10-05  Eric Blake  <eblake@redhat.com>
30511
30512         bootstrap: fix Solaris regression
30513         * build-aux/bootstrap (check_versions): Solaris tr still needs []
30514         around ranges.
30515         Reported by Pádraig Brady.
30516
30517         bootstrap: work with pkg-config
30518         * build-aux/bootstrap (check_versions): Also transliterate - in
30519         prerequisite name.
30520         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
30521         prerequisites that were already found, to avoid confusion.
30522         Reported by Justin Clift.
30523
30524         faccessat: remove unused wrappers
30525         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
30526         presence of these wrappers dragged in -lgen on Solaris.
30527         Reported by Clemens Brogi; fix suggested by Paul Eggert.
30528
30529 2010-10-05  Jim Meyering  <meyering@redhat.com>
30530
30531         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
30532         * Makefile (sc_pragma_columns): New syntax-check rule.
30533
30534 2010-10-04  Bruno Haible  <bruno@clisp.org>
30535
30536         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
30537         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
30538         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
30539         Reported by Bruce Korb and Eric Blake.
30540
30541 2010-10-04  Bruno Haible  <bruno@clisp.org>
30542
30543         threadlib: Make option --with-libpth-prefix work.
30544         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
30545         use $LIBPTH, not just -lpth.
30546
30547 2010-10-04  Bruno Haible  <bruno@clisp.org>
30548
30549         Avoid line length limitation from HP NonStop system header files.
30550         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
30551         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
30552         * lib/ctype.in.h: Likewise.
30553         * lib/dirent.in.h: Likewise.
30554         * lib/errno.in.h: Likewise.
30555         * lib/fcntl.in.h: Likewise.
30556         * lib/float.in.h: Likewise.
30557         * lib/getopt.in.h: Likewise.
30558         * lib/iconv.in.h: Likewise.
30559         * lib/inttypes.in.h: Likewise.
30560         * lib/langinfo.in.h: Likewise.
30561         * lib/locale.in.h: Likewise.
30562         * lib/math.in.h: Likewise.
30563         * lib/netdb.in.h: Likewise.
30564         * lib/netinet_in.in.h: Likewise.
30565         * lib/poll.in.h: Likewise.
30566         * lib/pthread.in.h: Likewise.
30567         * lib/pty.in.h: Likewise.
30568         * lib/sched.in.h: Likewise.
30569         * lib/se-selinux.in.h: Likewise.
30570         * lib/search.in.h: Likewise.
30571         * lib/signal.in.h: Likewise.
30572         * lib/spawn.in.h: Likewise.
30573         * lib/stdarg.in.h: Likewise.
30574         * lib/stddef.in.h: Likewise.
30575         * lib/stdint.in.h: Likewise.
30576         * lib/stdio.in.h: Likewise.
30577         * lib/stdlib.in.h: Likewise.
30578         * lib/string.in.h: Likewise.
30579         * lib/strings.in.h: Likewise.
30580         * lib/sys_file.in.h: Likewise.
30581         * lib/sys_ioctl.in.h: Likewise.
30582         * lib/sys_select.in.h: Likewise.
30583         * lib/sys_socket.in.h: Likewise.
30584         * lib/sys_stat.in.h: Likewise.
30585         * lib/sys_time.in.h: Likewise.
30586         * lib/sys_times.in.h: Likewise.
30587         * lib/sys_utsname.in.h: Likewise.
30588         * lib/sys_wait.in.h: Likewise.
30589         * lib/sysexits.in.h: Likewise.
30590         * lib/termios.in.h: Likewise.
30591         * lib/time.in.h: Likewise.
30592         * lib/unistd.in.h: Likewise.
30593         * lib/wchar.in.h: Likewise.
30594         * lib/wctype.in.h: Likewise.
30595         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
30596         * modules/ctype (Makefile.am): Likewise.
30597         * modules/dirent (Makefile.am): Likewise.
30598         * modules/errno (Makefile.am): Likewise.
30599         * modules/fcntl-h (Makefile.am): Likewise.
30600         * modules/float (Makefile.am): Likewise.
30601         * modules/getopt-posix (Makefile.am): Likewise.
30602         * modules/iconv-h (Makefile.am): Likewise.
30603         * modules/inttypes (Makefile.am): Likewise.
30604         * modules/langinfo (Makefile.am): Likewise.
30605         * modules/locale (Makefile.am): Likewise.
30606         * modules/math (Makefile.am): Likewise.
30607         * modules/netdb (Makefile.am): Likewise.
30608         * modules/netinet_in (Makefile.am): Likewise.
30609         * modules/poll-h (Makefile.am): Likewise.
30610         * modules/pthread (Makefile.am): Likewise.
30611         * modules/pty (Makefile.am): Likewise.
30612         * modules/sched (Makefile.am): Likewise.
30613         * modules/search (Makefile.am): Likewise.
30614         * modules/selinux-h (Makefile.am): Likewise.
30615         * modules/signal (Makefile.am): Likewise.
30616         * modules/spawn (Makefile.am): Likewise.
30617         * modules/stdarg (Makefile.am): Likewise.
30618         * modules/stddef (Makefile.am): Likewise.
30619         * modules/stdint (Makefile.am): Likewise.
30620         * modules/stdio (Makefile.am): Likewise.
30621         * modules/stdlib (Makefile.am): Likewise.
30622         * modules/string (Makefile.am): Likewise.
30623         * modules/strings (Makefile.am): Likewise.
30624         * modules/sys_file (Makefile.am): Likewise.
30625         * modules/sys_ioctl (Makefile.am): Likewise.
30626         * modules/sys_select (Makefile.am): Likewise.
30627         * modules/sys_socket (Makefile.am): Likewise.
30628         * modules/sys_stat (Makefile.am): Likewise.
30629         * modules/sys_time (Makefile.am): Likewise.
30630         * modules/sys_times (Makefile.am): Likewise.
30631         * modules/sys_utsname (Makefile.am): Likewise.
30632         * modules/sys_wait (Makefile.am): Likewise.
30633         * modules/sysexits (Makefile.am): Likewise.
30634         * modules/termios (Makefile.am): Likewise.
30635         * modules/time (Makefile.am): Likewise.
30636         * modules/unistd (Makefile.am): Likewise.
30637         * modules/wchar (Makefile.am): Likewise.
30638         * modules/wctype (Makefile.am): Likewise.
30639
30640 2010-10-04  Bruno Haible  <bruno@clisp.org>
30641
30642         read-file tests: Avoid a test failure on NonStop Kernel.
30643         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
30644         a regular file.
30645         Reported by Joachim Schmitz <schmitz@hp.com>.
30646
30647 2010-10-03  Bruno Haible  <bruno@clisp.org>
30648
30649         gnulib-tool: Fixes for --create-testdir with --libtool.
30650         * gnulib-tool (func_get_automake_snippet): Don't augment
30651         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
30652         an executable.
30653         (func_create_testdir): Handle module 'alloca' like func_import.
30654         Reported by Bruce Korb <bruce.korb@gmail.com>.
30655
30656 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
30657
30658         Avoid some lines longer than 80 characters.
30659         * lib/stdint.in.h: Break long comment lines.
30660         * lib/math.in.h: Likewise.
30661         (_GL_NUM_UINT_WORDS): New macro, for readability.
30662         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
30663         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
30664         * lib/stdlib.in.h: Likewise.
30665         * lib/spawn.in.h: Likewise.
30666         * lib/sys_socket.in.h: Update an URL.
30667         * lib/sys_stat.in.h: Break long line.
30668
30669 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
30670
30671         Improve pmccabe2html.
30672         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
30673         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
30674         when the sources change. Remove the line in the HTML about "Used
30675         ranges" (which implied that there might be other unused ranges),
30676         rename "Resume" to "Summary" (easier to understand for more users).
30677         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
30678         styles, and some unnecessary blank lines.
30679
30680 2010-10-03  Bruno Haible  <bruno@clisp.org>
30681             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
30682
30683         acl: Add support for ACLs on NonStop Kernel.
30684         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
30685         Check whether the function aclsort() exists.
30686         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
30687         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
30688         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
30689         (acl_nontrivial [HAVE_ACLSORT]: New function.
30690         (file_has_acl): Implement for NonStop Kernel.
30691         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
30692         (qset_acl): Implement for NonStop Kernel.
30693         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
30694         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
30695         (main): Implement for NonStop Kernel.
30696         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
30697         Kernel. Handle this flavor.
30698         * tests/test-set-mode-acl.sh: Likewise.
30699         * tests/test-copy-acl.sh: Likewise.
30700         * tests/test-copy-file.sh: Likewise.
30701
30702 2010-10-03  Bruno Haible  <bruno@clisp.org>
30703
30704         Info about ACLs on NonStop Kernel.
30705         * doc/acl-resources.txt: Add info about NonStop Kernel.
30706         References by Joachim Schmitz <schmitz@hp.com>.
30707
30708 2010-10-02  Bruno Haible  <bruno@clisp.org>
30709
30710         Define missing EDQUOT on NonStop Kernel.
30711         * lib/errno.in.h (EDQUOT): Assign a value if missing.
30712         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
30713         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
30714         missing.
30715         * doc/posix-headers/errno.texi: Mention the NSK bug.
30716         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
30717         Reported by Joachim Schmitz <schmitz@hp.com>.
30718
30719 2010-10-02  Bruno Haible  <bruno@clisp.org>
30720
30721         Update doc for POSIX:2008.
30722         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
30723         Update URL of POSIX specification.
30724
30725 2010-10-02  Bruno Haible  <bruno@clisp.org>
30726
30727         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
30728         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
30729         from gnulib, not from Automake.
30730
30731 2010-10-02  Bruno Haible  <bruno@clisp.org>
30732
30733         New module 'system-posix'.
30734         * modules/system-posix: New file.
30735         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
30736         module is present.
30737         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
30738         GNULIB_SYSTEM_POSIX.
30739         * modules/stdlib (Depends-on): Remove sys_wait.
30740         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
30741         * doc/posix-functions/system.texi: Mention the new module.
30742         * doc/posix-headers/stdlib.texi: Likewise.
30743         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
30744         define test_sys_wait_macros to a no-op.
30745         Reported by Sam Steingold <sds@gnu.org>.
30746
30747 2010-09-30  Bruno Haible  <bruno@clisp.org>
30748
30749         More renaming from 'getdate' to 'get_date'.
30750         * doc/get_date.texi: Renamed from doc/getdate.texi.
30751         * modules/get_date (Files): Update.
30752         * MODULES.html.sh (Date and time <time.h>): Update.
30753         * DEPENDENCIES: Update.
30754         * gnulib-tool: Update comment.
30755         * m4/bison.m4 (gl_BISON): Likewise.
30756         * m4/get_date.m4 (gl_GET_DATE): Likewise.
30757
30758 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
30759
30760         bootstrap: support ACLOCAL_FLAGS during aclocal
30761         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
30762         can add additional -I dir for third-party .m4 files.
30763
30764 2010-09-30  Eric Blake  <eblake@redhat.com>
30765
30766         bootstrap: use glibtoolize on MacOS
30767         * build-aux/bootstrap (check_versions): Convert libtool into
30768         libtoolize.
30769         (tool search): Move libtool check earlier, and look for
30770         glibtoolize for MacOS.
30771         (gnulib_tool_options): Auto-add --libtool when appropriate.
30772         Reported by Justin Clift.
30773
30774         poll: fix typo that broke test on MacOS
30775         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
30776         Reported by Justin Clift.
30777
30778         getdate: rename to get_date
30779         Note: getdate.h is not renamed, to minimize client impact.
30780         * modules/getdate: Mark obsolete.  Move old contents...
30781         * modules/get_date: ...to new module name.
30782         * modules/getdate-tests: Move...
30783         * modules/get_date-tests: ...here.
30784         * m4/getdate.m4: Move...
30785         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
30786         * lib/getdate.y: Move...
30787         * lib/get_date.y: ...here.
30788         * tests/test-getdate.c: Move...
30789         * tests/test-get_date.c: ...here.
30790         * doc/posix-functions/getdate.texi (getdate): Update name.
30791         * NEWS: Mention the change.
30792
30793 2010-09-29  Bruno Haible  <bruno@clisp.org>
30794
30795         Separate the module 'waitpid' from the module 'sys_wait'.
30796         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
30797         present.
30798         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
30799         gl_MODULE_INDICATOR_FOR_TESTS.
30800         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
30801         * modules/sys_wait (Depends-on): Remove waitpid.
30802         (Makefile.am): Substitute GNULIB_WAITPID.
30803         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
30804         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
30805         signature only if the 'waitpid' module is present.
30806         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
30807         * NEWS: Mention the change.
30808         * modules/grantpt (Depends-on): Add waitpid.
30809         * modules/wait-process (Depends-on): Likewise.
30810
30811 2010-09-29  Bruno Haible  <bruno@clisp.org>
30812
30813         More tests for module 'sys_wait'.
30814         * modules/sys_wait-c++-tests: New file.
30815         * tests/test-sys_wait-c++.cc: New file.
30816         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
30817         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
30818
30819 2010-09-29  Bruno Haible  <bruno@clisp.org>
30820
30821         New module 'waitpid'.
30822         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
30823         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
30824         Don't include <process.h>.
30825         (waitpid): Declare only, using modern idiom.
30826         * m4/waitpid.m4: New file.
30827         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
30828         * modules/waitpid: New file.
30829         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
30830         (Makefile.am): Update.
30831         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
30832
30833 2010-09-28  Bruno Haible  <bruno@clisp.org>
30834
30835         poll: Assume ANSI C.
30836         * lib/poll.c (poll): Use an ANSI C declaration.
30837
30838 2010-09-28  Bruno Haible  <bruno@clisp.org>
30839
30840         poll-h: Create poll.h on all platforms.
30841         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
30842         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
30843         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
30844         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
30845         (gl_REPLACE_POLL_H): Don't set POLL_H.
30846         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
30847         * modules/poll-h (Depends-on): Add include_next.
30848         (Makefile.am): Create poll.h unconditionally. Substitute also
30849         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
30850
30851 2010-09-28  Bruno Haible  <bruno@clisp.org>
30852
30853         Tests for module 'poll-h'.
30854         * modules/poll-h-c++-tests: New file.
30855         * tests/test-poll-h-c++.cc: New file.
30856
30857         Tests for module 'poll-h'.
30858         * modules/poll-h-tests: New file.
30859         * tests/test-poll-h.c: New file.
30860
30861 2010-09-28  Bruno Haible  <bruno@clisp.org>
30862
30863         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
30864         * modules/poll-h (Depends-on): Add 'extensions'.
30865
30866 2010-09-28  Bruno Haible  <bruno@clisp.org>
30867
30868         New module 'poll-h'.
30869         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
30870         (poll): Use modern idiom.
30871         * modules/poll-h: New file.
30872         * modules/poll (Files): Remove lib/poll.in.h.
30873         (Depends-on): Add poll-h.
30874         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
30875         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
30876         * m4/poll_h.m4: New file.
30877         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
30878         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
30879         and invoke gl_REPLACE_POLL_H.
30880         * lib/poll.c: Use common idiom.
30881         * tests/test-poll.c: Likewise.
30882         * doc/posix-headers/poll.texi: Mention the poll-h module.
30883         Suggested by Eric Blake.
30884
30885 2010-09-26  Bruno Haible  <bruno@clisp.org>
30886
30887         sys_wait: Implement WSTOPSIG.
30888         * lib/sys_wait.in.h (WSTOPSIG): New macro.
30889         Reported by Simon Josefsson.
30890
30891 2010-09-26  Simon Josefsson  <simon@josefsson.org>
30892
30893         stdlib, sys_wait: Avoid compilation error on mingw.
30894         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
30895
30896 2010-09-26  Bruno Haible  <bruno@clisp.org>
30897
30898         stdlib tests: Avoid code duplication.
30899         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
30900         * modules/sys_wait-tests (Files): Likewise.
30901         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
30902         * tests/test-stdlib.c: Include test-sys_wait.h.
30903         (main): Invoke test_sys_wait_macros.
30904         * tests/test-sys_wait.c: Include test-sys_wait.h.
30905         (main): Invoke test_sys_wait_macros.
30906
30907 2010-09-25  Simon Josefsson  <simon@josefsson.org>
30908
30909         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
30910         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
30911         sure Windows sockets are working before calling getaddrinfo.
30912         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
30913         * doc/gnulib.texi (Windows sockets): Fix typo.
30914
30915 2010-09-25  Bruno Haible  <bruno@clisp.org>
30916
30917         Tests for module 'regex-quote'.
30918         * modules/regex-quote-tests: New file.
30919         * tests/test-regex-quote.c: New file.
30920
30921         New module 'regex-quote'.
30922         * lib/regex-quote.h: New file.
30923         * lib/regex-quote.c: New file.
30924         * modules/regex-quote: New file.
30925         Suggested by Reuben Thomas <rrt@sc3d.org>.
30926
30927 2010-09-24  Bruno Haible  <bruno@clisp.org>
30928
30929         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
30930         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
30931
30932 2010-09-23  Bruno Haible  <bruno@clisp.org>
30933
30934         setenv: Relax license.
30935         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
30936         Blake.
30937         Requested by Eric Blake.
30938
30939 2010-09-22  Bruno Haible  <bruno@clisp.org>
30940
30941         termios: Relax license.
30942         * modules/termios (License): Change to LGPLv2+.
30943         Requested by Eric Blake.
30944
30945 2010-09-22  Bruno Haible  <bruno@clisp.org>
30946
30947         threadlib: Allow the package to change the default to 'no'.
30948         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
30949         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
30950         Reported by Paul Eggert.
30951
30952 2010-09-22  Pádraig Brady  <P@draigbrady.com>
30953             Bruno Haible  <bruno@clisp.org>
30954
30955         Fix endless loop in mbmemcasecoll.
30956         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
30957         byte.
30958         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
30959
30960 2010-09-22  Bruno Haible  <bruno@clisp.org>
30961
30962         Tests for module 'memcoll'.
30963         * modules/memcoll-tests: New file.
30964         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
30965
30966         memcoll, xmemcoll: Clarify size vs. length.
30967         * modules/memcoll.c (memcoll0): Clarify specification.
30968         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
30969         passed to collate_error.
30970
30971 2010-09-22  Bruno Haible  <bruno@clisp.org>
30972
30973         Tests for module 'memcasecmp'.
30974         * modules/memcasecmp-tests: New file.
30975         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
30976
30977 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
30978
30979         * lib/pthread.in.h: Add split double-inclusion guard, and include
30980         system <pthread.h> if there is one.  Use @@-style as in other
30981         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
30982         pthread.h doesn't.
30983         (pthread_mutexattr_destroy, pthread_mutexattr_init):
30984         (pthread_mutexattr_settype, pthread_mutex_trylock):
30985         New static inline functions, if there's no system <pthread.h>.
30986         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
30987         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
30988         Approximate with mutexes if the system lacks spinlocks, as in
30989         MacOS.
30990         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
30991         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
30992         @@-style.  Check for spinlocks separately.
30993         (gl_PTHREAD_DEFAULTS): New macro.
30994         * modules/pthread: Redo to use a more typical style for in.h files.
30995
30996 2010-09-21  Eric Blake  <eblake@redhat.com>
30997
30998         net_if: enhance tests
30999         * tests/test-net_if.c (main): Move signature checks earlier.
31000         Print failures to stderr.
31001         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
31002         Document the bug that we do not yet fix.
31003
31004 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
31005
31006         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
31007         about gnulib, not GSS.
31008
31009 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
31010
31011         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
31012         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
31013         for Emacs.
31014         * build-aux/pmccabe2html: Make Makefile.am example code more
31015         cut-and-paste friendly.
31016
31017 2010-09-21  Simon Josefsson  <simon@josefsson.org>
31018
31019         * tests/test-net_if.c: New file.
31020         * modules/net_if-tests: New file.
31021
31022 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
31023
31024         pthread: add pthread_spin_destroy
31025         * lib/pthread.in.h (pthread_spin_destroy): New function.
31026
31027 2010-09-19  Bruno Haible  <bruno@clisp.org>
31028
31029         gnulib-tool: Fix --help output.
31030         * gnulib-tool (func_usage): Fix help message.
31031         Reported by Reuben Thomas <rrt@sc3d.org>.
31032
31033 2010-09-18  Jim Meyering  <meyering@redhat.com>
31034
31035         maint.mk: avoid unexpanded \n in two diagnostics
31036         * top/maint.mk (sc_prohibit_always_true_header_tests):
31037         Don't use a literal \n in a halt=... assignment.  It would not be
31038         expanded, and the two \n bytes would appear in the diagnostic output
31039         rather than the desired newline.  Use halt=$$(printf ... instead.
31040         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
31041
31042 2010-09-18  Bruno Haible  <bruno@clisp.org>
31043
31044         netinet_in: Doc tweak.
31045         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
31046         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
31047
31048 2010-09-18  Jim Meyering  <meyering@redhat.com>
31049
31050         init.sh: correct an outdated comment
31051         * tests/init.sh (create_exe_shims_):  s/function/alias/
31052
31053         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
31054         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
31055         a file named "*.exe" is removed between the glob expansion and the
31056         processing of that oddly named file.
31057
31058 2010-09-17  Eric Blake  <eblake@redhat.com>
31059
31060         mirbsd: add some more support
31061         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
31062         in BSD family.
31063         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
31064         devices as OpenBSD.
31065         * m4/host-os.m4 (mirbsd): Add MirBSD.
31066
31067         tests: fix unportable assumption on sys/wait.h
31068         * tests/test-sys_wait.c (main): Relax test.
31069         * tests/test-stdlib.c (main): Likewise.
31070
31071         init.sh: accommodate directory with no .exes
31072         * tests/init.sh: Accomodate directory containing only scripts.
31073
31074         tests: avoid compiler warning
31075         * tests/test-stdlib.c (main): Use the variable.
31076
31077         fdutimens, fdutimensat: update signature, again
31078         * lib/utimens.h (gl_futimens): Delete, and move signature...
31079         (fdutimens): ...here.
31080         (fdutimensat): Rearrange signature.
31081         (lutimensat): Rename variable for clarity.
31082         * lib/fdutimensat.c (fdutimensat): Update signature.
31083         * lib/utimens.c (fdutimens): Likewise.
31084         (gl_futimens): Delete.
31085         (utimens, lutimens): Update callers.
31086         * lib/futimens.c (futimens): Likewise.
31087         * tests/test-fdutimensat.c: Likewise.
31088         * tests/test-utimens.c: Likewise.
31089         * tests/test-futimens.h: Update comment.
31090         * NEWS: Mention this.
31091         Suggested by Paul Eggert.
31092
31093 2010-09-17  Bruno Haible  <bruno@clisp.org>
31094
31095         Take over the maintenance of some older macros from Autoconf.
31096         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
31097         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
31098         GNU Autoconf.
31099         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
31100         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
31101
31102 2010-09-17  Eric Blake  <eblake@redhat.com>
31103
31104         fdutimensat: drop atflag validation
31105         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
31106         with valid fd, to close a race scenario where futimens is
31107         unsupported and FILE was replaced by a symlink.
31108         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
31109         accordingly.
31110         Suggested by Paul Eggert.
31111
31112 2010-09-16  Bruno Haible  <bruno@clisp.org>
31113
31114         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
31115         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
31116
31117 2010-09-16  Bruno Haible  <bruno@clisp.org>
31118
31119         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
31120         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
31121         login_tty exists.
31122         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
31123
31124 2010-09-16  Bruno Haible  <bruno@clisp.org>
31125
31126         login_tty: Make the replacement code work on BSD systems.
31127         * lib/login_tty.c: Include <sys/ioctl.h>.
31128         (login_tty): Use ioctl TIOCSCTTY when available.
31129         * modules/login_tty (Depends-on): Add sys_ioctl.
31130         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
31131
31132 2010-09-16  Bruno Haible  <bruno@clisp.org>
31133
31134         login_tty: Stricter unit test.
31135         * modules/login_tty-tests (Depends-on): Add tcgetsid.
31136         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
31137         and tcgetsid() after login_tty.
31138         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
31139
31140 2010-09-16  Bruno Haible  <bruno@clisp.org>
31141
31142         New module 'tcgetsid'.
31143         * lib/tcgetsid.c: New file.
31144         * m4/tcgetsid.m4: New file.
31145         * modules/tcgetsid: New file.
31146         * modules/termios (Depends-on): Add c++defs, warn-on-use.
31147         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
31148         GNULIB_TCGETSID, HAVE_TCGETSID.
31149         * lib/termios.in.h: Include <sys/types.h>.
31150         (tcgetsid): New declaration.
31151         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
31152         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
31153         * doc/posix-functions/tcgetsid.texi: Mention the new module.
31154         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
31155
31156 2010-09-16  Bruno Haible  <bruno@clisp.org>
31157
31158         Tests for module 'termios'.
31159         * modules/termios-c++-tests: New file.
31160         * modules/termios-tests: New file.
31161         * tests/test-termios-c++.cc: New file.
31162         * tests/test-termios.c: New file.
31163
31164         New module 'termios'.
31165         * modules/termios: New file.
31166         * lib/termios.in.h: New file.
31167         * m4/termios_h.m4: New file.
31168         * doc/posix-headers/termios.texi: Mention the new module.
31169
31170 2010-09-16  Eric Blake  <eblake@redhat.com>
31171
31172         fdutimensat: add an atflag parameter
31173         * lib/fdutimensat.c (fdutimensat): Add new parameter.
31174         * lib/utimens.h (fdutimensat): Update prototype.
31175         * tests/test-fdutimensat.c: Adjust test to match.
31176         * NEWS: Document the change.
31177         Suggested by Paul Eggert.
31178
31179 2010-09-16  Bruno Haible  <bruno@clisp.org>
31180
31181         Fix typos in comments.
31182         * lib/striconveh.h: Fix typo in comment.
31183         * lib/login_tty.c (login_tty): Likewise.
31184
31185 2010-09-15  Bruno Haible  <bruno@clisp.org>
31186
31187         stdlib: clarify MirBSD WEXITSTATUS bug
31188         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
31189         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
31190
31191 2010-09-15  Eric Blake  <eblake@redhat.com>
31192
31193         stdlib: work around MirBSD WEXITSTATUS bug
31194         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
31195         * modules/stdlib (Depends-on): Add sys_wait.
31196         * tests/test-sys_wait.c (main): Enhance test.
31197         * tests/test-stdlib.c (main): Likewise.
31198         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
31199
31200         docs: mention MacOS issue with WEXITSTATUS(constant)
31201         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
31202         issue.
31203         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
31204
31205         strnlen: add tests
31206         * modules/strnlen-tests: New file.
31207         * tests/test-strnlen.c: Likewise.
31208
31209 2010-09-14  Bruno Haible  <bruno@clisp.org>
31210
31211         unistr/base: Avoid link errors when module 'libunistring' is also used.
31212         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
31213         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
31214         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
31215         Declare also when HAVE_LIBUNISTRING is set.
31216         Reported by Pádraig Brady <P@draigbrady.com>.
31217
31218 2010-09-14  Eric Blake  <eblake@redhat.com>
31219
31220         test-rawmemchr: make more robust
31221         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
31222         (Depends-on, configure.ac): Add needed prerequisites to use it.
31223         * modules/memchr-tests (Files, Depends-on, configure.ac):
31224         Likewise, to avoid implicit reliance on memchr module prereqs.
31225         * tests/test-memchr.c (main): Ensure proper masking.
31226         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
31227         reads.
31228
31229         memchr: detect glibc Alpha bug
31230         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
31231         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
31232         Alpha.
31233         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
31234         * tests/test-memchr.c (main): Enhance test.
31235         Reported by Nelson H. F. Beebe.
31236
31237 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
31238
31239         fts, getcwd, glob: audit for dirfd returning -1
31240         * lib/fts.c (opendir): Remove #define; no longer used.
31241         (opendirat): New arg PDIR_FD.  All callers changed.
31242         (fts_build, _opendir2): Use new opendirat to avoid the need for
31243         dirfd, or for checking whether dirfd returns a negative value.
31244         Don't use opendir; always use openat followed by fdopendir.
31245         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
31246         it.
31247         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
31248         returns -1 here.
31249         * modules/fts (Depends-on): Remove dirfd.
31250         * modules/getcwd (Depends-on): Likewise.
31251
31252 2010-09-13  Eric Blake  <eblake@redhat.com>
31253
31254         float: fix broken MirBSD header
31255         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
31256         * doc/posix-headers/float.texi (float.h): Document it.
31257
31258 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
31259
31260         fts: use O_NOFOLLOW to avoid race condition when opening a directory
31261         * lib/fts.c (opendirat): New arg extra_flags.
31262         (__opendir2): Use it to avoid following symlinks when opening
31263         a directory, if symlinks are not supposed to be followed.  See
31264         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
31265
31266         fdopendir: preserve argument fd before returning
31267         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
31268         (fdopendir_with_dup, fd_clone_opendir): New static functions.
31269         (fdopendir): Use them, arranging for FD to be open to the same
31270         directory that it was when it started.  (It might be temporarily
31271         closed while fdopendir is running, so this not thread- or
31272         signal-safe.)  Be careful to do the right thing even when file
31273         descriptors are scarce and dup fails with errno == EMFILE.  See
31274         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
31275
31276 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
31277
31278         regex: Pass the system regex if its only problem is 32-bit regoff_t.
31279         * NEWS: Document change.
31280         * m4/regex.m4: Disable test for regoff_t size.
31281
31282 2010-09-13  Jim Meyering  <meyering@redhat.com>
31283
31284         fts: don't operate on an invalid file descriptor after failed dup
31285         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
31286         negative file descriptor.
31287
31288 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
31289
31290         savedir: add streamsavedir, deprecate fdsavedir
31291         * NEWS: Mention deprecation of fdsavedir.
31292         * lib/savedir.c (streamsavedir): New extern function, whose name
31293         ends in "savedir" to be consistent with the others.  This differs
31294         from savedirstream in that it doesn't close its argument.  The
31295         next version of GNU tar will use this instead of fdsavedir, to
31296         avoid some race conditions and conserve file descriptors.
31297         (savedirstream): Reimplement as a wrapper around streamsavedir.
31298         (fdsavedir): Add a comment deprecating this function.  As far as
31299         I know, only GNU tar used it, and GNU tar doesn't need it any more.
31300         * lib/savedir.h (streamsavedir): New decl.
31301         (fdsavedir): Add a comment deprecating this.
31302
31303 2010-09-10  Bruno Haible  <bruno@clisp.org>
31304
31305         langinfo: Fix last commit.
31306         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
31307         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
31308         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31309
31310 2010-09-10  Bruno Haible  <bruno@clisp.org>
31311
31312         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
31313         * lib/progreloc.c (O_EXEC): Define fallback.
31314
31315 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
31316
31317         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
31318         * NEWS: Document recent changes to fcntl-h.
31319         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
31320         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
31321         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
31322         Similarly for O_SEARCH; this last was already true, but not documented.
31323         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
31324         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
31325         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
31326         Likewise.
31327         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
31328         is zero, not whether it is defined.
31329         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
31330         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
31331         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
31332
31333 2010-09-10  Bruno Haible  <bruno@clisp.org>
31334
31335         langinfo, nl_langinfo: Fix for IRIX 5.3.
31336         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
31337         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
31338         HAVE_LANGINFO_YESEXPR.
31339         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
31340         HAVE_LANGINFO_YESEXPR.
31341         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
31342         HAVE_LANGINFO_T_FMT_AMPM is 0.
31343         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
31344         HAVE_LANGINFO_YESEXPR is 0.
31345         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
31346         NOEXPR.
31347         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
31348         * doc/posix-functions/nl_langinfo.texi: Likewise.
31349         Reported by Eric Blake.
31350
31351 2010-09-10  Bruno Haible  <bruno@clisp.org>
31352
31353         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
31354         * doc/glibc-functions/login_tty.texi: Mention the include file problem
31355         on FreeBSD 8.0 and OpenBSD 4.6.
31356         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
31357         * m4/pty_h.m4 (gl_PTY_H): Likewise.
31358         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
31359         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
31360         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
31361         ac_includes_default.
31362         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
31363
31364 2010-09-09  Eric Blake  <eblake@redhat.com>
31365
31366         strsignal: work around NetBSD bug
31367         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
31368         * lib/string.in.h (includes): Likewise.
31369         * doc/posix-functions/strsignal.texi (strsignal): Document the
31370         bug.
31371         Reported by Nelson H. F. Beebe.
31372
31373         gnulib-tool: work with NetBSD /bin/sh
31374         * gnulib-tool (func_cache_var, func_cache_lookup_module)
31375         (func_get_description, func_get_comment, func_get_status)
31376         (func_get_notice, func_get_applicability, func_get_filelist)
31377         (func_get_dependencies, func_get_autoconf_early_snippet)
31378         (func_get_autoconf_snippet, func_get_automake_snippet)
31379         (func_get_include_directive, func_get_link_directive)
31380         (func_get_license, func_get_maintainer, func_import): Avoid
31381         shell syntax errors from parsing syntax extensions.
31382
31383 2010-09-09  Bruno Haible  <bruno@clisp.org>
31384
31385         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
31386         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
31387         a reliable way to determine whether the 'alias' command works.
31388
31389 2010-09-08  Jim Meyering  <meyering@redhat.com>
31390
31391         init.sh: penalize a set-x-impaired shell; don't disqualify it
31392         * tests/init.sh: Too many shells corrupt application stderr when
31393         you set -x, so we can't afford to disqualify them, since at least
31394         on Irix-6.5, that would disqualify all bourne shells.
31395         Instead, use a two-pass approach.
31396         On the first pass, try to find a shell that meets the stricter
31397         condition that set -x does not corrupt stderr.
31398         If no shell meets the stricter condition, retest each candidate
31399         shell, but without that extra condition.  Finally, when
31400         VERBOSE=yes is requested and set -x might cause trouble, simply
31401         issue a warning and refrain from enabling debug output.
31402
31403 2010-09-08  Eric Blake  <eblake@redhat.com>
31404
31405         unsetenv: fix OpenBSD bug
31406         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
31407         * doc/posix-functions/unsetenv.texi (unsetenv): Update
31408         documentation.
31409         Reported by Jim Meyering.
31410
31411         strtod: work around IRIX 6.5 bug
31412         * lib/strtod.c (strtod): Reparse number on shorter string if
31413         exponent parse was invalid.
31414         * tests/test-strtod.c (main): Add check for "0x1p 2".
31415         Reported by Tom G. Christensen.
31416
31417         getopt: optimize previous patch
31418         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
31419         empty variable.  Speed up awk script.
31420         Reported by Paolo Bonzini.
31421
31422 2010-09-08  Jim Meyering  <meyering@redhat.com>
31423
31424         test.sh: disqualify shells for which set -x corrupts stderr
31425         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
31426         and OpenBSD 4.7.  They make it so with "set -x", environment settings
31427         appear in stderr output.  For example, this command:
31428             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
31429         prints "P=1" on those two systems:
31430
31431 2010-09-08  Bruno Haible  <bruno@clisp.org>
31432
31433         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
31434         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
31435         commands, because some shells ignore redirections when there is an
31436         error in the command lookup.
31437         Reported by Eric Blake.
31438
31439 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
31440
31441         * lib/regex.h: Fix a mention of `regex_compile' (should be
31442         `re_compile_pattern').
31443         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
31444         (re_set_registers): Correct name of parameter in comment.
31445
31446         * doc/regex.texi: Add documentation for missing syntax flags.
31447         Remove commented-out documentation of defunct syntax option
31448         RE_NO_EMPTY_ALTS.
31449         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
31450         Add documentation of re_set_registers.
31451         Document trick to re-use a pattern buffer by setting fastmap manually.
31452         Update documentation of struct re_pattern_buffer per public members.
31453         Uncomment documentation of equivalence class operators and
31454         collating symbol operators, since they are now implemented,
31455         Explain leftmost-longest matching in relation to alternatives.
31456         Tidy documentation of substring matching.
31457         Remove POSIX documentation, which is done better in
31458         glibc, and refer the reader there. Keep BSD API documentation, as
31459         that is not readily available elsewhere.
31460
31461 2010-09-07  Eric Blake  <eblake@redhat.com>
31462
31463         getopt: handle POSIXLY_CORRECT set but not exported
31464         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
31465         export state of POSIXLY_CORRECT, due to bash set -o posix.
31466         Reported by Dustin J. Mitchell.
31467
31468 2010-09-05  Bruno Haible  <bruno@clisp.org>
31469
31470         gnulib-tool: Highlight the changed options.
31471         * gnulib-tool (func_usage): Display the --import, --add-import,
31472         --remove-import explanations in bold font.
31473
31474 2010-09-06  Karl Berry  <karl@gnu.org>
31475
31476         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
31477
31478 2010-09-05  Bruno Haible  <bruno@clisp.org>
31479
31480         uniwidth/width: Update comment.
31481         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
31482         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
31483
31484 2010-09-05  Bruno Haible  <bruno@clisp.org>
31485
31486         isinf, isnan: Relax license.
31487         * modules/isinf (License): Change from GPL to LGPL, with consent from
31488         Ben Pfaff.
31489         * modules/isnan (License): Likewise.
31490         Requested by Ludovic Courtès.
31491
31492 2010-09-04  Bruno Haible  <bruno@clisp.org>
31493
31494         gnulib-tool: Help migration from --import to --add-import or --update.
31495         * gnulib-tool: Emit a verbose error message when --import is used
31496         without any module name.
31497
31498 2010-09-04  Bruno Haible  <bruno@clisp.org>
31499
31500         Update doc about gnulib-tool.
31501         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
31502         'gnulib-tool --update' in more detail.
31503         Reported by Eric Blake.
31504
31505 2010-09-04  Bruno Haible  <bruno@clisp.org>
31506
31507         gnulib-tool: Change --import. New options --add/remove-import.
31508         * gnulib-tool: New options --add-import, --remove-import.
31509         (func_usage): Document them.
31510         (have_associative): Define always.
31511         (func_import): In import mode, don't merge the specified settings with
31512         the cached settings. Implement remove-import mode.
31513         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
31514         Explain when to use them versus --import.
31515         (Simple update): Use --add-import instead of --import.
31516         * NEWS: Mention the change.
31517
31518 2010-09-04  Bruno Haible  <bruno@clisp.org>
31519
31520         * doc/gnulib-tool.texi (Initial import): Update paragraph about
31521         separate gnulib.mk.
31522
31523 2010-09-04  Bruno Haible  <bruno@clisp.org>
31524
31525         gnulib-tool: Don't talk about CVS any more.
31526         * gnulib-tool (func_usage, func_import): Write "version control"
31527         instead of CVS.
31528
31529 2010-09-04  Jim Meyering  <meyering@redhat.com>
31530
31531         maint.mk: avoid obscure sc_copyright_check failure in coreutils
31532         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
31533         false positives (whose names may be ill-chosen) when searching
31534         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
31535         would cause a false-positive.
31536
31537         avoid coreutils "make distcheck" failure
31538         Coreutils tests with an absolute build directory name that contains
31539         a space.  Not quoting this directory name caused a failure.
31540         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
31541         * tests/test-vc-list-files-cvs.sh: Likewise.
31542
31543 2010-09-04  Bruno Haible  <bruno@clisp.org>
31544
31545         gnulib-tool: Avoid error when run in a package without Makefile.am.
31546         * gnulib-tool: When collecting the m4dirs in a package that does not
31547         have a Makefile.am, eliminate those directories that contain no
31548         gnulib-cache.m4. Fix expression that counts these directories.
31549
31550 2010-09-04  Bruno Haible  <bruno@clisp.org>
31551
31552         update-copyright test: Improve output when perl is missing or too old.
31553         * tests/test-update-copyright.sh: Move test of Perl version down after
31554         the test whether Perl exists. Provide an explanation relating Perl's
31555         error message to Automake's SKIP: message.
31556
31557 2010-09-04  Bruno Haible  <bruno@clisp.org>
31558
31559         Don't augment PATH in TESTS_ENVIRONMENT.
31560         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
31561         set abs_aux_dir instead of augmenting PATH.
31562         * modules/vc-list-files-tests (Makefile.am): Likewise.
31563         * tests/test-update-copyright.sh: Augment PATH here.
31564         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
31565         path_prepend_.
31566         * tests/test-vc-list-files-git.sh: Likewise.
31567
31568 2010-09-04  Jim Meyering  <meyering@redhat.com>
31569
31570         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
31571         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
31572
31573 2010-09-04  Bruno Haible  <bruno@clisp.org>
31574
31575         strdup: Fix compilation error in C++ mode.
31576         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
31577         the macro.
31578
31579 2010-09-04  Bruno Haible  <bruno@clisp.org>
31580
31581         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
31582         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
31583         macro into a function.
31584         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
31585
31586 2010-09-04  Bruno Haible  <bruno@clisp.org>
31587
31588         Set PATH_SEPARATOR the same way autoconf does.
31589         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
31590         the value of PATH_SEPARATOR the same way autoconf-generated configure
31591         scripts do.
31592         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
31593         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
31594
31595 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
31596
31597         Set PATH_SEPARATOR the same way autoconf does.
31598         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
31599         the same way autoconf-generated configure scripts do.
31600         * posix-modules: Likewise.
31601
31602 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
31603
31604         hash: fix safe_hasher const typo
31605         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
31606         const; otherwise, there is a type error later.
31607
31608 2010-09-02  Jim Meyering  <meyering@redhat.com>
31609
31610         test-update-copyright.sh: require perl 5.8.0
31611         * tests/test-update-copyright.sh: Require 5.8.0,
31612         which Tom G. Christensen has confirmed is adequate,
31613         while 5.6.1 is not.
31614
31615 2010-09-02  Eric Blake  <eblake@redhat.com>
31616
31617         tests: init.sh improvements for re-exec'ing with zsh
31618         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
31619         -vx through shell re-exec.
31620         Reported by Tom G. Christensen.
31621
31622         wctype: fix typo in previous commit
31623         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
31624         Reported by Ludovic Courtès.
31625
31626 2010-09-02  Jim Meyering  <meyering@redhat.com>
31627
31628         test-update-copyright.sh: skip test if Perl is too old
31629         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
31630         Reported by Tom G. Christensen.
31631
31632 2010-09-02  Bruno Haible  <bruno@clisp.org>
31633
31634         wctype: Avoid compilation error on IRIX 6.5.30.
31635         * lib/wctype.in.h (iswblank): Declare with a replacement if
31636         REPLACE_ISWBLANK is set.
31637         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
31638         declared. Set REPLACE_ISWBLANK.
31639         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
31640         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
31641         * doc/posix-headers/wctype.texi: Likewise.
31642         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31643
31644 2010-09-01  Bruno Haible  <bruno@clisp.org>
31645
31646         New module 'socketlib'.
31647         * modules/socketlib: New file.
31648         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
31649         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
31650         * modules/sockets (Depends-on): Add socketlib.
31651         Suggested by Sam Steingold <sds@gnu.org>.
31652
31653 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
31654
31655         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
31656
31657         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
31658         when one needs search access to a directory but not read access.
31659         On systems where it is available, it works in some cases where
31660         O_RDONLY does not, namely on directories that are searchable but
31661         not readable, and which need only to be searchable.  If O_SEARCH
31662         is not available, fall back to the traditional method of using
31663         O_RDONLY.
31664
31665         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
31666         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
31667         when opening a directory that needs only to be searchable.
31668         * lib/chdir-safer.c (chdir_no_follow): Likewise.
31669         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
31670         * lib/openat-proc.c (openat_proc_name): Likewise.
31671         * lib/openat.c (openat_needs_fchdir): Likewise.
31672         * lib/save-cwd.c (save_cwd): Likewise.
31673         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
31674
31675 2010-08-28  Bruno Haible  <bruno@clisp.org>
31676
31677         New module 'host-cpu-c-abi'.
31678         * modules/host-cpu-c-abi: New file.
31679         * m4/host-cpu-c-abi.m4: New file, based on part of
31680         clisp/src/m4/general.m4.
31681         Requested by Sam Steingold <sds@gnu.org>.
31682
31683 2010-08-31  Eric Blake  <eblake@redhat.com>
31684         and Jim Meyering  <meyering@redhat.com>
31685
31686         hash: factor, and guard against misbehaving hasher function
31687         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
31688         of table->hasher's return value.  Also protect against a hash value
31689         so large that adding it to table->bucket results in a NULL pointer.
31690         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
31691         Use it in place of open-coded check-and-abort.
31692
31693 2010-08-30  Bruno Haible  <bruno@clisp.org>
31694
31695         hash: silence spurious clang warning
31696         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
31697         Reported by Eric Blake.
31698
31699 2010-08-30  Eric Blake  <eblake@redhat.com>
31700
31701         strstr, memmem, strcasestr: avoid leaked shell message
31702         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
31703         FreeBSD.
31704         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
31705         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
31706
31707         tests: silence clang warning
31708         * tests/test-malloca.c (do_allocation): Avoid dead store.
31709
31710 2010-08-29  Bruno Haible  <bruno@clisp.org>
31711
31712         gettext: Fix recent mistake.
31713         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
31714
31715 2010-08-29  Bruno Haible  <bruno@clisp.org>
31716
31717         selinux-h: Offer a --without-selinux option.
31718         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
31719         --without-selinux was specified, skip all tests and define
31720         HAVE_SELINUX_SELINUX_H to 0.
31721         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
31722         set LIB_SELINUX to empty.
31723         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
31724         gl_LIBSELINUX. If --without-selinux was specified, replace
31725         selinux/context.h.
31726         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
31727
31728 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31729             Bruno Haible  <bruno@clisp.org>
31730
31731         Make the module 'realloc-gnu' work again on AIX and OSF/1.
31732         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
31733         of HAVE_REALLOC.
31734         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
31735         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
31736         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
31737         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
31738
31739 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31740             Bruno Haible  <bruno@clisp.org>
31741
31742         Make the module 'calloc-gnu' work again on AIX and OSF/1.
31743         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
31744         HAVE_CALLOC.
31745         * lib/xmalloc.c: Update accordingly.
31746         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
31747         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
31748         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
31749
31750 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31751             Bruno Haible  <bruno@clisp.org>
31752
31753         Make the module 'malloc-gnu' work again on AIX and OSF/1.
31754         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
31755         HAVE_MALLOC.
31756         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
31757         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
31758         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
31759
31760 2010-08-29  Bruno Haible  <bruno@clisp.org>
31761
31762         Update modules list.
31763         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
31764         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
31765         (String handling <string.h>): Add astrxfrm.
31766         (File system functions): Add readlinkat.
31767
31768 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31769
31770         Tests for module 'realloc-gnu'.
31771         * modules/realloc-gnu-tests: New file.
31772         * tests/test-realloc-gnu.c: New file.
31773
31774         Tests for module 'calloc-gnu'.
31775         * modules/calloc-gnu-tests: New file.
31776         * tests/test-calloc-gnu.c: New file.
31777
31778         Tests for module 'malloc-gnu'.
31779         * modules/malloc-gnu-tests: New file.
31780         * tests/test-malloc-gnu.c: New file.
31781
31782 2010-08-28  Bruno Haible  <bruno@clisp.org>
31783
31784         Rename module 'realloc' -> 'realloc-gnu'.
31785         * modules/realloc-gnu: New file, copied from modules/realloc.
31786         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
31787         obsolete.
31788         * modules/mgetgroups (Depends-on): Update.
31789         * doc/posix-functions/realloc.texi: Update.
31790         * NEWS: Mention the change.
31791
31792         Rename module 'calloc' -> 'calloc-gnu'.
31793         * modules/calloc-gnu: New file, copied from modules/calloc.
31794         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
31795         obsolete.
31796         * doc/posix-functions/calloc.texi: Update.
31797         * NEWS: Mention the change.
31798
31799         Rename module 'malloc' -> 'malloc-gnu'.
31800         * modules/malloc-gnu: New file, copied from modules/malloc.
31801         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
31802         obsolete.
31803         * modules/argp (Depends-on): Update.
31804         * modules/regex (Depends-on): Update.
31805         * doc/posix-functions/malloc.texi: Update.
31806         * NEWS: Mention the change.
31807
31808 2010-08-28  Eric Blake  <eblake@redhat.com>
31809
31810         pread, pwrite: add missing dependency
31811         * modules/pread (Depends-on): Add extensions.
31812         * modules/pwrite (Depends-on): Likewise.
31813
31814 2010-08-28  Bruno Haible  <bruno@clisp.org>
31815
31816         unistr/u*-strchr: Fix tests dependencies.
31817         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
31818         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
31819         Reported by Ian Beckwith <ianb@erislabs.net>.
31820
31821 2010-08-28  Bruno Haible  <bruno@clisp.org>
31822
31823         read-file: Don't occupy too much unused memory.
31824         * lib/read-file.c (fread_file): Shrink the buffer at the end.
31825
31826 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
31827             Eric Blake  <eblake@redhat.com>
31828             Bruno Haible  <bruno@clisp.org>
31829
31830         read-file: Avoid memory reallocations with regular files.
31831         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
31832         (fread_file): With regular files, use the remaining length as the
31833         initial buffer size.  Check against overflow.
31834         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
31835         sys_stat.
31836
31837 2010-08-28  Bruno Haible  <bruno@clisp.org>
31838
31839         ftello: Relax license.
31840         * modules/ftello (License): Relax to LGPLv2+.
31841         Reported by Eric Blake.
31842
31843 2010-08-28  Bruno Haible  <bruno@clisp.org>
31844
31845         Avoid relocwrapper link errors due to gnulib replacement functions.
31846         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
31847         function.
31848         Reported by Ben Pfaff <blp@cs.stanford.edu>.
31849
31850 2010-08-28  Bruno Haible  <bruno@clisp.org>
31851
31852         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
31853         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
31854         defined.
31855         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
31856         Suggested by Eric Blake.
31857
31858 2010-08-28  Bruno Haible  <bruno@clisp.org>
31859
31860         sys_socket, netdb: Ensure socklen_t gets defined.
31861         * modules/sys_socket (Depends-on): Add socklen.
31862         * modules/netdb (Depends-on): Likewise.
31863         * modules/getaddrinfo (Depends-on): Remove socklen.
31864         * modules/getsockopt (Depends-on): Likewise.
31865         * modules/setsockopt (Depends-on): Likewise.
31866         * tests/test-sys_socket.c: Check that socklen_t is defined.
31867         * tests/test-netdb.c: Likewise.
31868         * m4/socklen.m4: Update comments.
31869         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31870
31871 2010-08-27  Eric Blake  <eblake@redhat.com>
31872
31873         login_tty: add missing dependency
31874         * modules/login_tty (Depends-on): Add pty.
31875
31876 2010-08-26  Eric Blake  <eblake@redhat.com>
31877
31878         lib-symbol-versions: fix m4 quoting
31879         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
31880         format for AC_LINK_IFELSE.
31881
31882         glob: fix compile test
31883         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
31884
31885         btowc: fix missing file
31886         * modules/btowc (Files): Also ship locale-fr.m4.
31887
31888         lseek: fix link test
31889         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
31890         AC_LINK_IFELSE.
31891
31892         include_next: silence autoconf 2.68 warning
31893         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
31894         AC_COMPILE_IFELSE as special.
31895         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
31896         autoconf < 2.68.
31897
31898         acl: fix compilation test
31899         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
31900         AC_COMPILE_IFELSE.
31901
31902 2010-08-26  Bruno Haible  <bruno@clisp.org>
31903
31904         Modernize AC_TRY_RUN invocations.
31905         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
31906         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
31907         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
31908         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
31909         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
31910         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
31911         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
31912         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
31913         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
31914         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
31915         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
31916         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
31917         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
31918         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
31919         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
31920         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
31921         gl_MBRLEN_NUL_RETVAL): Likewise.
31922         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
31923         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
31924         Likewise.
31925         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
31926         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
31927         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
31928         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
31929         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
31930         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
31931         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
31932         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
31933         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
31934         Likewise.
31935         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
31936         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
31937         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
31938         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
31939         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
31940         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
31941         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
31942         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
31943         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
31944         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
31945
31946 2010-08-26  Bruno Haible  <bruno@clisp.org>
31947
31948         Modernize AC_TRY_LINK invocations.
31949         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
31950         AC_TRY_LINK.
31951         * m4/argp.m4 (gl_ARGP): Likewise.
31952         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
31953         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
31954         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
31955         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
31956         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
31957         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
31958         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
31959         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
31960         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
31961         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
31962         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
31963         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
31964         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
31965         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
31966         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
31967         * m4/hostent.m4 (gl_HOSTENT): Likewise.
31968         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
31969         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
31970         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
31971         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
31972         Likewise.
31973         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
31974         Likewise.
31975         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
31976         Likewise.
31977         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
31978         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
31979         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
31980         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
31981         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
31982         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
31983         * m4/servent.m4 (gl_SERVENT): Likewise.
31984         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
31985         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
31986         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
31987         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
31988         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
31989         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
31990         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
31991         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
31992         * modules/tsearch-tests (configure.ac): Likewise.
31993
31994 2010-08-26  Bruno Haible  <bruno@clisp.org>
31995
31996         Modernize AC_TRY_COMPILE invocations.
31997         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
31998         AC_TRY_COMPILE.
31999         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
32000         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
32001         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
32002         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
32003         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
32004         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
32005         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
32006         * m4/lock.m4 (gl_LOCK): Likewise.
32007         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
32008         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
32009         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
32010         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
32011         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
32012         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
32013         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
32014         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
32015         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
32016         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
32017         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
32018         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
32019         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
32020         extraneous semicolon.
32021
32022 2010-08-26  Jim Meyering  <meyering@redhat.com>
32023
32024         stat-time: relax license LGPL
32025         * modules/stat-time (License): Change from GPL to LGPL,
32026         with consent from all contributors, for use in libguile.
32027         Requested by Ludovic Courtès.
32028
32029 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
32030
32031         poll: return immediately on POLLHUP.
32032         * lib/poll.c (poll): Always set timeout before wait_timeout is
32033         computed.
32034
32035 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32036
32037         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
32038         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
32039         rmdir ("dir/.//"), unlinkat.
32040
32041 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
32042
32043         stdbool: avoid spurious failure with modern xlc
32044         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
32045
32046 2010-08-24  Bruno Haible  <bruno@clisp.org>
32047
32048         getloadavg: simplify code
32049         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
32050         gl_have_func. Update comments.
32051
32052 2010-08-24  Eric Blake  <eblake@redhat.com>
32053
32054         getloadavg: don't define SVR4 on cygwin
32055         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
32056         only define SVR4 when -lkvm is required.
32057         Reported by Yaakov Selkowitz.
32058
32059 2010-08-24  Bruno Haible  <bruno@clisp.org>
32060
32061         priv-set: fix comment
32062         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
32063
32064 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
32065
32066         priv-set: fix comments
32067         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
32068         to match code, as suggested by David Bartley in:
32069         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
32070
32071 2010-08-23  Eric Blake  <eblake@redhat.com>
32072
32073         stdbool: avoid rejecting clang
32074         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
32075         * tests/test-stdbool.c: Enable more tests if using the system
32076         <stdbool.h> instead of the gnulib replacement.
32077         (main): Move xlc bug test to a runtime test for all compilers.
32078         Reported by Anders Kaseorg.
32079
32080         argz: fix shell quoting issue
32081         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
32082         Reported by Charles Wilson.
32083
32084 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
32085             Erik Faye-Lund <kusmabite@gmail.com>
32086
32087         poll, select: handle ERROR_BROKEN_PIPE.
32088         * lib/poll.c (win32_compute_revents): Return POLLHUP when
32089         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
32090         * lib/select.c (win32_compute_revents): Do not mark a pipe
32091         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
32092
32093 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
32094
32095         fts: allow compilation with C++
32096         * lib/fts_.h: Specify extern "C" linkage with C++.
32097
32098 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32099
32100         Fix gnulib-tool sed script de-commentation for AIX sed.
32101         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
32102         sed.
32103
32104 2010-08-17  Eric Blake  <eblake@redhat.com>
32105
32106         test-stddef: test for (some) offsetof bugs
32107         * tests/test-stddef.c: Enhance test to ensure correct type of
32108         offsetof.
32109         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
32110         that we are not fixing at this time.
32111
32112 2010-08-15  Bruno Haible  <bruno@clisp.org>
32113
32114         stpncpy: Allow stpncpy to be defined as a macro.
32115         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
32116         if it's already correctly declared.
32117         * lib/string.in.h (stpncpy): Undefine before redefining.
32118         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
32119
32120 2010-08-14  Bruno Haible  <bruno@clisp.org>
32121
32122         Rename module 'memxfrm' to 'amemxfrm'.
32123         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
32124         (amemxfrm): Renamed from memxfrm.
32125         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
32126         (amemxfrm): Renamed from memxfrm.
32127         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
32128         * NEWS: Mention the change.
32129         * MODULES.html.sh (String handling <string.h>): Update.
32130         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
32131         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
32132         * lib/unicase/u16-casexfrm.c: Likewise.
32133         * lib/unicase/u32-casexfrm.c: Likewise.
32134         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
32135         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
32136         * lib/uninorm/u16-normxfrm.c: Likewise.
32137         * lib/uninorm/u32-normxfrm.c: Likewise.
32138         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
32139         memxfrm.
32140         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
32141         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
32142         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
32143         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
32144         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
32145         Suggested by Paul Eggert.
32146
32147 2010-08-14  Bruno Haible  <bruno@clisp.org>
32148
32149         Tests for module 'astrxfrm'.
32150         * modules/astrxfrm-tests: New file.
32151         * tests/test-astrxfrm.c: New file.
32152
32153         New module 'astrxfrm'.
32154         * lib/astrxfrm.h: New file.
32155         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
32156         * modules/astrxfrm: New file.
32157
32158 2010-08-14  Reuben Thomas <rrt@sc3d.org>
32159
32160         regex: Tweak doc.
32161         * doc/regex.texi (Overview): Don't mention regex.c.
32162         (GNU Regular Expression Compiling): Likewise.
32163         (Match-end-of-line Operator): Mention 'not_eol'.
32164
32165 2010-08-14  Brian Gough  <bjg@gnu.org>
32166             Bruno Haible  <bruno@clisp.org>
32167
32168         git-merge-changelog: add doc relating to use with bzr and hg.
32169         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
32170
32171 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
32172
32173         pthread: fix pthread.h creation for srcdir != builddir
32174         * modules/pthread (Makefile.am): Fix the rule to work also in a
32175         non-srcdir build.
32176
32177 2010-08-13  Karl Berry  <karl@gnu.org>
32178
32179         * doc/regex.texi (Predefined Syntaxes): @smallexample.
32180         * doc/posix-*/*: force line break before @url of POSIX
32181         specifications.
32182         Suggested by Werner Lemberg.
32183
32184 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
32185
32186         strtod: fix const diagnostic
32187         * lib/strtod.c (strtod): Don't assign const char * to char *,
32188         as this elicits a warning from GCC when warnings are enabled.
32189
32190 2010-08-10  Pádraig Brady <P@draigbrady.com>
32191         and Eric Blake  <eblake@redhat.com>
32192
32193         copy-acl: ignore ENOTSUP on HP-UX
32194         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
32195         so that it is available for HP-UX.
32196         * lib/copy-acl.c (qcopy_acl): Use it.
32197         Reported by Patrick M. Callahan.
32198
32199 2010-08-10  Eric Blake  <eblake@redhat.com>
32200
32201         open, chown: relax license
32202         * modules/open (License): Change to LGPLv2+, with consent by all
32203         authors, for use in augeas.
32204         * modules/chown (License): Likewise.
32205         * modules/lchown (Likewise): Likewise.
32206         Requested by Adam Stokes.
32207
32208 2010-08-09  Karl Berry  <karl@gnu.org>
32209
32210         * build-aux/ar-lib: new file, import from Automake.
32211         * config/srclist.txt: autocheck for updates.
32212
32213 2010-08-09  Eric Blake  <eblake@redhat.com>
32214
32215         readlinkat: adjust client modules
32216         * modules/areadlinkat (Depends-on): Use readlinkat, not
32217         symlinkat.
32218         * modules/areadlinkat-with-size (Depends-on): Likewise.
32219
32220         mknod: be more vocal about danger of running tests as root
32221         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
32222         root, since that is just asking for problems.
32223         Suggested by Bruno Haible, based on a report by Rainer Tammer.
32224
32225         readlinkat: split into its own module
32226         * modules/symlinkat: Split readlinkat...
32227         * modules/readlinkat: ...into separate module.
32228         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
32229         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
32230         * lib/symlinkat.c (readlinkat): Move...
32231         * lib/readlinkat.c: ...into new file.
32232         * modules/symlinkat-tests: Split readlinkat test...
32233         * modules/readlinkat-tests: ...into separate module.
32234         * tests/test-symlinkat.c: Split...
32235         * tests/test-readlinkat.c: ...into new file.
32236         * NEWS: Document the split.
32237         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
32238         * lib/unistd.in.h (readlinkat): Likewise.
32239         Suggested by Bruno Haible.
32240
32241 2010-08-08  Bruno Haible  <bruno@clisp.org>
32242
32243         memxfrm: Speed up.
32244         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
32245         that usually only one call to strxfrm is necessary for each string
32246         part.
32247         Reported by Paul Eggert <eggert@cs.ucla.edu>.
32248
32249 2010-08-07  Karl Berry  <karl@gnu.org>
32250
32251         * doc/posix-headers/limits.texi,
32252         * doc/posix-functions/malloc.texi,
32253         * doc/posix-functions/strsignal.texi: missing @item.
32254         * doc/ld-version-script.texi: spurious leading i.
32255         * doc/regex.texi (Interval Operators): no commas inside @var.
32256
32257 2010-08-01  Bruno Haible  <bruno@clisp.org>
32258
32259         Integrate the regex documentation.
32260         * doc/gnulib.texi: Define 'cn' index.
32261         (Regular expressions): New a chapter that includes regex.texi and
32262         regexprops-generic.texi.
32263         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
32264         syntax.
32265
32266         Whitespace cleanup.
32267         * doc/regex.texi: Remove trailing spaces.
32268
32269         Add regex documentation.
32270         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
32271         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
32272         Written by Kathy A. Hargreaves and Karl Berry.
32273
32274 2010-08-01  Bruno Haible  <bruno@clisp.org>
32275
32276         link: Update documentation.
32277         * doc/posix-functions/link.texi: Update regarding Solaris.
32278
32279 2010-07-31  Bruno Haible  <bruno@clisp.org>
32280
32281         Update modules list.
32282         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
32283         (String handling <string.h>): Add memcmp2, memxfrm.
32284         (Container data structures): Add xlist, xsublist, xoset.
32285         (Core language properties): Add alignof, unused-parameter.
32286         (Process control, Numeric conversion functions <stdlib.h>): Renamed
32287         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
32288         (Unibyte characters <ctype.h>): New section.
32289         (String handling <string.h>): New section.
32290         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
32291         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
32292         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
32293         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
32294         tan, tanh, tanl, y0, y1, yn.
32295         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
32296         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
32297         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
32298         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
32299         unlockpt, vdprintf, vdprintf-posix.
32300         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
32301         (File system functions): Add concat-filename, sys_file, sys_ioctl,
32302         xconcat-filename.
32303         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
32304         getdtablesize, pipe2, pipe2-safer.
32305         (Security): New section.
32306         (Networking functions): Add accept4.
32307         (Signal handling): Add sigpipe.
32308         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
32309         mbmemcasecoll.
32310         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
32311         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
32312         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
32313         pipe-filter-ii.
32314         (Misc): Add argp-version-etc, login_tty, parse-duration.
32315
32316 2010-07-31  Bruno Haible  <bruno@clisp.org>
32317
32318         Improve doc in MODULES.html.
32319         * modules/linkat (Description): Add the word "function".
32320         * modules/mkfifo (Description): Likewise.
32321         * modules/mknod (Description): Likewise.
32322         * modules/remove (Description): Likewise.
32323         * modules/renameat (Description): Likewise.
32324         * modules/stat (Description): Likewise.
32325         * modules/symlink (Description): Likewise.
32326         * modules/unlink (Description): Likewise.
32327
32328 2010-07-31  Bruno Haible  <bruno@clisp.org>
32329
32330         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
32331         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
32332         option --enable/disable-c++ instead of --enable/disable-cxx.
32333         * NEWS: Mention the change.
32334
32335 2010-07-31  Bruno Haible  <bruno@clisp.org>
32336
32337         readlink, areadlink: Relax test a bit.
32338         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
32339         alternative to ENOTDIR.
32340         * tests/test-areadlink.h (test_areadlink): Likewise.
32341         Reported by Rainer Tammer.
32342
32343 2010-07-31  Bruno Haible  <bruno@clisp.org>
32344
32345         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
32346         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
32347         character, perform the search using U_STRCHR.
32348         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
32349         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
32350         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
32351         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
32352         Suggested by Paolo Bonzini.
32353
32354 2010-07-31  Bruno Haible  <bruno@clisp.org>
32355
32356         unistr/u*-strstr: Fix dependencies.
32357         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
32358         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
32359         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
32360
32361 2010-07-31  Bruno Haible  <bruno@clisp.org>
32362
32363         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
32364         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
32365         the beginning of the loop.
32366         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
32367         cases in 'switch' statement.
32368
32369         unistr/u8-strchr: Fix several bugs.
32370         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
32371         the string. When not found, return NULL, not a pointer near the end.
32372
32373         More tests for unistr/u8-strchr.
32374         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
32375         that the function does not read past the first occurrence of the byte
32376         being searched.
32377         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
32378         * tests/unistr/test-u16-strchr.c (main): New function.
32379         * tests/unistr/test-u32-strchr.c (main): New function.
32380
32381 2010-07-31  Bruno Haible  <bruno@clisp.org>
32382
32383         posix-modules: Ignore backup files of documentation files.
32384         * posix-modules: grep only through files named *.texi.
32385
32386 2010-07-31  Bruno Haible  <bruno@clisp.org>
32387
32388         symlinkat: Fix documentation.
32389         * doc/posix-functions/readlinkat.texi: Fix module name.
32390
32391 2010-07-31  Bruno Haible  <bruno@clisp.org>
32392
32393         fchownat: Replace also when chown has the trailing slash bug.
32394         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
32395         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
32396         introduced on 2010-04-10.
32397         Reported by Rainer Tammer.
32398
32399 2010-07-31  Bruno Haible  <bruno@clisp.org>
32400
32401         linkat: Work around AIX 7.1 bug.
32402         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
32403         whether linkat handles trailing slash correctly. If not, replace linkat
32404         and define LINKAT_TRAILING_SLASH_BUG.
32405         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
32406         check whether (fd1,file1) points to a directory if file1 or file2 ends
32407         in a slash. Code taken from lib/link.c.
32408         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
32409         Reported by Rainer Tammer.
32410
32411 2010-07-31  Bruno Haible  <bruno@clisp.org>
32412
32413         Correctly determine whether pow is available in libc on AIX 7 with xlc.
32414         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
32415         This disables an xlc optimization that was causing wrong test results.
32416         Reported by Rainer Tammer.
32417
32418 2010-07-31  Bruno Haible  <bruno@clisp.org>
32419
32420         iconv: Work around AIX 6.1..7.1 bug.
32421         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
32422         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
32423         cross-compiling, guess no on all versions of AIX.
32424         Reported by Rainer Tammer.
32425
32426 2010-07-31  Bruno Haible  <bruno@clisp.org>
32427
32428         readlink: Relax test a bit.
32429         * tests/test-readlink.h (test_readlink): Allow different errno value
32430         when readlink is called with a file name that ends in / and refers to
32431         a file.
32432         Suggested by Eric Blake.
32433         Reported by Rainer Tammer.
32434
32435 2010-07-31  Bruno Haible  <bruno@clisp.org>
32436
32437         copysign: Does not require -lm on glibc systems.
32438         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
32439         gl_COMMON_DOUBLE_MATHFUNC.
32440         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
32441
32442 2010-07-31  Bruno Haible  <bruno@clisp.org>
32443
32444         duplocale: Work around AIX 7.1 bug.
32445         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
32446         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
32447         * lib/duplocale.c (rpl_duplocale): Update comment.
32448         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
32449         Reported by Rainer Tammer.
32450
32451 2010-07-30  Bruno Haible  <bruno@clisp.org>
32452
32453         dirfd: Avoid link error on AIX 7.1.
32454         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
32455         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
32456         exist, set REPLACE_DIRFD.
32457         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
32458         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
32459         * doc/posix-functions/dirfd.texi: Update.
32460         Reported by Rainer Tammer.
32461
32462 2010-07-30  Eric Blake  <eblake@redhat.com>
32463
32464         strtod: next round of AIX fixes
32465         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
32466         exponent.
32467         * tests/test-strtod.c (main): Enhance tests.
32468         * doc/posix-functions/strtod.texi (strtod): Document next bug.
32469         Reported by Rainer Tammer.
32470
32471         futimens: fix configure check
32472         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
32473         Reported by Bruno Haible.
32474
32475 2010-07-30  Bruno Haible  <bruno@clisp.org>
32476
32477         getline: Update regarding AIX.
32478         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
32479         Reported by Rainer Tammer.
32480
32481 2010-07-30  Bruno Haible  <bruno@clisp.org>
32482
32483         wcwidth: Drop replacement on AIX 7.
32484         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
32485         AIX 7.
32486         Reported by Rainer Tammer.
32487
32488 2010-07-30  Bruno Haible  <bruno@clisp.org>
32489
32490         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
32491         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
32492         a 'char *'.
32493         Reported by Rainer Tammer.
32494
32495 2010-07-30  Bruno Haible  <bruno@clisp.org>
32496
32497         unlink: Update regarding AIX.
32498         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
32499         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
32500         Reported by Rainer Tammer.
32501
32502 2010-07-30  Bruno Haible  <bruno@clisp.org>
32503
32504         symlink: Update regarding AIX.
32505         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
32506         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
32507         Reported by Rainer Tammer.
32508
32509 2010-07-30  Bruno Haible  <bruno@clisp.org>
32510
32511         strndup: Update regarding AIX.
32512         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
32513         AIX 7.
32514         Reported by Rainer Tammer.
32515
32516 2010-07-30  Bruno Haible  <bruno@clisp.org>
32517
32518         stat: Update regarding AIX.
32519         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
32520         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
32521         Reported by Rainer Tammer.
32522
32523 2010-07-30  Bruno Haible  <bruno@clisp.org>
32524
32525         truncl: Fix autoconf test.
32526         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
32527         whether truncl works.
32528         Reported by Rainer Tammer.
32529
32530 2010-07-30  Bruno Haible  <bruno@clisp.org>
32531
32532         round: Update regarding AIX.
32533         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
32534         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
32535         Reported by Rainer Tammer.
32536
32537 2010-07-30  Bruno Haible  <bruno@clisp.org>
32538
32539         rename: Update regarding AIX.
32540         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
32541         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
32542         Reported by Rainer Tammer.
32543
32544 2010-07-30  Bruno Haible  <bruno@clisp.org>
32545
32546         printf.m4: Update regarding AIX.
32547         * m4/printf.m4: Update comments regarding AIX.
32548         Reported by Rainer Tammer.
32549
32550 2010-07-30  Bruno Haible  <bruno@clisp.org>
32551
32552         iconv: Update regarding AIX.
32553         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
32554         AIX 7.
32555         Reported by Rainer Tammer.
32556
32557 2010-07-30  Bruno Haible  <bruno@clisp.org>
32558
32559         getopt: Update regarding AIX.
32560         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
32561         no on AIX.
32562         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
32563         Reported by Rainer Tammer.
32564
32565 2010-07-30  Bruno Haible  <bruno@clisp.org>
32566
32567         ldexpl; Update regarding AIX.
32568         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
32569         on AIX 7.
32570         Reported by Rainer Tammer.
32571
32572 2010-07-30  Bruno Haible  <bruno@clisp.org>
32573
32574         frexpl: Update regarding AIX.
32575         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
32576         on AIX 7.
32577         Reported by Rainer Tammer.
32578
32579 2010-07-30  Bruno Haible  <bruno@clisp.org>
32580
32581         open, fopen: Update regarding AIX.
32582         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
32583         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
32584         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
32585         * doc/posix-functions/fopen.texi: Likewise.
32586         Reported by Rainer Tammer.
32587
32588 2010-07-30  Bruno Haible  <bruno@clisp.org>
32589
32590         chown: Update doc regarding AIX.
32591         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
32592         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
32593         Reported by Rainer Tammer.
32594
32595 2010-07-30  Eric Blake  <eblake@redhat.com>
32596
32597         strtod: fix bug in replacement function on AIX
32598         * lib/strtod.c (strtod): Special case broken "0x" parse in
32599         underlying strtod.
32600         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
32601         * doc/posix-functions/strtod.texi (strtod): Likewise.
32602         Reported by Rainer Tammer.
32603
32604 2010-07-30  Bruno Haible  <bruno@clisp.org>
32605
32606         mbrlen: Fix cross-compilation guess for AIX.
32607         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
32608         guess. Leftover from 2008-12-22.
32609
32610 2010-07-30  Bruno Haible  <bruno@clisp.org>
32611
32612         mbrtowc: Fix cross-compilation guess for AIX.
32613         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
32614         guess. Leftover from 2008-12-21.
32615
32616 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
32617
32618         init.sh: work around trap limitation of some shells
32619         * tests/init.sh (setup_): Move exit trap outside of shell function.
32620
32621 2010-07-29  Eric Blake  <eblake@redhat.com>
32622
32623         strtod: aid debugging
32624         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
32625         understanding why strtod is rejected.
32626
32627 2010-07-28  Bruno Haible  <bruno@clisp.org>
32628
32629         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
32630         * lib/unistr/u8-chr.c: Include <string.h>.
32631         * tests/unistr/test-u8-chr.c: Likewise.
32632         * tests/unistr/test-u16-chr.c: Likewise.
32633         * tests/unistr/test-u32-chr.c: Likewise.
32634         * tests/unistr/test-u8-strchr.c: Likewise.
32635         * tests/unistr/test-u16-strchr.c: Likewise.
32636         * tests/unistr/test-u32-strchr.c: Likewise.
32637         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
32638         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
32639         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
32640         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
32641
32642 2010-07-28  Bruno Haible  <bruno@clisp.org>
32643
32644         Use spaces for indentation, not tabs.
32645         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
32646
32647 2010-07-27  Bruno Haible  <bruno@clisp.org>
32648
32649         mbspcasecmp: Fix function specification.
32650         * lib/string.in.h (mbspcasecmp): Fix specification comment.
32651         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
32652         Reported by Eric Blake <eblake@redhat.com>.
32653
32654 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
32655
32656         timespec: use cast and not conditional, as truncation isn't possible
32657         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
32658         instead of a conditional.  Comment about the situation in more detail.
32659         This undoes most of the 2009-10-29 patch.
32660
32661 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
32662
32663         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
32664         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
32665         * lib/unistr/u8-strchr.c: Likewise.
32666         * modules/unistr/u8-chr: Depend on memchr.
32667
32668         unistr/u*-strchr: add tests
32669         * modules/unistr/u8-strchr-tests: New file.
32670         * modules/unistr/u16-strchr-tests: New file.
32671         * modules/unistr/u32-strchr-tests: New file.
32672         * tests/unistr/test-strchr.h: New file.
32673         * tests/unistr/test-u8-strchr.c: New file.
32674         * tests/unistr/test-u16-strchr.c: New file.
32675         * tests/unistr/test-u32-strchr.c: New file.
32676
32677         unistr/u*-chr: test multibyte sequences more
32678         * tests/unistr/test-chr.h: Do complete testing of the characters in the
32679         test vector.
32680         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
32681         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
32682         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
32683
32684         unistr/u*-chr: test multibyte sequences
32685         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
32686
32687         unistr/u*-chr: prepare for multibyte tests
32688         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
32689         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
32690         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
32691         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
32692         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
32693         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
32694
32695 2010-07-18  Bruno Haible  <bruno@clisp.org>
32696
32697         unistr/u8-strchr: Optimize non-ASCII argument case.
32698         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
32699         because the first byte often matches anyway.
32700         Reported by Pádraig Brady <P@draigbrady.com>.
32701
32702 2010-07-15  Karl Berry  <karl@gnu.org>
32703
32704         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
32705
32706 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
32707
32708         getcwd: on Solaris, work better if ancestors are inaccessible
32709         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
32710         buffer and size, try again with a large buffer.  This works better
32711         on Solaris, since its getcwd succeeds even if the path to the root
32712         is inaccessible, and this is helpful in common cases such as .zfs
32713         hidden directories.  Problem reported by J Chapman Flack in
32714         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
32715         Use system getcwd if it's declared, not merely if it's partly
32716         working; use the partly-working test only to avoid needless effort
32717         if the system getcwd fails.
32718         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
32719         comment that was already obsolete and is now even more obsolete.
32720         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
32721         now might call strdup.
32722
32723 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
32724
32725         pthread: Add enough so that coreutils/src/sort.c compiles.
32726         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
32727         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
32728         gnulib. Include <sched.h> and <time.h>, as per POSIX.
32729         Include <sys/types.h>, in case it defines pthread_t.
32730         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
32731         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
32732         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
32733         (pthread_rwlockattr_t, pthread_spinlock_t):
32734         New typedefs, if HAVE_PTHREAD_T is not defined.
32735         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
32736         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
32737         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
32738         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
32739         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
32740         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
32741         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
32742         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
32743         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
32744         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
32745         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
32746         New macros.
32747         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
32748         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
32749         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
32750         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
32751         (pthread_spin_unlock): New dummy functions.
32752         (pthread_create): Return EAGAIN; don't set errno.
32753         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
32754         require AC_C_INLINE.
32755         * modules/pthread (Depends-on): Add sched, time.
32756         (pthread.h): Use AM_V_GEN.
32757
32758 2010-07-13  Bruno Haible  <bruno@clisp.org>
32759
32760         striconveh: Don't malloc memory if the result buffer is sufficient.
32761         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
32762         buffer if its size is sufficient.
32763         Reported by Ludovic Courtès <ludo@gnu.org>.
32764
32765 2010-07-13  Bruno Haible  <bruno@clisp.org>
32766
32767         strtod: Add safety check.
32768         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
32769
32770 2010-07-12  Bruno Haible  <bruno@clisp.org>
32771
32772         Unify tests that set gl_cv_func_ldexpl_no_libm.
32773         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
32774         gl_FUNC_LDEXPL.
32775         (gl_FUNC_LDEXPL): Invoke it.
32776         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
32777
32778 2010-07-12  Bruno Haible  <bruno@clisp.org>
32779
32780         Unify tests that set gl_cv_func_ldexp_no_libm.
32781         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
32782         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
32783         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
32784         (configure.ac): Simply invoke gl_FUNC_LDEXP.
32785         * modules/strtod (Files): Add m4/ldexp.m4.
32786
32787 2010-07-12  Bruno Haible  <bruno@clisp.org>
32788
32789         Unify tests that set gl_cv_func_frexpl_no_libm.
32790         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
32791         gl_FUNC_FREXPL_NO_LIBM.
32792         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
32793         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
32794
32795 2010-07-12  Bruno Haible  <bruno@clisp.org>
32796
32797         Unify tests that set gl_cv_func_frexp_no_libm.
32798         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
32799         gl_FUNC_FREXP_NO_LIBM.
32800         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
32801         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
32802
32803 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
32804
32805         memcoll: clarify sizes versus lengths, document better, and tweak perf
32806         * lib/memcoll.c (strcoll_loop, memcoll0):
32807         Improve quality of descriptive comments.  Name variables
32808         consistently as to whether they are lengths (which do not include
32809         terminating null) versus sizes (which do).
32810         * lib/xmemcoll.c (xmemcoll0): Likewise.
32811         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
32812         returned when s1size == 0; this is easier to compile and saves
32813         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
32814
32815 2010-07-12  Bruno Haible  <bruno@clisp.org>
32816
32817         Tests for module '_Exit'.
32818         * modules/_Exit-tests: New file.
32819         * tests/test-_Exit.sh: New file.
32820         * tests/test-_Exit.c: New file.
32821
32822         New module '_Exit'.
32823         * lib/stdlib.in.h (__attribute__): New macro.
32824         (_Exit): New declaration.
32825         * lib/_Exit.c: New file.
32826         * m4/_Exit.m4: New file.
32827         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
32828         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
32829         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
32830         * modules/_Exit: New file.
32831         * tests/test-stdlib-c++.cc (_Exit): Check signature.
32832         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
32833
32834 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
32835
32836         strtod: make it more-accurate typically, and don't require libm
32837         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
32838         Include limits.h.  Don't include string.h.
32839         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
32840         (locale_isspace): New function, so that no casts are needed to
32841         check whether *s is a space.
32842         (ldexp): Provide an unused dummy if not available.
32843         (scale_radix_exp, parse_number, underlying_strtod): New functions.
32844         (strtod): Use them.  This implementation prefers to use the
32845         underlying strtod if available, falling back on our own code
32846         only to fix known bugs.  This is more likely to produce an
32847         accurate result.  Also, it avoids the use of libm functions.
32848         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
32849         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
32850         was absent, but it caused a test failure with coreutils.
32851         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
32852         with libm.
32853         * modules/strtod (Makefile.am, Link): libm is no longer needed.
32854         * modules/strtod-tests (Makefile.am): Likewise.
32855
32856 2010-07-11  Pádraig Brady  <P@draigBrady.com>
32857             Bruno Haible  <bruno@clisp.org>
32858
32859         unistr/u8-strchr: Optimize ASCII argument case.
32860         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
32861
32862 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
32863
32864         (x)memcoll: minor tweaks
32865         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
32866         is after the type that it qualifies.
32867         (memcoll0): Likewise.
32868         * lib/memcoll.h (memcoll0): Likewise.
32869         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
32870         * lib/xmemcoll.h (xmemcoll0): Likewise.
32871         * lib/memcoll.c (memcoll0): Correct the comment.  This function
32872         differs from memcoll in that the NUL byte is part of the argument.
32873         Omit the abort-checks, as performance is a real issue here.  Plus,
32874         the checks were wrong anyway (an off-by-one error).  Omit local
32875         variable 'diff', as it's a bit clearer that way.
32876         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
32877         no longer needed.
32878
32879 2010-07-08  Chen Guo <chenguo4@yahoo.com>
32880
32881         (x)memcoll: speedup when input is known to be NUL delimited
32882         * lib/memcoll.c: Include stdlib.
32883         (memcoll0): New function.
32884         (strcoll_loop): New function, refactored for use in both memcoll
32885         and memcoll0.
32886         * lib/memcoll.h (memcoll0): Add prototype.
32887         * lib/xmemcoll.c (xmemcoll0): New function.
32888         (collate_error): New function, refactored for use in both xmemcoll
32889         and xmemcoll0.
32890         * lib/xmemcoll.h (xmemcoll0): Add prototype.
32891         * m4/memcoll.m4: add inline invocation.
32892
32893 2010-07-06  Pádraig Brady  <P@draigBrady.com>
32894
32895         * build-aux/bootstrap: Remove any local translations
32896         from the translation project synchronization directory,
32897         so that local only translations are not distributed.
32898
32899 2010-07-04  Bruno Haible  <bruno@clisp.org>
32900
32901         fsusage: Clarify which code applies to which platforms.
32902         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
32903         platform.
32904         * lib/fsusage.c (get_fs_usage): Likewise.
32905
32906 2010-07-04  Bruno Haible  <bruno@clisp.org>
32907
32908         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
32909         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
32910         Reported by Martin Lambers <marlam@marlam.de>.
32911
32912 2010-07-04  Jim Meyering  <meyering@redhat.com>
32913
32914         hash: once again explicitly disallow insertion of NULL
32915         * lib/hash.c (hash_insert0): Reinstate just-removed test:
32916         inserting a NULL pointer cannot work with these functions.
32917         Add a comment with details.
32918         This reverts part of the 2010-07-01 commit, 5bef1a35
32919         "hash: extend module to deal with non-pointer keys".
32920
32921 2010-07-01  Bruno Haible  <bruno@clisp.org>
32922
32923         stdbool: Update doc.
32924         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
32925         Info from Christian Weisgerber <naddy@mips.inka.de>.
32926
32927 2010-07-01  Jim Meyering  <meyering@redhat.com>
32928
32929         hash: extend module to deal with non-pointer keys
32930         * lib/hash.c (hash_insert0): New interface, much like hash_insert
32931         but that allows insertion of non-pointer entries.
32932         Do not disallow an ENTRY value of NULL.
32933         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
32934         * lib/hash.h (hash_insert0): Declare.
32935
32936 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
32937
32938         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
32939         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
32940         not present (i.e. with autoconf 2.59 and when using gettextize, not
32941         gnulib), require AC_GNU_SOURCE instead.
32942
32943 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
32944
32945         idpriv-drop: Fix tests.
32946         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
32947         not to the test-idpriv-droptemp program.
32948
32949 2010-06-29  Bruno Haible  <bruno@clisp.org>
32950
32951         string: Fix syntax error with g++ 2.96.
32952         * lib/string.in.h (__pure__): Remove definition.
32953         (_GL_ATTRIBUTE_PURE): New macro.
32954         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
32955         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
32956         Reported by Christian Weisgerber <naddy@mips.inka.de>.
32957
32958 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
32959
32960         unitypes: Fix bug introduced on 2010-05-18.
32961         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
32962
32963 2010-06-22  Eric Blake  <eblake@redhat.com>
32964
32965         memmem: slight optimization
32966         * lib/str-two-way.h (critical_factorization): Update comments.
32967         Reduce work during factorization phase.
32968         Reported by Carlos Bueno <carlos@bueno.org>.
32969
32970 2010-06-21  Bruno Haible  <bruno@clisp.org>
32971
32972         Fix HAVE_CALLOC_POSIX misnomer.
32973         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
32974         !HAVE_CALLOC_POSIX.
32975         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
32976         HAVE_CALLOC_POSIX.
32977         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
32978         instead of HAVE_CALLOC_POSIX.
32979         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
32980         HAVE_CALLOC_POSIX.
32981
32982         Use modern idiom for calloc() replacement.
32983         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
32984         AC_FUNC_CALLOC.
32985         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
32986         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
32987         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
32988         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
32989         (gl_REPLACE_CALLOC): New macro.
32990
32991 2010-06-21  Bruno Haible  <bruno@clisp.org>
32992
32993         Fix HAVE_REALLOC_POSIX misnomer.
32994         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
32995         !HAVE_REALLOC_POSIX.
32996         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
32997         HAVE_REALLOC_POSIX.
32998         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
32999         instead of HAVE_REALLOC_POSIX.
33000         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
33001         HAVE_REALLOC_POSIX.
33002
33003         Use modern idiom for realloc() replacement.
33004         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
33005         AC_FUNC_REALLOC.
33006         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
33007         Autoconf's AC_FUNC_REALLOC.
33008         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
33009         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
33010         (gl_REPLACE_REALLOC): New macro.
33011         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
33012
33013 2010-06-21  Bruno Haible  <bruno@clisp.org>
33014
33015         Fix HAVE_MALLOC_POSIX misnomer.
33016         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
33017         !HAVE_MALLOC_POSIX.
33018         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
33019         HAVE_MALLOC_POSIX.
33020         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
33021         instead of HAVE_MALLOC_POSIX.
33022         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
33023         HAVE_MALLOC_POSIX.
33024
33025         Use modern idiom for malloc() replacement.
33026         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
33027         AC_FUNC_MALLOC.
33028         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
33029         Autoconf's AC_FUNC_MALLOC.
33030         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
33031         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
33032         (gl_REPLACE_MALLOC): New macro.
33033         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
33034
33035 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
33036
33037         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
33038         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
33039         This macro takes 3 arguments, not 4.
33040
33041 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
33042
33043         ipv6: fix detection under mingw
33044         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
33045         in6_addr.
33046
33047 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
33048
33049         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
33050         that strtod() works when cross-compiling to a glibc version known
33051         to work.
33052
33053 2010-06-15  Bruno Haible  <bruno@clisp.org>
33054
33055         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
33056
33057 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
33058
33059         select: Correct timeout.
33060         * lib/select.c (rpl_select): Compute wait_timeout correctly.
33061
33062 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
33063
33064         git-version-gen: init shell var to avoid env var influence
33065         * build-aux/git-version-gen (v): Init shell var to empty.
33066
33067 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
33068
33069         priv-set: Don't assume that priv.h exists merely because getppriv does.
33070         See Jan Andersen's bug report about AIX 5L in
33071         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
33072         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
33073         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
33074         * lib/priv-set.h: Likewise.
33075         * tests/test-priv-set.c: Likewise.
33076
33077 2010-06-13  Bruno Haible  <bruno@clisp.org>
33078
33079         relocatable: Make it easier to test whether to install wrappers.
33080         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
33081         RELOCATABLE_VIA_WRAPPER.
33082
33083 2010-06-13  Bruno Haible  <bruno@clisp.org>
33084
33085         gnulib-tool: Display specified modules and dependencies differently.
33086         * gnulib-tool (func_show_module_list): New function.
33087         (func_import, func_create_testdir): Invoke it.
33088         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
33089
33090 2010-06-13  Bruno Haible  <bruno@clisp.org>
33091
33092         gnulib-tool: Align code of func_import and func_create_testdir.
33093         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
33094         specified_modules.
33095
33096 2010-06-12  Jim Meyering  <meyering@redhat.com>
33097
33098         test-inttostr: avoid spurious failure on Solaris 9
33099         * tests/test-inttostr.c (main): Skip the test when snprintf fails
33100         to accept "%ju".  Reported by Bruno Haible.
33101
33102 2010-06-11  Jim Meyering  <meyering@redhat.com>
33103
33104         test-sys_socket: mark variables as used more readably
33105         * tests/test-sys_socket.c (main): Mark otherwise unused variables
33106         as "used" explicitly via (void) statement casts.  This is more
33107         readable than using them in an artificial return expression.
33108         Suggestion from Bruno Haible.
33109
33110 2010-06-11  Bruno Haible  <bruno@clisp.org>
33111
33112         Avoid some more warnings from "gcc -Wwrite-strings".
33113         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
33114         to 'const char *'.
33115         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
33116         * tests/test-c-strcasestr.c (main): Likewise.
33117         * tests/test-mbscasestr1.c (main): Likewise.
33118         * tests/test-mbscasestr2.c (main): Likewise.
33119         * tests/test-memmem.c (main): Likewise.
33120         * tests/test-strstr.c (main): Likewise.
33121         * tests/test-strcasestr.c (main): Likewise.
33122
33123 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33124
33125         init.sh: change framework_failure_ to fail with status 99, not 1
33126         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
33127         automake's parallel-tests rule that this is an unexpected failure,
33128         even if the test is listed in XFAIL_TESTS.
33129
33130 2010-06-11  Jim Meyering  <meyering@redhat.com>
33131
33132         test-inttostr: avoid warnings about 4-6KB literal strings
33133         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
33134         Include "macros.h", for its definition of ASSERT.
33135         (CK): s/assert/ASSERT/
33136         * modules/inttostr-tests (Files): Add macros.h.
33137
33138         init.sh: don't use $ME_ or skip_ before they are defined
33139         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
33140         their first uses.  Also hoist their companions: warn_, fail_,
33141         framework_failure_, $stderr_fileno.  Prompted by a patch from
33142         Stefano Lattarini.
33143
33144         test-sys_socket: avoid set-but-not-used warnings from gcc
33145         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
33146         avoid warning about set-but-not-used variables.
33147
33148         test-xvasprintf: avoid 'const' discard warnings
33149         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
33150         "const" when assigning from literal strings.
33151         (test_xasprintf): Add "void" in function argument list to placate
33152         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
33153
33154         tests: avoid compilation warnings in argmatch and exclude tests...
33155         in packages that define ARGMATCH_DIE_DECL, like coreutils.
33156         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
33157         Since it always exits, declare with the "noreturn" attribute.
33158         * tests/test-argmatch.c: Likewise.
33159
33160         tests: avoid 'const' discard warnings in mbsstr tests
33161         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
33162         * tests/test-mbsstr2.c (main): Likewise.
33163
33164         test-verify: avoid warning from gcc's -Wmissing-declarations
33165         * tests/test-verify.c (function): Declare to be static.
33166
33167         test-inttostr.c: include <string.h> for use of strcmp
33168         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
33169
33170         test-linkat: avoid failed assertion on "other" architectures
33171         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
33172         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
33173         sparc: https://bugs.launchpad.net/bugs/591968
33174
33175 2010-06-11  Jim Meyering  <meyering@redhat.com>
33176
33177         printf.m4: avoid autoconf's "Expanded Before Required" warning
33178         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
33179         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
33180         autoconf warning.
33181
33182 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
33183
33184         Replacement header templates are now named with ".in", not "_".
33185         * doc/gnulib-intro.texi: Correct.
33186
33187 2010-06-10  Jim Meyering  <meyering@redhat.com>
33188
33189         inttostr-tests: depend on snprintf, not snprintf-posix
33190         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
33191         snprintf-posix, to avoid this aclocal failure:
33192           missing file gnulib-tests/vasnprintf.c
33193           configure.ac:45: error: expected source file, required through \
33194           AC_LIBSOURCES, not found
33195
33196 2010-06-10  Jim Meyering  <meyering@redhat.com>
33197
33198         inttostr: add a new function, inttostr, and tests
33199         The namesake function was not available.  The existence of the
33200         template file, inttostr.c makes its addition nontrivial.
33201         * lib/anytostr.c: Rename from inttostr.c.
33202         (anytostr): Rename from inttostr.
33203         * lib/inttostr.c: New file.
33204         * modules/inttostr (Files): Add anytostr.c.
33205         (Makefile.am): Set lib_SOURCES instead of ...
33206         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
33207         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
33208         * lib/offtostr.c: Likewise.
33209         * lib/uinttostr.c: Likewise.
33210         * lib/umaxtostr.c: Likewise.
33211         * modules/inttostr-tests: New file.
33212         * tests/test-inttostr.c: New file.  Test these functions.
33213
33214 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
33215             Bruno Haible  <bruno@clisp.org>
33216
33217         Add "Extending Gnulib" chapter to manual.
33218         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
33219         chapter.
33220         (Extending Gnulib): New chapter.
33221         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
33222         chapter.
33223
33224 2010-06-09  Bruno Haible  <bruno@clisp.org>
33225
33226         Avoid relocwrapper link errors due to gnulib replacement functions.
33227         * lib/areadlink.c: Use the system's malloc, realloc functions.
33228         (areadlink): Set errno to ENOMEM explicitly.
33229         * modules/areadlink (Depends-on): Remove malloc-posix.
33230         Reported by Ben Pfaff <blp@cs.stanford.edu>.
33231
33232 2010-06-09  Bruno Haible  <bruno@clisp.org>
33233
33234         Avoid relocwrapper link errors due to gnulib replacement functions.
33235         * lib/canonicalize-lgpl.c: Use the system's malloc function.
33236         * lib/malloca.c: Likewise.
33237         * lib/relocatable.c: Likewise.
33238         * lib/progreloc.c: Use the system's malloc, sprintf functions.
33239         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
33240         * lib/setenv.c: Use the system's malloc, realloc functions.
33241         * lib/strerror.c: Use the system's sprintf function.
33242         Reported by Ben Pfaff <blp@cs.stanford.edu>.
33243
33244 2010-06-04  Bruno Haible  <bruno@clisp.org>
33245
33246         Prefer documented low-level autoconf macro names.
33247         * m4/lib-link.m4: Use m4_translit instead of translit.
33248         * m4/environ.m4: Likewise.
33249         * m4/mathfunc.m4: Likewise.
33250         * m4/onceonly.m4: Likewise.
33251         * m4/stdint.m4: Likewise.
33252         Suggested by Eric Blake.
33253
33254 2010-06-04  Martin Lambers  <marlam@marlam.de>
33255             Bruno Haible  <bruno@clisp.org>
33256
33257         havelib: Allow library names with '+' characters.
33258         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
33259         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
33260
33261 2010-06-09  Bruno Haible  <bruno@clisp.org>
33262
33263         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
33264         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
33265         realloc failed.
33266
33267 2010-06-08  Peter Simons  <simons@cryp.to>
33268
33269         maint.mk: make the news-check rule more configurable
33270         * top/maint.mk (news-check-lines-spec): New variable.
33271         (news-check): Use "sed -n 1,10p" in place of "head".
33272
33273 2010-06-07  Jim Meyering  <meyering@redhat.com>
33274
33275         do-release-commit-and-tag: fix typo in --help
33276         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
33277
33278         regex: avoid new dead-code warning with gcc-4.6.0
33279         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
33280         if-block containing a while-loop.  It's been unused for at least
33281         5 years.
33282
33283 2010-06-05  Bruno Haible  <bruno@clisp.org>
33284
33285         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
33286         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
33287
33288 2010-06-04  Bruno Haible  <bruno@clisp.org>
33289
33290         Update to GNU gettext 0.18.1.
33291         * modules/gettext (configure.ac): Require gettext infrastructure from
33292         version 0.18.1.
33293
33294 2010-06-03  Bruno Haible  <bruno@clisp.org>
33295
33296         Don't use AC_LIBOBJ with file names in subdirectories.
33297         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
33298         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
33299         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
33300         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
33301         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
33302         gl_LIBUNISTRING_LIBSOURCE.
33303         (Makefile.am): Augment lib_SOURCES here, conditionally.
33304         * NEWS: Drop requirement for Automake option 'subdir-objects'.
33305
33306 2010-06-03  Bruno Haible  <bruno@clisp.org>
33307
33308         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
33309         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
33310         expansion does not end with a newline.
33311         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
33312         unnecessary newline.
33313
33314 2010-06-03  Bruno Haible  <bruno@clisp.org>
33315
33316         Reduce dependencies.
33317         * tests/test-quotearg.h: New file, extracted from
33318         tests/test-quotearg.c.
33319         * tests/test-quotearg-simple.c: New file, extracted from
33320         tests/test-quotearg.c.
33321         * tests/test-quotearg.c: Don't include <ctype.h>.
33322         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
33323         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
33324         use_quote_double_quotes, use_quotearg_colon): Moved to
33325         tests/test-quotearg.h.
33326         (results_g, flag_results, custom_quotes, custom_results): Moved
33327         to tests/test-quotearg-simple.c.
33328         (main): Moved the part that does not depend on gettext to
33329         tests/test-quotearg-simple.c. Return 77 if the test cannot be
33330         performed.
33331         * modules/quotearg-simple: New file.
33332         * modules/quotearg-simple-tests: New file.
33333         * modules/quotearg (Depends-on): Add quotearg-simple.
33334         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
33335         (Files): Add tests/test-quotearg.h.
33336         Reported by Paolo Bonzini.
33337
33338 2010-06-03  Bruno Haible  <bruno@clisp.org>
33339
33340         Reduce dependencies.
33341         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
33342
33343 2010-06-03  Bruno Haible  <bruno@clisp.org>
33344
33345         time: Undefine more broken macros.
33346         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
33347         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
33348         Reported by Eric Blake.
33349
33350 2010-06-03  Bruno Haible  <bruno@clisp.org>
33351
33352         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
33353         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
33354         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
33355         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
33356         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
33357         Reported by Ludovic Courtès <ludo@gnu.org>.
33358
33359 2010-06-02  Eric Blake  <eblake@redhat.com>
33360
33361         time: work with mingw + pthreads-win32 library
33362         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
33363         if timespec is defined only in pthread.h.
33364         * modules/time (Makefile.am): Substitute it.
33365         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
33366         <pthread.h>, when needed.
33367         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
33368         from the library.
33369
33370 2010-05-31  Bruno Haible  <bruno@clisp.org>
33371
33372         Avoid expanding two macros in the wrong order.
33373         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
33374         gl_LIBUNISTRING if it is defined.
33375         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
33376         autoconf >= 2.64.
33377         Reported by Ludovic Courtès <ludo@gnu.org>.
33378
33379 2010-05-27  Jim Meyering  <meyering@redhat.com>
33380
33381         maint.mk: also prohibit "#undef" of always-defined symbols
33382         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
33383         Allow more than one space before the symbol name.
33384         (sc_prohibit_always-defined_macros): Use grep's -E, now that
33385         the regexp uses alternation.
33386
33387 2010-05-26  Eric Blake  <eblake@redhat.com>
33388
33389         maint.mk: avoid echo -e
33390         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
33391         Convert all uses of echo -* to printf.
33392         Reported by Matthias Bolte.
33393
33394 2010-05-25  Bruno Haible  <bruno@clisp.org>
33395
33396         Update to GNU gettext 0.18, part 2.
33397         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
33398         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
33399
33400 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33401
33402         Add missing include in test-pwrite.c.
33403         * tests/test-pwrite.c: Include string.h, for strcmp.
33404
33405 2010-05-24  Bruno Haible  <bruno@clisp.org>
33406
33407         * NEWS: Mention requirement for Automake option 'subdir-objects'.
33408
33409 2010-05-24  Bruno Haible  <bruno@clisp.org>
33410
33411         Don't use conversion with transliteration in u{8,16,32}_strcoll.
33412         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
33413         iconveh_error argument.
33414         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
33415         U_STRCONV_TO_LOCALE.
33416         * lib/unistr/u16-strcoll.c: Likewise.
33417         * lib/unistr/u32-strcoll.c: Likewise.
33418         * modules/unistr/u8-strcoll (Depends-on): Add
33419         uniconv/u8-strconv-to-enc, localcharset. Remove
33420         uniconv/u8-strconv-to-locale.
33421         (configure.ac): Bump version number.
33422         * modules/unistr/u16-strcoll (Depends-on): Add
33423         uniconv/u16-strconv-to-enc, localcharset. Remove
33424         uniconv/u16-strconv-to-locale.
33425         (configure.ac): Bump version number.
33426         * modules/unistr/u32-strcoll (Depends-on): Add
33427         uniconv/u32-strconv-to-enc, localcharset. Remove
33428         uniconv/u32-strconv-to-locale.
33429         (configure.ac): Bump version number.
33430
33431 2010-05-24  Bruno Haible  <bruno@clisp.org>
33432
33433         Avoid a test failure on NetBSD 5.0.
33434         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
33435         an iconv() bug.
33436
33437 2010-05-24  Bruno Haible  <bruno@clisp.org>
33438
33439         Adjust #include directive style.
33440         * modules/regex (Includes): Recommend to write <regex.h>.
33441
33442 2010-05-24  Bruno Haible  <bruno@clisp.org>
33443
33444         regex: Don't require alloca.
33445         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
33446         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
33447         only inside if (0).
33448
33449 2010-05-23  Jim Meyering  <meyering@redhat.com>
33450
33451         test-renameat.c: include <sys/stat.h>
33452         * tests/test-renameat.c: Include <sys/stat.h>; required for
33453         definition of S_IS* macros.
33454
33455 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
33456
33457         Update maintainer documentation for 'relocatable-prog' module.
33458         * doc/relocatable-maint.texi: Update.
33459         Comments by Bruno Haible.
33460
33461 2010-05-23  Bruno Haible  <bruno@clisp.org>
33462
33463         git-merge-changelog: Enable --split-merged-entry by default.
33464         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
33465         (usage): Don't mention this option any more.
33466         Reported by Ralf Wildenhues.
33467
33468 2010-05-23  Jim Meyering  <meyering@redhat.com>
33469
33470         test-pwrite: do not leave behind a test file named "out"
33471         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
33472         The trivial-looking use of init.sh is really necessary.
33473         It ensures that the temporary file, "out", is created in
33474         a temporary directory, and removed upon termination.
33475         * tests/test-pwrite.sh: Re-add file.
33476         * modules/pwrite-tests: Reference it.
33477
33478 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33479
33480         Fix output redirection buglet in init.sh.
33481         * tests/init.sh: Fix redirection of stderr.
33482
33483 2010-05-20  Simon Josefsson  <simon@josefsson.org>
33484
33485         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
33486
33487 2010-05-17  Simon Josefsson  <simon@josefsson.org>
33488
33489         * modules/valgrind-tests: New file.
33490         * m4/valgrind-tests.m4: New file.
33491         * doc/valgrind-tests.texi: New file.
33492         * doc/gnulib.texi (Running self-tests under valgrind): New
33493         section.
33494
33495 2010-05-19  Bruno Haible  <bruno@clisp.org>
33496
33497         Clean up dead code in recent commit.
33498         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
33499         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
33500         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
33501         Suggested by Paolo Bonzini.
33502
33503 2010-05-19  Bruno Haible  <bruno@clisp.org>
33504
33505         Avoid valgrind error reports from libunistring.
33506         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
33507         * modules/libunistring (Files): Add it.
33508         * modules/libunistring-optional (Files): Likewise.
33509
33510 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
33511             Bruno Haible  <bruno@clisp.org>
33512
33513         New module 'libunistring-optional'.
33514         * modules/libunistring-optional: New file.
33515         * m4/libunistring-base.m4: New file.
33516         * m4/libunistring-optional.m4: New file.
33517         * lib/unicase.in.h: Renamed from lib/unicase.h.
33518         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
33519         * lib/unictype.in.h: Renamed from lib/unictype.h.
33520         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
33521         * lib/uniname.in.h: Renamed from lib/uniname.h.
33522         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
33523         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
33524         * lib/unistr.in.h: Renamed from lib/unistr.h.
33525         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
33526         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
33527         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
33528         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
33529         gl_LIBUNISTRING. If the library was found, determine the installed
33530         version and set LIBUNISTRING_VERSION.
33531         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
33532         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
33533         handle a configuration option --with-included-libunistring.
33534         * modules/libunistring (Files): Add m4/absolute-header.m4.
33535         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
33536         Add m4/libunistring-base.m4.
33537         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33538         (Makefile.am): Build unicase.h from unicase.in.h.
33539         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
33540         Add m4/libunistring-base.m4.
33541         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33542         (Makefile.am): Build uniconv.h from uniconv.in.h.
33543         * modules/unictype/base (Files): Use unictype.in.h instead of
33544         unictype.h. Add m4/libunistring-base.m4.
33545         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33546         (Makefile.am): Build unictype.h from unictype.in.h.
33547         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
33548         Add m4/libunistring-base.m4.
33549         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33550         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
33551         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
33552         Add m4/libunistring-base.m4.
33553         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33554         (Makefile.am): Build uniname.h from uniname.in.h.
33555         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
33556         Add m4/libunistring-base.m4.
33557         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33558         (Makefile.am): Build uninorm.h from uninorm.in.h.
33559         * modules/unistdio/base (Files): Use unistdio.in.h instead of
33560         unistdio.h. Add m4/libunistring-base.m4.
33561         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33562         (Makefile.am): Build unistdio.h from unistdio.in.h.
33563         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
33564         Add m4/libunistring-base.m4.
33565         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33566         (Makefile.am): Build unistr.h from unistr.in.h.
33567         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
33568         Add m4/libunistring-base.m4.
33569         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33570         (Makefile.am): Build unitypes.h from unitypes.in.h.
33571         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
33572         Add m4/libunistring-base.m4.
33573         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33574         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
33575         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
33576         uniwidth.h. Add m4/libunistring-base.m4.
33577         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33578         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
33579         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
33580         instead of augmenting lib_SOURCES.
33581         * modules/unicase/empty-suffix-context: Likewise.
33582         * modules/unicase/locale-language: Likewise.
33583         * modules/unicase/tolower: Likewise.
33584         * modules/unicase/totitle: Likewise.
33585         * modules/unicase/toupper: Likewise.
33586         * modules/unicase/u8-casecmp: Likewise.
33587         * modules/unicase/u8-casecoll: Likewise.
33588         * modules/unicase/u8-casefold: Likewise.
33589         * modules/unicase/u8-casexfrm: Likewise.
33590         * modules/unicase/u8-ct-casefold: Likewise.
33591         * modules/unicase/u8-ct-tolower: Likewise.
33592         * modules/unicase/u8-ct-totitle: Likewise.
33593         * modules/unicase/u8-ct-toupper: Likewise.
33594         * modules/unicase/u8-is-cased: Likewise.
33595         * modules/unicase/u8-is-casefolded: Likewise.
33596         * modules/unicase/u8-is-lowercase: Likewise.
33597         * modules/unicase/u8-is-titlecase: Likewise.
33598         * modules/unicase/u8-is-uppercase: Likewise.
33599         * modules/unicase/u8-prefix-context: Likewise.
33600         * modules/unicase/u8-suffix-context: Likewise.
33601         * modules/unicase/u8-tolower: Likewise.
33602         * modules/unicase/u8-totitle: Likewise.
33603         * modules/unicase/u8-toupper: Likewise.
33604         * modules/unicase/u16-casecmp: Likewise.
33605         * modules/unicase/u16-casecoll: Likewise.
33606         * modules/unicase/u16-casefold: Likewise.
33607         * modules/unicase/u16-casexfrm: Likewise.
33608         * modules/unicase/u16-ct-casefold: Likewise.
33609         * modules/unicase/u16-ct-tolower: Likewise.
33610         * modules/unicase/u16-ct-totitle: Likewise.
33611         * modules/unicase/u16-ct-toupper: Likewise.
33612         * modules/unicase/u16-is-cased: Likewise.
33613         * modules/unicase/u16-is-casefolded: Likewise.
33614         * modules/unicase/u16-is-lowercase: Likewise.
33615         * modules/unicase/u16-is-titlecase: Likewise.
33616         * modules/unicase/u16-is-uppercase: Likewise.
33617         * modules/unicase/u16-prefix-context: Likewise.
33618         * modules/unicase/u16-suffix-context: Likewise.
33619         * modules/unicase/u16-tolower: Likewise.
33620         * modules/unicase/u16-totitle: Likewise.
33621         * modules/unicase/u16-toupper: Likewise.
33622         * modules/unicase/u32-casecmp: Likewise.
33623         * modules/unicase/u32-casecoll: Likewise.
33624         * modules/unicase/u32-casefold: Likewise.
33625         * modules/unicase/u32-casexfrm: Likewise.
33626         * modules/unicase/u32-ct-casefold: Likewise.
33627         * modules/unicase/u32-ct-tolower: Likewise.
33628         * modules/unicase/u32-ct-totitle: Likewise.
33629         * modules/unicase/u32-ct-toupper: Likewise.
33630         * modules/unicase/u32-is-cased: Likewise.
33631         * modules/unicase/u32-is-casefolded: Likewise.
33632         * modules/unicase/u32-is-lowercase: Likewise.
33633         * modules/unicase/u32-is-titlecase: Likewise.
33634         * modules/unicase/u32-is-uppercase: Likewise.
33635         * modules/unicase/u32-prefix-context: Likewise.
33636         * modules/unicase/u32-suffix-context: Likewise.
33637         * modules/unicase/u32-tolower: Likewise.
33638         * modules/unicase/u32-totitle: Likewise.
33639         * modules/unicase/u32-toupper: Likewise.
33640         * modules/unicase/ulc-casecmp: Likewise.
33641         * modules/unicase/ulc-casecoll: Likewise.
33642         * modules/unicase/ulc-casexfrm: Likewise.
33643         * modules/uniconv/u8-conv-from-enc: Likewise.
33644         * modules/uniconv/u8-conv-to-enc: Likewise.
33645         * modules/uniconv/u8-strconv-from-enc: Likewise.
33646         * modules/uniconv/u8-strconv-from-locale: Likewise.
33647         * modules/uniconv/u8-strconv-to-enc: Likewise.
33648         * modules/uniconv/u8-strconv-to-locale: Likewise.
33649         * modules/uniconv/u16-conv-from-enc: Likewise.
33650         * modules/uniconv/u16-conv-to-enc: Likewise.
33651         * modules/uniconv/u16-strconv-from-enc: Likewise.
33652         * modules/uniconv/u16-strconv-from-locale: Likewise.
33653         * modules/uniconv/u16-strconv-to-enc: Likewise.
33654         * modules/uniconv/u16-strconv-to-locale: Likewise.
33655         * modules/uniconv/u32-conv-from-enc: Likewise.
33656         * modules/uniconv/u32-conv-to-enc: Likewise.
33657         * modules/uniconv/u32-strconv-from-enc: Likewise.
33658         * modules/uniconv/u32-strconv-from-locale: Likewise.
33659         * modules/uniconv/u32-strconv-to-enc: Likewise.
33660         * modules/uniconv/u32-strconv-to-locale: Likewise.
33661         * modules/unictype/bidicategory-byname: Likewise.
33662         * modules/unictype/bidicategory-name: Likewise.
33663         * modules/unictype/bidicategory-of: Likewise.
33664         * modules/unictype/bidicategory-test: Likewise.
33665         * modules/unictype/block-list: Likewise.
33666         * modules/unictype/block-test: Likewise.
33667         * modules/unictype/category-C: Likewise.
33668         * modules/unictype/category-Cc: Likewise.
33669         * modules/unictype/category-Cf: Likewise.
33670         * modules/unictype/category-Cn: Likewise.
33671         * modules/unictype/category-Co: Likewise.
33672         * modules/unictype/category-Cs: Likewise.
33673         * modules/unictype/category-L: Likewise.
33674         * modules/unictype/category-Ll: Likewise.
33675         * modules/unictype/category-Lm: Likewise.
33676         * modules/unictype/category-Lo: Likewise.
33677         * modules/unictype/category-Lt: Likewise.
33678         * modules/unictype/category-Lu: Likewise.
33679         * modules/unictype/category-M: Likewise.
33680         * modules/unictype/category-Mc: Likewise.
33681         * modules/unictype/category-Me: Likewise.
33682         * modules/unictype/category-Mn: Likewise.
33683         * modules/unictype/category-N: Likewise.
33684         * modules/unictype/category-Nd: Likewise.
33685         * modules/unictype/category-Nl: Likewise.
33686         * modules/unictype/category-No: Likewise.
33687         * modules/unictype/category-P: Likewise.
33688         * modules/unictype/category-Pc: Likewise.
33689         * modules/unictype/category-Pd: Likewise.
33690         * modules/unictype/category-Pe: Likewise.
33691         * modules/unictype/category-Pf: Likewise.
33692         * modules/unictype/category-Pi: Likewise.
33693         * modules/unictype/category-Po: Likewise.
33694         * modules/unictype/category-Ps: Likewise.
33695         * modules/unictype/category-S: Likewise.
33696         * modules/unictype/category-Sc: Likewise.
33697         * modules/unictype/category-Sk: Likewise.
33698         * modules/unictype/category-Sm: Likewise.
33699         * modules/unictype/category-So: Likewise.
33700         * modules/unictype/category-Z: Likewise.
33701         * modules/unictype/category-Zl: Likewise.
33702         * modules/unictype/category-Zp: Likewise.
33703         * modules/unictype/category-Zs: Likewise.
33704         * modules/unictype/category-and: Likewise.
33705         * modules/unictype/category-and-not: Likewise.
33706         * modules/unictype/category-byname: Likewise.
33707         * modules/unictype/category-name: Likewise.
33708         * modules/unictype/category-none: Likewise.
33709         * modules/unictype/category-of: Likewise.
33710         * modules/unictype/category-or: Likewise.
33711         * modules/unictype/category-test: Likewise.
33712         * modules/unictype/combining-class: Likewise.
33713         * modules/unictype/ctype-alnum: Likewise.
33714         * modules/unictype/ctype-alpha: Likewise.
33715         * modules/unictype/ctype-blank: Likewise.
33716         * modules/unictype/ctype-cntrl: Likewise.
33717         * modules/unictype/ctype-digit: Likewise.
33718         * modules/unictype/ctype-graph: Likewise.
33719         * modules/unictype/ctype-lower: Likewise.
33720         * modules/unictype/ctype-print: Likewise.
33721         * modules/unictype/ctype-punct: Likewise.
33722         * modules/unictype/ctype-space: Likewise.
33723         * modules/unictype/ctype-upper: Likewise.
33724         * modules/unictype/ctype-xdigit: Likewise.
33725         * modules/unictype/decimal-digit: Likewise.
33726         * modules/unictype/digit: Likewise.
33727         * modules/unictype/mirror: Likewise.
33728         * modules/unictype/numeric: Likewise.
33729         * modules/unictype/property-alphabetic: Likewise.
33730         * modules/unictype/property-ascii-hex-digit: Likewise.
33731         * modules/unictype/property-bidi-arabic-digit: Likewise.
33732         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
33733         * modules/unictype/property-bidi-block-separator: Likewise.
33734         * modules/unictype/property-bidi-boundary-neutral: Likewise.
33735         * modules/unictype/property-bidi-common-separator: Likewise.
33736         * modules/unictype/property-bidi-control: Likewise.
33737         * modules/unictype/property-bidi-embedding-or-override: Likewise.
33738         * modules/unictype/property-bidi-eur-num-separator: Likewise.
33739         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
33740         * modules/unictype/property-bidi-european-digit: Likewise.
33741         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
33742         * modules/unictype/property-bidi-left-to-right: Likewise.
33743         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
33744         * modules/unictype/property-bidi-other-neutral: Likewise.
33745         * modules/unictype/property-bidi-pdf: Likewise.
33746         * modules/unictype/property-bidi-segment-separator: Likewise.
33747         * modules/unictype/property-bidi-whitespace: Likewise.
33748         * modules/unictype/property-byname: Likewise.
33749         * modules/unictype/property-combining: Likewise.
33750         * modules/unictype/property-composite: Likewise.
33751         * modules/unictype/property-currency-symbol: Likewise.
33752         * modules/unictype/property-dash: Likewise.
33753         * modules/unictype/property-decimal-digit: Likewise.
33754         * modules/unictype/property-default-ignorable-code-point: Likewise.
33755         * modules/unictype/property-deprecated: Likewise.
33756         * modules/unictype/property-diacritic: Likewise.
33757         * modules/unictype/property-extender: Likewise.
33758         * modules/unictype/property-format-control: Likewise.
33759         * modules/unictype/property-grapheme-base: Likewise.
33760         * modules/unictype/property-grapheme-extend: Likewise.
33761         * modules/unictype/property-grapheme-link: Likewise.
33762         * modules/unictype/property-hex-digit: Likewise.
33763         * modules/unictype/property-hyphen: Likewise.
33764         * modules/unictype/property-id-continue: Likewise.
33765         * modules/unictype/property-id-start: Likewise.
33766         * modules/unictype/property-ideographic: Likewise.
33767         * modules/unictype/property-ids-binary-operator: Likewise.
33768         * modules/unictype/property-ids-trinary-operator: Likewise.
33769         * modules/unictype/property-ignorable-control: Likewise.
33770         * modules/unictype/property-iso-control: Likewise.
33771         * modules/unictype/property-join-control: Likewise.
33772         * modules/unictype/property-left-of-pair: Likewise.
33773         * modules/unictype/property-line-separator: Likewise.
33774         * modules/unictype/property-logical-order-exception: Likewise.
33775         * modules/unictype/property-lowercase: Likewise.
33776         * modules/unictype/property-math: Likewise.
33777         * modules/unictype/property-non-break: Likewise.
33778         * modules/unictype/property-not-a-character: Likewise.
33779         * modules/unictype/property-numeric: Likewise.
33780         * modules/unictype/property-other-alphabetic: Likewise.
33781         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
33782         * modules/unictype/property-other-grapheme-extend: Likewise.
33783         * modules/unictype/property-other-id-continue: Likewise.
33784         * modules/unictype/property-other-id-start: Likewise.
33785         * modules/unictype/property-other-lowercase: Likewise.
33786         * modules/unictype/property-other-math: Likewise.
33787         * modules/unictype/property-other-uppercase: Likewise.
33788         * modules/unictype/property-paired-punctuation: Likewise.
33789         * modules/unictype/property-paragraph-separator: Likewise.
33790         * modules/unictype/property-pattern-syntax: Likewise.
33791         * modules/unictype/property-pattern-white-space: Likewise.
33792         * modules/unictype/property-private-use: Likewise.
33793         * modules/unictype/property-punctuation: Likewise.
33794         * modules/unictype/property-quotation-mark: Likewise.
33795         * modules/unictype/property-radical: Likewise.
33796         * modules/unictype/property-sentence-terminal: Likewise.
33797         * modules/unictype/property-soft-dotted: Likewise.
33798         * modules/unictype/property-space: Likewise.
33799         * modules/unictype/property-terminal-punctuation: Likewise.
33800         * modules/unictype/property-test: Likewise.
33801         * modules/unictype/property-titlecase: Likewise.
33802         * modules/unictype/property-unassigned-code-value: Likewise.
33803         * modules/unictype/property-unified-ideograph: Likewise.
33804         * modules/unictype/property-uppercase: Likewise.
33805         * modules/unictype/property-variation-selector: Likewise.
33806         * modules/unictype/property-white-space: Likewise.
33807         * modules/unictype/property-xid-continue: Likewise.
33808         * modules/unictype/property-xid-start: Likewise.
33809         * modules/unictype/property-zero-width: Likewise.
33810         * modules/unictype/scripts: Likewise.
33811         * modules/unictype/syntax-c-ident: Likewise.
33812         * modules/unictype/syntax-c-whitespace: Likewise.
33813         * modules/unictype/syntax-java-ident: Likewise.
33814         * modules/unictype/syntax-java-whitespace: Likewise.
33815         * modules/unilbrk/u8-possible-linebreaks: Likewise.
33816         * modules/unilbrk/u8-width-linebreaks: Likewise.
33817         * modules/unilbrk/u16-possible-linebreaks: Likewise.
33818         * modules/unilbrk/u16-width-linebreaks: Likewise.
33819         * modules/unilbrk/u32-possible-linebreaks: Likewise.
33820         * modules/unilbrk/u32-width-linebreaks: Likewise.
33821         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
33822         * modules/unilbrk/ulc-width-linebreaks: Likewise.
33823         * modules/uniname/uniname: Likewise.
33824         * modules/uninorm/canonical-decomposition: Likewise.
33825         * modules/uninorm/composition: Likewise.
33826         * modules/uninorm/decomposing-form: Likewise.
33827         * modules/uninorm/decomposition: Likewise.
33828         * modules/uninorm/filter: Likewise.
33829         * modules/uninorm/nfc: Likewise.
33830         * modules/uninorm/nfd: Likewise.
33831         * modules/uninorm/nfkc: Likewise.
33832         * modules/uninorm/nfkd: Likewise.
33833         * modules/uninorm/u8-normalize: Likewise.
33834         * modules/uninorm/u8-normcmp: Likewise.
33835         * modules/uninorm/u8-normcoll: Likewise.
33836         * modules/uninorm/u8-normxfrm: Likewise.
33837         * modules/uninorm/u16-normalize: Likewise.
33838         * modules/uninorm/u16-normcmp: Likewise.
33839         * modules/uninorm/u16-normcoll: Likewise.
33840         * modules/uninorm/u16-normxfrm: Likewise.
33841         * modules/uninorm/u32-normalize: Likewise.
33842         * modules/uninorm/u32-normcmp: Likewise.
33843         * modules/uninorm/u32-normcoll: Likewise.
33844         * modules/uninorm/u32-normxfrm: Likewise.
33845         * modules/unistdio/u8-asnprintf: Likewise.
33846         * modules/unistdio/u8-asprintf: Likewise.
33847         * modules/unistdio/u8-snprintf: Likewise.
33848         * modules/unistdio/u8-sprintf: Likewise.
33849         * modules/unistdio/u8-u8-asnprintf: Likewise.
33850         * modules/unistdio/u8-u8-asprintf: Likewise.
33851         * modules/unistdio/u8-u8-snprintf: Likewise.
33852         * modules/unistdio/u8-u8-sprintf: Likewise.
33853         * modules/unistdio/u8-u8-vasnprintf: Likewise.
33854         * modules/unistdio/u8-u8-vasprintf: Likewise.
33855         * modules/unistdio/u8-u8-vsnprintf: Likewise.
33856         * modules/unistdio/u8-u8-vsprintf: Likewise.
33857         * modules/unistdio/u8-vasnprintf: Likewise.
33858         * modules/unistdio/u8-vasprintf: Likewise.
33859         * modules/unistdio/u8-vsnprintf: Likewise.
33860         * modules/unistdio/u8-vsprintf: Likewise.
33861         * modules/unistdio/u16-asnprintf: Likewise.
33862         * modules/unistdio/u16-asprintf: Likewise.
33863         * modules/unistdio/u16-snprintf: Likewise.
33864         * modules/unistdio/u16-sprintf: Likewise.
33865         * modules/unistdio/u16-u16-asnprintf: Likewise.
33866         * modules/unistdio/u16-u16-asprintf: Likewise.
33867         * modules/unistdio/u16-u16-snprintf: Likewise.
33868         * modules/unistdio/u16-u16-sprintf: Likewise.
33869         * modules/unistdio/u16-u16-vasnprintf: Likewise.
33870         * modules/unistdio/u16-u16-vasprintf: Likewise.
33871         * modules/unistdio/u16-u16-vsnprintf: Likewise.
33872         * modules/unistdio/u16-u16-vsprintf: Likewise.
33873         * modules/unistdio/u16-vasnprintf: Likewise.
33874         * modules/unistdio/u16-vasprintf: Likewise.
33875         * modules/unistdio/u16-vsnprintf: Likewise.
33876         * modules/unistdio/u16-vsprintf: Likewise.
33877         * modules/unistdio/u32-asnprintf: Likewise.
33878         * modules/unistdio/u32-asprintf: Likewise.
33879         * modules/unistdio/u32-snprintf: Likewise.
33880         * modules/unistdio/u32-sprintf: Likewise.
33881         * modules/unistdio/u32-u32-asnprintf: Likewise.
33882         * modules/unistdio/u32-u32-asprintf: Likewise.
33883         * modules/unistdio/u32-u32-snprintf: Likewise.
33884         * modules/unistdio/u32-u32-sprintf: Likewise.
33885         * modules/unistdio/u32-u32-vasnprintf: Likewise.
33886         * modules/unistdio/u32-u32-vasprintf: Likewise.
33887         * modules/unistdio/u32-u32-vsnprintf: Likewise.
33888         * modules/unistdio/u32-u32-vsprintf: Likewise.
33889         * modules/unistdio/u32-vasnprintf: Likewise.
33890         * modules/unistdio/u32-vasprintf: Likewise.
33891         * modules/unistdio/u32-vsnprintf: Likewise.
33892         * modules/unistdio/u32-vsprintf: Likewise.
33893         * modules/unistdio/ulc-asnprintf: Likewise.
33894         * modules/unistdio/ulc-asprintf: Likewise.
33895         * modules/unistdio/ulc-fprintf: Likewise.
33896         * modules/unistdio/ulc-snprintf: Likewise.
33897         * modules/unistdio/ulc-sprintf: Likewise.
33898         * modules/unistdio/ulc-vasnprintf: Likewise.
33899         * modules/unistdio/ulc-vasprintf: Likewise.
33900         * modules/unistdio/ulc-vfprintf: Likewise.
33901         * modules/unistdio/ulc-vsnprintf: Likewise.
33902         * modules/unistdio/ulc-vsprintf: Likewise.
33903         * modules/unistr/u8-check: Likewise.
33904         * modules/unistr/u8-chr: Likewise.
33905         * modules/unistr/u8-cmp: Likewise.
33906         * modules/unistr/u8-cmp2: Likewise.
33907         * modules/unistr/u8-cpy: Likewise.
33908         * modules/unistr/u8-cpy-alloc: Likewise.
33909         * modules/unistr/u8-endswith: Likewise.
33910         * modules/unistr/u8-mblen: Likewise.
33911         * modules/unistr/u8-mbsnlen: Likewise.
33912         * modules/unistr/u8-mbtouc: Likewise.
33913         * modules/unistr/u8-mbtouc-unsafe: Likewise.
33914         * modules/unistr/u8-mbtoucr: Likewise.
33915         * modules/unistr/u8-move: Likewise.
33916         * modules/unistr/u8-next: Likewise.
33917         * modules/unistr/u8-prev: Likewise.
33918         * modules/unistr/u8-set: Likewise.
33919         * modules/unistr/u8-startswith: Likewise.
33920         * modules/unistr/u8-stpcpy: Likewise.
33921         * modules/unistr/u8-stpncpy: Likewise.
33922         * modules/unistr/u8-strcat: Likewise.
33923         * modules/unistr/u8-strchr: Likewise.
33924         * modules/unistr/u8-strcmp: Likewise.
33925         * modules/unistr/u8-strcoll: Likewise.
33926         * modules/unistr/u8-strcpy: Likewise.
33927         * modules/unistr/u8-strcspn: Likewise.
33928         * modules/unistr/u8-strdup: Likewise.
33929         * modules/unistr/u8-strlen: Likewise.
33930         * modules/unistr/u8-strmblen: Likewise.
33931         * modules/unistr/u8-strmbtouc: Likewise.
33932         * modules/unistr/u8-strncat: Likewise.
33933         * modules/unistr/u8-strncmp: Likewise.
33934         * modules/unistr/u8-strncpy: Likewise.
33935         * modules/unistr/u8-strnlen: Likewise.
33936         * modules/unistr/u8-strpbrk: Likewise.
33937         * modules/unistr/u8-strrchr: Likewise.
33938         * modules/unistr/u8-strspn: Likewise.
33939         * modules/unistr/u8-strstr: Likewise.
33940         * modules/unistr/u8-strtok: Likewise.
33941         * modules/unistr/u8-to-u16: Likewise.
33942         * modules/unistr/u8-to-u32: Likewise.
33943         * modules/unistr/u8-uctomb: Likewise.
33944         * modules/unistr/u16-check: Likewise.
33945         * modules/unistr/u16-chr: Likewise.
33946         * modules/unistr/u16-cmp: Likewise.
33947         * modules/unistr/u16-cmp2: Likewise.
33948         * modules/unistr/u16-cpy: Likewise.
33949         * modules/unistr/u16-cpy-alloc: Likewise.
33950         * modules/unistr/u16-endswith: Likewise.
33951         * modules/unistr/u16-mblen: Likewise.
33952         * modules/unistr/u16-mbsnlen: Likewise.
33953         * modules/unistr/u16-mbtouc: Likewise.
33954         * modules/unistr/u16-mbtouc-unsafe: Likewise.
33955         * modules/unistr/u16-mbtoucr: Likewise.
33956         * modules/unistr/u16-move: Likewise.
33957         * modules/unistr/u16-next: Likewise.
33958         * modules/unistr/u16-prev: Likewise.
33959         * modules/unistr/u16-set: Likewise.
33960         * modules/unistr/u16-startswith: Likewise.
33961         * modules/unistr/u16-stpcpy: Likewise.
33962         * modules/unistr/u16-stpncpy: Likewise.
33963         * modules/unistr/u16-strcat: Likewise.
33964         * modules/unistr/u16-strchr: Likewise.
33965         * modules/unistr/u16-strcmp: Likewise.
33966         * modules/unistr/u16-strcoll: Likewise.
33967         * modules/unistr/u16-strcpy: Likewise.
33968         * modules/unistr/u16-strcspn: Likewise.
33969         * modules/unistr/u16-strdup: Likewise.
33970         * modules/unistr/u16-strlen: Likewise.
33971         * modules/unistr/u16-strmblen: Likewise.
33972         * modules/unistr/u16-strmbtouc: Likewise.
33973         * modules/unistr/u16-strncat: Likewise.
33974         * modules/unistr/u16-strncmp: Likewise.
33975         * modules/unistr/u16-strncpy: Likewise.
33976         * modules/unistr/u16-strnlen: Likewise.
33977         * modules/unistr/u16-strpbrk: Likewise.
33978         * modules/unistr/u16-strrchr: Likewise.
33979         * modules/unistr/u16-strspn: Likewise.
33980         * modules/unistr/u16-strstr: Likewise.
33981         * modules/unistr/u16-strtok: Likewise.
33982         * modules/unistr/u16-to-u32: Likewise.
33983         * modules/unistr/u16-to-u8: Likewise.
33984         * modules/unistr/u16-uctomb: Likewise.
33985         * modules/unistr/u32-check: Likewise.
33986         * modules/unistr/u32-chr: Likewise.
33987         * modules/unistr/u32-cmp: Likewise.
33988         * modules/unistr/u32-cmp2: Likewise.
33989         * modules/unistr/u32-cpy: Likewise.
33990         * modules/unistr/u32-cpy-alloc: Likewise.
33991         * modules/unistr/u32-endswith: Likewise.
33992         * modules/unistr/u32-mblen: Likewise.
33993         * modules/unistr/u32-mbsnlen: Likewise.
33994         * modules/unistr/u32-mbtouc: Likewise.
33995         * modules/unistr/u32-mbtouc-unsafe: Likewise.
33996         * modules/unistr/u32-mbtoucr: Likewise.
33997         * modules/unistr/u32-move: Likewise.
33998         * modules/unistr/u32-next: Likewise.
33999         * modules/unistr/u32-prev: Likewise.
34000         * modules/unistr/u32-set: Likewise.
34001         * modules/unistr/u32-startswith: Likewise.
34002         * modules/unistr/u32-stpcpy: Likewise.
34003         * modules/unistr/u32-stpncpy: Likewise.
34004         * modules/unistr/u32-strcat: Likewise.
34005         * modules/unistr/u32-strchr: Likewise.
34006         * modules/unistr/u32-strcmp: Likewise.
34007         * modules/unistr/u32-strcoll: Likewise.
34008         * modules/unistr/u32-strcpy: Likewise.
34009         * modules/unistr/u32-strcspn: Likewise.
34010         * modules/unistr/u32-strdup: Likewise.
34011         * modules/unistr/u32-strlen: Likewise.
34012         * modules/unistr/u32-strmblen: Likewise.
34013         * modules/unistr/u32-strmbtouc: Likewise.
34014         * modules/unistr/u32-strncat: Likewise.
34015         * modules/unistr/u32-strncmp: Likewise.
34016         * modules/unistr/u32-strncpy: Likewise.
34017         * modules/unistr/u32-strnlen: Likewise.
34018         * modules/unistr/u32-strpbrk: Likewise.
34019         * modules/unistr/u32-strrchr: Likewise.
34020         * modules/unistr/u32-strspn: Likewise.
34021         * modules/unistr/u32-strstr: Likewise.
34022         * modules/unistr/u32-strtok: Likewise.
34023         * modules/unistr/u32-to-u16: Likewise.
34024         * modules/unistr/u32-to-u8: Likewise.
34025         * modules/unistr/u32-uctomb: Likewise.
34026         * modules/uniwbrk/u8-wordbreaks: Likewise.
34027         * modules/uniwbrk/u16-wordbreaks: Likewise.
34028         * modules/uniwbrk/u32-wordbreaks: Likewise.
34029         * modules/uniwbrk/ulc-wordbreaks: Likewise.
34030         * modules/uniwbrk/wordbreak-property: Likewise.
34031         * modules/uniwidth/u8-strwidth: Likewise.
34032         * modules/uniwidth/u8-width: Likewise.
34033         * modules/uniwidth/u16-strwidth: Likewise.
34034         * modules/uniwidth/u16-width: Likewise.
34035         * modules/uniwidth/u32-strwidth: Likewise.
34036         * modules/uniwidth/u32-width: Likewise.
34037         * modules/uniwidth/width: Likewise.
34038         * modules/unicase/cased-tests (Makefile.am): Link all test programs
34039         with $(LIBUNISTRING).
34040         * modules/unicase/ignorable-tests: Likewise.
34041         * modules/unicase/locale-language-tests: Likewise.
34042         * modules/unicase/tolower-tests: Likewise.
34043         * modules/unicase/totitle-tests: Likewise.
34044         * modules/unicase/toupper-tests: Likewise.
34045         * modules/unicase/u8-casecmp-tests: Likewise.
34046         * modules/unicase/u8-casecoll-tests: Likewise.
34047         * modules/unicase/u8-casefold-tests: Likewise.
34048         * modules/unicase/u8-is-cased-tests: Likewise.
34049         * modules/unicase/u8-is-casefolded-tests: Likewise.
34050         * modules/unicase/u8-is-lowercase-tests: Likewise.
34051         * modules/unicase/u8-is-titlecase-tests: Likewise.
34052         * modules/unicase/u8-is-uppercase-tests: Likewise.
34053         * modules/unicase/u8-tolower-tests: Likewise.
34054         * modules/unicase/u8-totitle-tests: Likewise.
34055         * modules/unicase/u8-toupper-tests: Likewise.
34056         * modules/unicase/u16-casecmp-tests: Likewise.
34057         * modules/unicase/u16-casecoll-tests: Likewise.
34058         * modules/unicase/u16-casefold-tests: Likewise.
34059         * modules/unicase/u16-is-cased-tests: Likewise.
34060         * modules/unicase/u16-is-casefolded-tests: Likewise.
34061         * modules/unicase/u16-is-lowercase-tests: Likewise.
34062         * modules/unicase/u16-is-titlecase-tests: Likewise.
34063         * modules/unicase/u16-is-uppercase-tests: Likewise.
34064         * modules/unicase/u16-tolower-tests: Likewise.
34065         * modules/unicase/u16-totitle-tests: Likewise.
34066         * modules/unicase/u16-toupper-tests: Likewise.
34067         * modules/unicase/u32-casecmp-tests: Likewise.
34068         * modules/unicase/u32-casecoll-tests: Likewise.
34069         * modules/unicase/u32-casefold-tests: Likewise.
34070         * modules/unicase/u32-is-cased-tests: Likewise.
34071         * modules/unicase/u32-is-casefolded-tests: Likewise.
34072         * modules/unicase/u32-is-lowercase-tests: Likewise.
34073         * modules/unicase/u32-is-titlecase-tests: Likewise.
34074         * modules/unicase/u32-is-uppercase-tests: Likewise.
34075         * modules/unicase/u32-tolower-tests: Likewise.
34076         * modules/unicase/u32-totitle-tests: Likewise.
34077         * modules/unicase/u32-toupper-tests: Likewise.
34078         * modules/unicase/ulc-casecmp-tests: Likewise.
34079         * modules/unicase/ulc-casecoll-tests: Likewise.
34080         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
34081         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
34082         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
34083         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
34084         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
34085         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
34086         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
34087         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
34088         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
34089         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
34090         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
34091         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
34092         * modules/unictype/bidicategory-byname-tests: Likewise.
34093         * modules/unictype/bidicategory-name-tests: Likewise.
34094         * modules/unictype/bidicategory-of-tests: Likewise.
34095         * modules/unictype/bidicategory-test-tests: Likewise.
34096         * modules/unictype/block-list-tests: Likewise.
34097         * modules/unictype/block-of-tests: Likewise.
34098         * modules/unictype/block-test-tests: Likewise.
34099         * modules/unictype/category-C-tests: Likewise.
34100         * modules/unictype/category-Cc-tests: Likewise.
34101         * modules/unictype/category-Cf-tests: Likewise.
34102         * modules/unictype/category-Cn-tests: Likewise.
34103         * modules/unictype/category-Co-tests: Likewise.
34104         * modules/unictype/category-Cs-tests: Likewise.
34105         * modules/unictype/category-L-tests: Likewise.
34106         * modules/unictype/category-Ll-tests: Likewise.
34107         * modules/unictype/category-Lm-tests: Likewise.
34108         * modules/unictype/category-Lo-tests: Likewise.
34109         * modules/unictype/category-Lt-tests: Likewise.
34110         * modules/unictype/category-Lu-tests: Likewise.
34111         * modules/unictype/category-M-tests: Likewise.
34112         * modules/unictype/category-Mc-tests: Likewise.
34113         * modules/unictype/category-Me-tests: Likewise.
34114         * modules/unictype/category-Mn-tests: Likewise.
34115         * modules/unictype/category-N-tests: Likewise.
34116         * modules/unictype/category-Nd-tests: Likewise.
34117         * modules/unictype/category-Nl-tests: Likewise.
34118         * modules/unictype/category-No-tests: Likewise.
34119         * modules/unictype/category-P-tests: Likewise.
34120         * modules/unictype/category-Pc-tests: Likewise.
34121         * modules/unictype/category-Pd-tests: Likewise.
34122         * modules/unictype/category-Pe-tests: Likewise.
34123         * modules/unictype/category-Pf-tests: Likewise.
34124         * modules/unictype/category-Pi-tests: Likewise.
34125         * modules/unictype/category-Po-tests: Likewise.
34126         * modules/unictype/category-Ps-tests: Likewise.
34127         * modules/unictype/category-S-tests: Likewise.
34128         * modules/unictype/category-Sc-tests: Likewise.
34129         * modules/unictype/category-Sk-tests: Likewise.
34130         * modules/unictype/category-Sm-tests: Likewise.
34131         * modules/unictype/category-So-tests: Likewise.
34132         * modules/unictype/category-Z-tests: Likewise.
34133         * modules/unictype/category-Zl-tests: Likewise.
34134         * modules/unictype/category-Zp-tests: Likewise.
34135         * modules/unictype/category-Zs-tests: Likewise.
34136         * modules/unictype/category-and-not-tests: Likewise.
34137         * modules/unictype/category-and-tests: Likewise.
34138         * modules/unictype/category-byname-tests: Likewise.
34139         * modules/unictype/category-name-tests: Likewise.
34140         * modules/unictype/category-none-tests: Likewise.
34141         * modules/unictype/category-of-tests: Likewise.
34142         * modules/unictype/category-or-tests: Likewise.
34143         * modules/unictype/category-test-withtable-tests: Likewise.
34144         * modules/unictype/combining-class-tests: Likewise.
34145         * modules/unictype/ctype-alnum-tests: Likewise.
34146         * modules/unictype/ctype-alpha-tests: Likewise.
34147         * modules/unictype/ctype-blank-tests: Likewise.
34148         * modules/unictype/ctype-cntrl-tests: Likewise.
34149         * modules/unictype/ctype-digit-tests: Likewise.
34150         * modules/unictype/ctype-graph-tests: Likewise.
34151         * modules/unictype/ctype-lower-tests: Likewise.
34152         * modules/unictype/ctype-print-tests: Likewise.
34153         * modules/unictype/ctype-punct-tests: Likewise.
34154         * modules/unictype/ctype-space-tests: Likewise.
34155         * modules/unictype/ctype-upper-tests: Likewise.
34156         * modules/unictype/ctype-xdigit-tests: Likewise.
34157         * modules/unictype/decimal-digit-tests: Likewise.
34158         * modules/unictype/digit-tests: Likewise.
34159         * modules/unictype/mirror-tests: Likewise.
34160         * modules/unictype/numeric-tests: Likewise.
34161         * modules/unictype/property-alphabetic-tests: Likewise.
34162         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
34163         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
34164         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
34165         * modules/unictype/property-bidi-block-separator-tests: Likewise.
34166         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
34167         * modules/unictype/property-bidi-common-separator-tests: Likewise.
34168         * modules/unictype/property-bidi-control-tests: Likewise.
34169         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
34170         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
34171         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
34172         * modules/unictype/property-bidi-european-digit-tests: Likewise.
34173         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
34174         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
34175         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
34176         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
34177         * modules/unictype/property-bidi-pdf-tests: Likewise.
34178         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
34179         * modules/unictype/property-bidi-whitespace-tests: Likewise.
34180         * modules/unictype/property-byname-tests: Likewise.
34181         * modules/unictype/property-combining-tests: Likewise.
34182         * modules/unictype/property-composite-tests: Likewise.
34183         * modules/unictype/property-currency-symbol-tests: Likewise.
34184         * modules/unictype/property-dash-tests: Likewise.
34185         * modules/unictype/property-decimal-digit-tests: Likewise.
34186         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
34187         * modules/unictype/property-deprecated-tests: Likewise.
34188         * modules/unictype/property-diacritic-tests: Likewise.
34189         * modules/unictype/property-extender-tests: Likewise.
34190         * modules/unictype/property-format-control-tests: Likewise.
34191         * modules/unictype/property-grapheme-base-tests: Likewise.
34192         * modules/unictype/property-grapheme-extend-tests: Likewise.
34193         * modules/unictype/property-grapheme-link-tests: Likewise.
34194         * modules/unictype/property-hex-digit-tests: Likewise.
34195         * modules/unictype/property-hyphen-tests: Likewise.
34196         * modules/unictype/property-id-continue-tests: Likewise.
34197         * modules/unictype/property-id-start-tests: Likewise.
34198         * modules/unictype/property-ideographic-tests: Likewise.
34199         * modules/unictype/property-ids-binary-operator-tests: Likewise.
34200         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
34201         * modules/unictype/property-ignorable-control-tests: Likewise.
34202         * modules/unictype/property-iso-control-tests: Likewise.
34203         * modules/unictype/property-join-control-tests: Likewise.
34204         * modules/unictype/property-left-of-pair-tests: Likewise.
34205         * modules/unictype/property-line-separator-tests: Likewise.
34206         * modules/unictype/property-logical-order-exception-tests: Likewise.
34207         * modules/unictype/property-lowercase-tests: Likewise.
34208         * modules/unictype/property-math-tests: Likewise.
34209         * modules/unictype/property-non-break-tests: Likewise.
34210         * modules/unictype/property-not-a-character-tests: Likewise.
34211         * modules/unictype/property-numeric-tests: Likewise.
34212         * modules/unictype/property-other-alphabetic-tests: Likewise.
34213         * modules/unictype/property-other-default-ignorable-code-point-tests:
34214         Likewise.
34215         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
34216         * modules/unictype/property-other-id-continue-tests: Likewise.
34217         * modules/unictype/property-other-id-start-tests: Likewise.
34218         * modules/unictype/property-other-lowercase-tests: Likewise.
34219         * modules/unictype/property-other-math-tests: Likewise.
34220         * modules/unictype/property-other-uppercase-tests: Likewise.
34221         * modules/unictype/property-paired-punctuation-tests: Likewise.
34222         * modules/unictype/property-paragraph-separator-tests: Likewise.
34223         * modules/unictype/property-pattern-syntax-tests: Likewise.
34224         * modules/unictype/property-pattern-white-space-tests: Likewise.
34225         * modules/unictype/property-private-use-tests: Likewise.
34226         * modules/unictype/property-punctuation-tests: Likewise.
34227         * modules/unictype/property-quotation-mark-tests: Likewise.
34228         * modules/unictype/property-radical-tests: Likewise.
34229         * modules/unictype/property-sentence-terminal-tests: Likewise.
34230         * modules/unictype/property-soft-dotted-tests: Likewise.
34231         * modules/unictype/property-space-tests: Likewise.
34232         * modules/unictype/property-terminal-punctuation-tests: Likewise.
34233         * modules/unictype/property-test-tests: Likewise.
34234         * modules/unictype/property-titlecase-tests: Likewise.
34235         * modules/unictype/property-unassigned-code-value-tests: Likewise.
34236         * modules/unictype/property-unified-ideograph-tests: Likewise.
34237         * modules/unictype/property-uppercase-tests: Likewise.
34238         * modules/unictype/property-variation-selector-tests: Likewise.
34239         * modules/unictype/property-white-space-tests: Likewise.
34240         * modules/unictype/property-xid-continue-tests: Likewise.
34241         * modules/unictype/property-xid-start-tests: Likewise.
34242         * modules/unictype/property-zero-width-tests: Likewise.
34243         * modules/unictype/scripts-tests: Likewise.
34244         * modules/unictype/syntax-c-ident-tests: Likewise.
34245         * modules/unictype/syntax-c-whitespace-tests: Likewise.
34246         * modules/unictype/syntax-java-ident-tests: Likewise.
34247         * modules/unictype/syntax-java-whitespace-tests: Likewise.
34248         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
34249         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
34250         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
34251         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
34252         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
34253         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
34254         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
34255         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
34256         * modules/uniname/uniname-tests: Likewise.
34257         * modules/uninorm/canonical-decomposition-tests: Likewise.
34258         * modules/uninorm/compat-decomposition-tests: Likewise.
34259         * modules/uninorm/composition-tests: Likewise.
34260         * modules/uninorm/decomposing-form-tests: Likewise.
34261         * modules/uninorm/decomposition-tests: Likewise.
34262         * modules/uninorm/filter-tests: Likewise.
34263         * modules/uninorm/nfc-tests: Likewise.
34264         * modules/uninorm/nfd-tests: Likewise.
34265         * modules/uninorm/nfkc-tests: Likewise.
34266         * modules/uninorm/nfkd-tests: Likewise.
34267         * modules/uninorm/u8-normcmp-tests: Likewise.
34268         * modules/uninorm/u8-normcoll-tests: Likewise.
34269         * modules/uninorm/u16-normcmp-tests: Likewise.
34270         * modules/uninorm/u16-normcoll-tests: Likewise.
34271         * modules/uninorm/u32-normcmp-tests: Likewise.
34272         * modules/uninorm/u32-normcoll-tests: Likewise.
34273         * modules/unistdio/u8-asnprintf-tests: Likewise.
34274         * modules/unistdio/u8-vasnprintf-tests: Likewise.
34275         * modules/unistdio/u8-vasprintf-tests: Likewise.
34276         * modules/unistdio/u8-vsnprintf-tests: Likewise.
34277         * modules/unistdio/u8-vsprintf-tests: Likewise.
34278         * modules/unistdio/u16-asnprintf-tests: Likewise.
34279         * modules/unistdio/u16-vasnprintf-tests: Likewise.
34280         * modules/unistdio/u16-vasprintf-tests: Likewise.
34281         * modules/unistdio/u16-vsnprintf-tests: Likewise.
34282         * modules/unistdio/u16-vsprintf-tests: Likewise.
34283         * modules/unistdio/u32-asnprintf-tests: Likewise.
34284         * modules/unistdio/u32-vasnprintf-tests: Likewise.
34285         * modules/unistdio/u32-vasprintf-tests: Likewise.
34286         * modules/unistdio/u32-vsnprintf-tests: Likewise.
34287         * modules/unistdio/u32-vsprintf-tests: Likewise.
34288         * modules/unistdio/ulc-asnprintf-tests: Likewise.
34289         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
34290         * modules/unistdio/ulc-vasprintf-tests: Likewise.
34291         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
34292         * modules/unistdio/ulc-vsprintf-tests: Likewise.
34293         * modules/unistr/u8-check-tests: Likewise.
34294         * modules/unistr/u8-chr-tests: Likewise.
34295         * modules/unistr/u8-cmp-tests: Likewise.
34296         * modules/unistr/u8-cmp2-tests: Likewise.
34297         * modules/unistr/u8-cpy-alloc-tests: Likewise.
34298         * modules/unistr/u8-cpy-tests: Likewise.
34299         * modules/unistr/u8-mblen-tests: Likewise.
34300         * modules/unistr/u8-mbsnlen-tests: Likewise.
34301         * modules/unistr/u8-mbtouc-tests: Likewise.
34302         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
34303         * modules/unistr/u8-mbtoucr-tests: Likewise.
34304         * modules/unistr/u8-move-tests: Likewise.
34305         * modules/unistr/u8-next-tests: Likewise.
34306         * modules/unistr/u8-prev-tests: Likewise.
34307         * modules/unistr/u8-set-tests: Likewise.
34308         * modules/unistr/u8-stpcpy-tests: Likewise.
34309         * modules/unistr/u8-stpncpy-tests: Likewise.
34310         * modules/unistr/u8-strcat-tests: Likewise.
34311         * modules/unistr/u8-strcmp-tests: Likewise.
34312         * modules/unistr/u8-strcoll-tests: Likewise.
34313         * modules/unistr/u8-strcpy-tests: Likewise.
34314         * modules/unistr/u8-strdup-tests: Likewise.
34315         * modules/unistr/u8-strlen-tests: Likewise.
34316         * modules/unistr/u8-strmblen-tests: Likewise.
34317         * modules/unistr/u8-strmbtouc-tests: Likewise.
34318         * modules/unistr/u8-strncat-tests: Likewise.
34319         * modules/unistr/u8-strncmp-tests: Likewise.
34320         * modules/unistr/u8-strncpy-tests: Likewise.
34321         * modules/unistr/u8-strnlen-tests: Likewise.
34322         * modules/unistr/u8-to-u16-tests: Likewise.
34323         * modules/unistr/u8-to-u32-tests: Likewise.
34324         * modules/unistr/u8-uctomb-tests: Likewise.
34325         * modules/unistr/u16-check-tests: Likewise.
34326         * modules/unistr/u16-chr-tests: Likewise.
34327         * modules/unistr/u16-cmp-tests: Likewise.
34328         * modules/unistr/u16-cmp2-tests: Likewise.
34329         * modules/unistr/u16-cpy-alloc-tests: Likewise.
34330         * modules/unistr/u16-cpy-tests: Likewise.
34331         * modules/unistr/u16-mblen-tests: Likewise.
34332         * modules/unistr/u16-mbsnlen-tests: Likewise.
34333         * modules/unistr/u16-mbtouc-tests: Likewise.
34334         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
34335         * modules/unistr/u16-mbtoucr-tests: Likewise.
34336         * modules/unistr/u16-move-tests: Likewise.
34337         * modules/unistr/u16-next-tests: Likewise.
34338         * modules/unistr/u16-prev-tests: Likewise.
34339         * modules/unistr/u16-set-tests: Likewise.
34340         * modules/unistr/u16-stpcpy-tests: Likewise.
34341         * modules/unistr/u16-stpncpy-tests: Likewise.
34342         * modules/unistr/u16-strcat-tests: Likewise.
34343         * modules/unistr/u16-strcmp-tests: Likewise.
34344         * modules/unistr/u16-strcoll-tests: Likewise.
34345         * modules/unistr/u16-strcpy-tests: Likewise.
34346         * modules/unistr/u16-strdup-tests: Likewise.
34347         * modules/unistr/u16-strlen-tests: Likewise.
34348         * modules/unistr/u16-strmblen-tests: Likewise.
34349         * modules/unistr/u16-strmbtouc-tests: Likewise.
34350         * modules/unistr/u16-strncat-tests: Likewise.
34351         * modules/unistr/u16-strncmp-tests: Likewise.
34352         * modules/unistr/u16-strncpy-tests: Likewise.
34353         * modules/unistr/u16-strnlen-tests: Likewise.
34354         * modules/unistr/u16-to-u32-tests: Likewise.
34355         * modules/unistr/u16-to-u8-tests: Likewise.
34356         * modules/unistr/u16-uctomb-tests: Likewise.
34357         * modules/unistr/u32-check-tests: Likewise.
34358         * modules/unistr/u32-chr-tests: Likewise.
34359         * modules/unistr/u32-cmp-tests: Likewise.
34360         * modules/unistr/u32-cmp2-tests: Likewise.
34361         * modules/unistr/u32-cpy-alloc-tests: Likewise.
34362         * modules/unistr/u32-cpy-tests: Likewise.
34363         * modules/unistr/u32-mblen-tests: Likewise.
34364         * modules/unistr/u32-mbsnlen-tests: Likewise.
34365         * modules/unistr/u32-mbtouc-tests: Likewise.
34366         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
34367         * modules/unistr/u32-mbtoucr-tests: Likewise.
34368         * modules/unistr/u32-move-tests: Likewise.
34369         * modules/unistr/u32-next-tests: Likewise.
34370         * modules/unistr/u32-prev-tests: Likewise.
34371         * modules/unistr/u32-set-tests: Likewise.
34372         * modules/unistr/u32-stpcpy-tests: Likewise.
34373         * modules/unistr/u32-stpncpy-tests: Likewise.
34374         * modules/unistr/u32-strcat-tests: Likewise.
34375         * modules/unistr/u32-strcmp-tests: Likewise.
34376         * modules/unistr/u32-strcoll-tests: Likewise.
34377         * modules/unistr/u32-strcpy-tests: Likewise.
34378         * modules/unistr/u32-strdup-tests: Likewise.
34379         * modules/unistr/u32-strlen-tests: Likewise.
34380         * modules/unistr/u32-strmblen-tests: Likewise.
34381         * modules/unistr/u32-strmbtouc-tests: Likewise.
34382         * modules/unistr/u32-strncat-tests: Likewise.
34383         * modules/unistr/u32-strncmp-tests: Likewise.
34384         * modules/unistr/u32-strncpy-tests: Likewise.
34385         * modules/unistr/u32-strnlen-tests: Likewise.
34386         * modules/unistr/u32-to-u16-tests: Likewise.
34387         * modules/unistr/u32-to-u8-tests: Likewise.
34388         * modules/unistr/u32-uctomb-tests: Likewise.
34389         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
34390         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
34391         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
34392         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
34393         * modules/uniwidth/u8-strwidth-tests: Likewise.
34394         * modules/uniwidth/u8-width-tests: Likewise.
34395         * modules/uniwidth/u16-strwidth-tests: Likewise.
34396         * modules/uniwidth/u16-width-tests: Likewise.
34397         * modules/uniwidth/u32-strwidth-tests: Likewise.
34398         * modules/uniwidth/u32-width-tests: Likewise.
34399         * modules/uniwidth/width-tests: Likewise.
34400
34401 2010-05-18  Richard Jones  <rjones@redhat.com>
34402
34403         doc: users.txt: list hivex
34404         * users.txt: Add hivex.
34405
34406 2010-05-18  Richard Jones  <rjones@redhat.com>
34407
34408         doc: users.txt: list febootstrap
34409         * users.txt: Add febootstrap.
34410
34411 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
34412
34413         bootstrap: fix an error when gnulib is not used as a git submodule
34414         * build-aux/bootstrap (gnulib_path): If its length is zero then
34415         assign "gnulib" to it.
34416         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
34417
34418 2010-05-16  Bruno Haible  <bruno@clisp.org>
34419
34420         Avoid autoconf warnings about AM_ICONV.
34421         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
34422         2.64.
34423
34424 2010-05-16  Bruno Haible  <bruno@clisp.org>
34425
34426         absolute-header: Make the macro usable in more situations.
34427         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
34428         from gl_ABSOLUTE_HEADER.
34429         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
34430
34431 2010-05-16  James Youngman  <jay@gnu.org>
34432
34433         doc: update users.txt
34434         * users.txt: Add CSSC.
34435
34436 2010-05-16  Jim Meyering  <meyering@redhat.com>
34437
34438         init.sh: fix an error in the previous change; add more comments
34439         * tests/init.sh: Compare exit code in loop against 9, not 2.
34440         Patch by Bruno Haible.
34441         Make the two tests more similar by adding an empty "then" clause.
34442         Add comments.
34443
34444         init.sh: avoid unnecessary shell re-exec
34445         * tests/init.sh: Improve the re-exec-required check to first test the
34446         current shell.  If it passes the test, do not search for a shell that
34447         does pass, and do not re-exec.  This test is particularly contorted to
34448         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
34449         of $(...) evokes a syntax error and causes immediate shell exit with
34450         status 2.  Bruno Haible reported that the re-exec made it impossible
34451         to single-step through any init.sh-using script.
34452
34453 2010-05-16  Bruno Haible  <bruno@clisp.org>
34454
34455         Fix collision between gnulib's and libintl's printf replacements.
34456         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
34457         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
34458         (printf): When using GNU C, map the __printf__ function to rpl_printf
34459         via __asm__. When not using GNU C, define rpl_printf instead of
34460         __printf__.
34461         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
34462         commit.
34463         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
34464         commit.
34465         * m4/asm-underscore.m4: New file.
34466         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
34467         * modules/stdio (Files): Add m4/asm-underscore.m4.
34468         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
34469         Reported by Ben Pfaff.
34470
34471 2010-05-16  Bruno Haible  <bruno@clisp.org>
34472
34473         verify: Avoid skipping the test on openSUSE 11.0.
34474         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
34475
34476 2010-05-13  Bruno Haible  <bruno@clisp.org>
34477
34478         Avoid useless warnings from G++.
34479         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
34480         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
34481         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
34482
34483 2010-05-11  Jim Meyering  <meyering@redhat.com>
34484
34485         maint.mk: tweak preceding change
34486         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
34487         regexps tighter by anchoring at EOL, and make the new group "shy"
34488         for slightly decreased overhead.
34489
34490 2010-05-11  Eric Blake  <eblake@redhat.com>
34491
34492         maint.mk: gnulib doesn't guarantee NSIG
34493         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
34494
34495 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
34496
34497         test-pwrite.c: Remove unused variable declaration.
34498         * tests/test-pwrite.c (main): Remove read_buf declaration.
34499
34500         Remove useless test-pwrite.sh file.
34501         * tests/test-pwrite.sh: Delete file.
34502         * modules/pwrite-tests: Remove references.
34503         Reported by Bruno Haible.
34504
34505 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
34506
34507         init.sh: fix a typo
34508         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
34509
34510 2010-05-10  Jim Meyering  <meyering@redhat.com>
34511
34512         maint.mk: avoid using a temporary file in the always-defined-macros check
34513         * top/maint.mk (.re-defmac): Remove rule.
34514         (gl_trap_): Remove definition.
34515         (sc_prohibit_always-defined_macros): Rewrite not to create and
34516         depend on a temporary file.  Instead, depend on GNU grep's ability
34517         to read a list of regular expressions from stdin when given "-f -".
34518
34519 2010-05-09  Bruno Haible  <bruno@clisp.org>
34520
34521         Update to GNU gettext 0.18, part 1.
34522         * m4/gettext.m4: Update to GNU gettext 0.18.
34523         * m4/intl.m4: Likewise.
34524         * m4/po.m4: Likewise.
34525         * modules/gettext (Files): Add m4/fcntl-o.m4.
34526         (configure.ac): Require gettext infrastructure from version 0.18.
34527
34528 2010-05-09  Jim Meyering  <meyering@redhat.com>
34529
34530         init.sh: enable MALLOC_PERTURB_
34531         * tests/init.sh: Enable glibc's malloc-perturbing option.
34532
34533         maint.mk: improve sc_cross_check_PATH_usage_in_tests
34534         With my recent change in init.sh from the two-line form:
34535             -#   : ${srcdir=.}
34536             -#   . "$srcdir/init.sh"; path_prepend_ .
34537             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
34538         I noticed that using the one-line form would cause this test
34539         to fail with a false-positive, or to stop working altogether,
34540         depending on whether help-version changed or all the tests did.
34541         * top/maint.mk (_hv_regex): Remove this definition.
34542         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
34543         (_hv_regex_strong): Use a stronger regex to check for conformance.
34544         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
34545         Give a separate diagnostic for lack of conforming use.
34546
34547         maint.mk: prohibit definition of symbols defined by gnulib
34548         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
34549         definition of symbols defined by gnulib.
34550
34551 2010-05-09  Bruno Haible  <bruno@clisp.org>
34552
34553         acl: Avoid test failure on Cygwin-hosted mingw.
34554         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
34555
34556 2010-05-09  Bruno Haible  <bruno@clisp.org>
34557
34558         error: Use system's fcntl function.
34559         * lib/error.c (fcntl): Undefine.
34560
34561 2010-05-09  Jim Meyering  <meyering@redhat.com>
34562
34563         verify: adjust formatting to be more consistent
34564         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
34565         argument-list '('s, and after one comma.
34566
34567 2010-05-09  Bruno Haible  <bruno@clisp.org>
34568
34569         error: More reliable output on mingw.
34570         * lib/error.c: Include <windows.h>.
34571         (is_open): New function.
34572         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
34573         defined.
34574
34575 2010-05-09  Bruno Haible  <bruno@clisp.org>
34576
34577         vasnprintf: Fix syntax errors in libintl build on mingw.
34578         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
34579         pad_ourselves and prec_ourselves after use.
34580
34581 2010-05-08  Bruno Haible  <bruno@clisp.org>
34582
34583         * lib/config.charset: Update comments for Cygwin 1.7.
34584         * lib/localcharset.c: Likewise.
34585
34586 2010-05-07  Jim Meyering  <meyering@redhat.com>
34587
34588         init.sh: improve comments
34589         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
34590         . "${srcdir=.}/init.sh"; path_prepend_ .
34591         Add a note about path_prepend_ and the alternative of using
34592         TESTS_ENVIRONMENT.
34593
34594 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
34595
34596         exclude: Unescape hashed patterns in wildcard mode.
34597         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
34598         to the hash list.
34599         * tests/test-exclude8.sh: New test case.
34600         * modules/exclude-tests: Add new test.
34601
34602 2010-05-05  Eric Blake  <eblake@redhat.com>
34603
34604         verify: automate tests
34605         * modules/verify-tests: New module.
34606         * tests/test-verify.sh: New file.
34607         * tests/test-verify.c: Guard each negative test with a unique id.
34608         Also avoid warning about unused left hand of comma expressions.
34609
34610 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
34611
34612         Further improvements to verify.h, suggested by Eric Blake.
34613         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
34614         the GL_* versions, to avoid collision with OpenGL.
34615         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
34616         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
34617         than testing merely whether it's defined.
34618
34619         Modify verify.h to pacify gcc -Wredundant_decls.
34620         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
34621         These use the prefix "GL_" since they're likely to be useful elsewhere.
34622         We may need to break them out into a different .h file.
34623         (__COUNTER__): Define to 0 if the compiler doesn't support it.
34624         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
34625         of verify_function__.
34626
34627 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
34628
34629         Tests for module pwrite.
34630         * modules/pwrite-tests: New file.
34631         * tests/test-pwrite.sh: New file.
34632         * tests/test-pwrite.c: New file.
34633
34634         New module pwrite.
34635         * lib/unistd.in.h (pwrite): New declaration.
34636         * lib/pwrite.c: New file, from glibc with modifications.
34637         * m4/pwrite.m4: New file.
34638         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
34639         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
34640         REPLACE_PWRITE.
34641         * modules/pwrite: New file.
34642         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
34643         REPLACE_PWRITE.
34644         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
34645         * doc/posix-functions/pwrite.texi: Mention the new module.
34646
34647 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
34648
34649         pread: Update documentation.
34650         * doc/posix-functions/pread.texi: Mention the 'pread' module.
34651
34652 2010-05-04  Eric Blake  <eblake@redhat.com>
34653
34654         docs: update cygwin progress
34655         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
34656         this bug.
34657         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
34658         Added in cygwin 1.7.2.
34659         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
34660         Likewise.
34661         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
34662         Likewise.
34663         * doc/glibc-functions/dup3.texi (dup3): Likewise.
34664         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
34665         * doc/glibc-functions/accept4.texi (accept4): Likewise.
34666         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
34667         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
34668         Mention nproc module.
34669         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
34670         bug in cygwin 1.7.5 addition.
34671         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
34672         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
34673         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
34674         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
34675         1.7.5.
34676         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
34677         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
34678         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
34679         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
34680         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
34681         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
34682         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
34683         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
34684         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
34685         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
34686         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
34687         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
34688         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
34689         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
34690         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
34691         Likewise.
34692         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
34693         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
34694         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
34695         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
34696         Likewise.
34697         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
34698         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
34699         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
34700         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
34701         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
34702         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
34703         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
34704         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
34705         Likewise.
34706         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
34707         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
34708         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
34709         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
34710         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
34711         Likewise.
34712         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
34713         Likewise.
34714         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
34715         Likewise.
34716         * doc/glibc-functions/xdrrec_endofrecord.texi
34717         (xdrrec_endofrecord): Likewise.
34718         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
34719         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
34720         Likewise.
34721         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
34722         Likewise.
34723
34724 2010-05-04  Jim Meyering  <meyering@redhat.com>
34725
34726         gendocs.sh: make its "-s FILE" option more useful
34727         * build-aux/gendocs.sh: When honoring the -s FILE option, update
34728         $PACKAGE to reflect the probably-different basename of "FILE".
34729
34730 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
34731
34732         bootstrap: don't ignore download_po_files failure
34733         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
34734         failure.
34735
34736 2010-05-03  Jim Meyering  <meyering@redhat.com>
34737
34738         maint.mk: allow to pass options to gendocs.sh
34739         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
34740         (gendocs_options_): New overridable variable.
34741
34742         gnu-web-doc-update: don't ignore configure or build failure
34743         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
34744
34745         announce-gen: backslash-escape '@'s in --help output
34746         * build-aux/announce-gen: Fix syntax errors.
34747
34748         maint.mk, announce-gen: allow project-specific announcement mail headers
34749         * top/maint.mk (translation_project_): Define default.
34750         (announcement_Cc_, announcement_mail_headers_): Likewise.
34751         (announcement): Invoke announce-gen with new --mail-headers option.
34752         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
34753
34754         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
34755         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
34756         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
34757         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
34758         line in the "err2" output file when running "make check" in verbose
34759         mode (i.e., with set -x enabled).
34760
34761 2010-05-03  Bruno Haible  <bruno@clisp.org>
34762
34763         wctob: Fix for weird platforms.
34764         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
34765         argument value.
34766
34767 2010-05-03  Jim Meyering  <meyering@redhat.com>
34768
34769         maint.mk: prohibit unwarranted use of <strings.h>
34770         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
34771         strings.h in a file that does not also use strcasecmp, strncasecmp,
34772         ffs or ffsll.
34773
34774         maint.mk: remove obsolete comments
34775         * top/maint.mk: Remove stale, commented-out rules.
34776
34777 2010-05-02  Bruno Haible  <bruno@clisp.org>
34778
34779         wcwidth: Declare also when it's aliased.
34780         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
34781         macro.
34782
34783 2010-05-02  Bruno Haible  <bruno@clisp.org>
34784
34785         Fix regression from 2010-04-25.
34786         * gnulib-tool (func_modules_transitive_closure): Check the status of
34787         all modules, not only of the tests that are of the form foo-tests where
34788         foo is a module.
34789
34790 2010-05-02  Bruno Haible  <bruno@clisp.org>
34791
34792         wctob: Work around nasty Cygwin 1.7.2 bug.
34793         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
34794         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
34795
34796 2010-05-01  Bruno Haible  <bruno@clisp.org>
34797
34798         fpurge: Sharper test.
34799         * tests/test-fpurge.c (main): Add one more ftell check.
34800         * modules/fpurge-tests (Depends-on): Add ftell.
34801         Suggested by Eric Blake.
34802
34803 2010-05-01  Bruno Haible  <bruno@clisp.org>
34804
34805         ftello: Another test.
34806         * tests/test-ftello3.c: New file.
34807         * modules/ftello-tests (Files): Add it.
34808         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
34809         MOSTLYCLEANFILES.
34810
34811         ftell: Another test.
34812         * tests/test-ftell3.c: New file.
34813         * modules/ftell-tests (Files): Add it.
34814         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
34815         MOSTLYCLEANFILES.
34816
34817 2010-05-01  Bruno Haible  <bruno@clisp.org>
34818
34819         ftell, ftello: Work around Solaris bug.
34820         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
34821         * lib/ftello.c: Include stdio-impl.h.
34822         (ftello): On Solaris, when _IOWRT is set, compute the result without
34823         looking at _IOREAD.
34824         * modules/ftello (Files): Add lib/stdio-impl.h.
34825         * doc/posix-functions/ftell.texi: Mention Solaris bug.
34826         * doc/posix-functions/ftello.texi: Likewise.
34827         Reported by Eric Blake.
34828
34829 2010-05-01  Bruno Haible  <bruno@clisp.org>
34830
34831         freading: Adapt to special meaning of _IOREAD flag on Solaris.
34832         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
34833         the _IOWRT flag is also set.
34834
34835 2010-05-01  Bruno Haible  <bruno@clisp.org>
34836
34837         Fix doc about a HP-UX stdio bug.
34838         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
34839         * doc/posix-functions/ftello.texi: Likewise.
34840
34841 2010-05-01  Bruno Haible  <bruno@clisp.org>
34842
34843         lseek test: Fix failure on Solaris.
34844         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
34845         output.
34846
34847 2010-04-30  Jim Meyering  <meyering@redhat.com>
34848
34849         bootstrap: don't ignore failure to generate po*/Makevars
34850         * build-aux/bootstrap (with_gettext): Don't ignore failure
34851         to create po/Makevars or runtime-po/Makevars.
34852
34853 2010-04-29  Eric Blake  <eblake@redhat.com>
34854
34855         headers: relax license to LGPLv2+
34856         * modules/fcntl-h (License): Relax license.
34857         * modules/getopt-posix (License): Likewise.
34858         * modules/locale (License): Likewise.
34859         * modules/math (License): Likewise.
34860         * modules/pty (License): Likewise.
34861         * modules/sched (License): Likewise.
34862         * modules/search (License): Likewise.
34863         * modules/spawn (License): Likewise.
34864         * modules/stdarg (License): Likewise.
34865         * modules/sysexits (License): Likewise.
34866
34867 2010-04-29  Jim Meyering  <meyering@redhat.com>
34868
34869         inttypes: relax license to LGPLv2+
34870         * modules/inttypes (License): Relax license.
34871
34872 2010-04-29  Simon Josefsson  <simon@josefsson.org>
34873
34874         * top/maint.mk (indent): Run twice to produce idempotent results.
34875
34876 2010-04-28  Bruno Haible  <bruno@clisp.org>
34877
34878         getdate: Generate getdate.c in the source directory.
34879         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
34880         MOSTLYCLEANFILES.
34881         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
34882
34883 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
34884
34885         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
34886         is not declared as a const *; avoid warnings in that case.
34887
34888 2010-04-28  Eric Blake  <eblake@redhat.com>
34889
34890         canonicalize-lgpl: avoid compiler warning
34891         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
34892         declaration' / 'extraneous semicolon' warning with some compilers.
34893         Reported by Andreas Gruenbacher.
34894
34895 2010-04-28  Jim Meyering  <meyering@redhat.com>
34896
34897         init.sh: ensure a more reliable exit status when exiting via trap
34898         * tests/init.sh (setup_): Don't rely on $? in signal handler.
34899         Inspired by patches from Dmitry V. Levin.
34900         Also trap on signal 3 (SIGQUIT).
34901
34902 2010-04-27  Bruno Haible  <bruno@clisp.org>
34903
34904         Update doc about utimes().
34905         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
34906         'utimens' module.
34907         Reported by Andreas Gruenbacher <agruen@suse.de>.
34908
34909 2010-04-27  Eric Blake  <eblake@redhat.com>
34910
34911         full-read, full-write: relax license
34912         * modules/full-read (License): Drop to LGPLv2+.
34913         * modules/full-write (License): Likewise.
34914         * modules/safe-read (License): Likewise.
34915         * modules/safe-write (License): Likewise.
34916
34917         pthread: mention library for linking
34918         * modules/pthread (Link): Mention $(LIB_PTHREAD).
34919
34920 2010-04-27  Jim Meyering  <meyering@redhat.com>
34921
34922         maint.mk: fix a bug introduced in last change
34923         * top/maint.mk (gl_assured_headers_): Now that all names are on
34924         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
34925         is not anchored to end of word, it should be adequate.
34926
34927         maint.mk: avoid side-effect in latest syntax-check
34928         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
34929         to run commands via $(shell...), and hence to incur cost only when
34930         the new rule is actually run.
34931
34932         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
34933         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
34934         and use that to create a regexp used to detect all #if HAVE_..._H uses.
34935         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
34936         (gl_assured_headers_, az_, AZ_): Define.
34937         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
34938
34939 2010-04-26  Jim Meyering  <jim@meyering.net>
34940             Bruno Haible  <bruno@clisp.org>
34941
34942         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
34943         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
34944         Prompted by an exchange with Gilles Espinasse.
34945
34946 2010-04-26  Jim Meyering  <meyering@redhat.com>
34947
34948         git-version-gen: aesthetic tweak
34949         * build-aux/git-version-gen: Use "$nl" rather than a literal,
34950         so that the command remains on a single line.
34951
34952 2010-04-26  Eric Blake  <eblake@redhat.com>
34953
34954         git-version-gen: allow use on EBCDIC hosts
34955         * build-aux/git-version-gen (dirty): Use literal rather than tying
34956         ourselves to ascii.
34957         Reported by Steve Goetze.
34958
34959 2010-04-25  Bruno Haible  <bruno@clisp.org>
34960
34961         netdb: Add support for GNULIB_POSIXCHECK.
34962         * lib/netdb.in.h: Include warn-on-use.h.
34963         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
34964         functions are used when GNULIB_POSIXCHECK is defined and the
34965         getaddrinfo module is not in use.
34966         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
34967         freeaddrinfo, gai_strerror, getnameinfo are declared.
34968         * modules/netdb (Depends-on): Add warn-on-use.
34969         (Makefile.am): Include warn-on-use.h in netdb.h.
34970
34971 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
34972
34973         build: avoid "make check" failure without .git/ directory
34974         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
34975         there is no .git/ directory.
34976
34977 2010-04-25  Bruno Haible  <bruno@clisp.org>
34978
34979         ptsname: Fix misuse of ttyname_r.
34980         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
34981         of errno.
34982
34983 2010-04-25  Bruno Haible  <bruno@clisp.org>
34984
34985         ttyname_r: Make it work on Solaris 10.
34986         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
34987         if the system function has the POSIX declaration. Test whether the
34988         function fails if the buffer is less than 128 bytes large.
34989         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
34990         system's ttyname_r function. Provide a reasonably large buffer.
34991         * modules/ttyname_r (Depends-on): Add extensions.
34992         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
34993
34994 2010-04-25  Bruno Haible  <bruno@clisp.org>
34995
34996         Use the 'extensions' module for some more functions on Solaris.
34997         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
34998         module.
34999         * doc/posix-functions/ctime_r.texi: Likewise.
35000         * doc/posix-functions/getgrgid_r.texi: Likewise.
35001         * doc/posix-functions/getgrnam_r.texi: Likewise.
35002         * doc/posix-functions/getpwnam_r.texi: Likewise.
35003         * doc/posix-functions/getpwuid_r.texi: Likewise.
35004         * doc/posix-functions/readdir_r.texi: Likewise.
35005         * doc/posix-functions/sigwait.texi: Likewise.
35006         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
35007         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
35008
35009 2010-04-25  Bruno Haible  <bruno@clisp.org>
35010
35011         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
35012         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
35013         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
35014         * lib/ttyname_r.c: Include <limits.h>.
35015         (ttyname_r): Define using the system's ttyname_r function, if it exists
35016         and not on Solaris.
35017         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
35018         set.
35019         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
35020         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
35021         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
35022         Reported by Simon Josefsson.
35023
35024 2010-04-25  Bruno Haible  <bruno@clisp.org>
35025
35026         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
35027         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
35028         * doc/posix-functions/ctime_r.texi: Likewise.
35029         * doc/posix-functions/getgrgid_r.texi: Likewise.
35030         * doc/posix-functions/getgrnam_r.texi: Likewise.
35031         * doc/posix-functions/getlogin_r.texi: Likewise.
35032         * doc/posix-functions/getpwnam_r.texi: Likewise.
35033         * doc/posix-functions/getpwuid_r.texi: Likewise.
35034         * doc/posix-functions/readdir_r.texi: Likewise.
35035         * doc/posix-functions/sigwait.texi: Likewise.
35036         * doc/posix-functions/ttyname_r.texi: Likewise.
35037         Reported by Simon Josefsson.
35038
35039 2010-04-25  Bruno Haible  <bruno@clisp.org>
35040
35041         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
35042         * gnulib-tool (func_usage): Document that --with-*-tests options apply
35043         also to --create-testdir.
35044         (func_acceptable): Don't consider the status of *-tests modules here.
35045         (func_modules_transitive_closure): Consider it here, before including a
35046         test module.
35047         (func_import, func_create_testdir): Set inc_all_direct_tests,
35048         inc_all_indirect_tests.
35049         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
35050         --create-testdir and --create-megatestdir.
35051
35052 2010-04-25  Bruno Haible  <bruno@clisp.org>
35053
35054         gnulib-tool: Add --without-*-tests options.
35055         * gnulib-tool (func_usage): Document the --without-*-tests options.
35056         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
35057         excl_unportable_tests): New variables.
35058         Fail if they are specified with --import or --update.
35059         (func_acceptable): Respect the excl_*_tests variables.
35060         (func_import): Set the excl_*_tests variables to empty.
35061
35062 2010-04-25  Simon Josefsson  <simon@josefsson.org>
35063             Bruno Haible  <bruno@clisp.org>
35064
35065         Work around a MacOS X 10.4 bug with openpty.
35066         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
35067         * tests/test-openpty.c (main): Close the master side explicitly.
35068
35069 2010-04-25  Bruno Haible  <bruno@clisp.org>
35070
35071         strnlen: Fix a C++ test error on MacOS X and Solaris.
35072         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
35073         the function is not declared.
35074         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
35075         Simon Josefsson.
35076
35077 2010-04-24  Bruno Haible  <bruno@clisp.org>
35078
35079         Avoid a gcc warning.
35080         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
35081         of correct type for %08lx directive.
35082         Reported by Eric Blake.
35083
35084 2010-04-24  Bruno Haible  <bruno@clisp.org>
35085
35086         vasnprintf: Correct errno value in case of out-of-memory.
35087         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
35088         or sprintf. Use the errno value from SNPRINTF or sprintf.
35089         Reported by Ian Beckwith <ianb@erislabs.net>.
35090
35091 2010-04-24  Bruno Haible  <bruno@clisp.org>
35092
35093         ansi-c++-opt: Find correct compiler when cross-compiling.
35094         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
35095         AC_CHECK_PROGS.
35096         Reported by Simon Josefsson.
35097
35098 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
35099
35100         vc-list-files: Add support for subversion
35101         * build-aux/vc-list-files: Use "svn list" to generate the list of
35102         files controlled by subversion.
35103
35104 2010-04-23  Jim Meyering  <meyering@redhat.com>
35105
35106         vc-list-files tests: convert to use init.sh
35107         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
35108         path_prepend_.
35109         Use Exit, not exit.
35110         Use skip_ rather than open coding it.
35111         Remove trap set-up and compare definitions.
35112         * tests/test-vc-list-files-git.sh: Likewise.
35113         * modules/vc-list-files-tests (Files): Add tests/init.sh.
35114
35115 2010-04-22  Simon Josefsson  <simon@josefsson.org>
35116
35117         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
35118         backup files.
35119
35120 2010-04-21  Simon Josefsson  <simon@josefsson.org>
35121
35122         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
35123
35124 2010-04-20  Eric Blake  <eblake@redhat.com>
35125
35126         tests: be robust to ignored SIGPIPE
35127         * tests/test-select-in.sh: Consume all output.
35128         * tests/test-lseek.sh: Check correct exit status, while avoiding
35129         EPIPE.
35130
35131 2010-04-20  Simon Josefsson  <simon@josefsson.org>
35132             Bruno Haible  <bruno@clisp.org>
35133
35134         visibility: Don't use -fvisibility if it leads to a warning.
35135         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
35136         yes, don't pretend that visibility works if it leads to a warning.
35137         Reported by Mike Gran <spk121@yahoo.com>.
35138
35139 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
35140
35141         * build-aux/bootstrap: Use "git -h" for testing for supported options
35142         instead of "git --help".  The short-form option only shows a summary,
35143         and doesn't layout the full man page.  Grep for the full option name
35144         in the summary, too.
35145
35146 2010-04-19  Bruno Haible  <bruno@clisp.org>
35147
35148         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
35149         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
35150         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
35151         mention of RELOCATABLE_STRIP.
35152         Reported by Sylvain Beucler <beuc@beuc.net>.
35153
35154 2010-04-19  Bruno Haible  <bruno@clisp.org>
35155
35156         * lib/diffseq.h: Fix typo in comment.
35157         Reported by Eric Blake.
35158
35159 2010-04-19  Bruno Haible  <bruno@clisp.org>
35160
35161         ioctl: Move autoconf macro to a .m4 file.
35162         * m4/ioctl.m4: New file, extracted from modules/ioctl.
35163         * modules/ioctl (Files): Add it.
35164         (configure.ac): Simply invoke gl_FUNC_IOCTL.
35165         Reported by Ian Beckwith <ianb@erislabs.net>.
35166
35167 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
35168             Bruno Haible  <bruno@clisp.org>
35169
35170         diffseq: Accommodate use-case with abstract arrays.
35171         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
35172         is not defined.
35173         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
35174         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
35175
35176 2010-04-18  Bruno Haible  <bruno@clisp.org>
35177
35178         * doc/posix-headers/stdbool.texi: More precise wording.
35179
35180 2010-04-17  Jim Meyering  <meyering@redhat.com>
35181
35182         maint.mk: use gnu-style indentation in an embedded perl script
35183         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
35184         Rename variable: s/two/last_two_bytes/
35185
35186 2010-04-16  Eric Blake  <eblake@redhat.com>
35187
35188         test-stdbool: skip test that fails with Solaris CC
35189         * tests/test-stdbool.c (f): Skip test that causes compilation
35190         error under buggy C++ compiler.
35191         * lib/stdbool.in.h: Document the limitation.
35192         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
35193
35194         setenv: allow compilation with C++
35195         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
35196         register keyword.
35197
35198         stdint: allow test to pass with C++
35199         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
35200
35201         getopt: allow compilation with C++
35202         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
35203         struct.
35204         * lib/getopt.c (_getopt_internal_r): Use correct type.
35205         Reported by Dagobert Michelson, via Joel E. Denny.
35206
35207 2010-04-16  Bruno Haible  <bruno@clisp.org>
35208
35209         Override netdb.h always.
35210         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
35211         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
35212         Reported by Ludovic Courtès <ludo@gnu.org>.
35213
35214 2010-04-15  Bruno Haible  <bruno@clisp.org>
35215
35216         openpty: Fix mistake from 2010-03-21.
35217         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
35218         Reported by Simon Josefsson.
35219
35220 2010-04-15  Eric Blake  <eblake@redhat.com>
35221
35222         test-forkpty: fix expected signature
35223         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
35224         Reported by Simon Josefsson.
35225
35226 2010-04-15  Jim Meyering  <meyering@redhat.com>
35227
35228         maint.mk: texinfo_suffix_re_: correct the default regexp
35229         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
35230
35231         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
35232         make it configurable via texinfo_suffix_re_.
35233
35234 2010-04-14  Eric Blake  <eblake@redhat.com>
35235
35236         strtok_r: relax license to LGPLv2+
35237         * modules/strtok_r (License): Relax license.
35238         Reported by Matthias Bolte.
35239
35240 2010-04-14  Simon Josefsson  <simon@josefsson.org>
35241
35242         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
35243         version 1.4.4 by default instead of requiring the libgcrypt
35244         version used during build.  This makes it possible to use the
35245         application with older but still binary compatible libgcrypt
35246         versions.
35247
35248 2010-04-13  Eric Blake  <eblake@redhat.com>
35249
35250         getopt-gnu: match recent glibc fixes and posix ruling
35251         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
35252         '+' handling, when requesting extensions.
35253         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
35254         'W;' handling.
35255         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
35256         * doc/posix-functions/getopt.texi (getopt): Document this.
35257         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
35258         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
35259         Likewise.
35260
35261         getopt: merge bug fixes from glibc
35262         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
35263         diagnostics.  Honor '+:' correctly.  Reject ';'.
35264
35265         getopt-posix: detect MacOS bug
35266         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
35267         optind when missing a required argument.
35268         * doc/posix-functions/getopt.texi (getopt): Document the bug.
35269         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
35270         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
35271         Likewise.
35272
35273         getopt-posix: avoid spurious failure on Solaris
35274         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
35275         an indicator that setting optind=1 is sufficient for reset.
35276
35277         getopt-posix: avoid spurious failure on FreeBSD
35278         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
35279         in POSIX mode, since the m4 test uses it.
35280
35281         gnulib-tool: silence warning on BSD sh
35282         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
35283
35284 2010-04-13  Jim Meyering  <meyering@redhat.com>
35285
35286         doc: users.txt: GNU patch now uses gnulib
35287         * users.txt: Add patch.
35288
35289 2010-04-12  Jim Meyering  <meyering@redhat.com>
35290
35291         maint.mk: generate more concise timing data for syntax-check rules
35292         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
35293         " done" from each line that reports a syntax-check test duration.
35294
35295 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
35296
35297         git-version-gen: use "git update-index..." rather than "git status"
35298         * build-aux/git-version-gen: Use git update-index --refresh, not
35299         "git status".  With some versions of git, "git status" would fail
35300         to update the index and result in an unwarranted "-dirty" suffix.
35301
35302 2010-04-11  Jim Meyering  <meyering@redhat.com>
35303
35304         openat: correct formatting (no semantic change)
35305         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
35306         Suggested by Bruno Haible.
35307
35308 2010-04-11  Bruno Haible  <bruno@clisp.org>
35309
35310         Stricter declaration checking in testdirs.
35311         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
35312         If for_tests is true, augment AM_CPPFLAGS to define
35313         GNULIB_STRICT_CHECKING.
35314         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
35315         GNULIB_STRICT_CHECKING is defined, verify that the function is
35316         declared.
35317
35318 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
35319             Bruno Haible  <bruno@clisp.org>
35320
35321         libunistring: Improve configure output.
35322         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
35323         Don't say "consider installing GNU libunistring" when checking again
35324         with libiconv.
35325
35326 2010-04-11  Bruno Haible  <bruno@clisp.org>
35327
35328         libunistring: Correct value of $LTLIBUNISTRING.
35329         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
35330         correct the value of $LTLIBUNISTRING.
35331
35332 2010-04-11  Bruno Haible  <bruno@clisp.org>
35333
35334         havelib: Add static libraries to LIBS in the right order.
35335         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
35336         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
35337
35338 2010-04-11  Bruno Haible  <bruno@clisp.org>
35339
35340         libunistring: Detect libunistring also when it depends on libiconv.
35341         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
35342         the second AC_LIB_HAVE_LINKFLAGS invocation.
35343
35344 2010-04-11  James Youngman  <jay@gnu.org>
35345
35346         close-stream: declare local scalars to be "const"
35347         * lib/close-stream.c (close_stream): Make boolean variables const
35348         to document the fact that we set but do not change them.
35349
35350 2010-04-11  Bruno Haible  <bruno@clisp.org>
35351
35352         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
35353
35354 2010-04-11  Jim Meyering  <meyering@redhat.com>
35355
35356         maint.mk: don't include dist-check.mk
35357         * top/maint.mk: Remove bogus include directive.
35358
35359         maint.mk: improve empty-line-at-EOF check
35360         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
35361         solution, rather than tail+Perl-based one.  The latter would read
35362         a few kilobytes from the end of each file, and did not handle empty
35363         files properly.
35364
35365         maint.mk: print the elapsed time for each syntax-check rule
35366         * top/maint.mk (sc_m_rules_): Save start time in a file.
35367         (sc_z_rules_): New rules: remove temp file and print elapsed time.
35368         (local-check): Interpose the .z rules
35369
35370 2010-04-11  Jim Meyering  <meyering@redhat.com>
35371
35372         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
35373         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
35374         empty file with one that ends in an empty line.
35375
35376 2010-04-10  Bruno Haible  <bruno@clisp.org>
35377
35378         mkdir: Make it work on mingw64.
35379         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
35380         * lib/mkdir.c: Update comment.
35381         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
35382
35383 2010-04-10  Bruno Haible  <bruno@clisp.org>
35384
35385         Don't override improved macro from newer autoconf.
35386         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
35387         autoconf >= 2.62.
35388         Reported by Joel E. Denny <jdenny@clemson.edu>.
35389
35390 2010-04-10  Jim Meyering  <meyering@redhat.com>
35391
35392         maint.mk: new syntax-check rule: prohibit empty lines at end of file
35393         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
35394
35395         maint.mk: correct a diagnostic
35396         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
35397         in diagnostic; now use $prohibit.
35398
35399 2010-04-10  Bruno Haible  <address@hidden>
35400
35401         fchownat: Fix a C++ test error on Solaris 8.
35402         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
35403         the function does not exist.
35404
35405 2010-04-10  Bruno Haible  <bruno@clisp.org>
35406
35407         vasnprintf: Add more tests.
35408         * tests/test-vasnprintf-posix.c: Include <errno.h>.
35409         (test_function): Test converting an invalid wide string.
35410
35411         vasnprintf: Correct handling of unconvertible wide string arguments.
35412         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
35413         VASNPRINTF.
35414         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
35415         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
35416         smaller than the expected maximum need for the directive. Set errno to
35417         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
35418         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
35419         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
35420         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
35421         * modules/vasnprintf (Files): Add m4/printf.m4.
35422         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
35423
35424 2010-04-10  Bruno Haible  <bruno@clisp.org>
35425
35426         vasnprintf: Fix crash in %ls directive.
35427         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
35428         string is passed as argument to %ls, with no precision and no width.
35429         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
35430
35431 2010-04-10  Bruno Haible  <bruno@clisp.org>
35432
35433         vasnprintf: Fix multiple test failures on mingw.
35434         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
35435         _snprintf, or snwprintf, not _snwprintf.
35436
35437 2010-04-10  Bruno Haible  <bruno@clisp.org>
35438
35439         write: Fix a C++ test error on mingw.
35440         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
35441
35442 2010-04-10  Bruno Haible  <bruno@clisp.org>
35443
35444         vasnprintf test: Reduce code duplication.
35445         * tests/test-vasnprintf.c (test_function): New function, extracted from
35446         test_vasnprintf.
35447         (test_vasnprintf, test_asnprintf): Invoke it.
35448
35449 2010-04-10  Bruno Haible  <bruno@clisp.org>
35450
35451         strnlen: Fix warning in C++ mode on MacOS X.
35452         * lib/string.in.h (strnlen): Use the modern idiom.
35453         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
35454         defining strnlen as a macro already in <config.h>.
35455         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35456         REPLACE_STRNLEN.
35457         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
35458         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
35459
35460 2010-04-08  James Youngman  <jay@gnu.org>
35461
35462         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
35463         the example.
35464
35465 2010-04-09  Jim Meyering  <meyering@redhat.com>
35466
35467         maint.mk: print better diagnostic when there is no $(_hv_file)
35468         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
35469         announce that when $(_hv_file) (aka help-version) does not exist.
35470
35471         init.sh: run tr in the "C" locale to avoid multibyte interpretation
35472         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
35473         not try to interpret its random input bytes.  Jarno Rajahalme reported
35474         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
35475         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
35476         (mktempd_): Likewise, just in case.
35477
35478         ftruncate: add two years to projected module removal date: 2012
35479         * m4/ftruncate.m4: Adjust comments.
35480
35481         ftruncate: mark module as obsolete; even MinGW provides it, now
35482         * modules/ftruncate (Status): Obsolete.
35483         (Notice): Say that.
35484         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
35485         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
35486
35487 2010-04-08  Bruno Haible  <bruno@clisp.org>
35488
35489         Fix side effects from tests-related modules.
35490         * modules/dprintf-posix (Comment): New section.
35491         * modules/fprintf-posix (Comment): Likewise.
35492         * modules/obstack-printf-posix (Comment): Likewise.
35493         * modules/printf-posix (Comment): Likewise.
35494         * modules/snprintf-posix (Comment): Likewise.
35495         * modules/sprintf-posix (Comment): Likewise.
35496         * modules/vasnprintf-posix (Comment): Likewise.
35497         * modules/vasprintf-posix (Comment): Likewise.
35498         * modules/vdprintf-posix (Comment): Likewise.
35499         * modules/vfprintf-posix (Comment): Likewise.
35500         * modules/vprintf-posix (Comment): Likewise.
35501         * modules/vsnprintf-posix (Comment): Likewise.
35502         * modules/vsprintf-posix (Comment): Likewise.
35503         * modules/xprintf-posix (Comment): Likewise.
35504         * modules/xvasprintf-posix (Comment): Likewise.
35505         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
35506         * modules/floorf-tests (Depends-on): Likewise.
35507         * modules/round-tests (Depends-on): Likewise.
35508         * modules/roundf-tests (Depends-on): Likewise.
35509         * modules/trunc-tests (Depends-on): Likewise.
35510         * modules/truncf-tests (Depends-on): Likewise.
35511         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
35512         'fprintf-posix' module is not present.
35513         * tests/test-floorf2.c (check): Likewise.
35514         * tests/test-trunc2.c (check): Likewise.
35515         * tests/test-truncf2.c (check): Likewise.
35516         * tests/test-round2.c (equal): Likewise.
35517         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
35518
35519 2010-04-07  Karl Berry  <karl@gnu.org>
35520
35521         * config/srclist.txt,
35522         * config/srclistvars.sh,
35523         * config/srclist-update: doc fixes.
35524
35525 2010-04-07  Jim Meyering  <meyering@redhat.com>
35526
35527         maint.mk: add a PATH crosschecking syntax-check rule
35528         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
35529         Useful if you use a test like the one in help-version (coreutils,
35530         diffutils, grep, gzip) that ensures $(VERSION) matches what is
35531         printed by prog --version.
35532
35533 2010-04-06  Bruno Haible  <bruno@clisp.org>
35534
35535         Fix link error on mingw.
35536         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
35537         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
35538
35539 2010-04-06  Bruno Haible  <bruno@clisp.org>
35540
35541         Assume rmdir exists.
35542         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
35543
35544 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
35545
35546         doc: update users.txt
35547         * users.txt: Add gcal.
35548
35549 2010-04-06  Jim Meyering  <meyering@redhat.com>
35550
35551         init.sh: simply unset TMPDIR rather than risking env -i
35552         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
35553         although it probably works fine on all Unix-based systems, some
35554         systems (Cygwin?) cannot tolerate a totally cleared environment.
35555         Suggestion from Eric Blake.
35556
35557 2010-04-06  Jim Meyering  <meyering@redhat.com>
35558
35559         init.sh: portability fix: use env's POSIX-specified -i option not -u
35560         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
35561         than unportable env -u.  Solaris 5.11's env lacks support for -u.
35562
35563 2010-04-05  Bruno Haible  <bruno@clisp.org>
35564
35565         btowc: Work around Cygwin 1.7.2 bug.
35566         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
35567         does not map NUL to 0.
35568         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
35569
35570 2010-04-05  Bruno Haible  <bruno@clisp.org>
35571
35572         Make the multithread modules work on Cygwin 1.7.2.
35573         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
35574         imported symbols can be declared weak, so that it returns "no" on
35575         Cygwin 1.7.2.
35576
35577 2010-04-05  Bruno Haible  <bruno@clisp.org>
35578
35579         Use the module 'strncat'.
35580         * modules/unistr/u8-strncat (Depends-on): Add strncat.
35581
35582         Tests for module 'strncat'.
35583         * modules/strncat-tests: New file.
35584         * tests/test-strncat.c: New file.
35585
35586         New module 'strncat'.
35587         * lib/string.in.h (strncat): New declaration.
35588         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
35589         * m4/strncat.m4: New file, based on m4/memchr.m4.
35590         * modules/strncat: New file.
35591         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
35592         is declared.
35593         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
35594         REPLACE_STRNCAT.
35595         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
35596         REPLACE_STRNCAT.
35597         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
35598         module.
35599         * tests/test-string-c++.cc: Check signature of strncat.
35600
35601 2010-04-05  Jim Meyering  <meyering@redhat.com>
35602
35603         xstrtoumax-tests: convert to use init.sh
35604         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
35605         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
35606         Use Exit, not exit.
35607         Remove uses of $EXEEXT and "./" to run a program in the current dir.
35608
35609         xstrtoimax-tests: convert to use init.sh
35610         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
35611         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
35612         Use Exit, not exit.
35613         Remove uses of $EXEEXT and "./" to run a program in the current dir.
35614
35615 2010-04-05  Bruno Haible  <bruno@clisp.org>
35616
35617         sys_socket: Avoid #define replacements in C++ mode.
35618         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
35619         warning to the function if possible, rather than #defining the symbol
35620         to a dysfunctional alias.
35621
35622 2010-04-05  Bruno Haible  <bruno@clisp.org>
35623
35624         fseeko: Fix C++ test error on mingw.
35625         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
35626         gl_FUNC_FSEEKO.
35627         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
35628         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
35629         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
35630         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
35631
35632 2010-04-05  Bruno Haible  <bruno@clisp.org>
35633
35634         duplocale: Improve test output.
35635         * tests/test-duplocale.c (main): Print reason for skipped test.
35636
35637 2010-04-05  Bruno Haible  <bruno@clisp.org>
35638
35639         Assume rmdir exists.
35640         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
35641         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
35642
35643 2010-04-05  Bruno Haible  <bruno@clisp.org>
35644
35645         Fix link error on Solaris 8 with cc.
35646         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
35647
35648 2010-04-05  Bruno Haible  <bruno@clisp.org>
35649
35650         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
35651         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
35652
35653 2010-04-05  Bruno Haible  <bruno@clisp.org>
35654
35655         vasprintf: Update documentation.
35656         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
35657
35658 2010-04-05  Bruno Haible  <bruno@clisp.org>
35659
35660         ptsname: Improve test.
35661         * tests/test-ptsname.c (main): Also try the various master names of BSD
35662         systems.
35663
35664 2010-04-05  Bruno Haible  <bruno@clisp.org>
35665
35666         memchr: Avoid a possible C++ test error.
35667         * lib/string.in.h (memchr): Provide declaration if function is missing.
35668         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
35669         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
35670         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
35671         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
35672
35673 2010-04-05  Bruno Haible  <bruno@clisp.org>
35674
35675         strtok_r: Improve idiom.
35676         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
35677         AC_LIBOBJ is used.
35678
35679 2010-04-05  Bruno Haible  <bruno@clisp.org>
35680
35681         strdup: Improve idiom.
35682         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
35683         AC_LIBOBJ is used.
35684         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
35685         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
35686         when AC_LIBOBJ is used.
35687
35688 2010-04-05  Bruno Haible  <bruno@clisp.org>
35689
35690         mbsinit, mbrtowc, wcrtomb: Improve idioms.
35691         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
35692         don't set REPLACE_MBSINIT to 1.
35693         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
35694         don't set REPLACE_MBRTOWC to 1.
35695         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
35696         exist, don't set REPLACE_MBSRTOWCS to 1.
35697         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
35698         exist, don't set REPLACE_MBSNRTOWCS to 1.
35699         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
35700         don't set REPLACE_WCRTOMB to 1.
35701         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
35702         exist, don't set REPLACE_WCSRTOMBS to 1.
35703         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
35704         exist, don't set REPLACE_WCSNRTOMBS to 1.
35705
35706 2010-04-05  Bruno Haible  <bruno@clisp.org>
35707
35708         ldexpl: Improve idiom.
35709         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
35710         make sure to set HAVE_DECL_LDEXPL to 0.
35711
35712 2010-04-05  Jim Meyering  <meyering@redhat.com>
35713
35714         xstrtol-tests: convert to use init.sh
35715         * modules/xstrtol-tests (Files): Add tests/init.sh.
35716         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
35717         Use Exit, not exit.
35718         Remove uses of $EXEEXT and "./" to run a program in the current dir.
35719
35720         atexit-tests: convert to use init.sh
35721         * modules/atexit-tests (Files): Add tests/init.sh.
35722         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
35723         Use Exit, not exit.
35724         Remove uses of $EXEEXT and "./" to run a program in the current dir.
35725
35726         init.sh: fix typo
35727         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
35728
35729         init.sh: make it easier for a test script to write to the tty, ...
35730         when using automake's parallel-tests mode.
35731         * tests/init.sh (stderr_fileno_): Define overridable variable.
35732         (warn_): New function, to use it.
35733         (fail_, skip_, framework_failure_): Use warn_.
35734
35735 2010-04-04  Bruno Haible  <bruno@clisp.org>
35736
35737         btowc: Avoid warning.
35738         * lib/btowc.c: Include <stdlib.h>.
35739         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
35740
35741 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
35742             Bruno Haible  <bruno@clisp.org>
35743
35744         wchar: Port to NetBSD 1.5.
35745         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
35746         * lib/wctype.in.h (WEOF): Likewise.
35747
35748 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
35749             Bruno Haible  <bruno@clisp.org>
35750
35751         Port extended stdio to NetBSD 1.5.
35752         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
35753         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
35754         older.
35755
35756 2010-04-04  Bruno Haible  <bruno@clisp.org>
35757
35758         string: Remove unused substitution.
35759         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
35760         HAVE_DECL_STRERROR.
35761         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
35762
35763 2010-04-04  Bruno Haible  <bruno@clisp.org>
35764
35765         strtod: Avoid a possible C++ test error.
35766         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
35767         set REPLACE_STRTOD.
35768
35769 2010-04-04  Bruno Haible  <bruno@clisp.org>
35770
35771         strerror: Update documentation.
35772         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
35773
35774 2010-04-04  Bruno Haible  <bruno@clisp.org>
35775
35776         stdio: Fix some C++ test errors on Solaris 8 with GCC.
35777         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
35778         _GL_CXXALIAS_SYS_CAST.
35779
35780 2010-04-04  Bruno Haible  <bruno@clisp.org>
35781
35782         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
35783         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
35784         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
35785         REPLACE_FREXPL to 1.
35786         * doc/posix-functions/frexpl.texi: Update documentation.
35787
35788 2010-04-04  Bruno Haible  <bruno@clisp.org>
35789
35790         math: Fix some C++ test errors on Solaris 8 and Cygwin.
35791         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
35792
35793 2010-04-04  Bruno Haible  <bruno@clisp.org>
35794
35795         Implement nanosleep for native Windows.
35796         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
35797
35798 2010-04-04  Bruno Haible  <bruno@clisp.org>
35799
35800         math: Fix some C++ test errors on Solaris 8.
35801         * lib/math.in.h (truncf, trunc): Use simpler idiom.
35802
35803 2010-04-04  Bruno Haible  <bruno@clisp.org>
35804
35805         math: Fix some C++ test errors on Cygwin.
35806         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
35807         truncl): Provide declaration if the system does not have it.
35808         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
35809         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
35810         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
35811         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
35812         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
35813         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
35814         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
35815         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
35816         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
35817         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
35818         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
35819         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
35820         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
35821         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
35822         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
35823         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
35824         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
35825         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
35826         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
35827         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
35828         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
35829         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
35830
35831 2010-04-04  Bruno Haible  <bruno@clisp.org>
35832
35833         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
35834         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
35835         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
35836         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
35837         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
35838         * m4/isinf.m4 (gl_ISINF): Likewise.
35839         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
35840
35841 2010-04-04  Bruno Haible  <bruno@clisp.org>
35842
35843         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
35844         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
35845
35846 2010-04-04  Bruno Haible  <bruno@clisp.org>
35847
35848         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
35849         * modules/tmpfile (configure.ac): Update.
35850
35851         tmpfile: Fix C++ test error on mingw.
35852         * lib/stdio.in.h (tmpfile): New declaration.
35853         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
35854         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
35855         * modules/tmpfile (Depends-on): Add stdio.
35856         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
35857         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
35858         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
35859         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
35860         REPLACE_TMPFILE.
35861         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
35862
35863 2010-04-04  Bruno Haible  <bruno@clisp.org>
35864
35865         ioctl: Fix C++ test error on mingw.
35866         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
35867         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
35868         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
35869
35870 2010-04-03  Bruno Haible  <bruno@clisp.org>
35871
35872         wcwidth: Fix C++ test error on mingw.
35873         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
35874         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
35875         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
35876
35877 2010-04-03  Bruno Haible  <bruno@clisp.org>
35878
35879         nanosleep: Fix C++ test error on mingw.
35880         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
35881         * lib/time.in.h (nanosleep): Use modern idiom.
35882         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
35883         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
35884         REPLACE_NANOSLEEP to 1.
35885         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
35886         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
35887
35888 2010-04-03  Bruno Haible  <bruno@clisp.org>
35889
35890         strptime: Fix C++ test error on mingw.
35891         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
35892         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
35893         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
35894         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
35895         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
35896         not REPLACE_STRPTIME.
35897         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
35898         REPLACE_STRPTIME.
35899
35900 2010-04-03  Bruno Haible  <bruno@clisp.org>
35901
35902         timegm: Fix C++ test error on mingw.
35903         * lib/time.in.h (timegm): Use modern idiom.
35904         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
35905         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
35906         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
35907         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
35908
35909 2010-04-03  Bruno Haible  <bruno@clisp.org>
35910
35911         timegm: Assume declaration if function exists.
35912         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
35913         if it exists. Don't clobber ac_cv_func_timegm.
35914
35915 2010-04-03  Bruno Haible  <bruno@clisp.org>
35916
35917         time_r: Fix C++ test error on mingw.
35918         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
35919         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
35920         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
35921         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
35922         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
35923
35924 2010-04-03  Bruno Haible  <bruno@clisp.org>
35925
35926         time_r: Minor updates.
35927         * modules/time_r (Description): Mention the provided functions.
35928         * lib/time_r.c: Don't include <string.h>.
35929         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
35930         * doc/posix-functions/localtime_r.texi: Likewise.
35931
35932 2010-04-03  Bruno Haible  <bruno@clisp.org>
35933
35934         time: Fix regression introduced on 2010-03-08.
35935         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
35936         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
35937
35938 2010-04-03  Jim Meyering  <meyering@redhat.com>
35939
35940         maint.mk: don't silently disable project-specific syntax-check rules
35941         * top/maint.mk (_prohibit_regexp): Define, to help people realize
35942         that they need to convert their project-specific syntax-check rules
35943         to use the new _sc_search_regexp.
35944
35945 2010-04-03  Bruno Haible  <bruno@clisp.org>
35946
35947         fchdir: Fix regression introduced on 2010-03-08.
35948         * lib/unistd.in.h (fchdir): Fix declaration.
35949         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
35950         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
35951         REPLACE_FCHDIR.
35952         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
35953         REPLACE_FCHDIR.
35954
35955 2010-04-03  Bruno Haible  <bruno@clisp.org>
35956
35957         getpagesize: Fix C++ test error on mingw.
35958         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
35959         system does not declare the function.
35960         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
35961         declared.
35962         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35963         HAVE_DECL_GETPAGESIZE.
35964         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
35965
35966 2010-04-03  Bruno Haible  <bruno@clisp.org>
35967
35968         stdio: Make C++ tests work on mingw.
35969         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
35970         does not declare the function.
35971
35972 2010-04-03  Bruno Haible  <bruno@clisp.org>
35973
35974         ftello: Fix C++ test error on mingw.
35975         * lib/stdio.in.h (ftello): Use modern idiom.
35976         * lib/ftello.c (ftello): Renamed from rpl_ftello.
35977         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
35978         is missing and that it needs to be replaced.
35979         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
35980         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
35981         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
35982
35983 2010-04-03  Bruno Haible  <bruno@clisp.org>
35984
35985         fseeko: Fix C++ test error on mingw.
35986         * lib/stdio.in.h (fseeko): Use modern idiom.
35987         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
35988         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
35989         is missing and that it needs to be replaced.
35990         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
35991         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
35992         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
35993
35994 2010-04-03  Bruno Haible  <bruno@clisp.org>
35995
35996         mkstemp: Fix C++ test error on mingw.
35997         * lib/stdlib.in.h (mkstemp): Use modern idiom.
35998         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
35999         function is missing and that it needs to be replaced.
36000         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
36001         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
36002
36003 2010-04-03  Bruno Haible  <bruno@clisp.org>
36004
36005         stpncpy: Fix C++ test error on mingw.
36006         * lib/string.in.h (stpncpy): Use modern idiom.
36007         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
36008         function is missing and that it needs to be replaced.
36009         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
36010         REPLACE_STPNCPY.
36011         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
36012
36013 2010-04-03  Bruno Haible  <bruno@clisp.org>
36014
36015         sys_stat: Fix C++ test error on mingw.
36016         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
36017         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
36018
36019 2010-04-03  Bruno Haible  <bruno@clisp.org>
36020
36021         pty: Update doc.
36022         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
36023
36024 2010-04-03  Bruno Haible  <bruno@clisp.org>
36025
36026         unistd: Fix C++ test error on mingw.
36027         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
36028
36029 2010-04-03  Bruno Haible  <bruno@clisp.org>
36030
36031         Update doc regarding mingw.
36032         * doc/glibc-functions/openpty.texi: Update regarding mingw.
36033         * doc/glibc-functions/login_tty.texi: Likewise.
36034         * doc/glibc-functions/forkpty.texi: Likewise.
36035
36036 2010-04-03  Bruno Haible  <bruno@clisp.org>
36037
36038         stdlib: Avoid compilation failure of c-strtold on mingw.
36039         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
36040
36041 2010-04-03  Bruno Haible  <bruno@clisp.org>
36042
36043         locale: Make C++ tests work on Cygwin and mingw.
36044         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
36045         cannot provide the function.
36046         Reported by Simon Josefsson.
36047
36048 2010-04-03  Bruno Haible  <bruno@clisp.org>
36049
36050         localename: Port to MacOS X 10.6.
36051         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
36052         memory layout of the locales in MacOS X 10.6 as well.
36053         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
36054
36055 2010-04-02  Bruno Haible  <bruno@clisp.org>
36056
36057         gnulib-tool: Ensure that long-running tests are executed last.
36058         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
36059         running tests after the one for the other tests.
36060
36061 2010-04-02  Bruno Haible  <bruno@clisp.org>
36062
36063         gnulib-tool: Ensure the tests in the main directory are executed first.
36064         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
36065         start with the current directory.
36066
36067 2010-04-02  Bruno Haible  <bruno@clisp.org>
36068
36069         Tests for module 'havelib', moved here from GNU gettext.
36070         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
36071         modifications.
36072         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
36073         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
36074         with modifications.
36075         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
36076         modifications.
36077         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
36078         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
36079         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
36080         with modifications.
36081         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
36082         with modifications.
36083         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
36084         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
36085         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
36086         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
36087         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
36088         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
36089         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
36090         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
36091         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
36092         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
36093         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
36094         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
36095         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
36096         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
36097         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
36098         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
36099         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
36100         with modifications.
36101         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
36102         with modifications.
36103         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
36104         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
36105         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
36106         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
36107         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
36108         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
36109         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
36110         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
36111         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
36112         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
36113         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
36114         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
36115         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
36116         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
36117         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
36118         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
36119         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
36120         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
36121         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
36122         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
36123         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
36124         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
36125         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
36126         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
36127         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
36128         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
36129         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
36130         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
36131         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
36132         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
36133         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
36134         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
36135         * tests/havelib/rpathx/rpathx.c: New file, from
36136         gettext/autoconf-lib-link.
36137         * tests/havelib/rpathx/Makefile.am: New file, from
36138         gettext/autoconf-lib-link.
36139         * tests/havelib/rpathx/configure.ac: New file, from
36140         gettext/autoconf-lib-link with modifications.
36141         * tests/havelib/rpathy/rpathy.c: New file, from
36142         gettext/autoconf-lib-link.
36143         * tests/havelib/rpathy/Makefile.am: New file, from
36144         gettext/autoconf-lib-link.
36145         * tests/havelib/rpathy/configure.ac: New file, from
36146         gettext/autoconf-lib-link with modifications.
36147         * tests/havelib/rpathz/rpathz.c: New file, from
36148         gettext/autoconf-lib-link.
36149         * tests/havelib/rpathz/Makefile.am: New file, from
36150         gettext/autoconf-lib-link.
36151         * tests/havelib/rpathz/configure.ac: New file, from
36152         gettext/autoconf-lib-link with modifications.
36153         * tests/havelib/rpathlx/usex.c: New file, from
36154         gettext/autoconf-lib-link.
36155         * tests/havelib/rpathlx/Makefile.am: New file, from
36156         gettext/autoconf-lib-link.
36157         * tests/havelib/rpathlx/configure.ac: New file, from
36158         gettext/autoconf-lib-link with modifications.
36159         * tests/havelib/rpathly/usey.c: New file, from
36160         gettext/autoconf-lib-link.
36161         * tests/havelib/rpathly/Makefile.am: New file, from
36162         gettext/autoconf-lib-link.
36163         * tests/havelib/rpathly/configure.ac: New file, from
36164         gettext/autoconf-lib-link with modifications.
36165         * tests/havelib/rpathlz/usez.c: New file, from
36166         gettext/autoconf-lib-link.
36167         * tests/havelib/rpathlz/Makefile.am: New file, from
36168         gettext/autoconf-lib-link.
36169         * tests/havelib/rpathlz/configure.ac: New file, from
36170         gettext/autoconf-lib-link with modifications.
36171         * tests/havelib/rpathlyx/usey.c: New file, from
36172         gettext/autoconf-lib-link.
36173         * tests/havelib/rpathlyx/Makefile.am: New file, from
36174         gettext/autoconf-lib-link.
36175         * tests/havelib/rpathlyx/configure.ac: New file, from
36176         gettext/autoconf-lib-link with modifications.
36177         * tests/havelib/rpathlzyx/usez.c: New file, from
36178         gettext/autoconf-lib-link.
36179         * tests/havelib/rpathlzyx/Makefile.am: New file, from
36180         gettext/autoconf-lib-link.
36181         * tests/havelib/rpathlzyx/configure.ac: New file, from
36182         gettext/autoconf-lib-link with modifications.
36183         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
36184         with modifications.
36185
36186 2010-04-02  Bruno Haible  <bruno@clisp.org>
36187
36188         gnulib-tool: Create distributed built sources also for the tests.
36189         * gnulib-tool (func_create_testdir): Also generate distributed built
36190         sources in the tests directory.
36191
36192 2010-04-02  Bruno Haible  <bruno@clisp.org>
36193
36194         gnulib-tool: Obey user's environment variables.
36195         * gnulib-tool (func_create_testdir): When creating built sources,
36196         respect the environment variables for autoconf, automake, etc. given by
36197         the user.
36198
36199 2010-04-02  Bruno Haible  <bruno@clisp.org>
36200
36201         gnulib-tool: Provide the value of --m4-base to modules.
36202         * gnulib-tool (func_import, func_create_testdir): Emit a definition
36203         of gl_m4_base.
36204
36205 2010-04-02  Eric Blake  <eblake@redhat.com>
36206
36207         maint.mk: fix some fallout
36208         * NEWS: Document the incompatible change, and its effect on cfg.mk.
36209         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
36210
36211 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
36212
36213         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
36214         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
36215         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
36216         (sc_cast_of_x_alloc_return_value): Likewise.
36217         (sc_cast_of_alloca_return_value): Likewise.
36218         (sc_space_tab): Likewise.
36219         (sc_prohibit_atoi_atof): Likewise.
36220         (sc_prohibit_magic_number_exit): Likewise.
36221         (sc_error_exit_success): Likewise.
36222         (sc_file_system): Likewise.
36223         (sc_prohibit_have_config_h): Likewise.
36224         (sc_require_config_h): Likewise.
36225         (sc_prohibit_HAVE_MBRTOWC): Likewise.
36226         (sc_obsolete_symbols): Likewise.
36227         (sc_changelog): Likewise.
36228         (sc_program_name): Likewise.
36229         (sc_the_the): Likewise.
36230         (sc_trailing_blank): Likewise.
36231         (sc_two_space_separator_in_usage): Likewise.
36232         (sc_useless_cpp_parens): Likewise.
36233         (sc_GPL_version): Likewise.
36234         (sc_GFDL_version): Likewise.
36235         (sc_texinfo_acronym): Likewise.
36236         (sc_prohibit_cvs_keyword): Likewise.
36237         (sc_prohibit_stat_st_blocks): Likewise.
36238         (sc_prohibit_S_IS_definition): Likewise.
36239         (sc_redundant_const): Likewise.
36240         (sc_makefile_TAB_only_indentation): Likewise.
36241         (sc_m4_quote_check): Likewise.
36242         (sc_makefile_path_separator_check): Likewise.
36243         (sc_copyright_check): Likewise.
36244         (sc_Wundef_boolean): Likewise.
36245         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
36246
36247         maint.mk: match 0 or more whitespace-before-function-call '('
36248         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
36249         that have zero or two-and-more spaces between the function name
36250         and the open parenthesis.
36251         (sc_error_message_warn_fatal): Likewise.
36252         (sc_error_message_uppercase): Likewise.
36253         (sc_error_message_period): Likewise.
36254
36255 2010-03-31  Eric Blake  <eblake@redhat.com>
36256
36257         maint.mk: check for [ as well as test
36258         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
36259         Based on a libvirt report by Matthias Bolte.
36260
36261         gnumakefile: don't squelch _version output
36262         * top/GNUmakefile (_version): Create one-shot dependency rather
36263         than using $(shell) when version must be regenerated.
36264         (_autoreconf): Run verbosely, by default.
36265
36266         sys_time: avoid compiler warnings
36267         * lib/sys_time.in.h (includes): Ensure gcc pragma is
36268         unconditional, fixing regression from 2010-03-29.
36269         Reported by Simon Josefsson.
36270
36271 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
36272
36273         maint.mk: s/_header_without_use/_sc_header_without_use/
36274         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
36275         (sc_prohibit_assert_without_use): Use the new name.
36276         (sc_prohibit_close_stream_without_use): Likewise.
36277         (sc_prohibit_getopt_without_use): Likewise.
36278         (sc_prohibit_quotearg_without_use): Likewise.
36279         (sc_prohibit_quote_without_use): Likewise.
36280         (sc_prohibit_long_options_without_use): Likewise.
36281         (sc_prohibit_inttostr_without_use): Likewise.
36282         (sc_prohibit_ignore_value_without_use): Likewise.
36283         (sc_prohibit_error_without_use): Likewise.
36284         (sc_prohibit_xalloc_without_use): Likewise.
36285         (sc_prohibit_hash_without_use): Likewise.
36286         (sc_prohibit_hash_pjw_without_use): Likewise.
36287         (sc_prohibit_safe_read_without_use): Likewise.
36288         (sc_prohibit_argmatch_without_use): Likewise.
36289         (sc_prohibit_canonicalize_without_use): Likewise.
36290         (sc_prohibit_root_dev_ino_without_use): Likewise.
36291         (sc_prohibit_openat_without_use): Likewise.
36292         (sc_prohibit_c_ctype_without_use): Likewise.
36293         (sc_prohibit_signal_without_use): Likewise.
36294         (sc_prohibit_intprops_without_use): Likewise.
36295
36296 2010-03-30  Eric Blake  <eblake@redhat.com>
36297
36298         maint: improve module indicators
36299         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
36300         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
36301         columns, and avoid extra macro expansion.
36302
36303         fdopendir: work around FreeBSD bug
36304         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
36305         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
36306         * modules/dirent (Makefile.am): Substitute it.
36307         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
36308         declaration.
36309         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
36310         fix.
36311         Reported by Christian Weisgerber <naddy@mips.inka.de>.
36312
36313 2010-03-29  Bruno Haible  <bruno@clisp.org>
36314
36315         Emit #pragma system_header after the inclusion guard, not before.
36316         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
36317         guard that spans the entire file, not before. This enables an
36318         optimization in GCC's preprocessor.
36319         * lib/ctype.in.h: Likewise.
36320         * lib/dirent.in.h: Likewise.
36321         * lib/errno.in.h: Likewise.
36322         * lib/float.in.h: Likewise.
36323         * lib/getopt.in.h: Likewise.
36324         * lib/iconv.in.h: Likewise.
36325         * lib/langinfo.in.h: Likewise.
36326         * lib/locale.in.h: Likewise.
36327         * lib/math.in.h: Likewise.
36328         * lib/netdb.in.h: Likewise.
36329         * lib/netinet_in.in.h: Likewise.
36330         * lib/pty.in.h: Likewise.
36331         * lib/sched.in.h: Likewise.
36332         * lib/se-selinux.in.h: Likewise.
36333         * lib/search.in.h: Likewise.
36334         * lib/spawn.in.h: Likewise.
36335         * lib/stdarg.in.h: Likewise.
36336         * lib/stdint.in.h: Likewise.
36337         * lib/string.in.h: Likewise.
36338         * lib/strings.in.h: Likewise.
36339         * lib/sys_file.in.h: Likewise.
36340         * lib/sys_ioctl.in.h: Likewise.
36341         * lib/sys_time.in.h: Likewise.
36342         * lib/sys_times.in.h: Likewise.
36343         * lib/sys_utsname.in.h: Likewise.
36344         * lib/sys_wait.in.h: Likewise.
36345         * lib/sysexits.in.h: Likewise.
36346         * lib/wctype.in.h: Likewise.
36347
36348 2010-03-28  James Youngman  <jay@gnu.org>
36349
36350         save-cwd: don't leak a file descriptor when the caller execs.
36351         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
36352         saved file descriptor.
36353         * modules/save-cwd (Depends-on): Depend on cloexec.
36354
36355 2010-03-29  Bruno Haible  <bruno@clisp.org>
36356
36357         Remove vestiges of fts-lgpl module.
36358         * lib/fts_.h: Assume GNULIB_FTS is 1.
36359         * lib/fts.c: Likewise.
36360         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
36361
36362 2010-03-28  Bruno Haible  <bruno@clisp.org>
36363
36364         Fix definition of tests witness macro.
36365         * gnulib-tool (func_import): Fix definition of witness macro.
36366
36367 2010-03-28  Bruno Haible  <bruno@clisp.org>
36368
36369         Fix ioctl's protoype on glibc systems.
36370         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
36371         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
36372         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
36373         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
36374         signature. If not, arrange to replace the ioctl function.
36375         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
36376         REPLACE_IOCTL.
36377         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
36378         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
36379         Reported by Ludovic Courtès <ludo@gnu.org>.
36380
36381 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
36382
36383         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
36384         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
36385         made it so grep -r --include=GLOB* ... did not work.
36386
36387 2010-03-26  Jim Meyering  <meyering@redhat.com>
36388             Eric Blake  <eblake@redhat.com>
36389
36390         maint.mk: prohibit use of test's -o and -a operators
36391         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
36392
36393 2010-03-28  Bruno Haible  <bruno@clisp.org>
36394
36395         Remove unused GNULIB_XYZ macro definitions.
36396         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
36397         invocation.
36398
36399 2010-03-28  Bruno Haible  <bruno@clisp.org>
36400
36401         Mark privileged tests modules.
36402         * modules/idpriv-drop-tests (Status): New section.
36403         * modules/idpriv-droptemp-tests (Status): New section.
36404
36405 2010-03-28  Bruno Haible  <bruno@clisp.org>
36406
36407         Split C++ tests into separate tests modules.
36408         * modules/dirent-c++-tests: New file, extracted from
36409         modules/dirent-tests.
36410         * modules/dirent-tests: Depend on it.
36411         * modules/fcntl-h-c++-tests: New file, extracted from
36412         modules/fcntl-h-tests.
36413         * modules/fcntl-h-tests: Depend on it.
36414         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
36415         * modules/glob-tests: Depend on it.
36416         * modules/iconv-h-c++-tests: New file, extracted from
36417         modules/iconv-h-tests.
36418         * modules/iconv-h-tests: Depend on it.
36419         * modules/langinfo-c++-tests: New file, extracted from
36420         modules/langinfo-tests.
36421         * modules/langinfo-tests: Depend on it.
36422         * modules/locale-c++-tests: New file, extracted from
36423         modules/locale-tests.
36424         * modules/locale-tests: Depend on it.
36425         * modules/math-c++-tests: New file, extracted from modules/math-tests.
36426         * modules/math-tests: Depend on it.
36427         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
36428         * modules/pty-tests: Depend on it.
36429         * modules/search-c++-tests: New file, extracted from
36430         modules/search-tests.
36431         * modules/search-tests: Depend on it.
36432         * modules/signal-c++-tests: New file, extracted from
36433         modules/signal-tests.
36434         * modules/signal-tests: Depend on it.
36435         * modules/spawn-c++-tests: New file, extracted from
36436         modules/spawn-tests.
36437         * modules/spawn-tests: Depend on it.
36438         * modules/stdio-c++-tests: New file, extracted from
36439         modules/stdio-tests.
36440         * modules/stdio-tests: Depend on it.
36441         * modules/stdlib-c++-tests: New file, extracted from
36442         modules/stdlib-tests.
36443         * modules/stdlib-tests: Depend on it.
36444         * modules/string-c++-tests: New file, extracted from
36445         modules/string-tests.
36446         * modules/string-tests: Depend on it.
36447         * modules/sys_ioctl-c++-tests: New file, extracted from
36448         modules/sys_ioctl-tests.
36449         * modules/sys_ioctl-tests: Depend on it.
36450         * modules/sys_select-c++-tests: New file, extracted from
36451         modules/sys_select-tests.
36452         * modules/sys_select-tests: Depend on it.
36453         * modules/sys_socket-c++-tests: New file, extracted from
36454         modules/sys_socket-tests.
36455         * modules/sys_socket-tests: Depend on it.
36456         * modules/sys_stat-c++-tests: New file, extracted from
36457         modules/sys_stat-tests.
36458         * modules/sys_stat-tests: Depend on it.
36459         * modules/sys_time-c++-tests: New file, extracted from
36460         modules/sys_time-tests.
36461         * modules/sys_time-tests: Depend on it.
36462         * modules/time-c++-tests: New file, extracted from modules/time-tests.
36463         * modules/time-tests: Depend on it.
36464         * modules/unistd-c++-tests: New file, extracted from
36465         modules/unistd-tests.
36466         * modules/unistd-tests: Depend on it.
36467         * modules/wchar-c++-tests: New file, extracted from
36468         modules/wchar-tests.
36469         * modules/wchar-tests: Depend on it.
36470         * modules/wctype-c++-tests: New file, extracted from
36471         modules/wctype-tests.
36472         * modules/wctype-tests: Depend on it.
36473         Reported by Simon Josefsson.
36474
36475 2010-03-28  Bruno Haible  <bruno@clisp.org>
36476
36477         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
36478         * gnulib-tool (func_exists_module): New function, extracted from
36479         func_verify_module.
36480         (func_verify_module): Use it.
36481         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
36482         'foo' only if 'foo' exists.
36483         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
36484         module.
36485
36486 2010-03-28  Bruno Haible  <bruno@clisp.org>
36487
36488         gnulib-tool: Add support for special categories of tests.
36489         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
36490         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
36491         (func_usage): Document them.
36492         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
36493         inc_unportable_tests, inc_all_tests): New variables.
36494         (func_acceptable): Consider these variables.
36495         (func_modules_transitive_closure): Make it work when the 'Status' field
36496         consists of multiple words.
36497         (func_import): Store and restore the values of inc_cxx_tests,
36498         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
36499         inc_all_tests in gnulib-comp.m4.
36500         (func_create_testdir): Set inc_all_tests to true.
36501         * doc/gnulib.texi (Extra tests modules): New section.
36502         Suggested by Jim Meyering.
36503
36504 2010-03-28  Bruno Haible  <bruno@clisp.org>
36505
36506         ansi-c++-opt: Allow turning off the C++ build by default.
36507         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
36508         gl_CXX_CHOICE_DEFAULT_NO is defined.
36509         Requested by Eric Blake.
36510
36511 2010-03-28  Bruno Haible  <bruno@clisp.org>
36512
36513         unistd: Avoid #define replacements in C++ mode.
36514         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
36515         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
36516         setsockopt, shutdown, select): In C++, attach a warning to the function
36517         if possible, rather than #defining the symbol to a dysfunctional alias.
36518         Reported by John W. Eaton <jwe@gnu.org>.
36519
36520 2010-03-28  Bruno Haible  <bruno@clisp.org>
36521
36522         Fix link errors on mingw.
36523         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
36524         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
36525         $(LIBSOCKET).
36526         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
36527         $(LIBSOCKET).
36528
36529 2010-03-28  Bruno Haible  <bruno@clisp.org>
36530             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36531
36532         lib-ignore: Determine different options for different compilers.
36533         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
36534         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
36535         Add comments.
36536         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
36537         * NEWS: Mention the change.
36538
36539 2010-03-27  Bruno Haible  <bruno@clisp.org>
36540
36541         Remove unused GNULIB_XYZ macro definitions.
36542         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
36543         * modules/fseek (configure.ac): Likewise.
36544         * modules/ioctl (configure.ac): Likewise.
36545         * modules/open (configure.ac): Likewise.
36546         * modules/stdlib-safer (configure.ac): Likewise.
36547
36548 2010-03-27  Bruno Haible  <bruno@clisp.org>
36549
36550         Add a remark about certain modules.
36551         * modules/malloc (Comment): New section.
36552         * modules/realloc (Comment): Likewise.
36553         * modules/sigpipe (Comment): Likewise.
36554
36555 2010-03-27  Bruno Haible  <bruno@clisp.org>
36556
36557         Resolve conflict between the two kinds of module indicators.
36558         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
36559         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
36560         * modules/canonicalize (configure.ac): Invoke
36561         gl_MODULE_INDICATOR_FOR_TESTS.
36562         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
36563         GNULIB_XYZ.
36564         * tests/test-dirent-c++.cc: Likewise.
36565         * tests/test-dirent-safer.c: Likewise.
36566         * tests/test-dup2.c: Likewise.
36567         * tests/test-fchdir.c: Likewise.
36568         * tests/test-fcntl-h-c++.cc: Likewise.
36569         * tests/test-getopt.c: Likewise.
36570         * tests/test-getopt.h: Likewise.
36571         * tests/test-langinfo-c++.cc: Likewise.
36572         * tests/test-locale-c++.cc: Likewise.
36573         * tests/test-math-c++.cc: Likewise.
36574         * tests/test-pty-c++.cc: Likewise.
36575         * tests/test-search-c++.cc: Likewise.
36576         * tests/test-signal-c++.cc: Likewise.
36577         * tests/test-spawn-c++.cc: Likewise.
36578         * tests/test-stdio-c++.cc: Likewise.
36579         * tests/test-stdlib-c++.cc: Likewise.
36580         * tests/test-string-c++.cc: Likewise.
36581         * tests/test-sys_ioctl-c++.cc: Likewise.
36582         * tests/test-sys_select-c++.cc: Likewise.
36583         * tests/test-sys_socket-c++.cc: Likewise.
36584         * tests/test-sys_stat-c++.cc: Likewise.
36585         * tests/test-sys_time-c++.cc: Likewise.
36586         * tests/test-time-c++.cc: Likewise.
36587         * tests/test-unistd-c++.cc: Likewise.
36588         * tests/test-wchar-c++.cc: Likewise.
36589         * tests/uninorm/test-u8-nfc.c: Likewise.
36590         * tests/uninorm/test-u8-nfd.c: Likewise.
36591         * tests/uninorm/test-u8-nfkc.c: Likewise.
36592         * tests/uninorm/test-u8-nfkd.c: Likewise.
36593         * tests/uninorm/test-u16-nfc.c: Likewise.
36594         * tests/uninorm/test-u16-nfd.c: Likewise.
36595         * tests/uninorm/test-u16-nfkc.c: Likewise.
36596         * tests/uninorm/test-u16-nfkd.c: Likewise.
36597         * tests/uninorm/test-u32-nfc.c: Likewise.
36598         * tests/uninorm/test-u32-nfc-big.c: Likewise.
36599         * tests/uninorm/test-u32-nfd.c: Likewise.
36600         * tests/uninorm/test-u32-nfd-big.c: Likewise.
36601         * tests/uninorm/test-u32-nfkc.c: Likewise.
36602         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
36603         * tests/uninorm/test-u32-nfkd.c: Likewise.
36604         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
36605         * tests/uninorm/test-u32-normalize-big.c: Likewise.
36606
36607 2010-03-27  Bruno Haible  <bruno@clisp.org>
36608
36609         Distinguish two kinds of module indicators.
36610         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
36611         gl_MODULE_INDICATOR.
36612         (gl_MODULE_INDICATOR): New macro.
36613         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
36614         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
36615         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
36616         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
36617         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
36618         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
36619         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
36620         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
36621         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
36622         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
36623         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
36624         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
36625         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
36626         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
36627         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
36628         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
36629         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
36630         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
36631         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
36632         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
36633         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
36634         * modules/cloexec (configure.ac): Likewise.
36635         * modules/getopt-gnu (configure.ac): Likewise.
36636         * modules/uninorm/u8-normalize (configure.ac): Likewise.
36637         * modules/uninorm/u16-normalize (configure.ac): Likewise.
36638         * modules/uninorm/u32-normalize (configure.ac): Likewise.
36639         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
36640
36641 2010-03-27  Bruno Haible  <bruno@clisp.org>
36642
36643         New module description field 'Comment'.
36644         * gnulib-tool: New option --extract-comment.
36645         (func_usage): Document it.
36646         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
36647         (func_get_comment): New function.
36648         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
36649
36650 2010-03-27  Bruno Haible  <bruno@clisp.org>
36651
36652         Addendum to 2010-02-07 commit.
36653         * gnulib-tool (func_usage): Document --extract-applicability option.
36654
36655 2010-03-27  Bruno Haible  <bruno@clisp.org>
36656
36657         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
36658         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
36659         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
36660         rather than link errors.
36661
36662 2010-03-27  Bruno Haible  <bruno@clisp.org>
36663
36664         Avoid side effects from tests-related modules on the compilation of lib.
36665         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
36666         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
36667         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
36668         parameter. Emit into AM_CPPFLAGS a definition of the designated C
36669         macro.
36670         (func_import): Define a witness macro. Assign it a value that depends
36671         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
36672         tests-related modules.
36673         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
36674         Reported by Jim Meyering.
36675
36676 2010-03-27  Bruno Haible  <bruno@clisp.org>
36677
36678         Factorize common .m4 code.
36679         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
36680         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
36681         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
36682         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
36683         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
36684         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
36685         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
36686         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
36687         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
36688         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
36689         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
36690         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
36691         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
36692         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
36693         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
36694         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
36695         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
36696         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
36697         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
36698         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
36699         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
36700         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
36701         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
36702         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
36703         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
36704         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
36705         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
36706         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
36707         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
36708         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
36709         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
36710         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
36711
36712 2010-03-27  Bruno Haible  <bruno@clisp.org>
36713
36714         Fix a compilation error on Cygwin with g++ >= 4.3.
36715         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
36716         if it is undefined or if we alias it to chmod.
36717         (lstat): Don't warn about the use of this function if it is undefined
36718         or if we alias it to stat.
36719         Reported by Simon Josefsson.
36720
36721 2010-03-27  Bruno Haible  <bruno@clisp.org>
36722
36723         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
36724         * modules/getlogin (configure.ac): Update.
36725
36726         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
36727         * modules/getlogin_r (configure.ac): Update.
36728
36729         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
36730         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
36731         * modules/inet_ntop (configure.ac): Update.
36732
36733         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
36734         * modules/inet_pton (configure.ac): Update.
36735
36736         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
36737         * modules/mbslen (configure.ac): Update.
36738
36739         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
36740         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
36741         * modules/forkpty (configure.ac): Update.
36742         * modules/openpty (configure.ac): Update.
36743
36744 2010-03-26  Simon Josefsson  <simon@josefsson.org>
36745
36746         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
36747         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
36748
36749 2010-03-25  Eric Blake  <eblake@redhat.com>
36750
36751         maint: use pragma consistently across replacement headers
36752         * lib/ctype.in.h (system_header): Hoist for consistent placement.
36753         * lib/dirent.in.h (system_header): Likewise.
36754         * lib/errno.in.h (system_header): Likewise.
36755         * lib/float.in.h (system_header): Likewise.
36756         * lib/getopt.in.h (system_header): Likewise.
36757         * lib/iconv.in.h (system_header): Likewise.
36758         * lib/inttypes.in.h (system_header): Likewise.
36759         * lib/langinfo.in.h (system_header): Likewise.
36760         * lib/locale.in.h (system_header): Likewise.
36761         * lib/math.in.h (system_header): Likewise.
36762         * lib/netdb.in.h (system_header): Likewise.
36763         * lib/netinet_in.in.h (system_header): Likewise.
36764         * lib/pty.in.h (system_header): Likewise.
36765         * lib/sched.in.h (system_header): Likewise.
36766         * lib/se-selinux.in.h (system_header): Likewise.
36767         * lib/search.in.h (system_header): Likewise.
36768         * lib/spawn.in.h (system_header): Likewise.
36769         * lib/stdarg.in.h (system_header): Likewise.
36770         * lib/stdint.in.h (system_header): Likewise.
36771         * lib/string.in.h (system_header): Likewise.
36772         * lib/strings.in.h (system_header): Likewise.
36773         * lib/sys_file.in.h (system_header): Likewise.
36774         * lib/sys_ioctl.in.h (system_header): Likewise.
36775         * lib/sys_socket.in.h (system_header): Likewise.
36776         * lib/sys_times.in.h (system_header): Likewise.
36777         * lib/sys_utsname.in.h (system_header): Likewise.
36778         * lib/sys_wait.in.h (system_header): Likewise.
36779         * lib/sysexits.in.h (system_header): Likewise.
36780         * lib/unistd.in.h (system_header): Likewise.
36781         * lib/wctype.in.h (system_header): Likewise.
36782
36783         arpa/inet: fix mingw compilation warning
36784         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
36785         Reported by Matthew Bolte.
36786
36787 2010-03-25  Bruno Haible  <bruno@clisp.org>
36788
36789         Avoid collision between gnulib wrapper and libintl wrapper.
36790         * lib/printf.c (printf): Don't define if a printf wrapper is already
36791         defined in intl/printf.c.
36792         Reported by Michel Boaventura <michel@michelboaventura.com>.
36793
36794 2010-03-25  Bruno Haible  <bruno@clisp.org>
36795
36796         Use ANSI C.
36797         * lib/readutmp.h (getutent): Provide ANSI C prototype.
36798
36799 2010-03-25  Bruno Haible  <bruno@clisp.org>
36800
36801         Minor formatting changes.
36802         * lib/acosl.c: Insert space before function argument list.
36803         * lib/argz.c: Likewise.
36804         * lib/asinl.c: Likewise.
36805         * lib/expl.c: Likewise.
36806         * lib/gen-uni-tables.c: Likewise.
36807         * lib/gettext.h: Likewise.
36808         * lib/glthread/lock.h: Likewise.
36809         * lib/tanl.c: Likewise.
36810         * lib/uniname/uniname.c: Likewise.
36811         * tests/test-idpriv-drop.c: Likewise.
36812         * tests/test-idpriv-droptemp.c: Likewise.
36813         * tests/test-lock.c: Likewise.
36814         * tests/test-tls.c: Likewise.
36815         * lib/argp-help.c: Insert space before function-like macro argument
36816         list.
36817         * lib/memcmp.c: Likewise.
36818         * tests/test-base64.c: Likewise.
36819         * lib/localename.c: Insert space before sizeof's argument list.
36820         * lib/safe-alloc.h: Likewise.
36821         * lib/file-set.h: Insert space before macro argument list.
36822         * tests/test-argp.c: Likewise.
36823         * lib/argp-namefrob.h: Insert space before function parameter list.
36824         * lib/getaddrinfo.c: Likewise.
36825         * lib/netdb.in.h: Likewise.
36826         * lib/parse-duration.h: Likewise.
36827         * lib/parse-duration.c: Likewise.
36828         * lib/poll.c: Likewise.
36829         * lib/select.c: Likewise.
36830         * lib/trim.h: Likewise.
36831         * tests/test-usleep.c: Likewise.
36832         * lib/ldexpl.c: Insert space before function parameter list and before
36833         function argument list.
36834         * lib/logl.c: Likewise.
36835         * lib/sqrtl.c: Likewise.
36836         * lib/trim.c: Likewise.
36837         * lib/cosl.c: Use GNU style indentation. Insert space before function
36838         argument list.
36839         * lib/sinl.c: Likewise.
36840         * lib/tsearch.c: Insert space after 'for'.
36841         Reported by Jim Meyering.
36842
36843 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
36844
36845         * maint.mk (sc_Wundef_boolean): Check for the presence of the
36846         config header before grepping, as it's not present before
36847         autoreconf/configure are run.  Reported by Simon Josefsson.
36848
36849 2010-03-23  Bruno Haible  <bruno@clisp.org>
36850
36851         pt_chown: Make it work with automake < 1.11.
36852         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
36853         Reported by Simon Josefsson.
36854
36855 2010-03-23  Bruno Haible  <bruno@clisp.org>
36856
36857         pt_chown: Don't depend on GPLed modules.
36858         * lib/pt_chown.c: Don't include idpriv.h.
36859         (main): Don't drop privileges.
36860         * modules/pt_chown (Depends-on): Remove idpriv-drop.
36861         Reported by Simon Josefsson.
36862
36863 2010-03-24  Simon Josefsson  <simon@josefsson.org>
36864
36865         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
36866         suggestions from karl@freefriends.org (Karl Berry).
36867
36868 2010-03-22  Eric Blake  <eblake@redhat.com>
36869
36870         gethostname: further tweaks
36871         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
36872         are overriding gethostname.
36873         Suggested by Bruno Haible.
36874
36875 2010-03-21  Bruno Haible  <bruno@clisp.org>
36876
36877         Fix comments.
36878         * lib/forkpty.c (rpl_forkpty): Fix comment.
36879         * lib/openpty.c (rpl_openpty): Likewise.
36880         Reported by Eric Blake.
36881
36882 2010-03-22  Eric Blake  <eblake@redhat.com>
36883
36884         gethostname: fix build on mingw
36885         * lib/unistd.in.h (includes): Work around fact that mingw
36886         <winsock2.h> re-includes <unistd.h>, by avoiding any
36887         redeclarations if we are being included by <winsock2.h>.
36888         Reported by Matthias Bolte.
36889
36890 2010-03-21  Bruno Haible  <bruno@clisp.org>
36891
36892         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
36893         * lib/forkpty.c (forkpty): New replacement function, from glibc with
36894         modifications.
36895         * lib/pty.in.h (forkpty): Update declaration. Add comments.
36896         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
36897         provide the replacement.
36898         * modules/forkpty (Depends-on): Add openpty, login_tty.
36899         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
36900         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
36901         * doc/glibc-functions/forkpty.texi: More supported platforms.
36902         * config/srclist.txt: Add forkpty.c (commented).
36903
36904 2010-03-21  Bruno Haible  <bruno@clisp.org>
36905
36906         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
36907         (Makefile.am): Verify that PTY_LIB is defined.
36908
36909         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
36910
36911 2010-03-21  Bruno Haible  <bruno@clisp.org>
36912
36913         Tests for module 'login_tty'.
36914         * modules/login_tty-tests: New file.
36915         * tests/test-login_tty.c: New file.
36916
36917         New module 'login_tty'.
36918         * lib/login_tty.c: New file.
36919         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
36920         * modules/login_tty: New file.
36921         * doc/glibc-functions/login_tty.texi: Mention the new module.
36922
36923 2010-03-21  Bruno Haible  <bruno@clisp.org>
36924
36925         login_tty: Documentation.
36926         * doc/glibc-functions/login_tty.texi: New file.
36927         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
36928
36929 2010-03-21  Bruno Haible  <bruno@clisp.org>
36930
36931         pty: Consistent macro naming.
36932         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
36933         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
36934         * modules/pty (configure.ac): Update.
36935
36936 2010-03-21  Bruno Haible  <bruno@clisp.org>
36937
36938         Tests for openpty: Make stricter.
36939         * tests/test-openpty.c (main): Add test of canonical processing and
36940         erase.
36941         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
36942
36943         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
36944         * lib/openpty.c (openpty): New replacement function.
36945         * lib/pty.in.h: Include <termios.h>.
36946         (openpty): Update declaration. Add comments.
36947         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
36948         is not declared, arrange to provide the replacement. Check for _getpty
36949         and posix_openpt.
36950         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
36951         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
36952         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
36953         * modules/pty-tests (test_pty_c___LDADD): New variable.
36954         * doc/glibc-functions/openpty.texi: More supported platforms.
36955
36956 2010-03-21  Bruno Haible  <bruno@clisp.org>
36957
36958         setenv: Tweaks.
36959         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
36960         the test program.
36961         * doc/posix-functions/setenv.texi: Update platforms list.
36962
36963 2010-03-21  Bruno Haible  <bruno@clisp.org>
36964
36965         New module 'unlockpt'.
36966         * lib/unlockpt.c: New file, from glibc with modifications.
36967         * m4/unlockpt.m4: New file.
36968         * modules/unlockpt: New file.
36969         * lib/stdlib.in.h (unlockpt): New declaration.
36970         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
36971         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
36972         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
36973         HAVE_UNLOCKPT.
36974         * doc/posix-functions/unlockpt.texi: Mention the new module.
36975         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
36976         * config/srclist.txt: Add unlockpt.c (commented).
36977
36978 2010-03-21  Jim Meyering  <meyering@redhat.com>
36979
36980         maint.mk: prohibit inclusion of "intprops.h" without use
36981         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
36982
36983 2010-03-21  Bruno Haible  <bruno@clisp.org>
36984
36985         New module 'grantpt'.
36986         * lib/grantpt.c: New file, from glibc with modifications.
36987         * m4/grantpt.m4: New file.
36988         * modules/grantpt: New file.
36989         * lib/stdlib.in.h (grantpt): New declaration.
36990         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
36991         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
36992         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
36993         HAVE_GRANTPT.
36994         * doc/posix-functions/grantpt.texi: Mention the new module.
36995         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
36996         * config/srclist.txt: Add grantpt.c (commented).
36997
36998 2010-03-21  Bruno Haible  <bruno@clisp.org>
36999
37000         New module 'pt_chown'.
37001         * lib/pt_chown.c: New file, from glibc with modifications.
37002         * lib/pty-private.h: New file, from glibc with modifications.
37003         * modules/pt_chown: New file.
37004         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
37005
37006 2010-03-21  Bruno Haible  <bruno@clisp.org>
37007
37008         Tests for module 'ptsname'.
37009         * modules/ptsname-tests: New file.
37010         * tests/test-ptsname.c: New file.
37011
37012         New module 'ptsname'.
37013         * lib/ptsname.c: New file, from glibc with modifications.
37014         * m4/ptsname.m4: New file.
37015         * modules/ptsname: New file.
37016         * lib/stdlib.in.h (ptsname): New declaration.
37017         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
37018         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
37019         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
37020         HAVE_PTSNAME.
37021         * doc/posix-functions/ptsname.texi: Mention the new module.
37022         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
37023         * config/srclist.txt: Add ptsname.c (commented).
37024
37025 2010-03-21  Bruno Haible  <bruno@clisp.org>
37026
37027         Tests for module 'ttyname_r'.
37028         * modules/ttyname_r-tests: New file.
37029         * tests/test-ttyname_r.c: New file.
37030
37031         New module 'ttyname_r'.
37032         * lib/ttyname_r.c: New file.
37033         * m4/ttyname_r.m4: New file.
37034         * modules/ttyname_r: New file.
37035         * lib/unistd.in.h (ttyname_r): New declaration.
37036         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
37037         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
37038         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
37039         HAVE_TTYNAME_R.
37040         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
37041         * doc/posix-functions/ttyname_r.texi: Mention the new module.
37042
37043 2010-03-20  Bruno Haible  <bruno@clisp.org>
37044
37045         signal: Undefine macro definitions in C++ mode.
37046         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
37047         sigfillset): Undefine macro definitions from the system header in C++
37048         mode.
37049         Reported by John W. Eaton <jwe@gnu.org>.
37050
37051 2010-03-20  Bruno Haible  <bruno@clisp.org>
37052
37053         Ensure no #include statements inside extern "C" { ... }.
37054         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
37055         contain #include statements.
37056         * lib/time.in.h: Likewise.
37057
37058 2010-03-20  Bruno Haible  <bruno@clisp.org>
37059
37060         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
37061         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
37062         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
37063         Reported by John W. Eaton <jwe@gnu.org>.
37064
37065 2010-03-20  Bruno Haible  <bruno@clisp.org>
37066
37067         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
37068         Reported by Jim Meyering.
37069
37070 2010-03-20  Bruno Haible  <bruno@clisp.org>
37071
37072         pipe: Set errno upon failure.
37073         * lib/pipe.h: Specify that when -1 is returned, errno is set.
37074         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
37075         errno value in error message.
37076
37077 2010-03-20  Bruno Haible  <bruno@clisp.org>
37078             Jim Meyering  <meyering@redhat.com>
37079
37080         lchown: Avoid "unused variable" warning.
37081         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
37082
37083 2010-03-20  Bruno Haible  <bruno@clisp.org>
37084
37085         Work around unlink() bug on MacOS X 10.5.6.
37086         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
37087         attempting to unlink a parent directory.
37088         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
37089         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
37090         activate for the replacement function.
37091         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
37092
37093 2010-03-20  Bruno Haible  <bruno@clisp.org>
37094
37095         Fix link errors on Solaris 8.
37096         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
37097         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
37098
37099 2010-03-19  Jim Meyering  <meyering@redhat.com>
37100
37101         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
37102         The _LIBC implementation of build_range_exp correctly honors the
37103         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
37104         However, the non-_LIBC implementation would ignore that syntax-bit
37105         flag and return REG_ERANGE unconditionally.
37106         This change makes it honor that flag.
37107         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
37108         Make two pointer parameters "const".
37109         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
37110         (parse_bracket_exp): Update caller.
37111
37112         regex.m4: correct the reversed range endpoint ([b-a]) test
37113         * m4/regex.m4: When requiring that [b-a] evoke failure,
37114         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
37115         test pass once again for x86-based systems.
37116
37117 2010-03-19  Bruno Haible  <bruno@clisp.org>
37118
37119         scandir: Fix link error on Solaris 8.
37120         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
37121         macros.
37122
37123 2010-03-19  Bruno Haible  <bruno@clisp.org>
37124
37125         getusershell: Fix documentation.
37126         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
37127         module.
37128         * doc/glibc-functions/setusershell.texi: Likewise.
37129
37130         getusershell: Provide declaration, missing on Solaris 9.
37131         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
37132         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
37133         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
37134         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
37135         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37136         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
37137         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
37138         HAVE_GETUSERSHELL.
37139         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
37140
37141 2010-03-19  Bruno Haible  <bruno@clisp.org>
37142
37143         wctype: Provide iswblank function.
37144         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
37145         exists and is fine.
37146         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
37147         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
37148         * tests/test-wctype.c (main): Re-enable the iswblank tests.
37149         * doc/posix-functions/iswblank.texi: Update.
37150
37151 2010-03-19  Bruno Haible  <bruno@clisp.org>
37152
37153         Tests of module 'pty' in C++ mode.
37154         * modules/pty-tests: New file.
37155         * tests/test-pty-c++.cc: New file.
37156         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
37157
37158 2010-03-19  Eric Blake  <eblake@redhat.com>
37159
37160         logb: fix documentation
37161         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
37162         1.5 declaration bug.
37163
37164         forkpty, openpty: prefer glibc's const-safe prototype
37165         * lib/forkpty.c (rpl_forkpty): New file.
37166         * lib/openpty.c (rpl_openpty): Likewise.
37167         * modules/forkpty (Files): Distribute it.
37168         * modules/openpty (Files): Likewise.
37169         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
37170         check...
37171         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
37172         replacement for for non-const BSD signature.
37173         * modules/pty (Makefile.am): Substitute witnesses.
37174         * lib/pty.in.h (forkpty, openpty): Declare replacements.
37175         * tests/test-forkpty.c: Update signature check.
37176         * tests/test-openpty.c: Likewise.
37177         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
37178         * doc/glibc-functions/openpty.texi (openpty): Likewise.
37179
37180         forkpty, openpty: split functions into new modules
37181         * modules/pty (Makefile.am): Substitute new witnesses.
37182         (Libraries): Move library detection...
37183         * modules/forkpty: ...into new module.
37184         * modules/openpty: Another new module.
37185         * modules/pty-tests: Rename and split...
37186         * modules/forkpty-tests: ...to this...
37187         * modules/openpty-tests: ...and this.
37188         * tests/test-pty.c: Rename and split...
37189         * tests/test-forkpty.c: ...to this...
37190         * tests/test-openpty.c: ...and this.
37191         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
37192         (gl_PTY): Split library searching...
37193         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
37194         (gl_FORKPTY, gl_OPENPTY): New macros.
37195         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
37196         * NEWS: Mention the split.
37197         * MODULES.html.sh (Misc): Document the modules.
37198         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
37199         * doc/glibc-functions/openpty.texi (openpty): Likewise.
37200
37201         pty: improve replacement header
37202         * lib/pty.in.h: New file.
37203         * modules/pty (Files): Ship it.
37204         (Makefile.am): Always build replacement.
37205         * m4/pty.m4: Rename...
37206         * m4/pty_h.m4: ...to this.
37207         (gl_PTY): Modernize setting of witness macros; update check of
37208         forkpty to take proper advantage of cache.
37209         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
37210
37211         getopt: avoid compiler warning
37212         * lib/getopt.c (attribute_hidden): Remove unused macro.
37213
37214 2010-03-18  Bruno Haible  <bruno@clisp.org>
37215
37216         Fix link errors on Solaris 8.
37217         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
37218         * modules/search-tests (test_search_c___LDADD): Likewise.
37219         * modules/signal-tests (test_signal_c___LDADD): Likewise.
37220         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
37221         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
37222         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
37223         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
37224         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
37225         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
37226
37227 2010-03-18  Bruno Haible  <bruno@clisp.org>
37228
37229         Fix bug introduced on 2010-03-14.
37230         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
37231         (gl_SPAWN_H): Require it.
37232         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
37233         Reported by Simon Josefsson.
37234
37235 2010-03-18  Bruno Haible  <bruno@clisp.org>
37236
37237         Fix typo introduced on 2009-12-31.
37238         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
37239         posix_spawn_file_actions_adddup2.
37240
37241 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
37242         and Eric Blake  <eblake@redhat.com>
37243
37244         test-vc-list-files-git: make more robust
37245         * tests/test-vc-list-files-git.sh: Unset problematic environment
37246         variables.  Chain commands together.
37247
37248 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
37249
37250         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
37251         `AC_CHECK_DECL' invocation.
37252
37253 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
37254
37255         * lib/inttostr.c (inttostr): Make sure the invocation of verify
37256         appears before executable statements. Suggested by Petr Sumbera
37257         <Petr.Sumbera@Sun.COM>.
37258
37259 2010-03-14  Bruno Haible  <bruno@clisp.org>
37260
37261         * tests/test-flock.c (test_exclusive): Comment out a test that causes
37262         portability problems. Instead use a simpler test.
37263         (main): Check that invalid arguments are rejected only on Linux.
37264
37265 2010-03-14  Bruno Haible  <bruno@clisp.org>
37266
37267         Fix bug introduced on 2009-12-31.
37268         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
37269         gl_PREREQ_SYS_H_WINSOCK2 always.
37270         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
37271         SYS_SOCKET_H variable.
37272         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
37273         Update comments.
37274         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
37275         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
37276         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
37277         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
37278         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
37279
37280 2010-03-14  Bruno Haible  <bruno@clisp.org>
37281
37282         Fix values returned by sinl, cosl.
37283         * lib/trigl.h: Add specification comments.
37284         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
37285         that combines the values from the precomputed table with the values of
37286         the Chebyshev polynomials.
37287
37288 2010-03-14  Bruno Haible  <bruno@clisp.org>
37289
37290         Fix compilation error when modules 'posix_spawn[p]' are not used.
37291         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
37292         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
37293
37294 2010-03-14  Bruno Haible  <bruno@clisp.org>
37295
37296         Fix compilation error on mingw when module 'time_r' is not used.
37297         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
37298         is 1.
37299         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
37300         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
37301         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
37302         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
37303
37304 2010-03-14  Bruno Haible  <bruno@clisp.org>
37305
37306         Fix compilation error with Sun C.
37307         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
37308         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
37309         instead of GCC specific ULONG_LONG_MAX.
37310         * lib/xstrtoll.c: Likewise.
37311         * lib/xstrtoull.c: Likewise.
37312
37313 2010-03-13  Bruno Haible  <bruno@clisp.org>
37314
37315         Allow the user to disable C++ code and tests.
37316         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
37317         (gl_PROG_ANSI_CXX): Require it.
37318
37319 2010-03-13  Bruno Haible  <bruno@clisp.org>
37320
37321         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
37322         cases.
37323
37324 2010-03-13  Bruno Haible  <bruno@clisp.org>
37325
37326         Test that gnulib does not break the standard C++ headers.
37327         * tests/test-locale-c++2.cc: New file.
37328         * modules/locale-tests (Files): Add it.
37329         (Makefile.am): Compile it for test-locale-c++.
37330         * tests/test-math-c++2.cc: New file.
37331         * modules/math-tests (Files): Add it.
37332         (Makefile.am): Compile it for test-math-c++.
37333         * tests/test-signal-c++2.cc: New file.
37334         * modules/signal-tests (Files): Add it.
37335         (Makefile.am): Compile it for test-signal-c++.
37336         * tests/test-stdio-c++2.cc: New file.
37337         * modules/stdio-tests (Files): Add it.
37338         (Makefile.am): Compile it for test-stdio-c++.
37339         * tests/test-stdlib-c++2.cc: New file.
37340         * modules/stdlib-tests (Files): Add it.
37341         (Makefile.am): Compile it for test-stdlib-c++.
37342         * tests/test-string-c++2.cc: New file.
37343         * modules/string-tests (Files): Add it.
37344         (Makefile.am): Compile it for test-string-c++.
37345         * tests/test-time-c++2.cc: New file.
37346         * modules/time-tests (Files): Add it.
37347         (Makefile.am): Compile it for test-time-c++.
37348         Reported by John W. Eaton <jwe@gnu.org>.
37349
37350 2010-03-13  Bruno Haible  <bruno@clisp.org>
37351
37352         * gnulib-tool (func_usage): Clarify which options are available for
37353         --create-testdir and --create-megatestdir.
37354
37355 2010-03-13  Bruno Haible  <bruno@clisp.org>
37356
37357         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
37358         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
37359         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
37360         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
37361         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
37362         when appropriate.
37363         Reported by Jim Meyering.
37364
37365 2010-03-12  Simon Josefsson  <simon@josefsson.org>
37366
37367         * gnulib-tool (func_import): Explain origin of code.
37368
37369 2010-03-12  Bruno Haible  <bruno@clisp.org>
37370
37371         Fix problem with automake's definition of CXXLINK.
37372         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
37373         Reported by Simon Josefsson and Ludovic Courtès.
37374
37375 2010-03-12  Bruno Haible  <bruno@clisp.org>
37376
37377         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
37378         stable releases.
37379
37380 2010-03-11  Bruno Haible  <bruno@clisp.org>
37381
37382         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
37383         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
37384         whether the system provides one variant or multiple variants of the
37385         function.
37386         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
37387         C++ compilers.
37388         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
37389         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
37390         Reported by Jim Meyering.
37391
37392 2010-03-09  Simon Josefsson  <simon@josefsson.org>
37393
37394         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
37395
37396 2010-03-08  Bruno Haible  <bruno@clisp.org>
37397
37398         gnulib-tool: Add support for --libtool in --create-testdir.
37399         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
37400         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
37401
37402 2010-03-08  Eric Blake  <eblake@redhat.com>
37403
37404         gnulib-tool.texi: mention possibility of git submodule
37405         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
37406         submodules.
37407         * doc/.gitignore: Ignore another generated file.
37408
37409 2010-03-08  Karl Berry  <karl@gnu.org>
37410
37411         * doc/gnulib-tool.texi (VCS Issues): Mention third option
37412         of committing gnulib files while skipping others.
37413
37414 2010-03-07  Bruno Haible  <bruno@clisp.org>
37415
37416         Tests of module 'wctype' in C++ mode.
37417         * tests/test-wctype-c++.cc: New file.
37418         * modules/wctype-tests (Files): Add it and tests/signature.h.
37419         (Depends-on): Add ansi-c++-opt.
37420         (Makefile.am): Arrange to compile and run test-wctype-c++.
37421
37422         Tests of module 'wchar' in C++ mode.
37423         * tests/test-wchar-c++.cc: New file.
37424         * modules/wchar-tests (Files): Add it and tests/signature.h.
37425         (Depends-on): Add ansi-c++-opt.
37426         (Makefile.am): Arrange to compile and run test-wchar-c++.
37427         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
37428         gl_MODULE_INDICATOR.
37429
37430         Tests of module 'unistd' in C++ mode.
37431         * tests/test-unistd-c++.cc: New file.
37432         * modules/unistd-tests (Files): Add it and tests/signature.h.
37433         (Depends-on): Add ansi-c++-opt.
37434         (Makefile.am): Arrange to compile and run test-unistd-c++.
37435         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
37436         gl_MODULE_INDICATOR.
37437
37438         Tests of module 'time' in C++ mode.
37439         * tests/test-time-c++.cc: New file.
37440         * modules/time-tests (Files): Add it and tests/signature.h.
37441         (Depends-on): Add ansi-c++-opt.
37442         (Makefile.am): Arrange to compile and run test-time-c++.
37443         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
37444
37445         Tests of module 'sys_time' in C++ mode.
37446         * tests/test-sys_time-c++.cc: New file.
37447         * modules/sys_time-tests (Files): Add it and tests/signature.h.
37448         (Depends-on): Add ansi-c++-opt.
37449         (Makefile.am): Arrange to compile and run test-sys_time-c++.
37450         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
37451         gl_MODULE_INDICATOR.
37452
37453         Tests of module 'sys_stat' in C++ mode.
37454         * tests/test-sys_stat-c++.cc: New file.
37455         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
37456         (Depends-on): Add ansi-c++-opt.
37457         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
37458         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
37459         gl_MODULE_INDICATOR.
37460
37461         Tests of module 'sys_socket' in C++ mode.
37462         * tests/test-sys_socket-c++.cc: New file.
37463         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
37464         (Depends-on): Add ansi-c++-opt.
37465         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
37466         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
37467         gl_MODULE_INDICATOR.
37468
37469         Tests of module 'sys_select' in C++ mode.
37470         * tests/test-sys_select-c++.cc: New file.
37471         * modules/sys_select-tests (Files): Add it and tests/signature.h.
37472         (Depends-on): Add ansi-c++-opt.
37473         (Makefile.am): Arrange to compile and run test-sys_select-c++.
37474         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
37475         gl_MODULE_INDICATOR.
37476
37477         Tests of module 'sys_ioctl' in C++ mode.
37478         * tests/test-sys_ioctl-c++.cc: New file.
37479         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
37480         (Depends-on): Add ansi-c++-opt.
37481         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
37482         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
37483         gl_MODULE_INDICATOR.
37484
37485         Tests of module 'string' in C++ mode.
37486         * tests/test-string-c++.cc: New file.
37487         * modules/string-tests (Files): Add it and tests/signature.h.
37488         (Depends-on): Add ansi-c++-opt.
37489         (Makefile.am): Arrange to compile and run test-string-c++.
37490         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
37491         gl_MODULE_INDICATOR.
37492
37493         Tests of module 'stdlib' in C++ mode.
37494         * tests/test-stdlib-c++.cc: New file.
37495         * modules/stdlib-tests (Files): Add it and tests/signature.h.
37496         (Depends-on): Add ansi-c++-opt.
37497         (Makefile.am): Arrange to compile and run test-stdlib-c++.
37498         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
37499         gl_MODULE_INDICATOR.
37500
37501         Tests of module 'stdio' in C++ mode.
37502         * tests/test-stdio-c++.cc: New file.
37503         * modules/stdio-tests (Files): Add it and tests/signature.h.
37504         (Depends-on): Add ansi-c++-opt.
37505         (Makefile.am): Arrange to compile and run test-stdio-c++.
37506         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
37507         gl_MODULE_INDICATOR.
37508
37509         Tests of module 'spawn' in C++ mode.
37510         * tests/test-spawn-c++.cc: New file.
37511         * modules/spawn-tests (Files): Add it and tests/signature.h.
37512         (Depends-on): Add ansi-c++-opt.
37513         (Makefile.am): Arrange to compile and run test-spawn-c++.
37514         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
37515         gl_MODULE_INDICATOR.
37516
37517         Tests of module 'signal' in C++ mode.
37518         * tests/test-signal-c++.cc: New file.
37519         * modules/signal-tests (Files): Add it and tests/signature.h.
37520         (Depends-on): Add ansi-c++-opt.
37521         (Makefile.am): Arrange to compile and run test-signal-c++.
37522         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
37523         gl_MODULE_INDICATOR.
37524
37525         Tests of module 'search' in C++ mode.
37526         * tests/test-search-c++.cc: New file.
37527         * modules/search-tests (Files): Add it and tests/signature.h.
37528         (Depends-on): Add ansi-c++-opt.
37529         (Makefile.am): Arrange to compile and run test-search-c++.
37530         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
37531         gl_MODULE_INDICATOR.
37532
37533         Tests of module 'math' in C++ mode.
37534         * tests/test-math-c++.cc: New file.
37535         * modules/math-tests (Files): Add it and tests/signature.h.
37536         (Depends-on): Add ansi-c++-opt.
37537         (Makefile.am): Arrange to compile and run test-math-c++.
37538         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
37539
37540         Tests of module 'locale' in C++ mode.
37541         * tests/test-locale-c++.cc: New file.
37542         * modules/locale-tests (Files): Add it and tests/signature.h.
37543         (Depends-on): Add ansi-c++-opt.
37544         (Makefile.am): Arrange to compile and run test-locale-c++.
37545         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
37546         gl_MODULE_INDICATOR.
37547
37548         Tests of module 'langinfo' in C++ mode.
37549         * tests/test-langinfo-c++.cc: New file.
37550         * modules/langinfo-tests (Files): Add it and tests/signature.h.
37551         (Depends-on): Add ansi-c++-opt.
37552         (Makefile.am): Arrange to compile and run test-langinfo-c++.
37553         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
37554         gl_MODULE_INDICATOR.
37555
37556         Tests of module 'iconv-h' in C++ mode.
37557         * tests/test-iconv-h-c++.cc: New file.
37558         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
37559         (Depends-on): Add ansi-c++-opt.
37560         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
37561
37562         Tests of module 'glob' in C++ mode.
37563         * tests/test-glob-c++.cc: New file.
37564         * modules/glob-tests (Files): Add it.
37565         (Depends-on): Add ansi-c++-opt.
37566         (Makefile.am): Arrange to compile and run test-glob-c++.
37567
37568         Tests of module 'fcntl-h' in C++ mode.
37569         * tests/test-fcntl-h-c++.cc: New file.
37570         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
37571         (Depends-on): Add ansi-c++-opt.
37572         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
37573         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
37574         gl_MODULE_INDICATOR.
37575
37576         Tests of module 'dirent' in C++ mode.
37577         * tests/test-dirent-c++.cc: New file.
37578         * modules/dirent-tests (Files): Add it and tests/signature.h.
37579         (Depends-on): Add ansi-c++-opt.
37580         (Makefile.am): Arrange to compile and run test-dirent-c++.
37581         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
37582         gl_MODULE_INDICATOR.
37583
37584         New module 'ansi-c++-opt'.
37585         * modules/ansi-c++-opt: New file.
37586         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
37587
37588         Document C++ namespace mode.
37589         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
37590
37591         wctype: Avoid #define replacements in C++ mode.
37592         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
37593         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
37594         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
37595         In C++, define a namespaced alias symbol.
37596         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
37597         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
37598         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
37599         rule.
37600
37601         wchar: Avoid #define replacements in C++ mode.
37602         * lib/wchar.in.h: Include c++defs.h.
37603         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
37604         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
37605         symbol.
37606         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
37607         * modules/wchar (Depends-on): Add c++defs.
37608         (Makefile.am): Update wchar.h rule.
37609
37610         unistd: Avoid #define replacements in C++ mode.
37611         * lib/unistd.in.h: Include c++defs.h.
37612         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
37613         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
37614         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
37615         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
37616         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
37617         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
37618         symbol.
37619         (environ): Update.
37620         * modules/unistd (Depends-on): Add c++defs.
37621         (Makefile.am): Update unistd.h rule.
37622
37623         time: Avoid #define replacements in C++ mode.
37624         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
37625         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
37626         define a namespaced alias symbol.
37627         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
37628         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
37629         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
37630         * modules/time (Depends-on): Add c++defs, warn-on-use.
37631         (Makefile.am): Update time.h rule.
37632         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
37633         * modules/nanosleep (configure.ac): Likewise.
37634         * modules/strptime (configure.ac): Likewise.
37635         * modules/timegm (configure.ac): Likewise.
37636
37637         sys_time: Avoid #define replacements in C++ mode.
37638         * lib/sys_time.in.h: Include c++defs.h.
37639         (gettimeofday): In C++, define a namespaced alias symbol.
37640         * modules/sys_time (Depends-on): Add c++defs.
37641         (Makefile.am): Update sys/time.h rule.
37642
37643         sys_stat: Avoid #define replacements in C++ mode.
37644         * lib/sys_stat.in.h: Include c++defs.h.
37645         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
37646         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
37647         namespaced alias symbol.
37648         In C++, define a namespaced alias symbol.
37649         * modules/sys_stat (Depends-on): Add c++defs.
37650         (Makefile.am): Update sys/stat.h rule.
37651
37652         sys_socket: Avoid #define replacements in C++ mode.
37653         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
37654         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
37655         definitions also when the system has a <sys/socket.h>.
37656         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
37657         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
37658         In C++, define a namespaced alias symbol.
37659         * modules/sys_socket (Depends-on): Add c++defs.
37660         (Makefile.am): Update sys/socket.h rule.
37661
37662         sys_select: Avoid #define replacements in C++ mode.
37663         * lib/sys_select.in.h: Include c++defs.h. Enable the function
37664         definitions also when the system has a <sys/select.h>.
37665         (select): In C++, define a namespaced alias symbol.
37666         * modules/sys_select (Depends-on): Add c++defs.
37667         (Makefile.am): Update sys/select.h rule.
37668
37669         sys_ioctl: Avoid #define replacements in C++ mode.
37670         * lib/sys_ioctl.in.h: Include c++defs.h.
37671         (ioctl): In C++, define a namespaced alias symbol.
37672         * modules/sys_ioctl (Depends-on): Add c++defs.
37673         (Makefile.am): Update sys/ioctl.h rule.
37674
37675         string: Avoid #define replacements in C++ mode.
37676         * lib/string.in.h: Include c++defs.h.
37677         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
37678         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
37679         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
37680         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
37681         strsignal, strverscmp): In C++, define a namespaced alias symbol.
37682         * modules/string (Depends-on): Add c++defs.
37683         (Makefile.am): Update string.h rule.
37684
37685         stdlib: Avoid #define replacements in C++ mode.
37686         * lib/stdlib.in.h: Include c++defs.h.
37687         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
37688         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
37689         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
37690         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
37691         symbol.
37692         * modules/stdlib (Depends-on): Add c++defs.
37693         (Makefile.am): Update stdlib.h rule.
37694
37695         stdio: Avoid #define replacements in C++ mode.
37696         * lib/stdio.in.h: Include c++defs.h.
37697         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
37698         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
37699         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
37700         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
37701         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
37702         namespaced alias symbol.
37703         * modules/stdio (Depends-on): Add c++defs.
37704         (Makefile.am): Update stdio.h rule.
37705
37706         spawn: Avoid #define replacements in C++ mode.
37707         * lib/spawn.in.h: Include c++defs.h.
37708         (posix_spawn, posix_spawnp, posix_spawnattr_init,
37709         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
37710         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
37711         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
37712         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
37713         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
37714         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
37715         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
37716         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
37717         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
37718         In C++, define a namespaced alias symbol.
37719         * modules/spawn (Depends-on): Add c++defs.
37720         (Makefile.am): Update spawn.h rule.
37721
37722         signal: Avoid #define replacements in C++ mode.
37723         * lib/signal.in.h: Include c++defs.h.
37724         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
37725         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
37726         namespaced alias symbol.
37727         * modules/signal (Depends-on): Add c++defs.
37728         (Makefile.am): Update signal.h rule.
37729
37730         search: Avoid #define replacements in C++ mode.
37731         * lib/search.in.h: Include c++defs.h.
37732         (_gl_search_compar_fn, _gl_search_action_fn): New types.
37733         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
37734         symbol.
37735         * modules/search (Depends-on): Add c++defs.
37736         (Makefile.am): Update search.h rule.
37737
37738         math: Avoid #define replacements in C++ mode.
37739         * lib/math.in.h: Include c++defs.h.
37740         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
37741         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
37742         trunc, truncl): In C++, define a namespaced alias symbol.
37743         * modules/math (Depends-on): Add c++defs.
37744         (Makefile.am): Update math.h rule.
37745
37746         locale: Avoid #define replacements in C++ mode.
37747         * lib/locale.in.h: Include c++defs.h.
37748         (duplocale): In C++, define a namespaced alias symbol.
37749         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
37750         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
37751         * modules/locale (Depends-on): Add c++defs.
37752         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
37753
37754         langinfo: Avoid #define replacements in C++ mode.
37755         * lib/langinfo.in.h: Include c++defs.h.
37756         (nl_langinfo): In C++, define a namespaced alias symbol.
37757         * modules/langinfo (Depends-on): Add c++defs.
37758         (Makefile.am): Update langinfo.h rule.
37759
37760         iconv-h: Avoid #define replacements in C++ mode.
37761         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
37762         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
37763         symbol.
37764         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
37765         whenever iconv is present.
37766         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
37767         (Makefile.am): Update iconv.h rule.
37768
37769         glob: Avoid #define replacements in C++ mode.
37770         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
37771         (_gl_glob_errfunc_fn): New type.
37772         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
37773         symbol.
37774         * modules/glob (Depends-on): Add c++defs, warn-on-use.
37775         (Makefile.am): Update glob.h rule.
37776
37777         fcntl-h: Avoid #define replacements in C++ mode.
37778         * lib/fcntl.in.h: Include c++defs.h.
37779         (fcntl, open, openat): In C++, define a namespaced alias symbol.
37780         * modules/fcntl-h (Depends-on): Add c++defs.
37781         (Makefile.am): Update fcntl.h rule.
37782
37783         dirent: Avoid #define replacements in C++ mode.
37784         * lib/dirent.in.h: Include c++defs.h.
37785         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
37786         namespaced alias symbol.
37787         (dirfd): Update declaration.
37788         * modules/dirent (Depends-on): Add c++defs.
37789         (Makefile.am): Update dirent.h rule.
37790
37791         ctype: Make it usable in C++ code.
37792         * lib/ctype.in.h: Include c++defs.h.
37793         (isblank): Declare as extern "C".
37794         * modules/ctype (Depends-on): Add c++defs.
37795         (Makefile.am): Update ctype.h rule.
37796
37797         New module 'c++defs'.
37798         * modules/c++defs: New file.
37799         * build-aux/c++defs.h: New file.
37800         Reported by John W. Eaton <jwe@gnu.org>.
37801
37802 2010-03-07  Bruno Haible  <bruno@clisp.org>
37803
37804         logb: Provide missing declaration for Cygwin.
37805         * lib/math.in.h (logb): New declaration.
37806         * m4/logb.m4: New file.
37807         * modules/logb (Files): Add m4/logb.m4.
37808         (Depends-on): Add math.
37809         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
37810         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
37811         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
37812         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
37813         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
37814
37815 2010-03-07  Bruno Haible  <bruno@clisp.org>
37816
37817         Fix test-cond link error.
37818         * tests/test-cond.c: Include <stdio.h>.
37819
37820 2010-03-07  Bruno Haible  <bruno@clisp.org>
37821
37822         Fix test-dirent-safer link error.
37823         * modules/dirent-safer-tests (Makefile.am): Define
37824         test_dirent_safer_LDADD.
37825
37826 2010-03-07  Bruno Haible  <bruno@clisp.org>
37827
37828         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
37829         among default module list.
37830
37831 2010-03-07  Bruno Haible  <bruno@clisp.org>
37832
37833         Fix link error on platforms with GNU libiconv.
37834         * modules/unistr/u8-strcoll-tests (Makefile): Define
37835         test_u8_strcoll_LDADD.
37836         * modules/unistr/u16-strcoll-tests (Makefile): Define
37837         test_u16_strcoll_LDADD.
37838         * modules/unistr/u32-strcoll-tests (Makefile): Define
37839         test_u32_strcoll_LDADD.
37840
37841 2010-03-07  Bruno Haible  <bruno@clisp.org>
37842
37843         Use POSIX declarations for socket functions.
37844         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
37845         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
37846         rpl_sendto): Change declaration to match POSIX.
37847         * lib/connect.c (rpl_connect): Likewise.
37848         * lib/accept.c (rpl_accept): Likewise.
37849         * lib/bind.c (rpl_bind): Likewise.
37850         * lib/getpeername.c (rpl_getpeername): Likewise.
37851         * lib/getsockname.c (rpl_getsockname): Likewise.
37852         * lib/recv.c (rpl_recv): Likewise.
37853         * lib/send.c (rpl_send): Likewise.
37854         * lib/recvfrom.c (rpl_recvfrom): Likewise.
37855         * lib/sendto.c (rpl_sendto): Likewise.
37856
37857 2010-03-06  Bruno Haible  <bruno@clisp.org>
37858
37859         Clarify access, euidaccess, faccessat.
37860         * doc/posix-functions/faccessat.texi: Mention security problem under
37861         "Other problems", not "Portability problems".
37862         * doc/posix-functions/access.texi: Likewise. Mention a related security
37863         problem.
37864         * doc/glibc-functions/euidaccess.texi: Mention security problems.
37865         * lib/euidaccess.c: Add comments about platforms.
37866         * lib/unistd.in.h (access, euidaccess): Add warnings.
37867
37868 2010-03-07  Bruno Haible  <bruno@clisp.org>
37869
37870         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
37871         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
37872         (POSIX_SPAWN_SETSCHEDULER): Likewise.
37873         (POSIX_SPAWN_USEVFORK): Define in a way that works when
37874         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
37875         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
37876         declare when POSIX_SPAWN_SETSCHEDULER is zero.
37877         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
37878         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
37879         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
37880         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
37881         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
37882         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
37883         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
37884         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
37885         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
37886         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
37887         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
37888         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
37889         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
37890         Likewise.
37891         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
37892         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
37893         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
37894         Likewise.
37895         * tests/test-spawn.c (main): Make it work when
37896         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
37897
37898 2010-03-07  Bruno Haible  <bruno@clisp.org>
37899
37900         Fix incorrect Makefile.am generation in German locale.
37901         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
37902         Execute sed command with character range in C locale.
37903
37904 2010-03-06  Bruno Haible  <bruno@clisp.org>
37905
37906         Tests for module 'iconv-h'.
37907         * modules/iconv-h-tests: New file.
37908         * tests/test-iconv-h.c: New file.
37909
37910         New module 'iconv-h'.
37911         * modules/iconv-h: New file.
37912         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
37913         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
37914         (configure.ac): Remove gl_ICONV_H.
37915         (Makefile.am): Remove rule for iconv.h.
37916
37917 2010-03-06  Bruno Haible  <bruno@clisp.org>
37918
37919         More consistent naming of *.m4 files.
37920         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
37921         * modules/wctype (Files): Update.
37922
37923         More consistent naming of *.m4 files.
37924         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
37925         * modules/wchar (Files): Update.
37926
37927 2010-03-06  Jim Meyering  <meyering@redhat.com>
37928
37929         euidaccess: relax license to LGPLv2+
37930         * modules/euidaccess (License): Relax to LGPLv2+.
37931
37932 2010-03-06  Bruno Haible  <bruno@clisp.org>
37933
37934         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
37935         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
37936         (Makefile.am): Augment lib_SOURCES instead.
37937
37938 2010-03-04  Jim Meyering  <meyering@redhat.com>
37939
37940         utime: remove obsolete module
37941         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
37942         unnecessary for years, and has been marked as obsolete for 10 months.
37943         * modules/utime: Remove file.
37944         * lib/utime.c: Remove file.
37945         * m4/utime.m4: Remove file.
37946         * m4/utimes-null.m4: Remove file.
37947         * doc/posix-functions/utime.texi (utime): Remove reference to
37948         the module.  Move the sole "fixed by gnulib" item into the
37949         "problems not fixed by Gnulib" list.
37950         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
37951
37952 2010-03-05  Simon Josefsson  <simon@josefsson.org>
37953
37954         * modules/exit (License): Relax license to LGPLv2+.
37955         (Status): Mark as obsolete.
37956         * NEWS: Mention deprecated 'exit' module.
37957         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
37958         of now obsolete 'exit'.
37959
37960 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37961
37962         fts-lgpl: remove unused module
37963         * modules/fts-lgpl: Remove.
37964         * MODULES.html.sh (func_all_modules): Adjust.
37965         * check-module (find_included_lib_files): Adjust.
37966         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
37967
37968 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
37969
37970         copy-acl: enhance Solaris ACL error handling
37971         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
37972         * lib/set-mode-acl.c (qset_acl): Likewise.
37973
37974 2010-03-02  Bruno Haible  <bruno@clisp.org>
37975
37976         spawn: Don't override the system defined values on FreeBSD 8.
37977         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
37978         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
37979         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
37980         if HAVE_POSIX_SPAWN is 1.
37981         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
37982
37983 2010-03-01  Bruno Haible  <bruno@clisp.org>
37984
37985         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
37986         regarding Automake.
37987
37988 2010-02-25  Bruno Haible  <bruno@clisp.org>
37989
37990         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
37991         * gnulib-tool: Define 'echo' as a function only before the ksh alias
37992         setting, not afterwards.
37993         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
37994
37995 2010-02-24  Eric Blake  <eblake@redhat.com>
37996
37997         bootstrap, git-version-gen: use timestamp
37998         * build-aux/git-version-gen (scriptversion): Force UTC.
37999         * build-aux/bootstrap (scriptversion): New variable.
38000
38001         bootstrap: allow older git
38002         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
38003         older than 1.6.4.  Requested by the libvirt project.
38004
38005 2010-02-23  Eric Blake  <eblake@redhat.com>
38006
38007         warn-on-use: work with old autoconf
38008         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
38009         AS_VAR semantics of autoconf 2.60.
38010         Reported by Bruno Haible.
38011
38012         bootstrap: improve some comments
38013         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
38014         clarification comments.
38015
38016         gettimeofday: provide correct function
38017         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
38018         when replacement is declared, otherwise provide gettimeofday.
38019         Reported by Michael Goffioul.
38020
38021 2010-02-23  Jim Meyering  <meyering@redhat.com>
38022
38023         lib-ignore: relax license to "unlimited", not LGPLv2+
38024         * modules/lib-ignore (License): Relax to "unlimited".
38025
38026 2010-02-23  Jim Meyering  <meyering@redhat.com>
38027
38028         lib-ignore: relax license to LGPLv2+
38029         * modules/lib-ignore (License): Relax to LGPLv2+.
38030
38031 2010-02-22  Eric Blake  <eblake@redhat.com>
38032
38033         lseek: avoid bash 3.2 broken pipe bug
38034         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
38035         warning from bash 3.2.
38036         Reported by Ben Pfaff, with analysis from Bruno Haible.
38037
38038         bootstrap: support non-FSF copyright holder
38039         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
38040         bootstrap.conf override of COPYRIGHT_HOLDER.
38041         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
38042
38043         bootstrap: interoperate with gettext 0.14.1
38044         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
38045
38046         bootstrap: allow for alternate submodule location
38047         * build-aux/bootstrap (gnulib_path): New variable; use instead of
38048         hardcoding submodule location.
38049         (gnulib_mk): Allow direct use of Makefile.am.
38050
38051         bootstrap: use GNULIB_SRCDIR to reduce disk usage
38052         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
38053         rather than reconfiguring where the submodule points.
38054
38055         gettimeofday: restore support for platforms that lack function
38056         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
38057         replacement if function is missing.
38058         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
38059         * modules/sys_time (Makefile.am): Substitute it.
38060         * lib/sys_time.in.h (gettimeofday): Check it.
38061         Reported by Michael Goffioul.
38062
38063 2010-02-21  Bruno Haible  <bruno@clisp.org>
38064
38065         * lib/stdio.in.h (obstack_printf): Fix typo.
38066
38067 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
38068
38069         vc-list-files: use bzr ls's -R option
38070         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
38071         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
38072
38073 2010-02-21  Jim Meyering  <meyering@redhat.com>
38074
38075         init.sh: fix EXEEXT shims to work also for names like test-prog
38076         * tests/init.sh: Re-exec a better shell, when needed.
38077         If the current shell lacks support for posix $(...), an init.sh-using
38078         test will now try to find a shell that supports that.  If EXEEXT is
38079         nonempty, we also require support for hyphen-in-alias-name and shell
38080         substitutions like ${var#glob}.  Failure to find such a shell results
38081         in a skipped test.
38082
38083 2010-02-21  Bruno Haible  <bruno@clisp.org>
38084
38085         Really work around around "broken pipe" error message from bash 3.2.
38086         * gnulib-tool (func_reset_sigpipe): Remove function.
38087         (echo): In bash 3.2, define to a function that uses printf.
38088         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
38089
38090 2010-02-20  Bruno Haible  <bruno@clisp.org>
38091
38092         Restore support for automake 1.9.6 with autoconf 2.61.
38093         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
38094         Reported by James Youngman <jay@gnu.org>.
38095
38096 2010-02-20  Bruno Haible  <bruno@clisp.org>
38097
38098         Improve *printf warning condition.
38099         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
38100         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
38101         and the function is overridden due to SIGPIPE emulation.
38102
38103 2010-02-20  Bruno Haible  <bruno@clisp.org>
38104
38105         * lib/stdio.in.h: Tweak comments.
38106
38107 2010-02-19  Bruno Haible  <bruno@clisp.org>
38108
38109         Make it easier to find modules. New gnulib-tool option '--find'.
38110         * gnulib-tool: New option --find.
38111         (func_usage): Document it.
38112         (func_sanitize_modulelist): New function, extracted from
38113         func_all_modules.
38114         (func_all_modules): Invoke it.
38115         * doc/gnulib-tool.texi (Which modules?): New node.
38116
38117 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
38118
38119         * lib/sys_select.in.h: Provide select replacement even if
38120         sys/select.h exists on a system, for Interix.
38121
38122 2010-02-18  Jim Meyering  <meyering@redhat.com>
38123
38124         init.sh: don't use $(...) just yet
38125         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
38126         to accommodate e.g., Solaris' /bin/sh.
38127
38128 2010-02-17  Bruno Haible  <bruno@clisp.org>
38129
38130         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
38131         Reported by Ludovic Courtès <ludo@gnu.org>.
38132
38133 2010-02-16  Simon Josefsson  <simon@josefsson.org>
38134
38135         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
38136         linking with -lintl.
38137
38138 2010-02-17  Simon Josefsson  <simon@josefsson.org>
38139
38140         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
38141         if not provided by the system's netdb.h.  Reported by
38142         ludo@gnu.org (Ludovic Courtès).
38143
38144 2010-02-15  Jim Meyering  <meyering@redhat.com>
38145
38146         init.sh: improve portability and efficiency
38147         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
38148         "dummy" in a for loop.
38149         Use '!', not '^' to select the complement of a character set used
38150         in a "case" statement.
38151         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
38152         Suggestions from Eric Blake.
38153
38154         init.sh: automatically accommodate programs with the .exe suffix
38155         Automatically arrange for an invocation of "prog" to execute the
38156         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
38157         may use the simpler "prog", yet still work when built on a system
38158         that requires specifying the added suffix.
38159         Do this by constructing a function named "prog" that invokes
38160         "prog.exe" for each .exe file in selected directories.
38161         * tests/init.sh (find_exe_basenames_): New function.
38162         (create_exe_shim_functions_): New function.
38163         (path_prepend_): Use it.
38164
38165         maint.mk: mark syntax-check sc_*.m rules as .PHONY
38166         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
38167         "make -t syntax-check" doesn't create a ton of sc_*.m files.
38168
38169 2010-02-14  Jim Meyering  <meyering@redhat.com>
38170
38171         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
38172         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
38173         (sc_prohibit_hash_pjw_without_use): New rule.
38174
38175         maint.mk: allow the default upload destination dir to be overridden
38176         * top/maint.mk (upload_dest_dir_): Define with a default that
38177         preserves the status quo.
38178         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
38179         Reported by Peter Simons.
38180
38181         maint.mk: prohibit inclusion of "hash.h" without_use
38182         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
38183
38184 2010-02-10  Jim Meyering  <meyering@redhat.com>
38185
38186         maint.mk: prohibit inclusion of "ignore-value.h" without_use
38187         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
38188
38189 2010-02-09  Eric Blake  <ebb9@byu.net>
38190         and Bruno Haible  <bruno@clisp.org>
38191
38192         obstack-printf-posix: ensure declaration
38193         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
38194         extracted from gl_FUNC_OBSTACK_PRINTF.
38195         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
38196         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
38197         Likewise.
38198         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
38199         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
38200         0.
38201
38202 2010-02-08  Bruno Haible  <bruno@clisp.org>
38203
38204         gnulib-tool: Fix typo in 2010-02-07 commit.
38205         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
38206         Reported by Eric Blake.
38207
38208 2010-02-07  Bruno Haible  <bruno@clisp.org>
38209
38210         gnulib-tool: Fix up caching patches.
38211         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
38212         option --no-cache. Use associative arrays when supported by the shell.
38213         (sed_comments): New variable.
38214         (modcache): Renamed from do_cache.
38215         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
38216         abbreviate unnecessarily.
38217         (have_associative): New variable.
38218         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
38219         way also for ksh and zsh.
38220         (func_init_sed_convert_to_cache_statements): New function, extracted
38221         from func_cache_lookup_module. Add support for associative arrays.
38222         Don't set the c_MODULE_cached variable here. Ignore all lines before
38223         the first field header. Remove only the final newline, not all trailing
38224         newlines. Support empty fields correctly. Limit the use of 'eval' to
38225         assignments.
38226         (func_get_description, func_get_status, func_get_notice,
38227         func_get_applicability, func_get_filelist, func_get_dependencies,
38228         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
38229         func_get_automake_snippet, func_get_include_directive,
38230         func_get_link_directive, func_get_license, func_get_maintainer):
38231         Update documentation. List the unoptimized code first. Add support for
38232         associative arrays. Limit the use of 'eval' to assignments.
38233         (func_get_applicability): Undo stylistic pessimisations.
38234         (func_get_automake_snippet, func_get_include_directive): Reduce code
38235         duplication.
38236         (func_modules_transitive_closure, func_modules_add_dummy,
38237         func_modules_notice, func_modules_to_filelist, func_add_file,
38238         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
38239         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
38240         func_create_testdir, func_create_megatestdir): Update documentation.
38241
38242 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38243
38244         * gnulib-tool (func_cache_lookup_module): Store the module name
38245         belonging to the cache variable; error out if two different
38246         module names map to the same cache variable name.
38247
38248 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38249
38250         gnulib-tool: Make caching optional.
38251         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
38252         Update matching short versions of --no-changelog.
38253         (func_usage): Update.
38254         (sed_extract_cache_prog): Renamed from ...
38255         (sed_extract_prog): ... this; revert to old extraction script.
38256         (func_get_description, func_get_status)
38257         (func_get_notice, func_get_applicability, func_get_filelist)
38258         (func_get_dependencies, func_get_autoconf_early_snippet)
38259         (func_get_autoconf_snippet, func_get_automake_snippet)
38260         (func_get_include_directive, func_get_link_directive)
38261         (func_get_license, func_get_maintainer): If $do_cache is false,
38262         use old, non-caching extraction scripts.
38263         Suggestion by Bruno Haible.
38264
38265 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38266
38267         gnulib-tool: cache module metainformation.
38268         * gnulib-tool (sed_extract_prog): Match newline before each
38269         header, and rewrite header to a shell variable suffix.
38270         (func_cache_var, func_cache_lookup_module): New functions,
38271         to turn a module name into a cache variable prefix, and to
38272         look up and cache module metainformation.
38273         (func_get_description, func_get_status)
38274         (func_get_notice, func_get_applicability, func_get_filelist)
38275         (func_get_dependencies, func_get_autoconf_early_snippet)
38276         (func_get_autoconf_snippet, func_get_automake_snippet)
38277         (func_get_include_directive, func_get_link_directive)
38278         (func_get_license, func_get_maintainer): Use
38279         func_cache_lookup_module.
38280
38281 2010-02-07  Bruno Haible  <bruno@clisp.org>
38282
38283         fnctl: Fix missing dependency.
38284         * modules/fcntl (Depends-on): Add getdtablesize.
38285         Reported by John W. Eaton <jwe@gnu.org>.
38286
38287 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
38288
38289         Argp: fix recognition of short alias options.
38290
38291         * lib/argp-parse.c (convert_options): Fix improper use of
38292         `|' between character values.
38293         * tests/test-argp.c (group1_option): New alias option
38294         --read (-r).
38295         (group1_parser): Special handling for 'r'.
38296         (test15): New test case.
38297         (test_fun): Add test15.
38298         * tests/test-argp-2.sh: Update expected --help and --usage
38299         outputs.
38300
38301 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
38302
38303         * tests/test-argp.c: Fix indentation.
38304
38305 2010-02-04  Eric Blake  <ebb9@byu.net>
38306
38307         gettimeofday: expose type of second argument
38308         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
38309         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
38310         * tests/test-gettimeofday.c: Use it to silence warning.
38311         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
38312         the issue.
38313
38314 2010-02-03  Jim Meyering  <meyering@redhat.com>
38315
38316         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
38317         * lib/regcomp.c (TYPE_SIGNED): Define.
38318         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
38319
38320         regcomp.c: avoid a new -Wshadow warning
38321         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
38322
38323 2010-02-01  Jim Meyering  <meyering@redhat.com>
38324
38325         removing useless parentheses in cpp #define directives
38326         For motivation, see commit c0221df4, "define STREQ(a,b)
38327         consistently, removing useless parentheses"
38328         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
38329         * lib/mountlist.c (MNT_IGNORE): Likewise.
38330         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
38331
38332 2010-02-01  Eric Blake  <ebb9@byu.net>
38333
38334         sys_time: use link-warning
38335         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
38336         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
38337         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
38338         * modules/sys_time (Depends-on): Add warn-on-use.
38339         (Makefile.am): Always build replacement.
38340         (configure.ac): Update substitutions.
38341         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
38342         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
38343         bother with SYS_TIME_H.
38344         * modules/gettimeofday (configure.ac): Declare indicator.
38345         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
38346         in use.
38347
38348         closein-tests: silence compiler warning
38349         * tests/test-closein.c (main): Ignore fread result.
38350         * modules/closein-tests (Depends-on): Add ignore-value.
38351
38352         tests: silence warning about system return
38353         * tests/test-areadlink-with-size.c (main): Ignore system result.
38354         * tests/test-areadlink.c (main): Likewise.
38355         * tests/test-areadlinkat-with-size.c (main): Likewise.
38356         * tests/test-areadlinkat.c (main): Likewise.
38357         * tests/test-canonicalize-lgpl.c (main): Likewise.
38358         * tests/test-canonicalize.c (main): Likewise.
38359         * tests/test-chown.c (main): Likewise.
38360         * tests/test-fchownat.c (main): Likewise.
38361         * tests/test-fdutimensat.c (main): Likewise.
38362         * tests/test-fstatat.c (main): Likewise.
38363         * tests/test-futimens.c (main): Likewise.
38364         * tests/test-lchown.c (main): Likewise.
38365         * tests/test-link.c (main): Likewise.
38366         * tests/test-linkat.c (main): Likewise.
38367         * tests/test-lstat.c (main): Likewise.
38368         * tests/test-mkdir.c (main): Likewise.
38369         * tests/test-mkdirat.c (main): Likewise.
38370         * tests/test-mkfifo.c (main): Likewise.
38371         * tests/test-mkfifoat.c (main): Likewise.
38372         * tests/test-mknod.c (main): Likewise.
38373         * tests/test-readlink.c (main): Likewise.
38374         * tests/test-remove.c (main): Likewise.
38375         * tests/test-rename.c (main): Likewise.
38376         * tests/test-renameat.c (main): Likewise.
38377         * tests/test-rmdir.c (main): Likewise.
38378         * tests/test-symlink.c (main): Likewise.
38379         * tests/test-symlinkat.c (main): Likewise.
38380         * tests/test-unlink.c (main): Likewise.
38381         * tests/test-unlinkat.c (main): Likewise.
38382         * tests/test-utimens.c (main): Likewise.
38383         * tests/test-utimensat.c (main): Likewise.
38384         * modules/areadlink-tests (Depends-on): Add ignore-value.
38385         * modules/areadlink-with-size-tests (Depends-on): Likewise.
38386         * modules/areadlinkat-tests (Depends-on): Likewise.
38387         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
38388         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
38389         * modules/canonicalize-tests (Depends-on): Likewise.
38390         * modules/chown-tests (Depends-on): Likewise.
38391         * modules/fdutimensat-tests (Depends-on): Likewise.
38392         * modules/futimens-tests (Depends-on): Likewise.
38393         * modules/lchown-tests (Depends-on): Likewise.
38394         * modules/link-tests (Depends-on): Likewise.
38395         * modules/linkat-tests (Depends-on): Likewise.
38396         * modules/lstat-tests (Depends-on): Likewise.
38397         * modules/mkdir-tests (Depends-on): Likewise.
38398         * modules/mkfifo-tests (Depends-on): Likewise.
38399         * modules/mkfifoat-tests (Depends-on): Likewise.
38400         * modules/mknod-tests (Depends-on): Likewise.
38401         * modules/openat-tests (Depends-on): Likewise.
38402         * modules/readlink-tests (Depends-on): Likewise.
38403         * modules/remove-tests (Depends-on): Likewise.
38404         * modules/rename-tests (Depends-on): Likewise.
38405         * modules/renameat-tests (Depends-on): Likewise.
38406         * modules/rmdir-tests (Depends-on): Likewise.
38407         * modules/symlink-tests (Depends-on): Likewise.
38408         * modules/symlinkat-tests (Depends-on): Likewise.
38409         * modules/unlink-tests (Depends-on): Likewise.
38410         * modules/utimens-tests (Depends-on): Likewise.
38411         * modules/utimensat-tests (Depends-on): Likewise.
38412
38413 2010-01-31  Bruno Haible  <bruno@clisp.org>
38414
38415         Perform the same test for many <math.h> functions.
38416         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
38417         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
38418         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
38419         of gl_MATHFUNC.
38420         * modules/acos (configure.ac): Likewise.
38421         * modules/asin (configure.ac): Likewise.
38422         * modules/atan (configure.ac): Likewise.
38423         * modules/atan2 (configure.ac): Likewise.
38424         * modules/cbrt (configure.ac): Likewise.
38425         * modules/copysign (configure.ac): Likewise.
38426         * modules/cos (configure.ac): Likewise.
38427         * modules/cosh (configure.ac): Likewise.
38428         * modules/erf (configure.ac): Likewise.
38429         * modules/erfc (configure.ac): Likewise.
38430         * modules/exp (configure.ac): Likewise.
38431         * modules/fmod (configure.ac): Likewise.
38432         * modules/hypot (configure.ac): Likewise.
38433         * modules/j0 (configure.ac): Likewise.
38434         * modules/j1 (configure.ac): Likewise.
38435         * modules/jn (configure.ac): Likewise.
38436         * modules/lgamma (configure.ac): Likewise.
38437         * modules/log (configure.ac): Likewise.
38438         * modules/log10 (configure.ac): Likewise.
38439         * modules/log1p (configure.ac): Likewise.
38440         * modules/pow (configure.ac): Likewise.
38441         * modules/remainder (configure.ac): Likewise.
38442         * modules/sin (configure.ac): Likewise.
38443         * modules/sinh (configure.ac): Likewise.
38444         * modules/tan (configure.ac): Likewise.
38445         * modules/tanh (configure.ac): Likewise.
38446         * modules/y0 (configure.ac): Likewise.
38447         * modules/y1 (configure.ac): Likewise.
38448         * modules/yn (configure.ac): Likewise.
38449         Suggested by Paolo Bonzini.
38450
38451 2010-01-31  Bruno Haible  <bruno@clisp.org>
38452
38453         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
38454
38455 2010-01-31  Bruno Haible  <bruno@clisp.org>
38456
38457         Work around getdelim() bug on FreeBSD 8.0.
38458         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
38459         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
38460         not work.
38461         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
38462         is 1.
38463         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
38464         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
38465         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
38466         a non-zero size.
38467         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
38468
38469 2010-01-31  Bruno Haible  <bruno@clisp.org>
38470
38471         Work around getline() bug on FreeBSD 8.0.
38472         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
38473         and a non-zero size.
38474         * tests/test-getline.c (main): Likewise.
38475         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
38476         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
38477
38478 2010-01-28  Eric Blake  <ebb9@byu.net>
38479
38480         regex: fix build failure
38481         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
38482         platforms.
38483
38484 2010-01-28  Jim Meyering  <meyering@redhat.com>
38485
38486         regex: do not ignore memory allocation failure
38487         * lib/regex_internal.c (create_cd_newstate): Detect
38488         re_node_set_init_copy failure.   Extracted from glibc commit
38489         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
38490
38491         regex: sync more white-space changes from libc
38492         * lib/regex_internal.c: White-space only changes.
38493         * lib/regexec.c: Likewise.
38494
38495         regex: add many uses of __attribute_warn_unused_result__
38496         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
38497         * lib/regexec.c: Likewise.
38498         Extracted from a messy glibc commit.
38499
38500         regcomp.c: spelling and merge-artifact from glibc
38501         * lib/regcomp.c: Merge remainder of glibc's
38502         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
38503
38504         regcomp.c: sync white-space changes from glibc
38505         * lib/regcomp.c: Merge to accommodate white space
38506         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
38507
38508         regcomp.c: do not ignore internal return values
38509         * lib/regcomp.c: Do not ignore internal return values.
38510         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
38511         but without its white-space changes and spelling fixes.
38512
38513         regex_internal.h: define __attribute_warn_unused_result__
38514         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
38515
38516         maint: add a syntax-check rule to check for vulnerable Makefile.in
38517         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
38518
38519 2010-01-27  Jim Meyering  <meyering@redhat.com>
38520
38521         ncftpput-ftp: clean up spaces
38522         * build-aux/ncftpput-ftp: Make Copyright line consistent.
38523         Remove trailing blanks.
38524
38525 2010-01-27  Simon Josefsson  <simon@josefsson.org>
38526
38527         * build-aux/git-version-gen: Fix copyright statement.
38528         * build-aux/gnupload: Likewise.
38529         * tests/test-arcfour.c: Likewise.
38530         * tests/test-arctwo.c: Likewise.
38531         * tests/test-count-one-bits.c: Likewise.
38532         * tests/test-crc.c: Likewise.
38533         * tests/test-des.c: Likewise.
38534         * tests/test-gc-arcfour.c: Likewise.
38535         * tests/test-gc-arctwo.c: Likewise.
38536         * tests/test-gc-des.c: Likewise.
38537         * tests/test-gc-hmac-md5.c: Likewise.
38538         * tests/test-gc-hmac-sha1.c: Likewise.
38539         * tests/test-gc-md2.c: Likewise.
38540         * tests/test-gc-md4.c: Likewise.
38541         * tests/test-gc-md5.c: Likewise.
38542         * tests/test-gc-pbkdf2-sha1.c: Likewise.
38543         * tests/test-gc-rijndael.c: Likewise.
38544         * tests/test-gc-sha1.c: Likewise.
38545         * tests/test-gc.c: Likewise.
38546         * tests/test-gethostname.c: Likewise.
38547         * tests/test-gettimeofday.c: Likewise.
38548         * tests/test-hash.c: Likewise.
38549         * tests/test-hmac-md5.c: Likewise.
38550         * tests/test-hmac-sha1.c: Likewise.
38551         * tests/test-md2.c: Likewise.
38552         * tests/test-md4.c: Likewise.
38553         * tests/test-md5.c: Likewise.
38554         * tests/test-memchr.c: Likewise.
38555         * tests/test-memchr2.c: Likewise.
38556         * tests/test-memcmp.c: Likewise.
38557         * tests/test-memmem.c: Likewise.
38558         * tests/test-memrchr.c: Likewise.
38559         * tests/test-rawmemchr.c: Likewise.
38560         * tests/test-read-file.c: Likewise.
38561         * tests/test-rijndael.c: Likewise.
38562         * tests/test-sockets.c: Likewise.
38563         * tests/test-strchrnul.c: Likewise.
38564         * tests/test-strstr.c: Likewise.
38565         * tests/test-strtod.c: Likewise.
38566         * build-aux/ncftpput-ftp: Likewise.
38567
38568 2010-01-26  Eric Blake  <ebb9@byu.net>
38569
38570         ignore-value: update recommended header name
38571         * modules/ignore-value (Include): Only use <> for headers that
38572         exist in glibc.
38573
38574 2010-01-26  Jim Meyering  <meyering@redhat.com>
38575
38576         test-userspec.c: avoid compiler warnings
38577         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
38578         and "initialization discards qualifiers..." warnings.
38579         Put the first "uid" in its own scope, and make char* members "const".
38580
38581 2010-01-25  Bruno Haible  <bruno@clisp.org>
38582
38583         gnulib-tool: Make warning diagnostics consistent.
38584         * gnulib-tool (func_warning): New function.
38585         Use it everywhere where gnulib-tool produces output to stderr and it is
38586         not a fatal error.
38587
38588 2010-01-25  Bruno Haible  <bruno@clisp.org>
38589
38590         Fix test dependencies.
38591         * modules/xstrtol-tests (Depends-on): Add inttypes.
38592         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
38593
38594 2010-01-25 Pádraig Brady <P@draigBrady.com>
38595
38596         syntax-check: detect incorrect boolean macro values in config.h
38597         * modules/maintainer-makefile (configure.ac): Parameterize the location
38598         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
38599         The logic is from Eric Blake and the location indicated by Jim Meyering.
38600         Note the more natural CONFIG_HEADER name is prohibited by automake
38601         for backwards compatibility reasons.
38602         * top/maint.mk (sc_Wundef_boolean): New rule.
38603
38604 2010-01-25  Jim Meyering  <meyering@redhat.com>
38605
38606         bootstrap: detect MacOS 10.6's shasum, too
38607         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
38608         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
38609
38610 2010-01-23  Jim Meyering  <meyering@redhat.com>
38611
38612         xstrtoll: new module
38613         * modules/xstrtoll: New file.
38614         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
38615         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
38616         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
38617         ./configure fails if you use this module and lack "long long".
38618         * modules/xstrtoll-tests: New module.
38619         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
38620         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
38621         new init.sh-based test framework.
38622
38623 2010-01-24  Bruno Haible  <bruno@clisp.org>
38624
38625         Tests for module 'yn'.
38626         * modules/yn-tests: New file.
38627         * tests/test-yn.c: New file.
38628
38629         Tests for module 'y1'.
38630         * modules/y1-tests: New file.
38631         * tests/test-y1.c: New file.
38632
38633         Tests for module 'y0'.
38634         * modules/y0-tests: New file.
38635         * tests/test-y0.c: New file.
38636
38637         Tests for module 'tanh'.
38638         * modules/tanh-tests: New file.
38639         * tests/test-tanh.c: New file.
38640
38641         Tests for module 'tan'.
38642         * modules/tan-tests: New file.
38643         * tests/test-tan.c: New file.
38644
38645         Tests for module 'sqrt'.
38646         * modules/sqrt-tests: New file.
38647         * tests/test-sqrt.c: New file.
38648
38649         Tests for module 'sinh'.
38650         * modules/sinh-tests: New file.
38651         * tests/test-sinh.c: New file.
38652
38653         Tests for module 'sin'.
38654         * modules/sin-tests: New file.
38655         * tests/test-sin.c: New file.
38656
38657         Tests for module 'rint'.
38658         * modules/rint-tests: New file.
38659         * tests/test-rint.c: New file.
38660
38661         Tests for module 'remainder'.
38662         * modules/remainder-tests: New file.
38663         * tests/test-remainder.c: New file.
38664
38665         Tests for module 'pow'.
38666         * modules/pow-tests: New file.
38667         * tests/test-pow.c: New file.
38668
38669         Tests for module 'nextafter'.
38670         * modules/nextafter-tests: New file.
38671         * tests/test-nextafter.c: New file.
38672
38673         Tests for module 'modf'.
38674         * modules/modf-tests: New file.
38675         * tests/test-modf.c: New file.
38676
38677         Tests for module 'logb'.
38678         * modules/logb-tests: New file.
38679         * tests/test-logb.c: New file.
38680
38681         Tests for module 'log1p'.
38682         * modules/log1p-tests: New file.
38683         * tests/test-log1p.c: New file.
38684
38685         Tests for module 'log10'.
38686         * modules/log10-tests: New file.
38687         * tests/test-log10.c: New file.
38688
38689         Tests for module 'log'.
38690         * modules/log-tests: New file.
38691         * tests/test-log.c: New file.
38692
38693         Tests for module 'lgamma'.
38694         * modules/lgamma-tests: New file.
38695         * tests/test-lgamma.c: New file.
38696
38697         Tests for module 'ldexp'.
38698         * modules/ldexp-tests: New file.
38699         * tests/test-ldexp.c: New file.
38700
38701         Tests for module 'jn'.
38702         * modules/jn-tests: New file.
38703         * tests/test-jn.c: New file.
38704
38705         Tests for module 'j1'.
38706         * modules/j1-tests: New file.
38707         * tests/test-j1.c: New file.
38708
38709         Tests for module 'j0'.
38710         * modules/j0-tests: New file.
38711         * tests/test-j0.c: New file.
38712
38713         Tests for module 'hypot'.
38714         * modules/hypot-tests: New file.
38715         * tests/test-hypot.c: New file.
38716
38717         Tests for module 'fmod'.
38718         * modules/fmod-tests: New file.
38719         * tests/test-fmod.c: New file.
38720
38721         Tests for module 'fabs'.
38722         * modules/fabs-tests: New file.
38723         * tests/test-fabs.c: New file.
38724
38725         Tests for module 'exp'.
38726         * modules/exp-tests: New file.
38727         * tests/test-exp.c: New file.
38728
38729         Tests for module 'erfc'.
38730         * modules/erfc-tests: New file.
38731         * tests/test-erfc.c: New file.
38732
38733         Tests for module 'erf'.
38734         * modules/erf-tests: New file.
38735         * tests/test-erf.c: New file.
38736
38737         Tests for module 'cosh'.
38738         * modules/cosh-tests: New file.
38739         * tests/test-cosh.c: New file.
38740
38741         Tests for module 'cos'.
38742         * modules/cos-tests: New file.
38743         * tests/test-cos.c: New file.
38744
38745         Tests for module 'copysign'.
38746         * modules/copysign-tests: New file.
38747         * tests/test-copysign.c: New file.
38748
38749         Tests for module 'cbrt'.
38750         * modules/cbrt-tests: New file.
38751         * tests/test-cbrt.c: New file.
38752
38753         Tests for module 'atan2'.
38754         * modules/atan2-tests: New file.
38755         * tests/test-atan2.c: New file.
38756
38757         Tests for module 'atan'.
38758         * modules/atan-tests: New file.
38759         * tests/test-atan.c: New file.
38760
38761         Tests for module 'asin'.
38762         * modules/asin-tests: New file.
38763         * tests/test-asin.c: New file.
38764
38765         Tests for module 'acos'.
38766         * modules/acos-tests: New file.
38767         * tests/test-acos.c: New file.
38768
38769 2010-01-24  Bruno Haible  <bruno@clisp.org>
38770
38771         Fix tests for common <math.h> functions.
38772         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
38773         code snippet that references the function pointer, rather than merely
38774         calling the function. Substitute the FUNC_LIBM variable.
38775         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
38776         * modules/acos (configure.ac): Likewise.
38777         * modules/asin (configure.ac): Likewise.
38778         * modules/atan (configure.ac): Likewise.
38779         * modules/atan2 (configure.ac): Likewise.
38780         * modules/cbrt (configure.ac): Likewise.
38781         * modules/copysign (configure.ac): Likewise.
38782         * modules/cos (configure.ac): Likewise.
38783         * modules/cosh (configure.ac): Likewise.
38784         * modules/erf (configure.ac): Likewise.
38785         * modules/erfc (configure.ac): Likewise.
38786         * modules/exp (configure.ac): Likewise.
38787         * modules/fabs (configure.ac): Likewise.
38788         * modules/fmod (configure.ac): Likewise.
38789         * modules/hypot (configure.ac): Likewise.
38790         * modules/j0 (configure.ac): Likewise.
38791         * modules/j1 (configure.ac): Likewise.
38792         * modules/jn (configure.ac): Likewise.
38793         * modules/ldexp (configure.ac): Likewise.
38794         * modules/lgamma (configure.ac): Likewise.
38795         * modules/log (configure.ac): Likewise.
38796         * modules/log10 (configure.ac): Likewise.
38797         * modules/log1p (configure.ac): Likewise.
38798         * modules/logb (configure.ac): Likewise.
38799         * modules/modf (configure.ac): Likewise.
38800         * modules/nextafter (configure.ac): Likewise.
38801         * modules/pow (configure.ac): Likewise.
38802         * modules/remainder (configure.ac): Likewise.
38803         * modules/rint (configure.ac): Likewise.
38804         * modules/sin (configure.ac): Likewise.
38805         * modules/sinh (configure.ac): Likewise.
38806         * modules/tan (configure.ac): Likewise.
38807         * modules/tanh (configure.ac): Likewise.
38808         * modules/y0 (configure.ac): Likewise.
38809         * modules/y1 (configure.ac): Likewise.
38810         * modules/yn (configure.ac): Likewise.
38811
38812 2010-01-24  Bruno Haible  <bruno@clisp.org>
38813
38814         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
38815         * tests/test-acosl.c (x): New variable.
38816         (main): Store argument in x and fetch it from x.
38817         * tests/test-asinl.c (x): New variable.
38818         (main): Store argument in x and fetch it from x.
38819         * tests/test-atanl.c (x): New variable.
38820         (main): Store argument in x and fetch it from x.
38821         * tests/test-cosl.c (x): New variable.
38822         (main): Store argument in x and fetch it from x.
38823         * tests/test-expl.c (x): New variable.
38824         (main): Store argument in x and fetch it from x.
38825         * tests/test-logl.c (x): New variable.
38826         (main): Store argument in x and fetch it from x.
38827         * tests/test-sinl.c (x): New variable.
38828         (main): Store argument in x and fetch it from x.
38829         * tests/test-sqrtl.c (x): New variable.
38830         (main): Store argument in x and fetch it from x.
38831         * tests/test-tanl.c (x): New variable.
38832         (main): Store argument in x and fetch it from x.
38833
38834 2010-01-24  Bruno Haible  <bruno@clisp.org>
38835
38836         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
38837         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
38838         assignments to the initial TESTS_ENVIRONMENT.
38839         * doc/gnulib.texi (Unit test modules): Document it.
38840         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
38841         TESTS_ENVIRONMENT.
38842         * modules/btowc-tests (Makefile.am): Likewise.
38843         * modules/c-stack-tests (Makefile.am): Likewise.
38844         * modules/c-strcase-tests (Makefile.am): Likewise.
38845         * modules/copy-file-tests (Makefile.am): Likewise.
38846         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
38847         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
38848         * modules/mbrtowc-tests (Makefile.am): Likewise.
38849         * modules/mbscasecmp-tests (Makefile.am): Likewise.
38850         * modules/mbscasestr-tests (Makefile.am): Likewise.
38851         * modules/mbschr-tests (Makefile.am): Likewise.
38852         * modules/mbscspn-tests (Makefile.am): Likewise.
38853         * modules/mbsinit-tests (Makefile.am): Likewise.
38854         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
38855         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
38856         * modules/mbspbrk-tests (Makefile.am): Likewise.
38857         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
38858         * modules/mbsrchr-tests (Makefile.am): Likewise.
38859         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
38860         * modules/mbsspn-tests (Makefile.am): Likewise.
38861         * modules/mbsstr-tests (Makefile.am): Likewise.
38862         * modules/nl_langinfo-tests (Makefile.am): Likewise.
38863         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
38864         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
38865         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
38866         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
38867         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
38868         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
38869         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
38870         * modules/wcrtomb-tests (Makefile.am): Likewise.
38871         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
38872         * modules/wcsrtombs-tests (Makefile.am): Likewise.
38873         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
38874         assignments from TESTS_ENVIRONMENT.
38875         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
38876         augmentation.
38877         * modules/argp-version-etc-tests (Makefile.am): Likewise.
38878         * modules/atexit-tests (Makefile.am): Likewise.
38879         * modules/binary-io-tests (Makefile.am): Likewise.
38880         * modules/closein-tests (Makefile.am): Likewise.
38881         * modules/dprintf-posix-tests (Makefile.am): Likewise.
38882         * modules/exclude-tests (Makefile.am): Likewise.
38883         * modules/fflush-tests (Makefile.am): Likewise.
38884         * modules/fpending-tests (Makefile.am): Likewise.
38885         * modules/fprintf-posix-tests (Makefile.am): Likewise.
38886         * modules/freadahead-tests (Makefile.am): Likewise.
38887         * modules/freadptr-tests (Makefile.am): Likewise.
38888         * modules/freadseek-tests (Makefile.am): Likewise.
38889         * modules/fseek-tests (Makefile.am): Likewise.
38890         * modules/fseeko-tests (Makefile.am): Likewise.
38891         * modules/ftell-tests (Makefile.am): Likewise.
38892         * modules/ftello-tests (Makefile.am): Likewise.
38893         * modules/idpriv-drop-tests (Makefile.am): Likewise.
38894         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
38895         * modules/lseek-tests (Makefile.am): Likewise.
38896         * modules/parse-duration-tests (Makefile.am): Likewise.
38897         * modules/perror-tests (Makefile.am): Likewise.
38898         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
38899         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
38900         * modules/pipe-tests (Makefile.am): Likewise.
38901         * modules/pread-tests (Makefile.am): Likewise.
38902         * modules/printf-posix-tests (Makefile.am): Likewise.
38903         * modules/select-tests (Makefile.am): Likewise.
38904         * modules/sigpipe-tests (Makefile.am): Likewise.
38905         * modules/tsearch-tests (Makefile.am): Likewise.
38906         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
38907         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
38908         * modules/uniname/uniname-tests (Makefile.am): Likewise.
38909         * modules/uniwidth/width-tests (Makefile.am): Likewise.
38910         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
38911         * modules/version-etc-tests (Makefile.am): Likewise.
38912         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
38913         * modules/vprintf-posix-tests (Makefile.am): Likewise.
38914         * modules/xalloc-die-tests (Makefile.am): Likewise.
38915         * modules/xprintf-posix-tests (Makefile.am): Likewise.
38916         * modules/xstrtoimax-tests (Makefile.am): Likewise.
38917         * modules/xstrtol-tests (Makefile.am): Likewise.
38918         * modules/xstrtoumax-tests (Makefile.am): Likewise.
38919         * modules/yesno-tests (Makefile.am): Likewise.
38920         Suggested by Jim Meyering.
38921
38922 2010-01-24  Bruno Haible  <bruno@clisp.org>
38923
38924         More documentation.
38925         * doc/gnulib.texi (Writing modules): New chapter.
38926         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
38927         the new chapter.
38928
38929 2010-01-24  Jim Meyering  <meyering@redhat.com>
38930
38931         maint.mk: do not prepend "./" after filtering
38932         * top/maint.mk (_prepend_srcdir_prefix): New variable
38933         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
38934         "./" when $(srcdir) is ".".
38935
38936         define STREQ(a,b) consistently, removing useless parentheses
38937         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
38938         since the only risk is that "a" or "b" contains an unparenthesized
38939         comma, but if either did that, STREQ would have 3 or more arguments.
38940         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
38941         * lib/fts.c (STREQ): Remove unnecessary parentheses.
38942         * lib/hash-triple.c (STREQ): Likewise.
38943         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
38944         * lib/getugroups.c (STREQ): Likewise.
38945
38946 2010-01-23  Jim Meyering  <meyering@redhat.com>
38947
38948         maint.mk: fix syntax-check in a non-srcdir build directory
38949         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
38950         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
38951
38952 2010-01-22  Jim Meyering  <meyering@redhat.com>
38953
38954         userspec: add unit tests
38955         * tests/test-userspec.c: New file.
38956         * modules/userspec-tests: Likewise.
38957
38958 2010-01-21  Jim Meyering  <meyering@redhat.com>
38959
38960         maint.mk: handle source file names containing "." robustly
38961         * top/maint.mk (_dot_escaped_srcdir): Define.
38962         (VC_LIST): Use it in LHS of sed substitution.
38963
38964 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
38965
38966         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
38967         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
38968         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
38969         from a non-srcdir build.
38970
38971 2010-01-20  Eric Blake  <ebb9@byu.net>
38972
38973         warn-on-use: use instead of link-warning
38974         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
38975         * modules/unistd (Depends-on, Makefile.am): Likewise.
38976         * modules/arpa_inet (Depends-on): Replace link-warning with
38977         warn-on-use.
38978         (Makefile.am): Update rules accordingly.
38979         * modules/ctype (Depends-on, Makefile.am): Likewise.
38980         * modules/dirent (Depends-on, Makefile.am): Likewise.
38981         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
38982         * modules/inttypes (Depends-on, Makefile.am): Likewise.
38983         * modules/langinfo (Depends-on, Makefile.am): Likewise.
38984         * modules/locale (Depends-on, Makefile.am): Likewise.
38985         * modules/math (Depends-on, Makefile.am): Likewise.
38986         * modules/search (Depends-on, Makefile.am): Likewise.
38987         * modules/signal (Depends-on, Makefile.am): Likewise.
38988         * modules/spawn (Depends-on, Makefile.am): Likewise.
38989         * modules/stdlib (Depends-on, Makefile.am): Likewise.
38990         * modules/string (Depends-on, Makefile.am): Likewise.
38991         * modules/strings (Depends-on, Makefile.am): Likewise.
38992         * modules/sys_file (Depends-on, Makefile.am): Likewise.
38993         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
38994         * modules/sys_select (Depends-on, Makefile.am): Likewise.
38995         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
38996         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
38997         * modules/sys_times (Depends-on, Makefile.am): Likewise.
38998         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
38999         * modules/wchar (Depends-on, Makefile.am): Likewise.
39000         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
39001         should be poisoned.
39002         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
39003         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
39004         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
39005         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
39006         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
39007         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
39008         * m4/math_h.m4 (gl_MATH_H): Likewise.
39009         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
39010         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
39011         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
39012         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
39013         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
39014         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
39015         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
39016         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
39017         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
39018         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
39019         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
39020         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
39021         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
39022         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
39023         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
39024         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
39025         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
39026         GL_LINK_WARNING.
39027         * lib/ctype.in.h: Likewise.
39028         * lib/dirent.in.h: Likewise.
39029         * lib/fcntl.in.h: Likewise.
39030         * lib/inttypes.in.h: Likewise.
39031         * lib/langinfo.in.h: Likewise.
39032         * lib/locale.in.h: Likewise.
39033         * lib/math.in.h: Likewise.
39034         * lib/search.in.h: Likewise.
39035         * lib/signal.in.h: Likewise.
39036         * lib/spawn.in.h: Likewise.
39037         * lib/stdio.in.h: Likewise.
39038         * lib/stdlib.in.h: Likewise.
39039         * lib/string.in.h: Likewise.
39040         * lib/strings.in.h: Likewise.
39041         * lib/sys_file.in.h: Likewise.
39042         * lib/sys_ioctl.in.h: Likewise.
39043         * lib/sys_select.in.h: Likewise.
39044         * lib/sys_socket.in.h: Likewise.
39045         * lib/sys_stat.in.h: Likewise.
39046         * lib/sys_times.in.h: Likewise.
39047         * lib/sys_utsname.in.h: Likewise.
39048         * lib/unistd.in.h: Likewise.
39049         * lib/wchar.in.h: Likewise.
39050
39051 2010-01-20  Bruno Haible  <bruno@clisp.org>
39052
39053         Avoid duplicate -lm.
39054         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
39055         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
39056         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
39057         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
39058         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
39059         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
39060         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
39061         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
39062         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
39063         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
39064         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
39065         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
39066         Reported by Paolo Bonzini.
39067
39068 2010-01-19  Bruno Haible  <bruno@clisp.org>
39069
39070         langinfo, nl_langinfo: Relicense under LGPLv2+.
39071         * modules/langinfo (License): Change to LGPLv2+.
39072         * modules/nl_langinfo (License): Likewise.
39073         Patch by David Lutterkort <lutter@redhat.com>.
39074
39075 2010-01-19  Bruno Haible  <bruno@clisp.org>
39076
39077         Avoid compilation error with cc on OSF/1 5.1.
39078         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
39079         statement, not before.
39080         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39081
39082 2010-01-18  Bruno Haible  <bruno@clisp.org>
39083
39084         Avoid a link error due to the __printf__ symbol.
39085         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
39086         and 2.6.x.
39087         (__format__, __printf__): Remove definitions.
39088         * lib/argp-fmtstream.h: Likewise.
39089         * lib/argp.h: Likewise.
39090         * lib/error.h: Likewise.
39091         * lib/vasnprintf.h: Likewise.
39092         * lib/xprintf.h: Likewise.
39093         * lib/xvasprintf.h: Likewise.
39094         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39095
39096 2010-01-18  Bruno Haible  <bruno@clisp.org>
39097
39098         Tests for module 'tanl'.
39099         * modules/tanl-tests: New file.
39100         * tests/test-tanl.c: New file.
39101
39102         Tests for module 'sqrtl'.
39103         * modules/sqrtl-tests: New file.
39104         * tests/test-sqrtl.c: New file.
39105
39106         Tests for module 'sinl'.
39107         * modules/sinl-tests: New file.
39108         * tests/test-sinl.c: New file.
39109
39110         Tests for module 'logl'.
39111         * modules/logl-tests: New file.
39112         * tests/test-logl.c: New file.
39113
39114         Tests for module 'expl'.
39115         * modules/expl-tests: New file.
39116         * tests/test-expl.c: New file.
39117
39118         Tests for module 'cosl'.
39119         * modules/cosl-tests: New file.
39120         * tests/test-cosl.c: New file.
39121
39122         Tests for module 'atanl'.
39123         * modules/atanl-tests: New file.
39124         * tests/test-atanl.c: New file.
39125
39126         Tests for module 'asinl'.
39127         * modules/asinl-tests: New file.
39128         * tests/test-asinl.c: New file.
39129
39130         Tests for module 'acosl'.
39131         * modules/acosl-tests: New file.
39132         * tests/test-acosl.c: New file.
39133
39134         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
39135         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
39136         tanl): Use the standard gnulib idiom.
39137         * lib/cosl.c: Don't include trigl.c and sincosl.c.
39138         * lib/sinl.c: Likewise.
39139         * lib/tanl.c: Don't include trigl.c.
39140         (kernel_tanl): Make static.
39141         * lib/sincosl.c: Include trigl.h first.
39142         * lib/trigl.c: Likewise.
39143         * m4/acosl.m4: New file.
39144         * m4/asinl.m4: New file.
39145         * m4/atanl.m4: New file.
39146         * m4/cosl.m4: New file.
39147         * m4/expl.m4: New file.
39148         * m4/logl.m4: New file.
39149         * m4/sinl.m4: New file.
39150         * m4/sqrtl.m4: New file.
39151         * m4/tanl.m4: New file.
39152         * m4/mathl.m4: Remove file.
39153         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
39154         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
39155         Don't initialize GNULIB_MATHL.
39156         * modules/acosl: New file.
39157         * modules/asinl: New file.
39158         * modules/atanl: New file.
39159         * modules/cosl: New file.
39160         * modules/expl: New file.
39161         * modules/logl: New file.
39162         * modules/sinl: New file.
39163         * modules/sqrtl: New file.
39164         * modules/tanl: New file.
39165         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
39166         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
39167         substitute GNULIB_MATHL.
39168         * modules/mathl: Rewritten.
39169         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
39170         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
39171         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
39172         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
39173         * doc/posix-functions/expl.texi: Mention the 'expl' module.
39174         * doc/posix-functions/logl.texi: Mention the 'logl' module.
39175         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
39176         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
39177         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
39178
39179 2010-01-18  Bruno Haible  <bruno@clisp.org>
39180
39181         sqrt: Make gl_FUNC_SQRT requirable.
39182         * m4/sqrt.m4: New file.
39183         * modules/sqrt (Files): Add it.
39184         (configure.ac): Invoke gl_FUNC_SQRT.
39185
39186 2010-01-18  Bruno Haible  <bruno@clisp.org>
39187
39188         New modules for common <math.h> functions.
39189         * m4/mathfunc.m4: New file.
39190         * modules/acos: New file.
39191         * modules/asin: New file.
39192         * modules/atan: New file.
39193         * modules/atan2: New file.
39194         * modules/cbrt: New file.
39195         * modules/copysign: New file.
39196         * modules/cos: New file.
39197         * modules/cosh: New file.
39198         * modules/erf: New file.
39199         * modules/erfc: New file.
39200         * modules/exp: New file.
39201         * modules/fabs: New file.
39202         * modules/fmod: New file.
39203         * modules/hypot: New file.
39204         * modules/j0: New file.
39205         * modules/j1: New file.
39206         * modules/jn: New file.
39207         * modules/ldexp: New file.
39208         * modules/lgamma: New file.
39209         * modules/log: New file.
39210         * modules/log10: New file.
39211         * modules/log1p: New file.
39212         * modules/logb: New file.
39213         * modules/modf: New file.
39214         * modules/nextafter: New file.
39215         * modules/pow: New file.
39216         * modules/remainder: New file.
39217         * modules/rint: New file.
39218         * modules/sin: New file.
39219         * modules/sinh: New file.
39220         * modules/sqrt: New file.
39221         * modules/tan: New file.
39222         * modules/tanh: New file.
39223         * modules/y0: New file.
39224         * modules/y1: New file.
39225         * modules/yn: New file.
39226         * doc/posix-functions/acos.texi: Mention the 'acos' module.
39227         * doc/posix-functions/asin.texi: Mention the 'asin' module.
39228         * doc/posix-functions/atan.texi: Mention the 'atan' module.
39229         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
39230         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
39231         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
39232         * doc/posix-functions/cos.texi: Mention the 'cos' module.
39233         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
39234         * doc/posix-functions/erf.texi: Mention the 'erf' module.
39235         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
39236         * doc/posix-functions/exp.texi: Mention the 'exp' module.
39237         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
39238         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
39239         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
39240         * doc/posix-functions/j0.texi: Mention the 'j0' module.
39241         * doc/posix-functions/j1.texi: Mention the 'j1' module.
39242         * doc/posix-functions/jn.texi: Mention the 'jn' module.
39243         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
39244         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
39245         * doc/posix-functions/log.texi: Mention the 'log' module.
39246         * doc/posix-functions/log10.texi: Mention the 'log10' module.
39247         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
39248         * doc/posix-functions/logb.texi: Mention the 'logb' module.
39249         * doc/posix-functions/modf.texi: Mention the 'modf' module.
39250         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
39251         * doc/posix-functions/pow.texi: Mention the 'pow' module.
39252         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
39253         * doc/posix-functions/rint.texi: Mention the 'rint' module.
39254         * doc/posix-functions/sin.texi: Mention the 'sin' module.
39255         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
39256         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
39257         * doc/posix-functions/tan.texi: Mention the 'tan' module.
39258         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
39259         * doc/posix-functions/y0.texi: Mention the 'y0' module.
39260         * doc/posix-functions/y1.texi: Mention the 'y1' module.
39261         * doc/posix-functions/yn.texi: Mention the 'yn' module.
39262
39263 2010-01-18  Jim Meyering  <meyering@redhat.com>
39264
39265         ignore-value: relax license to LGPLv2+
39266         * modules/ignore-value (License): Relax to LGPLv2+.
39267
39268         getdate: don't leak when TZ contains two or more '"'s
39269         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
39270         double quote in TZ after the first one.
39271
39272         readtokens: do not leak internal token_lengths buffer
39273         * lib/readtokens.c (readtokens): Free the local, lengths,
39274         when the supplied "token_lengths" parameter is NULL.
39275
39276 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39277
39278         Fix a couple of missing LIBTHREAD link failures on AIX.
39279         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
39280         $(LIBTHREAD).
39281         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
39282
39283         Link test-poll against INET_PTON_LIB.
39284         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
39285         for inet_pton on Solaris 10.
39286
39287 2010-01-17  Bruno Haible  <bruno@clisp.org>
39288
39289         unistdio/*-sprintf: Fix typo in module description.
39290         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
39291         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
39292         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
39293         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
39294         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
39295         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
39296         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
39297         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39298
39299 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39300
39301         gnulib-tool: fix filelist for AIX, HP-UX ksh.
39302         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
39303         variables in shell case patterns, for AIX and HP-UX ksh.
39304
39305         Split large sed scripts, for HP-UX sed.
39306         * modules/stdio: Split sed scripts around 50 sed commands,
39307         to avoid HP-UX limit of 99 commands, in the near future.
39308         * modules/string: Likewise.
39309         * modules/unistd: Likewise.
39310
39311         gnulib-tool: avoid writing in the current directory.
39312         * gnulib-tool (func_emit_lib_Makefile_am)
39313         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
39314         not in the current directory, so concurrent gnulib-tool
39315         instances do not interfere.
39316
39317 2010-01-16  Jim Meyering  <meyering@redhat.com>
39318
39319         doc: update users.txt
39320         * users.txt: Add grep.
39321         (diffutils, gzip): Update URLs.
39322
39323 2010-01-12  Bruno Haible  <bruno@clisp.org>
39324
39325         posix_spawn: Avoid test failure on Cygwin.
39326         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
39327         characters.
39328         Reported by Simon Josefsson.
39329
39330 2010-01-12  Bruno Haible  <bruno@clisp.org>
39331
39332         * tests/test-cond.c (main): When skipping the test, show the reason.
39333
39334 2010-01-12  Simon Josefsson  <simon@josefsson.org>
39335
39336         * lib/striconv.c (str_cd_iconv): Avoid if before free.
39337
39338 2010-01-12  Simon Josefsson  <simon@josefsson.org>
39339
39340         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
39341         VC_LIST_ALWAYS_EXCLUDE_REGEX.
39342
39343 2010-01-12  Eric Blake  <ebb9@byu.net>
39344
39345         build: guarantee AS_VAR_IF
39346         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
39347         (gl_AS_VAR_IF): Move...
39348         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
39349         Reported by Simon Josefsson.
39350
39351 2010-01-12  Simon Josefsson  <simon@josefsson.org>
39352
39353         * lib/stdio.in.h: Fix typo.
39354
39355 2010-01-12  Simon Josefsson  <simon@josefsson.org>
39356
39357         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
39358         libgpg-error.
39359
39360 2010-01-12  Simon Josefsson  <simon@josefsson.org>
39361
39362         * tests/test-xalloc-die.sh: Use $EXEEXT.
39363
39364 2010-01-12  Simon Josefsson  <simon@josefsson.org>
39365             Bruno Haible  <bruno@clisp.org>
39366
39367         getlogin, getlogin_r: Avoid test failure.
39368         * tests/test-getlogin.c: Include <stdio.h>.
39369         (main): Skip the test when the function fails because stdin is not a
39370         tty.
39371         * tests/test-getlogin_r.c: Include <stdio.h>.
39372         (main): Skip the test when the function fails because stdin is not a
39373         tty.
39374
39375 2010-01-11  Eric Blake  <ebb9@byu.net>
39376
39377         tests: avoid more large file warnings
39378         * tests/test-fflush.c: Avoid warning about ftell use.
39379         * tests/test-fseek.c: Avoid warning about fseek use.
39380
39381 2010-01-10  Bruno Haible  <bruno@clisp.org>
39382
39383         nproc: Work better on Linux when /proc and /sys are not mounted.
39384         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
39385         as lower bound when, on glibc/Linux systems,
39386         sysconf (_SC_NPROCESSORS_CONF) returns 1.
39387         Suggested by Pádraig Brady <P@draigbrady.com>.
39388         Reported by Dmitry V. Levin <ldv@altlinux.org>.
39389
39390         nproc: Refactor.
39391         * lib/nproc.c (num_processors_via_affinity_mask): New function,
39392         extracted from num_processors.
39393         (num_processors): Call it.
39394
39395 2010-01-11  Jim Meyering  <meyering@redhat.com>
39396
39397         utimecmp: avoid new warning from upcoming gcc-4.5.0
39398         * lib/utimecmp.c (BILLION): Define using #define rather than an
39399         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
39400
39401 2010-01-11  Eric Blake  <ebb9@byu.net>
39402
39403         math: add portability warnings for classification macros
39404         * modules/math (Depends-on): Add warn-on-use.
39405         (Makefile.am): Provide new substitutions.
39406         * m4/math_h.m4 (gl_MATH_H): Require inline.
39407         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
39408         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
39409         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
39410         implement warnings.
39411
39412         unistd: warn on use of environ without module
39413         * modules/unistd (Depends-on): Add warn-on-use.
39414         (Makefile.am): Provide new substitutions.
39415         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
39416         * lib/unistd.in.h (environ): Wrap with a warning helper function.
39417
39418         stdio: warn on suspicious uses
39419         * modules/stdio (Depends-on): Add warn-on-use.
39420         (Makefile.am): Provide new substitutions.
39421         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
39422         fseeko.
39423         * lib/stdio.in.h (gets): Always warn on use.
39424         (fseek, ftell): Adjust when warnings are issued, and honor
39425         _GL_NO_LARGE_FILES as a way to silence the warning.
39426         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
39427         any warning about large file offsets.
39428         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
39429         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
39430         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
39431         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
39432         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
39433         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
39434         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
39435         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
39436
39437         warn-on-use: new module
39438         * modules/warn-on-use: New file.
39439         * build-aux/warn-on-use.h: Likewise.
39440         * m4/warn-on-use.m4: Likewise.
39441         * MODULES.html.sh (Support for building): Mention it.
39442
39443 2010-01-10  Bruno Haible  <bruno@clisp.org>
39444
39445         Tests for module 'unistr/u32-strdup'.
39446         * modules/unistr/u32-strdup-tests: New file.
39447         * tests/unistr/test-u32-strdup.c: New file.
39448
39449         Tests for module 'unistr/u16-strdup'.
39450         * modules/unistr/u16-strdup-tests: New file.
39451         * tests/unistr/test-u16-strdup.c: New file.
39452
39453         Tests for module 'unistr/u8-strdup'.
39454         * modules/unistr/u8-strdup-tests: New file.
39455         * tests/unistr/test-u8-strdup.c: New file.
39456         * tests/unistr/test-strdup.h: New file.
39457
39458         Tests for module 'unistr/u32-strncmp'.
39459         * modules/unistr/u32-strncmp-tests: New file.
39460         * tests/unistr/test-u32-strncmp.c: New file.
39461
39462         Tests for module 'unistr/u16-strncmp'.
39463         * modules/unistr/u16-strncmp-tests: New file.
39464         * tests/unistr/test-u16-strncmp.c: New file.
39465
39466         Tests for module 'unistr/u8-strncmp'.
39467         * modules/unistr/u8-strncmp-tests: New file.
39468         * tests/unistr/test-u8-strncmp.c: New file.
39469         * tests/unistr/test-strncmp.h: New file.
39470
39471         Tests for module 'unistr/u32-strcoll'.
39472         * modules/unistr/u32-strcoll-tests: New file.
39473         * tests/unistr/test-u32-strcoll.c: New file.
39474
39475         Tests for module 'unistr/u16-strcoll'.
39476         * modules/unistr/u16-strcoll-tests: New file.
39477         * tests/unistr/test-u16-strcoll.c: New file.
39478
39479         Tests for module 'unistr/u8-strcoll'.
39480         * modules/unistr/u8-strcoll-tests: New file.
39481         * tests/unistr/test-u8-strcoll.c: New file.
39482
39483         Tests for module 'unistr/u32-strcmp'.
39484         * modules/unistr/u32-strcmp-tests: New file.
39485         * tests/unistr/test-u32-strcmp.c: New file.
39486         * tests/unistr/test-u32-strcmp.h: New file.
39487
39488         Tests for module 'unistr/u16-strcmp'.
39489         * modules/unistr/u16-strcmp-tests: New file.
39490         * tests/unistr/test-u16-strcmp.c: New file.
39491         * tests/unistr/test-u16-strcmp.h: New file.
39492
39493         Tests for module 'unistr/u8-strcmp'.
39494         * modules/unistr/u8-strcmp-tests: New file.
39495         * tests/unistr/test-u8-strcmp.c: New file.
39496         * tests/unistr/test-u8-strcmp.h: New file.
39497         * tests/unistr/test-strcmp.h: New file.
39498
39499         Tests for module 'unistr/u32-strncat'.
39500         * modules/unistr/u32-strncat-tests: New file.
39501         * tests/unistr/test-u32-strncat.c: New file.
39502
39503         Tests for module 'unistr/u16-strncat'.
39504         * modules/unistr/u16-strncat-tests: New file.
39505         * tests/unistr/test-u16-strncat.c: New file.
39506
39507         Tests for module 'unistr/u8-strncat'.
39508         * modules/unistr/u8-strncat-tests: New file.
39509         * tests/unistr/test-u8-strncat.c: New file.
39510         * tests/unistr/test-strncat.h: New file.
39511
39512         Tests for module 'unistr/u32-strcat'.
39513         * modules/unistr/u32-strcat-tests: New file.
39514         * tests/unistr/test-u32-strcat.c: New file.
39515
39516         Tests for module 'unistr/u16-strcat'.
39517         * modules/unistr/u16-strcat-tests: New file.
39518         * tests/unistr/test-u16-strcat.c: New file.
39519
39520         Tests for module 'unistr/u8-strcat'.
39521         * modules/unistr/u8-strcat-tests: New file.
39522         * tests/unistr/test-u8-strcat.c: New file.
39523         * tests/unistr/test-strcat.h: New file.
39524
39525         Tests for module 'unistr/u32-stpncpy'.
39526         * modules/unistr/u32-stpncpy-tests: New file.
39527         * tests/unistr/test-u32-stpncpy.c: New file.
39528
39529         Tests for module 'unistr/u16-stpncpy'.
39530         * modules/unistr/u16-stpncpy-tests: New file.
39531         * tests/unistr/test-u16-stpncpy.c: New file.
39532
39533         Tests for module 'unistr/u8-stpncpy'.
39534         * modules/unistr/u8-stpncpy-tests: New file.
39535         * tests/unistr/test-u8-stpncpy.c: New file.
39536         * tests/unistr/test-stpncpy.h: New file.
39537
39538         Tests for module 'unistr/u32-strncpy'.
39539         * modules/unistr/u32-strncpy-tests: New file.
39540         * tests/unistr/test-u32-strncpy.c: New file.
39541
39542         Tests for module 'unistr/u16-strncpy'.
39543         * modules/unistr/u16-strncpy-tests: New file.
39544         * tests/unistr/test-u16-strncpy.c: New file.
39545
39546         Tests for module 'unistr/u8-strncpy'.
39547         * modules/unistr/u8-strncpy-tests: New file.
39548         * tests/unistr/test-u8-strncpy.c: New file.
39549         * tests/unistr/test-strncpy.h: New file.
39550
39551         Tests for module 'unistr/u32-stpcpy'.
39552         * modules/unistr/u32-stpcpy-tests: New file.
39553         * tests/unistr/test-u32-stpcpy.c: New file.
39554
39555         Tests for module 'unistr/u16-stpcpy'.
39556         * modules/unistr/u16-stpcpy-tests: New file.
39557         * tests/unistr/test-u16-stpcpy.c: New file.
39558
39559         Tests for module 'unistr/u8-stpcpy'.
39560         * modules/unistr/u8-stpcpy-tests: New file.
39561         * tests/unistr/test-u8-stpcpy.c: New file.
39562         * tests/unistr/test-stpcpy.h: New file.
39563
39564         Tests for module 'unistr/u32-strcpy'.
39565         * modules/unistr/u32-strcpy-tests: New file.
39566         * tests/unistr/test-u32-strcpy.c: New file.
39567
39568         Tests for module 'unistr/u16-strcpy'.
39569         * modules/unistr/u16-strcpy-tests: New file.
39570         * tests/unistr/test-u16-strcpy.c: New file.
39571
39572         Tests for module 'unistr/u8-strcpy'.
39573         * modules/unistr/u8-strcpy-tests: New file.
39574         * tests/unistr/test-u8-strcpy.c: New file.
39575         * tests/unistr/test-strcpy.h: New file.
39576
39577         Tests for module 'unistr/u32-strnlen'.
39578         * modules/unistr/u32-strnlen-tests: New file.
39579         * tests/unistr/test-u32-strnlen.c: New file.
39580
39581         Tests for module 'unistr/u16-strnlen'.
39582         * modules/unistr/u16-strnlen-tests: New file.
39583         * tests/unistr/test-u16-strnlen.c: New file.
39584
39585         Tests for module 'unistr/u8-strnlen'.
39586         * modules/unistr/u8-strnlen-tests: New file.
39587         * tests/unistr/test-u8-strnlen.c: New file.
39588         * tests/unistr/test-strnlen.h: New file.
39589
39590         Tests for module 'unistr/u32-strlen'.
39591         * modules/unistr/u32-strlen-tests: New file.
39592         * tests/unistr/test-u32-strlen.c: New file.
39593
39594         Tests for module 'unistr/u16-strlen'.
39595         * modules/unistr/u16-strlen-tests: New file.
39596         * tests/unistr/test-u16-strlen.c: New file.
39597
39598         Tests for module 'unistr/u8-strlen'.
39599         * modules/unistr/u8-strlen-tests: New file.
39600         * tests/unistr/test-u8-strlen.c: New file.
39601
39602         Tests for module 'unistr/u32-prev'.
39603         * modules/unistr/u32-prev-tests: New file.
39604         * tests/unistr/test-u32-prev.c: New file.
39605
39606         Tests for module 'unistr/u16-prev'.
39607         * modules/unistr/u16-prev-tests: New file.
39608         * tests/unistr/test-u16-prev.c: New file.
39609
39610         Tests for module 'unistr/u8-prev'.
39611         * modules/unistr/u8-prev-tests: New file.
39612         * tests/unistr/test-u8-prev.c: New file.
39613
39614         Tests for module 'unistr/u32-next'.
39615         * modules/unistr/u32-next-tests: New file.
39616         * tests/unistr/test-u32-next.c: New file.
39617
39618         Tests for module 'unistr/u16-next'.
39619         * modules/unistr/u16-next-tests: New file.
39620         * tests/unistr/test-u16-next.c: New file.
39621
39622         Tests for module 'unistr/u8-next'.
39623         * modules/unistr/u8-next-tests: New file.
39624         * tests/unistr/test-u8-next.c: New file.
39625
39626         Tests for module 'unistr/u32-strmbtouc'.
39627         * modules/unistr/u32-strmbtouc-tests: New file.
39628         * tests/unistr/test-u32-strmbtouc.c: New file.
39629
39630         Tests for module 'unistr/u16-strmbtouc'.
39631         * modules/unistr/u16-strmbtouc-tests: New file.
39632         * tests/unistr/test-u16-strmbtouc.c: New file.
39633
39634         Tests for module 'unistr/u8-strmbtouc'.
39635         * modules/unistr/u8-strmbtouc-tests: New file.
39636         * tests/unistr/test-u8-strmbtouc.c: New file.
39637
39638         Tests for module 'unistr/u32-strmblen'.
39639         * modules/unistr/u32-strmblen-tests: New file.
39640         * tests/unistr/test-u32-strmblen.c: New file.
39641
39642         Tests for module 'unistr/u16-strmblen'.
39643         * modules/unistr/u16-strmblen-tests: New file.
39644         * tests/unistr/test-u16-strmblen.c: New file.
39645
39646         Tests for module 'unistr/u8-strmblen'.
39647         * modules/unistr/u8-strmblen-tests: New file.
39648         * tests/unistr/test-u8-strmblen.c: New file.
39649
39650         Tests for module 'unistr/u32-cpy-alloc'.
39651         * modules/unistr/u32-cpy-alloc-tests: New file.
39652         * tests/unistr/test-u32-cpy-alloc.c: New file.
39653
39654         Tests for module 'unistr/u16-cpy-alloc'.
39655         * modules/unistr/u16-cpy-alloc-tests: New file.
39656         * tests/unistr/test-u16-cpy-alloc.c: New file.
39657
39658         Tests for module 'unistr/u8-cpy-alloc'.
39659         * modules/unistr/u8-cpy-alloc-tests: New file.
39660         * tests/unistr/test-u8-cpy-alloc.c: New file.
39661         * tests/unistr/test-cpy-alloc.h: New file.
39662
39663         Tests for module 'unistr/u32-mbsnlen'.
39664         * modules/unistr/u32-mbsnlen-tests: New file.
39665         * tests/unistr/test-u32-mbsnlen.c: New file.
39666
39667         Tests for module 'unistr/u16-mbsnlen'.
39668         * modules/unistr/u16-mbsnlen-tests: New file.
39669         * tests/unistr/test-u16-mbsnlen.c: New file.
39670
39671         Tests for module 'unistr/u8-mbsnlen'.
39672         * modules/unistr/u8-mbsnlen-tests: New file.
39673         * tests/unistr/test-u8-mbsnlen.c: New file.
39674
39675         Tests for module 'unistr/u32-chr'.
39676         * modules/unistr/u32-chr-tests: New file.
39677         * tests/unistr/test-u32-chr.c: New file.
39678
39679         Tests for module 'unistr/u16-chr'.
39680         * modules/unistr/u16-chr-tests: New file.
39681         * tests/unistr/test-u16-chr.c: New file.
39682
39683         Tests for module 'unistr/u8-chr'.
39684         * modules/unistr/u8-chr-tests: New file.
39685         * tests/unistr/test-u8-chr.c: New file.
39686         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
39687
39688         Tests for module 'unistr/u32-cmp2'.
39689         * modules/unistr/u32-cmp2-tests: New file.
39690         * tests/unistr/test-u32-cmp2.c: New file.
39691
39692         Tests for module 'unistr/u16-cmp2'.
39693         * modules/unistr/u16-cmp2-tests: New file.
39694         * tests/unistr/test-u16-cmp2.c: New file.
39695
39696         Tests for module 'unistr/u8-cmp2'.
39697         * modules/unistr/u8-cmp2-tests: New file.
39698         * tests/unistr/test-u8-cmp2.c: New file.
39699         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
39700
39701         Tests for module 'unistr/u32-cmp'.
39702         * modules/unistr/u32-cmp-tests: New file.
39703         * tests/unistr/test-u32-cmp.c: New file.
39704
39705         Tests for module 'unistr/u16-cmp'.
39706         * modules/unistr/u16-cmp-tests: New file.
39707         * tests/unistr/test-u16-cmp.c: New file.
39708
39709         Tests for module 'unistr/u8-cmp'.
39710         * modules/unistr/u8-cmp-tests: New file.
39711         * tests/unistr/test-u8-cmp.c: New file.
39712         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
39713
39714         Tests for module 'unistr/u32-set'.
39715         * modules/unistr/u32-set-tests: New file.
39716         * tests/unistr/test-u32-set.c: New file.
39717
39718         Tests for module 'unistr/u16-set'.
39719         * modules/unistr/u16-set-tests: New file.
39720         * tests/unistr/test-u16-set.c: New file.
39721
39722         Tests for module 'unistr/u8-set'.
39723         * modules/unistr/u8-set-tests: New file.
39724         * tests/unistr/test-u8-set.c: New file.
39725         * tests/unistr/test-set.h: New file.
39726
39727         Tests for module 'unistr/u32-move'.
39728         * modules/unistr/u32-move-tests: New file.
39729         * tests/unistr/test-u32-move.c: New file.
39730
39731         Tests for module 'unistr/u16-move'.
39732         * modules/unistr/u16-move-tests: New file.
39733         * tests/unistr/test-u16-move.c: New file.
39734
39735         Tests for module 'unistr/u8-move'.
39736         * modules/unistr/u8-move-tests: New file.
39737         * tests/unistr/test-u8-move.c: New file.
39738         * tests/unistr/test-move.h: New file.
39739
39740         Tests for module 'unistr/u32-cpy'.
39741         * modules/unistr/u32-cpy-tests: New file.
39742         * tests/unistr/test-u32-cpy.c: New file.
39743
39744         Tests for module 'unistr/u16-cpy'.
39745         * modules/unistr/u16-cpy-tests: New file.
39746         * tests/unistr/test-u16-cpy.c: New file.
39747
39748         Tests for module 'unistr/u8-cpy'.
39749         * modules/unistr/u8-cpy-tests: New file.
39750         * tests/unistr/test-u8-cpy.c: New file.
39751         * tests/unistr/test-cpy.h: New file.
39752
39753 2010-01-09  Bruno Haible  <bruno@clisp.org>
39754
39755         Tests for module 'unistr/u32-uctomb'.
39756         * modules/unistr/u32-uctomb-tests: New file.
39757         * tests/unistr/test-u32-uctomb.c: New file.
39758
39759         Tests for module 'unistr/u16-uctomb'.
39760         * modules/unistr/u16-uctomb-tests: New file.
39761         * tests/unistr/test-u16-uctomb.c: New file.
39762
39763         Tests for module 'unistr/u8-uctomb'.
39764         * modules/unistr/u8-uctomb-tests: New file.
39765         * tests/unistr/test-u8-uctomb.c: New file.
39766
39767         Tests for module 'unistr/u32-mbtoucr'.
39768         * modules/unistr/u32-mbtoucr-tests: New file.
39769         * tests/unistr/test-u32-mbtoucr.c: New file.
39770
39771         Tests for module 'unistr/u16-mbtoucr'.
39772         * modules/unistr/u16-mbtoucr-tests: New file.
39773         * tests/unistr/test-u16-mbtoucr.c: New file.
39774
39775         Tests for module 'unistr/u8-mbtoucr'.
39776         * modules/unistr/u8-mbtoucr-tests: New file.
39777         * tests/unistr/test-u8-mbtoucr.c: New file.
39778
39779         Tests for module 'unistr/u32-mbtouc'.
39780         * modules/unistr/u32-mbtouc-tests: New file.
39781         * tests/unistr/test-u32-mbtouc.c: New file.
39782
39783         Tests for module 'unistr/u16-mbtouc'.
39784         * modules/unistr/u16-mbtouc-tests: New file.
39785         * tests/unistr/test-u16-mbtouc.c: New file.
39786
39787         Tests for module 'unistr/u8-mbtouc'.
39788         * modules/unistr/u8-mbtouc-tests: New file.
39789         * tests/unistr/test-u8-mbtouc.c: New file.
39790
39791         Tests for module 'unistr/u32-mbtouc-unsafe'.
39792         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
39793         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
39794         * tests/unistr/test-u32-mbtouc.h: New file.
39795
39796         Tests for module 'unistr/u16-mbtouc-unsafe'.
39797         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
39798         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
39799         * tests/unistr/test-u16-mbtouc.h: New file.
39800
39801         Tests for module 'unistr/u8-mbtouc-unsafe'.
39802         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
39803         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
39804         * tests/unistr/test-u8-mbtouc.h: New file.
39805
39806         Tests for module 'unistr/u32-mblen'.
39807         * modules/unistr/u32-mblen-tests: New file.
39808         * tests/unistr/test-u32-mblen.c: New file.
39809
39810         Tests for module 'unistr/u16-mblen'.
39811         * modules/unistr/u16-mblen-tests: New file.
39812         * tests/unistr/test-u16-mblen.c: New file.
39813
39814         Tests for module 'unistr/u8-mblen'.
39815         * modules/unistr/u8-mblen-tests: New file.
39816         * tests/unistr/test-u8-mblen.c: New file.
39817
39818         Tests for module 'unistr/u32-to-u16'.
39819         * modules/unistr/u32-to-u16-tests: New file.
39820         * tests/unistr/test-u32-to-u16.c: New file.
39821
39822         Tests for module 'unistr/u32-to-u8'.
39823         * modules/unistr/u32-to-u8-tests: New file.
39824         * tests/unistr/test-u32-to-u8.c: New file.
39825
39826         Tests for module 'unistr/u16-to-u32'.
39827         * modules/unistr/u16-to-u32-tests: New file.
39828         * tests/unistr/test-u16-to-u32.c: New file.
39829
39830         Tests for module 'unistr/u16-to-u8'.
39831         * modules/unistr/u16-to-u8-tests: New file.
39832         * tests/unistr/test-u16-to-u8.c: New file.
39833
39834         Tests for module 'unistr/u8-to-u32'.
39835         * modules/unistr/u8-to-u32-tests: New file.
39836         * tests/unistr/test-u8-to-u32.c: New file.
39837
39838         Tests for module 'unistr/u8-to-u16'.
39839         * modules/unistr/u8-to-u16-tests: New file.
39840         * tests/unistr/test-u8-to-u16.c: New file.
39841
39842         Tests for module 'unistr/u32-check'.
39843         * modules/unistr/u32-check-tests: New file.
39844         * tests/unistr/test-u32-check.c: New file.
39845
39846         Tests for module 'unistr/u16-check'.
39847         * modules/unistr/u16-check-tests: New file.
39848         * tests/unistr/test-u16-check.c: New file.
39849
39850         Tests for module 'unistr/u8-check'.
39851         * modules/unistr/u8-check-tests: New file.
39852         * tests/unistr/test-u8-check.c: New file.
39853
39854         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
39855         (category_equals): New function.
39856         (main): Add more tests.
39857         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
39858
39859         * tests/unictype/test-bidi_byname.c (main): Add more tests.
39860
39861 2010-01-10  Bruno Haible  <bruno@clisp.org>
39862
39863         unistr/u*-strcoll: Try harder to distinguish different strings.
39864         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
39865         compare s1 and s2 to see if they are different.
39866
39867 2010-01-10  Bruno Haible  <bruno@clisp.org>
39868
39869         unistr/u*-stpncpy: Fix the return value.
39870         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
39871         description of the return value consistent with stpncpy in glibc.
39872         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
39873         written non-NUL unit.
39874
39875 2010-01-10  Bruno Haible  <bruno@clisp.org>
39876
39877         unistr/u*-next: Add missing dependencies.
39878         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
39879         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
39880         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
39881
39882 2010-01-10  Bruno Haible  <bruno@clisp.org>
39883
39884         unistr/u8-mbsnlen: Fix return value for incomplete character.
39885         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
39886         u8_mblen.
39887         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
39888         Remove unistr/u8-mblen.
39889         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
39890         u16_mblen.
39891         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
39892         Remove unistr/u16-mblen.
39893
39894 2010-01-10  Bruno Haible  <bruno@clisp.org>
39895
39896         wchar: Fix compilation error when <wchar.h> is used from coreutils.
39897         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
39898         Reported by Brian Gough <bjg@gnu.org> and
39899         Chris Clayton <chris2553@googlemail.com> via
39900         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
39901
39902 2010-01-09  Bruno Haible  <bruno@clisp.org>
39903
39904         unistr/u16-to-u32: Reject invalid input.
39905         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
39906         u16_mbtouc.
39907         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
39908         Remove unistr/u16-mbtouc.
39909
39910         unistr/u16-to-u8: Reject invalid input.
39911         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
39912         u16_mbtouc.
39913         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
39914         Remove unistr/u16-mbtouc.
39915
39916         unistr/u8-to-u32: Reject invalid input.
39917         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
39918         u8_mbtouc.
39919         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
39920         Remove unistr/u8-mbtouc.
39921
39922         unistr/u8-to-u16: Reject invalid input.
39923         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
39924         u8_mbtouc.
39925         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
39926         Remove unistr/u8-mbtouc.
39927
39928 2010-01-09  Bruno Haible  <bruno@clisp.org>
39929
39930         Tests for module 'getlogin'.
39931         * modules/getlogin-tests: New file.
39932         * tests/test-getlogin.c: New file.
39933
39934         New module 'getlogin'.
39935         * lib/unistd.in.h (getlogin): New declaration.
39936         * lib/getlogin.c: New file.
39937         * m4/getlogin.m4: New file.
39938         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
39939         HAVE_GETLOGIN.
39940         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
39941         HAVE_GETLOGIN.
39942         * modules/getlogin: New file.
39943         * doc/posix-functions/getlogin.texi: Mention the new module.
39944         Reported by John W. Eaton <jwe@gnu.org>.
39945
39946 2010-01-09  Bruno Haible  <bruno@clisp.org>
39947
39948         getlogin_r: Support for native Windows.
39949         * lib/getlogin_r.c: Include <windows.h>
39950         (getlogin_r): Implement for native Windows.
39951         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
39952         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
39953         via John W. Eaton <jwe@gnu.org>.
39954
39955 2010-01-09  Bruno Haible  <bruno@clisp.org>
39956
39957         getlogin_r: Small fixes.
39958         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
39959         succeeds.
39960         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
39961         before testing whether getlogin_r is declared. No need to set
39962         HAVE_DECL_GETLOGIN_R to 1.
39963         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
39964
39965 2010-01-09  Bruno Haible  <bruno@clisp.org>
39966
39967         * lib/unistd.in.h (getlogin_r): Add comment.
39968
39969 2010-01-09  Bruno Haible  <bruno@clisp.org>
39970
39971         Tests for module 'getlogin_r'.
39972         * modules/getlogin_r-tests: New file.
39973         * tests/test-getlogin_r.c: New file.
39974
39975 2010-01-09  Jim Meyering  <meyering@redhat.com>
39976
39977         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
39978         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
39979         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
39980
39981 2010-01-08  Simon Josefsson  <simon@josefsson.org>
39982
39983         * lib/dup2.c (rpl_dup2): Improve comment.
39984
39985 2010-01-08  Eric Blake  <ebb9@byu.net>
39986
39987         maint.mk: allow packages to add makefile @@ exceptions
39988         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
39989         (sc_makefile_check): Rename...
39990         (sc_makefile_at_at_check): ...to this, and use hook.
39991
39992         dup2: work around mingw bug
39993         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
39994         Reported by Simon Josefsson.
39995
39996 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
39997
39998         glob: Fix C++ compilation.
39999         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
40000         C++.
40001
40002 2010-01-07  Bruno Haible  <bruno@clisp.org>
40003
40004         Fix indentation of wctype.in.h, broken since 2007-01-06.
40005         * lib/wctype.in.h: Fix indentation of preprocessor directives.
40006
40007 2010-01-07  Bruno Haible  <bruno@clisp.org>
40008
40009         mbslen: Avoid collision with system function.
40010         * lib/string.in.h [MirBSD]: Include <wchar.h>.
40011         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
40012         * m4/mbslen.m4: New file.
40013         * modules/mbslen (Files): Add it.
40014         (configure.ac): Invoke gl_MBSLEN.
40015         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
40016         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
40017         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
40018         via Ian Beckwith <ianb@erislabs.net>.
40019
40020 2010-01-07  Bruno Haible  <bruno@clisp.org>
40021
40022         dirent: Document the last fix.
40023         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
40024
40025 2010-01-07  Bruno Haible  <bruno@clisp.org>
40026
40027         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
40028         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
40029         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
40030         va_list are defined.
40031         * doc/posix-headers/stdio.texi: Document the bug of missing types.
40032         Reported by Eric Blake.
40033
40034 2010-01-07  Bruno Haible  <bruno@clisp.org>
40035
40036         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
40037         * modules/xlist (Depends-on): Add 'list',
40038         * modules/xoset (Depends-on): Add 'oset'.
40039         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
40040
40041 2010-01-07  Bruno Haible  <bruno@clisp.org>
40042
40043         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
40044         * doc/posix-functions/strncasecmp.texi: Likewise.
40045
40046 2010-01-07  Bruno Haible  <bruno@clisp.org>
40047
40048         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
40049
40050 2010-01-07  John W. Eaton  <jwe@octave.org>
40051
40052         wctype: allow C++ use
40053         * lib/wctype.in.h: Add extern "C" block for C++.
40054
40055 2010-01-06  Eric Blake  <ebb9@byu.net>
40056
40057         maint.mk: detect incorrect GFDL usage
40058         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
40059
40060 2010-01-06  Jim Meyering  <meyering@redhat.com>
40061         and Eric Blake  <ebb9@byu.net>
40062
40063         maint.mk: ignore multi-line copyright in NEWS
40064         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
40065
40066 2010-01-06  Eric Blake  <ebb9@byu.net>
40067
40068         select: add missing dependency
40069         * modules/select-tests (Depends-on): Move sockets dependency...
40070         * modules/select (Depends-on): ...here.
40071         Reported by Ian Beckwith.
40072
40073         doc: regenerate INSTALL
40074         * doc/INSTALL: Reflect recent autoconf update.
40075         * doc/INSTALL.ISO: Likewise.
40076         * doc/INSTALL.UTF-8: Likewise.
40077
40078         pread: fix compilation on glibc
40079         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
40080         Reported by Ralf Wildenhues.
40081
40082         dirent: fix test failure
40083         * lib/dirent.in.h (includes): Guarantee ino_t.
40084         Reported by Ralf Wildenhues.
40085
40086 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
40087
40088         linkat, renameat: avoid bad free
40089         * lib/at-func2.c (at_func2): Fix typo.
40090         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
40091
40092 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40093
40094         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
40095         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
40096         to avoid failure of symlink test later.
40097
40098 2010-01-06  Eric Blake  <ebb9@byu.net>
40099
40100         stdio, unistd: guarantee ssize_t
40101         * lib/unistd.in.h (includes): Ensure that types required by POSIX
40102         2008 are exposed when needed.
40103         * lib/stdio.in.h (includes): Likewise.
40104         Reported by Ralf Wildenhues.
40105
40106 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
40107
40108         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
40109         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
40110         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
40111
40112 2010-01-06  Jim Meyering  <meyering@redhat.com>
40113
40114         readtokens: this module *does* require xalloc.h
40115         It uses only functions that were omitted by the old syntax-check rule.
40116         * lib/readtokens.c: Include "xalloc.h" once again.
40117         * modules/readtokens (Depends-on): Add xalloc.
40118         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
40119
40120 2010-01-05  Eric Blake  <ebb9@byu.net>
40121
40122         maint: support 'make announcement' from a VPATH build
40123         * top/maint.mk (announcement): Look for correct NEWS file.
40124
40125 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
40126
40127         utimens (fdutimens): ignore a negative FD, per contract
40128         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
40129         when we have a valid file descriptor.  Otherwise, using a brand
40130         new glibc (with just-patched futimens that now fails with EBADF)
40131         would cause this function to fail with ENOSYS.
40132         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
40133         See also http://bugzilla.redhat.com/552320.
40134
40135 2010-01-05  Eric Blake  <ebb9@byu.net>
40136
40137         strcase: document what it provides
40138         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
40139         gnulib module.
40140         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
40141         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
40142
40143 2010-01-05  Jim Meyering  <meyering@redhat.com>
40144
40145         maint: remove useless inclusions of "xalloc.h"
40146         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
40147         * lib/readtokens.c: Likewise.
40148         * lib/same.c: Likewise.
40149         * modules/getloadavg (Depends-on): Remove xalloc.
40150         * modules/readtokens: Likewise.
40151         * modules/same: Likewise.
40152
40153         maint.mk: include 4 more function names in alloca.h-checking regexp
40154         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
40155         regexp.  Before, we would give a false-positive (saying alloca.h
40156         is included unnecessarily) when the only uses involved omitted symbols.
40157
40158         xalloc.h: use consistent formatting
40159         * lib/xalloc.h: Move declarations to start in the first column.
40160
40161 2010-01-05  Eric Blake  <ebb9@byu.net>
40162
40163         mkdir: avoid xalloc
40164         * lib/mkdir.c (includes): Drop unused header.
40165         Reported by John W. Eaton.
40166
40167 2010-01-04  Jim Meyering  <meyering@redhat.com>
40168
40169         nl_langinfo: avoid configure-time syntax error
40170         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
40171         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
40172         the empty string.  Don't let that provoke a shell syntax error.
40173
40174         regcomp, regexec, fnmatch: avoid array bounds read error
40175         * lib/regcomp.c (build_equiv_class): From glibc:
40176         Use only the low 24 bits of a findidx return value as an index
40177         into the weights array.  Patch by Ulrich Drepper:
40178         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
40179         * lib/regexec.c (check_node_accept_bytes): Likewise.
40180         * lib/fnmatch_loop.c (FCT): Likewise.
40181
40182         regcomp: skip collseq lookup when there are no rules
40183         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
40184         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
40185
40186         regcomp: recognize ill-formed { } expressions
40187         * lib/regcomp.c (parse_dup_op): From glibc:
40188         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
40189
40190         regcomp: fix typo in comment
40191         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
40192         s/satisfy/satisfies/.
40193
40194         regcomp: sync from glibc: remove dead store
40195         * lib/regcomp.c (duplicate_node_closure): Remove useless
40196         search_duplicated_node call and dead store.
40197
40198         regcomp: sync from glibc; always use nl_langinfo
40199         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
40200         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
40201         * modules/regex (Depends-on): Add nl_langinfo.
40202
40203 2010-01-04  Eric Blake  <ebb9@byu.net>
40204
40205         fdopendir: fix configure test
40206         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
40207
40208 2010-01-01  Bruno Haible  <bruno@clisp.org>
40209
40210         wchar: Remove unused configure check.
40211         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
40212
40213 2010-01-01  Eric Blake  <ebb9@byu.net>
40214
40215         headers: make check of system header explicit
40216         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
40217         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
40218         ourselves.
40219         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
40220         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
40221         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
40222         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
40223         internals.
40224         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
40225         missing.
40226         Suggested by Bruno Haible.
40227
40228 2010-01-01  Jim Meyering  <meyering@redhat.com>
40229
40230         ChangeLog: tweak to eliminate unnecessary copyright line
40231         * ChangeLog: Remove a copyright line that was mistakenly updated
40232         by today's update-copyright run.  Reported by Eric Blake.
40233
40234         test-update-copyright: don't let envvar setting cause test failure
40235         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
40236
40237 2010-01-01  Bruno Haible  <bruno@clisp.org>
40238
40239         localename: Avoid gcc warning.
40240         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
40241         function if it is not used.
40242
40243 2010-01-01  Jim Meyering  <meyering@redhat.com>
40244
40245         update nearly all FSF copyright year lists to include 2010
40246         Use the same procedure as for 2009, outlined in
40247         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
40248
40249         version-etc: set COPYRIGHT_YEAR to 2010
40250         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
40251
40252 2009-12-31  Eric Blake  <ebb9@byu.net>
40253
40254         doc: correct availability of cygwin 1.5.x getopt
40255         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
40256         variables.
40257         * doc/posix-functions/opterr.texi (opterr): Likewise.
40258         * doc/posix-functions/optind.texi (optind): Likewise.
40259         * doc/posix-functions/optopt.texi (optopt): Likewise.
40260         * doc/posix-functions/tzname.texi (tzname): Likewise.
40261
40262         openat: update maintainer
40263         * modules/openat (Maintainer): Add myself.
40264
40265         utimens: avoid shadowing warning
40266         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
40267         buffers into one, to avoid shadowing, as well as avoiding a
40268         redundant stat.
40269         Reported by Jim Meyering.
40270
40271         test-dup2: avoid compiler warning
40272         * tests/test-dup2.c (is_inheritable): Only define if used.
40273
40274 2010-01-01  Bruno Haible  <bruno@clisp.org>
40275
40276         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
40277         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
40278         defined, use wctomb instead of wcrtomb.
40279
40280 2010-01-01  Bruno Haible  <bruno@clisp.org>
40281
40282         iconv: Reject native Solaris iconv.
40283         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
40284         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
40285
40286 2009-12-31  Bruno Haible  <bruno@clisp.org>
40287
40288         * tests/test-signal.c (main): Remove test of 'SIG'.
40289
40290 2009-12-31  Bruno Haible  <bruno@clisp.org>
40291
40292         spawn: Fix incomplete fix.
40293         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
40294         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
40295         warnings for GNULIB_POSIXCHECK again.
40296         Reported by Eric Blake.
40297
40298 2009-12-31  Bruno Haible  <bruno@clisp.org>
40299
40300         Avoid namespace pollution on glibc systems.
40301         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
40302         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
40303         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
40304         glibc systems.
40305
40306 2009-12-31  Bruno Haible  <bruno@clisp.org>
40307
40308         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
40309         (gl_REPLACE_WCHAR_H): Turn into a no-op.
40310         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
40311         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
40312         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
40313         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
40314         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
40315
40316 2009-12-31  Bruno Haible  <bruno@clisp.org>
40317
40318         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
40319         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
40320         afterwards.
40321
40322 2009-12-31  Bruno Haible  <bruno@clisp.org>
40323
40324         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
40325         SYS_UTSNAME_H.
40326
40327 2009-12-31  Bruno Haible  <bruno@clisp.org>
40328
40329         spawn: Fix misapplied patch.
40330         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
40331         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
40332         warnings for GNULIB_POSIXCHECK.
40333
40334 2009-12-31  Bruno Haible  <bruno@clisp.org>
40335
40336         times: Update after sys_times changed.
40337         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
40338         * modules/times (Files): Add it.
40339         (configure.ac): Invoke gl_FUNC_TIMES.
40340
40341 2009-12-31  Bruno Haible  <bruno@clisp.org>
40342
40343         Use AC_C_INLINE where necessary.
40344         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
40345         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
40346         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
40347         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
40348         * m4/mbfile.m4 (gl_MBFILE): Likewise.
40349         * m4/mbiter.m4 (gl_MBITER): Likewise.
40350         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
40351         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
40352         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
40353         * modules/u64 (configure.ac): Likewise.
40354
40355 2009-12-31  Bruno Haible  <bruno@clisp.org>
40356
40357         Use AC_C_INLINE instead of module 'inline' where possible.
40358         * modules/inline (Description): Clarify purpose.
40359         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
40360         * modules/count-one-bits (Depends-on): Remove inline.
40361         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
40362         * modules/openat (Depends-on): Remove inline.
40363         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
40364         instead of depending on module 'inline'.
40365         * modules/filevercmp (Depends-on, configure.ac): Likewise.
40366         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
40367         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
40368         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
40369         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
40370         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
40371         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
40372         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
40373         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
40374         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
40375         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
40376         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
40377         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
40378         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
40379         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
40380         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
40381         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
40382         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
40383         Likewise.
40384         * modules/unictype/property-ascii-hex-digit (Depends-on,
40385         configure.ac): Likewise.
40386         * modules/unictype/property-bidi-arabic-digit (Depends-on,
40387         configure.ac): Likewise.
40388         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
40389         configure.ac): Likewise.
40390         * modules/unictype/property-bidi-block-separator (Depends-on,
40391         configure.ac): Likewise.
40392         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
40393         configure.ac): Likewise.
40394         * modules/unictype/property-bidi-common-separator (Depends-on,
40395         configure.ac): Likewise.
40396         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
40397         Likewise.
40398         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
40399         configure.ac): Likewise.
40400         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
40401         configure.ac): Likewise.
40402         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
40403         configure.ac): Likewise.
40404         * modules/unictype/property-bidi-european-digit (Depends-on,
40405         configure.ac): Likewise.
40406         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
40407         configure.ac): Likewise.
40408         * modules/unictype/property-bidi-left-to-right (Depends-on,
40409         configure.ac): Likewise.
40410         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
40411         configure.ac): Likewise.
40412         * modules/unictype/property-bidi-other-neutral (Depends-on,
40413         configure.ac): Likewise.
40414         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
40415         Likewise.
40416         * modules/unictype/property-bidi-segment-separator (Depends-on,
40417         configure.ac): Likewise.
40418         * modules/unictype/property-bidi-whitespace (Depends-on,
40419         configure.ac): Likewise.
40420         * modules/unictype/property-combining (Depends-on, configure.ac):
40421         Likewise.
40422         * modules/unictype/property-composite (Depends-on, configure.ac):
40423         Likewise.
40424         * modules/unictype/property-currency-symbol (Depends-on,
40425         configure.ac): Likewise.
40426         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
40427         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
40428         Likewise.
40429         * modules/unictype/property-default-ignorable-code-point (Depends-on,
40430         configure.ac): Likewise.
40431         * modules/unictype/property-deprecated (Depends-on, configure.ac):
40432         Likewise.
40433         * modules/unictype/property-diacritic (Depends-on, configure.ac):
40434         Likewise.
40435         * modules/unictype/property-extender (Depends-on, configure.ac):
40436         Likewise.
40437         * modules/unictype/property-format-control (Depends-on, configure.ac):
40438         Likewise.
40439         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
40440         Likewise.
40441         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
40442         Likewise.
40443         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
40444         Likewise.
40445         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
40446         Likewise.
40447         * modules/unictype/property-hyphen (Depends-on, configure.ac):
40448         Likewise.
40449         * modules/unictype/property-id-continue (Depends-on, configure.ac):
40450         Likewise.
40451         * modules/unictype/property-id-start (Depends-on, configure.ac):
40452         Likewise.
40453         * modules/unictype/property-ideographic (Depends-on, configure.ac):
40454         Likewise.
40455         * modules/unictype/property-ids-binary-operator (Depends-on,
40456         configure.ac): Likewise.
40457         * modules/unictype/property-ids-trinary-operator (Depends-on,
40458         configure.ac): Likewise.
40459         * modules/unictype/property-ignorable-control (Depends-on,
40460         configure.ac): Likewise.
40461         * modules/unictype/property-iso-control (Depends-on, configure.ac):
40462         Likewise.
40463         * modules/unictype/property-join-control (Depends-on, configure.ac):
40464         Likewise.
40465         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
40466         Likewise.
40467         * modules/unictype/property-line-separator (Depends-on, configure.ac):
40468         Likewise.
40469         * modules/unictype/property-logical-order-exception (Depends-on,
40470         configure.ac): Likewise.
40471         * modules/unictype/property-lowercase (Depends-on, configure.ac):
40472         Likewise.
40473         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
40474         * modules/unictype/property-non-break (Depends-on, configure.ac):
40475         Likewise.
40476         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
40477         Likewise.
40478         * modules/unictype/property-numeric (Depends-on, configure.ac):
40479         Likewise.
40480         * modules/unictype/property-other-alphabetic (Depends-on,
40481         configure.ac): Likewise.
40482         * modules/unictype/property-other-default-ignorable-code-point
40483         (Depends-on, configure.ac): Likewise.
40484         * modules/unictype/property-other-grapheme-extend (Depends-on,
40485         configure.ac): Likewise.
40486         * modules/unictype/property-other-id-continue (Depends-on,
40487         configure.ac): Likewise.
40488         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
40489         Likewise.
40490         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
40491         Likewise.
40492         * modules/unictype/property-other-math (Depends-on, configure.ac):
40493         Likewise.
40494         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
40495         Likewise.
40496         * modules/unictype/property-paired-punctuation (Depends-on,
40497         configure.ac): Likewise.
40498         * modules/unictype/property-paragraph-separator (Depends-on,
40499         configure.ac): Likewise.
40500         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
40501         Likewise.
40502         * modules/unictype/property-pattern-white-space (Depends-on,
40503         configure.ac): Likewise.
40504         * modules/unictype/property-private-use (Depends-on, configure.ac):
40505         Likewise.
40506         * modules/unictype/property-punctuation (Depends-on, configure.ac):
40507         Likewise.
40508         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
40509         Likewise.
40510         * modules/unictype/property-radical (Depends-on, configure.ac):
40511         Likewise.
40512         * modules/unictype/property-sentence-terminal (Depends-on,
40513         configure.ac): Likewise.
40514         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
40515         Likewise.
40516         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
40517         * modules/unictype/property-terminal-punctuation (Depends-on,
40518         configure.ac): Likewise.
40519         * modules/unictype/property-titlecase (Depends-on, configure.ac):
40520         Likewise.
40521         * modules/unictype/property-unassigned-code-value (Depends-on,
40522         configure.ac): Likewise.
40523         * modules/unictype/property-unified-ideograph (Depends-on,
40524         configure.ac): Likewise.
40525         * modules/unictype/property-uppercase (Depends-on, configure.ac):
40526         Likewise.
40527         * modules/unictype/property-variation-selector (Depends-on,
40528         configure.ac): Likewise.
40529         * modules/unictype/property-white-space (Depends-on, configure.ac):
40530         Likewise.
40531         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
40532         Likewise.
40533         * modules/unictype/property-xid-start (Depends-on, configure.ac):
40534         Likewise.
40535         * modules/unictype/property-zero-width (Depends-on, configure.ac):
40536         Likewise.
40537         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
40538         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
40539         Likewise.
40540
40541 2009-12-31  Bruno Haible  <bruno@clisp.org>
40542
40543         Remove unnecessary AC_C_INLINE invocation.
40544         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
40545         since 2009-08-21.
40546
40547 2009-12-31  Jim Meyering  <meyering@redhat.com>
40548
40549         maint.mk: don't require explicit gpg_key_ID in cfg.mk
40550         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
40551         With this change, we can all remove the gpg_key_ID = ... definition
40552         from our respective cfg.mk files.
40553
40554         maint.mk: create announcement template in ~/, not in /tmp
40555         * top/maint.mk (emit_upload_commands): Adjust.
40556         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
40557         Remove temporary file, .ci-msg.
40558
40559 2009-12-31  Eric Blake  <ebb9@byu.net>
40560
40561         link-warning: always build headers with link warnings
40562         * modules/arpa_inet (Makefile.am): Always build replacement
40563         header.
40564         * modules/ctype (Makefile.am): Likewise.
40565         * modules/dirent (Makefile.am): Likewise.
40566         * modules/inttypes (Makefile.am): Likewise.
40567         * modules/langinfo (Makefile.am): Likewise.
40568         * modules/locale (Makefile.am): Likewise.
40569         * modules/spawn (Makefile.am): Likewise.
40570         * modules/sys_file (Makefile.am): Likewise.
40571         * modules/sys_ioctl (Makefile.am): Likewise.
40572         * modules/sys_select (Makefile.am): Likewise.
40573         * modules/sys_socket (Makefile.am): Likewise.
40574         * modules/sys_times (Makefile.am): Likewise.
40575         * modules/sys_utsname (Makefile.am): Likewise.
40576         * modules/sys_wait (Makefile.am): Likewise.
40577         * modules/wchar (Makefile.am): Likewise.
40578         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
40579         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
40580         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
40581         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
40582         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
40583         Likewise.
40584         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
40585         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
40586         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
40587         Likewise.
40588         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
40589         Likewise.
40590         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
40591         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
40592         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
40593         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
40594         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
40595         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
40596         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
40597         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
40598         (gl_WCHAR_H_DEFAULTS): Likewise.
40599
40600 2009-12-31  Eric Blake  <ebb9@byu.net>
40601
40602         signal, spawn: use link warnings
40603         * lib/signal.in.h (sigset_t): Make unconditional.
40604         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
40605         (sigpending, sigprocmask, sigaction): Add link warnings.
40606         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
40607         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
40608         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
40609         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
40610         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
40611         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
40612         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
40613         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
40614         (posix_spawn_file_actions_destroy)
40615         (posix_spawn_file_actions_addopen)
40616         (posix_spawn_file_actions_addclose)
40617         (posix_spawn_file_actions_adddup2): Likewise.
40618         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
40619         * tests/test-signal.c (main): Enhance test.
40620
40621         spawn: improve wrapper support
40622         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
40623         (gl_SPAWN_H_DEFAULTS): New defaults.
40624         * modules/spawn (Makefile.am): Substitute them.
40625         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
40626         Only declare if missing or broken.
40627
40628         sys_times, sys_utsname: use include_next
40629         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
40630         header.
40631         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
40632         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
40633         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
40634         * modules/sys_times (Depends-on): Add include_next.
40635         (Makefile.am): Substitute additional values.
40636         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
40637         * lib/sys_times.in.h (includes): Include native header, if
40638         available.
40639         * lib/sys_utsname.in.h (includes): Likewise.
40640         * tests/test-sys_times.c (main): Enhance test.
40641
40642         fdutimensat: revert prior patch
40643         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
40644         utimens.h.
40645         Reported by Bruno Haible.
40646
40647 2009-12-30  Eric Blake  <ebb9@byu.net>
40648
40649         sys_wait: drop link-warning dependency
40650         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
40651         link-warning efforts.
40652         * lib/sys_wait.in.h: Likewise.
40653
40654         fdutimensat: remove bogus dependency
40655         * modules/fdutimensat (Depends-on): Drop inline.
40656
40657         unistd: fix typo
40658         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
40659
40660 2009-12-30  Bruno Haible  <bruno@clisp.org>
40661
40662         Fix compilation error with Solaris cc.
40663         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
40664         * lib/unicase/u16-is-invariant.c: Likewise.
40665         * lib/unicase/u32-is-invariant.c: Likewise.
40666         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
40667
40668 2009-12-30  Bruno Haible  <bruno@clisp.org>
40669
40670         Fix test crash.
40671         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
40672         locales.
40673         Reported by Simon Josefsson <simon@josefsson.org>.
40674
40675 2009-12-30  Bruno Haible  <bruno@clisp.org>
40676
40677         Fix compilation error on most platforms.
40678         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
40679         Reported by Simon Josefsson <simon@josefsson.org>
40680         and Nelson H. F. Beebe <beebe@math.utah.edu>.
40681
40682 2009-12-30  Eric Blake  <ebb9@byu.net>
40683
40684         futimens, utimensat: work around ntfs-3g bug
40685         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
40686         a ctime bug is present, and expand workaround to cover ntfs-3g.
40687         * lib/utimens.c (fdutimens, lutimens): Likewise.
40688         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
40689         (validate_timespec): Adjust return value.
40690         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
40691         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
40692         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
40693
40694 2009-12-29  Eric Blake  <ebb9@byu.net>
40695
40696         link-warning: make usage consistent
40697         * modules/ctype (Depends-on): Add link-warning.
40698         (Makefile.am): Update rules accordingly.
40699         * modules/langinfo (Depends-on, Makefile.am): Likewise.
40700         * modules/locale (Depends-on, Makefile.am): Likewise.
40701         * modules/sys_file (Makefile.am): Likewise.
40702         * modules/getopt-posix (Makefile.am): Delete unused link warning
40703         efforts.
40704         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
40705         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
40706         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
40707         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
40708
40709         stdio: remove unused variables
40710         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
40711         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
40712         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
40713
40714         tests: test more substitute headers
40715         * modules/ctype-tests: New file.
40716         * modules/dirent-tests: Likewise.
40717         * modules/spawn-tests: Likewise.
40718         * modules/sys_file-tests: Likewise.
40719         * modules/sys_ioctl-tests: Likewise.
40720         * modules/sys_wait-tests: Likewise.
40721         * tests/test-ctype.c: Likewise.
40722         * tests/test-dirent.c: Likewise.
40723         * tests/test-spawn.c: Likewise.
40724         * tests/test-sys_file.c: Likewise.
40725         * tests/test-sys_ioctl.c: Likewise.
40726         * tests/test-sys_wait.c: Likewise.
40727         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
40728         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
40729         whether or not flock is in use.
40730
40731         tests: remove License section from module
40732         * modules/arpa_inet-tests: Remove unneeded section.
40733         * modules/byteswap-tests: Likewise.
40734         * modules/ceilf-tests: Likewise.
40735         * modules/ceill-tests: Likewise.
40736         * modules/crypto/des-tests: Likewise.
40737         * modules/crypto/gc-arcfour-tests: Likewise.
40738         * modules/crypto/gc-arctwo-tests: Likewise.
40739         * modules/crypto/gc-des-tests: Likewise.
40740         * modules/crypto/gc-hmac-md5-tests: Likewise.
40741         * modules/crypto/gc-hmac-sha1-tests: Likewise.
40742         * modules/crypto/gc-md2-tests: Likewise.
40743         * modules/crypto/gc-md4-tests: Likewise.
40744         * modules/crypto/gc-md5-tests: Likewise.
40745         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
40746         * modules/crypto/gc-rijndael-tests: Likewise.
40747         * modules/crypto/gc-sha1-tests: Likewise.
40748         * modules/crypto/gc-tests: Likewise.
40749         * modules/crypto/md2-tests: Likewise.
40750         * modules/crypto/md4-tests: Likewise.
40751         * modules/fcntl-h-tests: Likewise.
40752         * modules/floorf-tests: Likewise.
40753         * modules/floorl-tests: Likewise.
40754         * modules/frexp-nolibm-tests: Likewise.
40755         * modules/frexp-tests: Likewise.
40756         * modules/frexpl-nolibm-tests: Likewise.
40757         * modules/frexpl-tests: Likewise.
40758         * modules/getaddrinfo-tests: Likewise.
40759         * modules/inttypes-tests: Likewise.
40760         * modules/isfinite-tests: Likewise.
40761         * modules/isinf-tests: Likewise.
40762         * modules/ldexpl-tests: Likewise.
40763         * modules/locale-tests: Likewise.
40764         * modules/math-tests: Likewise.
40765         * modules/netdb-tests: Likewise.
40766         * modules/netinet_in-tests: Likewise.
40767         * modules/printf-frexp-tests: Likewise.
40768         * modules/printf-frexpl-tests: Likewise.
40769         * modules/priv-set-tests: Likewise.
40770         * modules/random_r-tests: Likewise.
40771         * modules/round-tests: Likewise.
40772         * modules/roundf-tests: Likewise.
40773         * modules/roundl-tests: Likewise.
40774         * modules/search-tests: Likewise.
40775         * modules/select-tests: Likewise.
40776         * modules/signal-tests: Likewise.
40777         * modules/stdbool-tests: Likewise.
40778         * modules/stddef-tests: Likewise.
40779         * modules/stdint-tests: Likewise.
40780         * modules/stdio-tests: Likewise.
40781         * modules/stdlib-tests: Likewise.
40782         * modules/string-tests: Likewise.
40783         * modules/strings-tests: Likewise.
40784         * modules/sys_select-tests: Likewise.
40785         * modules/sys_socket-tests: Likewise.
40786         * modules/sys_stat-tests: Likewise.
40787         * modules/sys_time-tests: Likewise.
40788         * modules/sys_utsname-tests: Likewise.
40789         * modules/sysexits-tests: Likewise.
40790         * modules/time-tests: Likewise.
40791         * modules/trunc-tests: Likewise.
40792         * modules/truncf-tests: Likewise.
40793         * modules/truncl-tests: Likewise.
40794         * modules/tsearch-tests: Likewise.
40795         * modules/unistd-tests: Likewise.
40796         * modules/wchar-tests: Likewise.
40797         * modules/wctype-tests: Likewise.
40798
40799         tests: fix license on several tests
40800         * tests/test-des.c: Update to GPLv3+.
40801         * tests/test-flock.c: Likewise.
40802         * tests/test-fsync.c: Likewise.
40803         * tests/test-futimens.h: Likewise.
40804         * tests/test-gc-arcfour.c: Likewise.
40805         * tests/test-gc-arctwo.c: Likewise.
40806         * tests/test-gc-des.c: Likewise.
40807         * tests/test-gc-hmac-md5.c: Likewise.
40808         * tests/test-gc-hmac-sha1.c: Likewise.
40809         * tests/test-gc-md2.c: Likewise.
40810         * tests/test-gc-md4.c: Likewise.
40811         * tests/test-gc-md5.c: Likewise.
40812         * tests/test-gc-pbkdf2-sha1.c: Likewise.
40813         * tests/test-gc-rijndael.c: Likewise.
40814         * tests/test-gc-sha1.c: Likewise.
40815         * tests/test-gc.c: Likewise.
40816         * tests/test-getcwd.c: Likewise.
40817         * tests/test-link.c: Likewise.
40818         * tests/test-link.h: Likewise.
40819         * tests/test-lutimens.h: Likewise.
40820         * tests/test-md2.c: Likewise.
40821         * tests/test-md4.c: Likewise.
40822         * tests/test-mkdir.h: Likewise.
40823         * tests/test-rename.c: Likewise.
40824         * tests/test-rename.h: Likewise.
40825         * tests/test-safe-alloc.c: Likewise.
40826         * tests/test-utimens-common.h: Likewise.
40827         * tests/test-utimens.h: Likewise.
40828
40829         maint: sync license texts
40830         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
40831         * doc/gpl-3.0.texi: Revert copyright year update.
40832         * doc/lgpl-3.0.texi: Likewise.
40833
40834 2009-12-29  Jim Meyering  <meyering@redhat.com>
40835
40836         update nearly all FSF copyright year lists to include 2009
40837         The files named by the following are exempted:
40838             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
40839               test -f "$dst" && { echo "$dst"; continue; }
40840               test -d "$dst" || continue
40841               echo "$dst"/$(basename "$src")
40842             done > exempt
40843             git ls-files tests/unictype >> exempt
40844         In the remaining files, convert to all-interval notation if
40845         - there is already at least one year interval like 2000-2003
40846         - the file is maintained by me
40847         - the file is in lib/uni*/, where that style already prevails
40848         Otherwise, use update-copyright's default.
40849
40850 2009-12-29  Simon Josefsson  <simon@josefsson.org>
40851         and Eric Blake  <ebb9@byu.net>
40852
40853         tests: don't require debug system() to pass
40854         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
40855         * tests/test-rmdir.h (test_rmdir_func): Likewise.
40856         * tests/test-unlink.h (test_unlink_func): Likewise.
40857         * tests/test-fstatat.c (main): ...into callers.
40858         * tests/test-lstat.c (main): Likewise.
40859         * tests/test-rmdir.c (main): Likewise.
40860         * tests/test-unlink.c (main): Likewise.
40861         * tests/test-unlinkat.c (main): Likewise.
40862         * tests/test-areadlink-with-size.c (main): Don't require a
40863         debug-only system call to pass, aiding cross-testing to mingw.
40864         * tests/test-areadlink.c (main): Likewise.
40865         * tests/test-areadlinkat-with-size.c (main): Likewise.
40866         * tests/test-areadlinkat.c (main): Likewise.
40867         * tests/test-canonicalize-lgpl.c (main): Likewise.
40868         * tests/test-canonicalize.c (main): Likewise.
40869         * tests/test-chown.c (main): Likewise.
40870         * tests/test-fchownat.c (main): Likewise.
40871         * tests/test-lchown.c (main): Likewise.
40872         * tests/test-fdutimensat.c (main): Likewise.
40873         * tests/test-futimens.c (main): Likewise.
40874         * tests/test-link.c (main): Likewise.
40875         * tests/test-linkat.c (main): Likewise.
40876         * tests/test-mkdir.c (main): Likewise.
40877         * tests/test-mkdirat.c (main): Likewise.
40878         * tests/test-mkfifo.c (main): Likewise.
40879         * tests/test-mkfifoat.c (main): Likewise.
40880         * tests/test-mknod.c (main): Likewise.
40881         * tests/test-readlink.c (main): Likewise.
40882         * tests/test-remove.c (main): Likewise.
40883         * tests/test-rename.c (main): Likewise.
40884         * tests/test-renameat.c (main): Likewise.
40885         * tests/test-symlink.c (main): Likewise.
40886         * tests/test-symlinkat.c (main): Likewise.
40887         * tests/test-utimens.c (main): Likewise.
40888         * tests/test-utimensat.c (main): Likewise.
40889
40890 2009-12-29  Simon Josefsson  <simon@josefsson.org>
40891
40892         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
40893         on $(UNUSED_PARAMETER_H) to avoid build failure.
40894
40895 2009-12-28  Jim Meyering  <meyering@redhat.com>
40896
40897         update-copyright: you may specify a max. line length other than 72
40898         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
40899
40900         maint: use consistent FSF copyright line syntax
40901         * lib/posixtm.c: Add missing comma in FSF copyright line.
40902         * lib/posixtm.h: Likewise.
40903         * lib/getugroups.c: Add missing ", Inc.".
40904
40905         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
40906         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
40907         FSF copyright line.  Remove trailing blanks.
40908
40909 2009-12-28  Eric Blake  <ebb9@byu.net>
40910
40911         test-dup2: reduce dependencies
40912         * modules/cloexec (Configure.ac): Set witness.
40913         * modules/dup2-tests (Depends-on): Drop cloexec.
40914         * tests/test-dup2.c (main): Skip portion of test if cloexec module
40915         not present.
40916         Suggested by Bruno Haible.
40917
40918 2009-12-26  Bruno Haible  <bruno@clisp.org>
40919
40920         Remove an unneeded dependency.
40921         * modules/fseterr (Depends-on): Remove dup2.
40922
40923 2009-12-26  Eric Blake  <ebb9@byu.net>
40924
40925         tests: use macros.h in more places
40926         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
40927         (ASSERT_STREAM): Provide default of stderr.
40928         * tests/test-dirent-safer.c: Include macros.h, using alternate
40929         stream for assertions.
40930         * tests/test-dup-safer.c: Likewise.
40931         * tests/test-freopen-safer.c: Likewise.
40932         * tests/test-getopt.c: Likewise.
40933         * tests/test-openat-safer.c: Likewise.
40934         * tests/test-pipe.c: Likewise.
40935         * tests/test-popen-safer.c: Likewise.
40936         * modules/dirent-safer-tests (Files): Include macros.h.
40937         * modules/unistd-safer-tests (Files): Likewise.
40938         * modules/freopen-safer-tests (Files): Likewise.
40939         * modules/getopt-posix-tests (Files): Likewise.
40940         * modules/openat-safer-tests (Files): Likewise.
40941         * modules/pipe-tests (Files): Likewise.
40942
40943 2009-12-26  Bruno Haible  <bruno@clisp.org>
40944
40945         javacomp: Portability fix.
40946         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
40947         that it also works on Solaris.
40948
40949 2009-12-26  Bruno Haible  <bruno@clisp.org>
40950
40951         localename: Fix storage allocation of gl_locale_name_thread's result.
40952         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
40953         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
40954         all platforms that have 'uselocale'.
40955         (gl_locale_name_thread_unsafe): New function, extracted from
40956         gl_locale_name_thread.
40957         (gl_locale_name_thread): Call struniq on all platforms that have
40958         'uselocale'.
40959         * tests/test-localename.c (test_locale_name_thread): Check that the
40960         resulting strings are permanently allocated.
40961         * modules/localename-tests (Depends-on): Add strdup.
40962
40963 2009-12-26  Bruno Haible  <bruno@clisp.org>
40964
40965         * tests/test-localename.c (categories): Fill in the strings.
40966
40967 2009-12-26  Jim Meyering  <meyering@redhat.com>
40968
40969         isdir: complete the removal of m4/isdir.m4
40970         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
40971
40972         isdir: clean up, since at least grep still uses it
40973         * lib/isdir.c: Include "isdir.h".
40974         (S_ISDIR): Remove now-unneeded definition.
40975         * modules/isdir (Files): Add lib/isdir.h.
40976         * lib/isdir.h: New file, with declaration.
40977         * m4/isdir.m4: Remove file -- unneeded.
40978
40979 2009-12-25  Bruno Haible  <bruno@clisp.org>
40980
40981         selinux-h: Make generated .h files standalone.
40982         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
40983         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
40984         * lib/se-selinux.in.h: Likewise.
40985         * modules/selinux-h (Depends-on): Add unused-parameter.
40986         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
40987         selinux/selinux.h and selinux/context.h.
40988         Suggested by Eric Blake.
40989
40990 2009-12-25  Bruno Haible  <bruno@clisp.org>
40991
40992         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
40993         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
40994         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
40995         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
40996         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
40997
40998 2009-12-24  Bruno Haible  <bruno@clisp.org>
40999
41000         openat: Fix warning.
41001         * lib/openat-proc.c: Include <unistd.h>.
41002
41003 2009-12-24  Bruno Haible  <bruno@clisp.org>
41004
41005         New module 'unused-parameter'.
41006         * build-aux/unused-parameter.h: New file, extracted from earlier
41007         gnulib-common.m4.
41008         * modules/unused-parameter: New file.
41009         * lib/unistr.h: Include unused-parameter.h.
41010         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
41011         _GL_UNUSED.
41012         * modules/unistr/base (Depends-on): Add unused-parameter.
41013
41014 2009-12-24  Bruno Haible  <bruno@clisp.org>
41015
41016         Add missing dependencies to 'extensions' module.
41017         * m4/extensions.m4: Add comment.
41018         * modules/accept4 (Depends-on): Add extensions.
41019         * modules/dup3 (Depends-on): Likewise.
41020         * modules/fcntl (Depends-on): Likewise.
41021         * modules/futimens (Depends-on): Likewise.
41022         * modules/mknod (Depends-on): Likewise.
41023         * modules/pipe2 (Depends-on): Likewise.
41024         * modules/stat-time (Depends-on): Likewise.
41025         * modules/strcasestr-simple (Depends-on): Likewise.
41026         * modules/strsignal (Depends-on): Likewise.
41027         * modules/utimensat (Depends-on): Likewise.
41028         * modules/localcharset (Depends-on): Likewise. Needed because of
41029         gl_FCNTL_O_FLAGS.
41030         * modules/wcrtomb (Depends-on): Likewise. Needed because of
41031         AC_TYPE_MBSTATE_T.
41032         * modules/wcsnrtombs (Depends-on): Likewise.
41033         * modules/wcsrtombs (Depends-on): Likewise.
41034
41035 2009-12-24  Bruno Haible  <bruno@clisp.org>
41036
41037         binary-io: Avoid gcc warning due to SET_BINARY.
41038         * lib/binary-io.h (SET_BINARY): Cast the result to void.
41039         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
41040
41041 2009-12-24  Bruno Haible  <bruno@clisp.org>
41042
41043         Avoid future namespace pollution on glibc systems.
41044         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
41045         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
41046         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
41047         glibc systems.
41048
41049 2009-12-24  Bruno Haible  <bruno@clisp.org>
41050
41051         Refactor common macros used in tests.
41052         * tests/macros.h: New file.
41053         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
41054         and/or <stdlib.h>, if appropriate.
41055         (ASSERT, SIZEOF): Remove macros.
41056         * tests/test-areadlink-with-size.c: Likewise.
41057         * tests/test-areadlinkat.c: Likewise.
41058         * tests/test-areadlinkat-with-size.c: Likewise.
41059         * tests/test-argmatch.c: Likewise.
41060         * tests/test-argv-iter.c: Likewise.
41061         * tests/test-array-mergesort.c: Likewise.
41062         * tests/test-array_list.c: Likewise.
41063         * tests/test-array_oset.c: Likewise.
41064         * tests/test-avltree_list.c: Likewise.
41065         * tests/test-avltree_oset.c: Likewise.
41066         * tests/test-avltreehash_list.c: Likewise.
41067         * tests/test-base64.c: Likewise.
41068         * tests/test-binary-io.c: Likewise.
41069         * tests/test-bitrotate.c: Likewise.
41070         * tests/test-btowc.c: Likewise.
41071         * tests/test-byteswap.c: Likewise.
41072         * tests/test-c-ctype.c: Likewise.
41073         * tests/test-c-stack.c: Likewise.
41074         * tests/test-c-strcasecmp.c: Likewise.
41075         * tests/test-c-strcasestr.c: Likewise.
41076         * tests/test-c-strncasecmp.c: Likewise.
41077         * tests/test-c-strstr.c: Likewise.
41078         * tests/test-canonicalize-lgpl.c: Likewise.
41079         * tests/test-canonicalize.c: Likewise.
41080         * tests/test-carray_list.c: Likewise.
41081         * tests/test-ceilf1.c: Likewise.
41082         * tests/test-ceilf2.c: Likewise.
41083         * tests/test-ceill.c: Likewise.
41084         * tests/test-chown.c: Likewise.
41085         * tests/test-cloexec.c: Likewise.
41086         * tests/test-copy-acl.c: Likewise.
41087         * tests/test-copy-file.c: Likewise.
41088         * tests/test-count-one-bits.c: Likewise.
41089         * tests/test-dprintf-posix.c: Likewise.
41090         * tests/test-dup2.c: Likewise.
41091         * tests/test-dup3.c: Likewise.
41092         * tests/test-duplocale.c: Likewise.
41093         * tests/test-fbufmode.c: Likewise.
41094         * tests/test-fchdir.c: Likewise.
41095         * tests/test-fchownat.c: Likewise.
41096         * tests/test-fcntl-safer.c: Likewise.
41097         * tests/test-fcntl.c: Likewise.
41098         * tests/test-fdopendir.c: Likewise.
41099         * tests/test-fdutimensat.c: Likewise.
41100         * tests/test-fflush2.c: Likewise.
41101         * tests/test-file-has-acl.c: Likewise.
41102         * tests/test-filevercmp.c: Likewise.
41103         * tests/test-flock.c: Likewise.
41104         * tests/test-floorf1.c: Likewise.
41105         * tests/test-floorf2.c: Likewise.
41106         * tests/test-floorl.c: Likewise.
41107         * tests/test-fnmatch.c: Likewise.
41108         * tests/test-fopen.h: Likewise.
41109         * tests/test-fpending.c: Likewise.
41110         * tests/test-fprintf-posix.c: Likewise.
41111         * tests/test-fpurge.c: Likewise.
41112         * tests/test-freadable.c: Likewise.
41113         * tests/test-freadahead.c: Likewise.
41114         * tests/test-freading.c: Likewise.
41115         * tests/test-freadptr.c: Likewise.
41116         * tests/test-freadptr2.c: Likewise.
41117         * tests/test-freadseek.c: Likewise.
41118         * tests/test-freopen.c: Likewise.
41119         * tests/test-frexp.c: Likewise.
41120         * tests/test-frexpl.c: Likewise.
41121         * tests/test-fseek.c: Likewise.
41122         * tests/test-fseeko.c: Likewise.
41123         * tests/test-fstatat.c: Likewise.
41124         * tests/test-fstrcmp.c: Likewise.
41125         * tests/test-fsync.c: Likewise.
41126         * tests/test-ftell.c: Likewise.
41127         * tests/test-ftello.c: Likewise.
41128         * tests/test-func.c: Likewise.
41129         * tests/test-futimens.c: Likewise.
41130         * tests/test-fwritable.c: Likewise.
41131         * tests/test-fwriting.c: Likewise.
41132         * tests/test-getcwd.c: Likewise.
41133         * tests/test-getdate.c: Likewise.
41134         * tests/test-getdelim.c: Likewise.
41135         * tests/test-getdtablesize.c: Likewise.
41136         * tests/test-getgroups.c: Likewise.
41137         * tests/test-getline.c: Likewise.
41138         * tests/test-getndelim2.c: Likewise.
41139         * tests/test-glob.c: Likewise.
41140         * tests/test-hash.c: Likewise.
41141         * tests/test-i-ring.c: Likewise.
41142         * tests/test-iconv-utf.c: Likewise.
41143         * tests/test-iconv.c: Likewise.
41144         * tests/test-idpriv-drop.c: Likewise.
41145         * tests/test-idpriv-droptemp.c: Likewise.
41146         * tests/test-inet_ntop.c: Likewise.
41147         * tests/test-inet_pton.c: Likewise.
41148         * tests/test-isblank.c: Likewise.
41149         * tests/test-isfinite.c: Likewise.
41150         * tests/test-isinf.c: Likewise.
41151         * tests/test-isnan.c: Likewise.
41152         * tests/test-isnand.h: Likewise.
41153         * tests/test-isnanf.h: Likewise.
41154         * tests/test-isnanl.h: Likewise.
41155         * tests/test-lchown.c: Likewise.
41156         * tests/test-ldexpl.c: Likewise.
41157         * tests/test-link.c: Likewise.
41158         * tests/test-linkat.c: Likewise.
41159         * tests/test-linked_list.c: Likewise.
41160         * tests/test-linkedhash_list.c: Likewise.
41161         * tests/test-localename.c: Likewise.
41162         * tests/test-lseek.c: Likewise.
41163         * tests/test-lstat.c: Likewise.
41164         * tests/test-mbmemcasecmp.c: Likewise.
41165         * tests/test-mbmemcasecoll.c: Likewise.
41166         * tests/test-mbrtowc.c: Likewise.
41167         * tests/test-mbscasecmp.c: Likewise.
41168         * tests/test-mbscasestr1.c: Likewise.
41169         * tests/test-mbscasestr2.c: Likewise.
41170         * tests/test-mbscasestr3.c: Likewise.
41171         * tests/test-mbscasestr4.c: Likewise.
41172         * tests/test-mbschr.c: Likewise.
41173         * tests/test-mbscspn.c: Likewise.
41174         * tests/test-mbsinit.c: Likewise.
41175         * tests/test-mbsncasecmp.c: Likewise.
41176         * tests/test-mbsnrtowcs.c: Likewise.
41177         * tests/test-mbspbrk.c: Likewise.
41178         * tests/test-mbspcasecmp.c: Likewise.
41179         * tests/test-mbsrchr.c: Likewise.
41180         * tests/test-mbsrtowcs.c: Likewise.
41181         * tests/test-mbsspn.c: Likewise.
41182         * tests/test-mbsstr1.c: Likewise.
41183         * tests/test-mbsstr2.c: Likewise.
41184         * tests/test-mbsstr3.c: Likewise.
41185         * tests/test-memchr.c: Likewise.
41186         * tests/test-memchr2.c: Likewise.
41187         * tests/test-memcmp.c: Likewise.
41188         * tests/test-memmem.c: Likewise.
41189         * tests/test-memrchr.c: Likewise.
41190         * tests/test-mkdir.c: Likewise.
41191         * tests/test-mkdirat.c: Likewise.
41192         * tests/test-mkfifo.c: Likewise.
41193         * tests/test-mkfifoat.c: Likewise.
41194         * tests/test-mknod.c: Likewise.
41195         * tests/test-nanosleep.c: Likewise.
41196         * tests/test-nl_langinfo.c: Likewise.
41197         * tests/test-obstack-printf.c: Likewise.
41198         * tests/test-open.c: Likewise.
41199         * tests/test-openat.c: Likewise.
41200         * tests/test-pipe-filter-gi1.c: Likewise.
41201         * tests/test-pipe-filter-gi2-main.c: Likewise.
41202         * tests/test-pipe-filter-ii1.c: Likewise.
41203         * tests/test-pipe-filter-ii2-main.c: Likewise.
41204         * tests/test-pipe2.c: Likewise.
41205         * tests/test-popen.h: Likewise.
41206         * tests/test-posixtm.c: Likewise.
41207         * tests/test-pread.c: Likewise.
41208         * tests/test-printf-frexp.c: Likewise.
41209         * tests/test-printf-frexpl.c: Likewise.
41210         * tests/test-printf-posix.c: Likewise.
41211         * tests/test-priv-set.c: Likewise.
41212         * tests/test-quotearg.c: Likewise.
41213         * tests/test-random_r.c: Likewise.
41214         * tests/test-rawmemchr.c: Likewise.
41215         * tests/test-rbtree_list.c: Likewise.
41216         * tests/test-rbtree_oset.c: Likewise.
41217         * tests/test-rbtreehash_list.c: Likewise.
41218         * tests/test-readlink.c: Likewise.
41219         * tests/test-remove.c: Likewise.
41220         * tests/test-rename.c: Likewise.
41221         * tests/test-renameat.c: Likewise.
41222         * tests/test-rmdir.c: Likewise.
41223         * tests/test-round1.c: Likewise.
41224         * tests/test-roundf1.c: Likewise.
41225         * tests/test-roundl.c: Likewise.
41226         * tests/test-safe-alloc.c: Likewise.
41227         * tests/test-sameacls.c: Likewise.
41228         * tests/test-set-mode-acl.c: Likewise.
41229         * tests/test-setenv.c: Likewise.
41230         * tests/test-sigaction.c: Likewise.
41231         * tests/test-signbit.c: Likewise.
41232         * tests/test-sleep.c: Likewise.
41233         * tests/test-snprintf-posix.c: Likewise.
41234         * tests/test-snprintf.c: Likewise.
41235         * tests/test-sprintf-posix.c: Likewise.
41236         * tests/test-stat-time.c: Likewise.
41237         * tests/test-stat.c: Likewise.
41238         * tests/test-strcasestr.c: Likewise.
41239         * tests/test-strchrnul.c: Likewise.
41240         * tests/test-strerror.c: Likewise.
41241         * tests/test-striconv.c: Likewise.
41242         * tests/test-striconveh.c: Likewise.
41243         * tests/test-striconveha.c: Likewise.
41244         * tests/test-strsignal.c: Likewise.
41245         * tests/test-strstr.c: Likewise.
41246         * tests/test-strtod.c: Likewise.
41247         * tests/test-strverscmp.c: Likewise.
41248         * tests/test-symlink.c: Likewise.
41249         * tests/test-symlinkat.c: Likewise.
41250         * tests/test-trunc1.c: Likewise.
41251         * tests/test-trunc2.c: Likewise.
41252         * tests/test-truncf1.c: Likewise.
41253         * tests/test-truncf2.c: Likewise.
41254         * tests/test-truncl.c: Likewise.
41255         * tests/test-uname.c: Likewise.
41256         * tests/test-unlink.c: Likewise.
41257         * tests/test-unlinkat.c: Likewise.
41258         * tests/test-unsetenv.c: Likewise.
41259         * tests/test-usleep.c: Likewise.
41260         * tests/test-utimens.c: Likewise.
41261         * tests/test-utimensat.c: Likewise.
41262         * tests/test-vasnprintf-posix.c: Likewise.
41263         * tests/test-vasnprintf-posix2.c: Likewise.
41264         * tests/test-vasnprintf.c: Likewise.
41265         * tests/test-vasprintf-posix.c: Likewise.
41266         * tests/test-vasprintf.c: Likewise.
41267         * tests/test-vdprintf-posix.c: Likewise.
41268         * tests/test-vfprintf-posix.c: Likewise.
41269         * tests/test-vprintf-posix.c: Likewise.
41270         * tests/test-vsnprintf-posix.c: Likewise.
41271         * tests/test-vsnprintf.c: Likewise.
41272         * tests/test-vsprintf-posix.c: Likewise.
41273         * tests/test-wcrtomb.c: Likewise.
41274         * tests/test-wcsnrtombs.c: Likewise.
41275         * tests/test-wcsrtombs.c: Likewise.
41276         * tests/test-wctype.c: Likewise.
41277         * tests/test-wcwidth.c: Likewise.
41278         * tests/test-xfprintf-posix.c: Likewise.
41279         * tests/test-xmemdup0.c: Likewise.
41280         * tests/test-xprintf-posix.c: Likewise.
41281         * tests/test-xvasprintf.c: Likewise.
41282         * tests/unicase/test-locale-language.c: Likewise.
41283         * tests/unicase/test-mapping-part1.h: Likewise.
41284         * tests/unicase/test-predicate-part1.h: Likewise.
41285         * tests/unicase/test-u8-casecmp.c: Likewise.
41286         * tests/unicase/test-u8-casecoll.c: Likewise.
41287         * tests/unicase/test-u8-casefold.c: Likewise.
41288         * tests/unicase/test-u8-is-cased.c: Likewise.
41289         * tests/unicase/test-u8-is-casefolded.c: Likewise.
41290         * tests/unicase/test-u8-is-lowercase.c: Likewise.
41291         * tests/unicase/test-u8-is-titlecase.c: Likewise.
41292         * tests/unicase/test-u8-is-uppercase.c: Likewise.
41293         * tests/unicase/test-u8-tolower.c: Likewise.
41294         * tests/unicase/test-u8-totitle.c: Likewise.
41295         * tests/unicase/test-u8-toupper.c: Likewise.
41296         * tests/unicase/test-u16-casecmp.c: Likewise.
41297         * tests/unicase/test-u16-casecoll.c: Likewise.
41298         * tests/unicase/test-u16-casefold.c: Likewise.
41299         * tests/unicase/test-u16-is-cased.c: Likewise.
41300         * tests/unicase/test-u16-is-casefolded.c: Likewise.
41301         * tests/unicase/test-u16-is-lowercase.c: Likewise.
41302         * tests/unicase/test-u16-is-titlecase.c: Likewise.
41303         * tests/unicase/test-u16-is-uppercase.c: Likewise.
41304         * tests/unicase/test-u16-tolower.c: Likewise.
41305         * tests/unicase/test-u16-totitle.c: Likewise.
41306         * tests/unicase/test-u16-toupper.c: Likewise.
41307         * tests/unicase/test-u32-casecmp.c: Likewise.
41308         * tests/unicase/test-u32-casecoll.c: Likewise.
41309         * tests/unicase/test-u32-casefold.c: Likewise.
41310         * tests/unicase/test-u32-is-cased.c: Likewise.
41311         * tests/unicase/test-u32-is-casefolded.c: Likewise.
41312         * tests/unicase/test-u32-is-lowercase.c: Likewise.
41313         * tests/unicase/test-u32-is-titlecase.c: Likewise.
41314         * tests/unicase/test-u32-is-uppercase.c: Likewise.
41315         * tests/unicase/test-u32-tolower.c: Likewise.
41316         * tests/unicase/test-u32-totitle.c: Likewise.
41317         * tests/unicase/test-u32-toupper.c: Likewise.
41318         * tests/unicase/test-ulc-casecmp.c: Likewise.
41319         * tests/unicase/test-ulc-casecoll.c: Likewise.
41320         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
41321         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
41322         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
41323         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
41324         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
41325         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
41326         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
41327         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
41328         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
41329         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
41330         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
41331         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
41332         * tests/unictype/test-bidi_byname.c: Likewise.
41333         * tests/unictype/test-bidi_name.c: Likewise.
41334         * tests/unictype/test-bidi_of.c: Likewise.
41335         * tests/unictype/test-bidi_test.c: Likewise.
41336         * tests/unictype/test-block_list.c: Likewise.
41337         * tests/unictype/test-block_of.c: Likewise.
41338         * tests/unictype/test-block_test.c: Likewise.
41339         * tests/unictype/test-categ_and.c: Likewise.
41340         * tests/unictype/test-categ_and_not.c: Likewise.
41341         * tests/unictype/test-categ_byname.c: Likewise.
41342         * tests/unictype/test-categ_name.c: Likewise.
41343         * tests/unictype/test-categ_none.c: Likewise.
41344         * tests/unictype/test-categ_of.c: Likewise.
41345         * tests/unictype/test-categ_or.c: Likewise.
41346         * tests/unictype/test-categ_test_withtable.c: Likewise.
41347         * tests/unictype/test-combining.c: Likewise.
41348         * tests/unictype/test-decdigit.c: Likewise.
41349         * tests/unictype/test-digit.c: Likewise.
41350         * tests/unictype/test-mirror.c: Likewise.
41351         * tests/unictype/test-numeric.c: Likewise.
41352         * tests/unictype/test-pr_byname.c: Likewise.
41353         * tests/unictype/test-pr_test.c: Likewise.
41354         * tests/unictype/test-predicate-part1.h: Likewise.
41355         * tests/unictype/test-scripts.c: Likewise.
41356         * tests/unictype/test-sy_c_ident.c: Likewise.
41357         * tests/unictype/test-sy_java_ident.c: Likewise.
41358         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
41359         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
41360         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
41361         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
41362         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
41363         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
41364         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
41365         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
41366         * tests/uninorm/test-canonical-decomposition.c: Likewise.
41367         * tests/uninorm/test-compat-decomposition.c: Likewise.
41368         * tests/uninorm/test-composition.c: Likewise.
41369         * tests/uninorm/test-decomposing-form.c: Likewise.
41370         * tests/uninorm/test-decomposition.c: Likewise.
41371         * tests/uninorm/test-u8-nfc.c: Likewise.
41372         * tests/uninorm/test-u8-nfd.c: Likewise.
41373         * tests/uninorm/test-u8-nfkc.c: Likewise.
41374         * tests/uninorm/test-u8-nfkd.c: Likewise.
41375         * tests/uninorm/test-u8-normcmp.c: Likewise.
41376         * tests/uninorm/test-u8-normcoll.c: Likewise.
41377         * tests/uninorm/test-u16-nfc.c: Likewise.
41378         * tests/uninorm/test-u16-nfd.c: Likewise.
41379         * tests/uninorm/test-u16-nfkc.c: Likewise.
41380         * tests/uninorm/test-u16-nfkd.c: Likewise.
41381         * tests/uninorm/test-u16-normcmp.c: Likewise.
41382         * tests/uninorm/test-u16-normcoll.c: Likewise.
41383         * tests/uninorm/test-u32-nfc.c: Likewise.
41384         * tests/uninorm/test-u32-nfd.c: Likewise.
41385         * tests/uninorm/test-u32-nfkc.c: Likewise.
41386         * tests/uninorm/test-u32-nfkd.c: Likewise.
41387         * tests/uninorm/test-u32-normalize-big.c: Likewise.
41388         * tests/uninorm/test-u32-normcmp.c: Likewise.
41389         * tests/uninorm/test-u32-normcoll.c: Likewise.
41390         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
41391         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
41392         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
41393         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
41394         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
41395         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
41396         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
41397         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
41398         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
41399         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
41400         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
41401         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
41402         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
41403         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
41404         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
41405         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
41406         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
41407         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
41408         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
41409         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
41410         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
41411         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
41412         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
41413         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
41414         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
41415         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
41416         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
41417         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
41418         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
41419         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
41420         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
41421         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
41422         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
41423         * tests/uniwidth/test-u8-strwidth.c: Likewise.
41424         * tests/uniwidth/test-u8-width.c: Likewise.
41425         * tests/uniwidth/test-u16-strwidth.c: Likewise.
41426         * tests/uniwidth/test-u16-width.c: Likewise.
41427         * tests/uniwidth/test-u32-strwidth.c: Likewise.
41428         * tests/uniwidth/test-u32-width.c: Likewise.
41429         * tests/uniwidth/test-uc_width.c: Likewise.
41430         * tests/uniwidth/test-uc_width2.c: Likewise.
41431         * modules/acl-tests (Files): Add tests/macros.h.
41432         * modules/areadlink-tests (Files): Likewise.
41433         * modules/areadlink-with-size-tests (Files): Likewise.
41434         * modules/areadlinkat-tests (Files): Likewise.
41435         * modules/areadlinkat-with-size-tests (Files): Likewise.
41436         * modules/argmatch-tests (Files): Likewise.
41437         * modules/argv-iter-tests (Files): Likewise.
41438         * modules/array-list-tests (Files): Likewise.
41439         * modules/array-mergesort-tests (Files): Likewise.
41440         * modules/array-oset-tests (Files): Likewise.
41441         * modules/avltree-list-tests (Files): Likewise.
41442         * modules/avltree-oset-tests (Files): Likewise.
41443         * modules/avltreehash-list-tests (Files): Likewise.
41444         * modules/base64-tests (Files): Likewise.
41445         * modules/binary-io-tests (Files): Likewise.
41446         * modules/bitrotate-tests (Files): Likewise.
41447         * modules/btowc-tests (Files): Likewise.
41448         * modules/byteswap-tests (Files): Likewise.
41449         * modules/c-ctype-tests (Files): Likewise.
41450         * modules/c-stack-tests (Files): Likewise.
41451         * modules/c-strcase-tests (Files): Likewise.
41452         * modules/c-strcasestr-tests (Files): Likewise.
41453         * modules/c-strstr-tests (Files): Likewise.
41454         * modules/canonicalize-lgpl-tests (Files): Likewise.
41455         * modules/canonicalize-tests (Files): Likewise.
41456         * modules/carray-list-tests (Files): Likewise.
41457         * modules/ceilf-tests (Files): Likewise.
41458         * modules/ceill-tests (Files): Likewise.
41459         * modules/chown-tests (Files): Likewise.
41460         * modules/cloexec-tests (Files): Likewise.
41461         * modules/copy-file-tests (Files): Likewise.
41462         * modules/count-one-bits-tests (Files): Likewise.
41463         * modules/dprintf-posix-tests (Files): Likewise.
41464         * modules/dup2-tests (Files): Likewise.
41465         * modules/dup3-tests (Files): Likewise.
41466         * modules/duplocale-tests (Files): Likewise.
41467         * modules/fbufmode-tests (Files): Likewise.
41468         * modules/fchdir-tests (Files): Likewise.
41469         * modules/fcntl-safer-tests (Files): Likewise.
41470         * modules/fcntl-tests (Files): Likewise.
41471         * modules/fdopendir-tests (Files): Likewise.
41472         * modules/fdutimensat-tests (Files): Likewise.
41473         * modules/fflush-tests (Files): Likewise.
41474         * modules/filevercmp-tests (Files): Likewise.
41475         * modules/flock-tests (Files): Likewise.
41476         * modules/floorf-tests (Files): Likewise.
41477         * modules/floorl-tests (Files): Likewise.
41478         * modules/fnmatch-tests (Files): Likewise.
41479         * modules/fopen-safer-tests (Files): Likewise.
41480         * modules/fopen-tests (Files): Likewise.
41481         * modules/fpending-tests (Files): Likewise.
41482         * modules/fprintf-posix-tests (Files): Likewise.
41483         * modules/fpurge-tests (Files): Likewise.
41484         * modules/freadable-tests (Files): Likewise.
41485         * modules/freadahead-tests (Files): Likewise.
41486         * modules/freading-tests (Files): Likewise.
41487         * modules/freadptr-tests (Files): Likewise.
41488         * modules/freadseek-tests (Files): Likewise.
41489         * modules/freopen-tests (Files): Likewise.
41490         * modules/frexp-nolibm-tests (Files): Likewise.
41491         * modules/frexp-tests (Files): Likewise.
41492         * modules/frexpl-nolibm-tests (Files): Likewise.
41493         * modules/frexpl-tests (Files): Likewise.
41494         * modules/fseek-tests (Files): Likewise.
41495         * modules/fseeko-tests (Files): Likewise.
41496         * modules/fstrcmp-tests (Files): Likewise.
41497         * modules/fsync-tests (Files): Likewise.
41498         * modules/ftell-tests (Files): Likewise.
41499         * modules/ftello-tests (Files): Likewise.
41500         * modules/func-tests (Files): Likewise.
41501         * modules/futimens-tests (Files): Likewise.
41502         * modules/fwritable-tests (Files): Likewise.
41503         * modules/fwriting-tests (Files): Likewise.
41504         * modules/getcwd-tests (Files): Likewise.
41505         * modules/getdate-tests (Files): Likewise.
41506         * modules/getdelim-tests (Files): Likewise.
41507         * modules/getdtablesize-tests (Files): Likewise.
41508         * modules/getgroups-tests (Files): Likewise.
41509         * modules/getline-tests (Files): Likewise.
41510         * modules/getndelim2-tests (Files): Likewise.
41511         * modules/glob-tests (Files): Likewise.
41512         * modules/hash-tests (Files): Likewise.
41513         * modules/i-ring-tests (Files): Likewise.
41514         * modules/iconv-tests (Files): Likewise.
41515         * modules/iconv_open-utf-tests (Files): Likewise.
41516         * modules/idpriv-drop-tests (Files): Likewise.
41517         * modules/idpriv-droptemp-tests (Files): Likewise.
41518         * modules/inet_ntop-tests (Files): Likewise.
41519         * modules/inet_pton-tests (Files): Likewise.
41520         * modules/isblank-tests (Files): Likewise.
41521         * modules/isfinite-tests (Files): Likewise.
41522         * modules/isinf-tests (Files): Likewise.
41523         * modules/isnan-tests (Files): Likewise.
41524         * modules/isnand-nolibm-tests (Files): Likewise.
41525         * modules/isnand-tests (Files): Likewise.
41526         * modules/isnanf-nolibm-tests (Files): Likewise.
41527         * modules/isnanf-tests (Files): Likewise.
41528         * modules/isnanl-nolibm-tests (Files): Likewise.
41529         * modules/isnanl-tests (Files): Likewise.
41530         * modules/lchown-tests (Files): Likewise.
41531         * modules/ldexpl-tests (Files): Likewise.
41532         * modules/link-tests (Files): Likewise.
41533         * modules/linkat-tests (Files): Likewise.
41534         * modules/linked-list-tests (Files): Likewise.
41535         * modules/linkedhash-list-tests (Files): Likewise.
41536         * modules/localename-tests (Files): Likewise.
41537         * modules/lseek-tests (Files): Likewise.
41538         * modules/lstat-tests (Files): Likewise.
41539         * modules/mbmemcasecmp-tests (Files): Likewise.
41540         * modules/mbmemcasecoll-tests (Files): Likewise.
41541         * modules/mbrtowc-tests (Files): Likewise.
41542         * modules/mbscasecmp-tests (Files): Likewise.
41543         * modules/mbscasestr-tests (Files): Likewise.
41544         * modules/mbschr-tests (Files): Likewise.
41545         * modules/mbscspn-tests (Files): Likewise.
41546         * modules/mbsinit-tests (Files): Likewise.
41547         * modules/mbsncasecmp-tests (Files): Likewise.
41548         * modules/mbsnrtowcs-tests (Files): Likewise.
41549         * modules/mbspbrk-tests (Files): Likewise.
41550         * modules/mbspcasecmp-tests (Files): Likewise.
41551         * modules/mbsrchr-tests (Files): Likewise.
41552         * modules/mbsrtowcs-tests (Files): Likewise.
41553         * modules/mbsspn-tests (Files): Likewise.
41554         * modules/mbsstr-tests (Files): Likewise.
41555         * modules/memchr-tests (Files): Likewise.
41556         * modules/memchr2-tests (Files): Likewise.
41557         * modules/memcmp-tests (Files): Likewise.
41558         * modules/memmem-tests (Files): Likewise.
41559         * modules/memrchr-tests (Files): Likewise.
41560         * modules/mkdir-tests (Files): Likewise.
41561         * modules/mkfifo-tests (Files): Likewise.
41562         * modules/mkfifoat-tests (Files): Likewise.
41563         * modules/mknod-tests (Files): Likewise.
41564         * modules/nanosleep-tests (Files): Likewise.
41565         * modules/nl_langinfo-tests (Files): Likewise.
41566         * modules/obstack-printf-tests (Files): Likewise.
41567         * modules/open-tests (Files): Likewise.
41568         * modules/openat-tests (Files): Likewise.
41569         * modules/pipe-filter-gi-tests (Files): Likewise.
41570         * modules/pipe-filter-ii-tests (Files): Likewise.
41571         * modules/pipe2-tests (Files): Likewise.
41572         * modules/popen-safer-tests (Files): Likewise.
41573         * modules/popen-tests (Files): Likewise.
41574         * modules/posixtm-tests (Files): Likewise.
41575         * modules/pread-tests (Files): Likewise.
41576         * modules/printf-frexp-tests (Files): Likewise.
41577         * modules/printf-frexpl-tests (Files): Likewise.
41578         * modules/printf-posix-tests (Files): Likewise.
41579         * modules/priv-set-tests (Files): Likewise.
41580         * modules/quotearg-tests (Files): Likewise.
41581         * modules/random_r-tests (Files): Likewise.
41582         * modules/rawmemchr-tests (Files): Likewise.
41583         * modules/rbtree-list-tests (Files): Likewise.
41584         * modules/rbtree-oset-tests (Files): Likewise.
41585         * modules/rbtreehash-list-tests (Files): Likewise.
41586         * modules/readlink-tests (Files): Likewise.
41587         * modules/remove-tests (Files): Likewise.
41588         * modules/rename-tests (Files): Likewise.
41589         * modules/renameat-tests (Files): Likewise.
41590         * modules/rmdir-tests (Files): Likewise.
41591         * modules/round-tests (Files): Likewise.
41592         * modules/roundf-tests (Files): Likewise.
41593         * modules/roundl-tests (Files): Likewise.
41594         * modules/safe-alloc-tests (Files): Likewise.
41595         * modules/setenv-tests (Files): Likewise.
41596         * modules/sigaction-tests (Files): Likewise.
41597         * modules/signbit-tests (Files): Likewise.
41598         * modules/sleep-tests (Files): Likewise.
41599         * modules/snprintf-posix-tests (Files): Likewise.
41600         * modules/snprintf-tests (Files): Likewise.
41601         * modules/sprintf-posix-tests (Files): Likewise.
41602         * modules/stat-tests (Files): Likewise.
41603         * modules/stat-time-tests (Files): Likewise.
41604         * modules/strcasestr-tests (Files): Likewise.
41605         * modules/strchrnul-tests (Files): Likewise.
41606         * modules/strerror-tests (Files): Likewise.
41607         * modules/striconv-tests (Files): Likewise.
41608         * modules/striconveh-tests (Files): Likewise.
41609         * modules/striconveha-tests (Files): Likewise.
41610         * modules/strsignal-tests (Files): Likewise.
41611         * modules/strstr-tests (Files): Likewise.
41612         * modules/strtod-tests (Files): Likewise.
41613         * modules/strverscmp-tests (Files): Likewise.
41614         * modules/symlink-tests (Files): Likewise.
41615         * modules/symlinkat-tests (Files): Likewise.
41616         * modules/trunc-tests (Files): Likewise.
41617         * modules/truncf-tests (Files): Likewise.
41618         * modules/truncl-tests (Files): Likewise.
41619         * modules/uname-tests (Files): Likewise.
41620         * modules/unicase/cased-tests (Files): Likewise.
41621         * modules/unicase/ignorable-tests (Files): Likewise.
41622         * modules/unicase/locale-language-tests (Files): Likewise.
41623         * modules/unicase/tolower-tests (Files): Likewise.
41624         * modules/unicase/totitle-tests (Files): Likewise.
41625         * modules/unicase/toupper-tests (Files): Likewise.
41626         * modules/unicase/u8-casecmp-tests (Files): Likewise.
41627         * modules/unicase/u8-casecoll-tests (Files): Likewise.
41628         * modules/unicase/u8-casefold-tests (Files): Likewise.
41629         * modules/unicase/u8-is-cased-tests (Files): Likewise.
41630         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
41631         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
41632         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
41633         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
41634         * modules/unicase/u8-tolower-tests (Files): Likewise.
41635         * modules/unicase/u8-totitle-tests (Files): Likewise.
41636         * modules/unicase/u8-toupper-tests (Files): Likewise.
41637         * modules/unicase/u16-casecmp-tests (Files): Likewise.
41638         * modules/unicase/u16-casecoll-tests (Files): Likewise.
41639         * modules/unicase/u16-casefold-tests (Files): Likewise.
41640         * modules/unicase/u16-is-cased-tests (Files): Likewise.
41641         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
41642         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
41643         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
41644         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
41645         * modules/unicase/u16-tolower-tests (Files): Likewise.
41646         * modules/unicase/u16-totitle-tests (Files): Likewise.
41647         * modules/unicase/u16-toupper-tests (Files): Likewise.
41648         * modules/unicase/u32-casecmp-tests (Files): Likewise.
41649         * modules/unicase/u32-casecoll-tests (Files): Likewise.
41650         * modules/unicase/u32-casefold-tests (Files): Likewise.
41651         * modules/unicase/u32-is-cased-tests (Files): Likewise.
41652         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
41653         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
41654         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
41655         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
41656         * modules/unicase/u32-tolower-tests (Files): Likewise.
41657         * modules/unicase/u32-totitle-tests (Files): Likewise.
41658         * modules/unicase/u32-toupper-tests (Files): Likewise.
41659         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
41660         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
41661         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
41662         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
41663         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
41664         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
41665         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
41666         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
41667         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
41668         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
41669         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
41670         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
41671         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
41672         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
41673         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
41674         * modules/unictype/bidicategory-name-tests (Files): Likewise.
41675         * modules/unictype/bidicategory-of-tests (Files): Likewise.
41676         * modules/unictype/bidicategory-test-tests (Files): Likewise.
41677         * modules/unictype/block-list-tests (Files): Likewise.
41678         * modules/unictype/block-of-tests (Files): Likewise.
41679         * modules/unictype/block-test-tests (Files): Likewise.
41680         * modules/unictype/category-C-tests (Files): Likewise.
41681         * modules/unictype/category-Cc-tests (Files): Likewise.
41682         * modules/unictype/category-Cf-tests (Files): Likewise.
41683         * modules/unictype/category-Cn-tests (Files): Likewise.
41684         * modules/unictype/category-Co-tests (Files): Likewise.
41685         * modules/unictype/category-Cs-tests (Files): Likewise.
41686         * modules/unictype/category-L-tests (Files): Likewise.
41687         * modules/unictype/category-Ll-tests (Files): Likewise.
41688         * modules/unictype/category-Lm-tests (Files): Likewise.
41689         * modules/unictype/category-Lo-tests (Files): Likewise.
41690         * modules/unictype/category-Lt-tests (Files): Likewise.
41691         * modules/unictype/category-Lu-tests (Files): Likewise.
41692         * modules/unictype/category-M-tests (Files): Likewise.
41693         * modules/unictype/category-Mc-tests (Files): Likewise.
41694         * modules/unictype/category-Me-tests (Files): Likewise.
41695         * modules/unictype/category-Mn-tests (Files): Likewise.
41696         * modules/unictype/category-N-tests (Files): Likewise.
41697         * modules/unictype/category-Nd-tests (Files): Likewise.
41698         * modules/unictype/category-Nl-tests (Files): Likewise.
41699         * modules/unictype/category-No-tests (Files): Likewise.
41700         * modules/unictype/category-P-tests (Files): Likewise.
41701         * modules/unictype/category-Pc-tests (Files): Likewise.
41702         * modules/unictype/category-Pd-tests (Files): Likewise.
41703         * modules/unictype/category-Pe-tests (Files): Likewise.
41704         * modules/unictype/category-Pf-tests (Files): Likewise.
41705         * modules/unictype/category-Pi-tests (Files): Likewise.
41706         * modules/unictype/category-Po-tests (Files): Likewise.
41707         * modules/unictype/category-Ps-tests (Files): Likewise.
41708         * modules/unictype/category-S-tests (Files): Likewise.
41709         * modules/unictype/category-Sc-tests (Files): Likewise.
41710         * modules/unictype/category-Sk-tests (Files): Likewise.
41711         * modules/unictype/category-Sm-tests (Files): Likewise.
41712         * modules/unictype/category-So-tests (Files): Likewise.
41713         * modules/unictype/category-Z-tests (Files): Likewise.
41714         * modules/unictype/category-Zl-tests (Files): Likewise.
41715         * modules/unictype/category-Zp-tests (Files): Likewise.
41716         * modules/unictype/category-Zs-tests (Files): Likewise.
41717         * modules/unictype/category-and-not-tests (Files): Likewise.
41718         * modules/unictype/category-and-tests (Files): Likewise.
41719         * modules/unictype/category-byname-tests (Files): Likewise.
41720         * modules/unictype/category-name-tests (Files): Likewise.
41721         * modules/unictype/category-none-tests (Files): Likewise.
41722         * modules/unictype/category-of-tests (Files): Likewise.
41723         * modules/unictype/category-or-tests (Files): Likewise.
41724         * modules/unictype/category-test-withtable-tests (Files): Likewise.
41725         * modules/unictype/combining-class-tests (Files): Likewise.
41726         * modules/unictype/ctype-alnum-tests (Files): Likewise.
41727         * modules/unictype/ctype-alpha-tests (Files): Likewise.
41728         * modules/unictype/ctype-blank-tests (Files): Likewise.
41729         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
41730         * modules/unictype/ctype-digit-tests (Files): Likewise.
41731         * modules/unictype/ctype-graph-tests (Files): Likewise.
41732         * modules/unictype/ctype-lower-tests (Files): Likewise.
41733         * modules/unictype/ctype-print-tests (Files): Likewise.
41734         * modules/unictype/ctype-punct-tests (Files): Likewise.
41735         * modules/unictype/ctype-space-tests (Files): Likewise.
41736         * modules/unictype/ctype-upper-tests (Files): Likewise.
41737         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
41738         * modules/unictype/decimal-digit-tests (Files): Likewise.
41739         * modules/unictype/digit-tests (Files): Likewise.
41740         * modules/unictype/mirror-tests (Files): Likewise.
41741         * modules/unictype/numeric-tests (Files): Likewise.
41742         * modules/unictype/property-alphabetic-tests (Files): Likewise.
41743         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
41744         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
41745         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
41746         Likewise.
41747         * modules/unictype/property-bidi-block-separator-tests (Files):
41748         Likewise.
41749         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
41750         Likewise.
41751         * modules/unictype/property-bidi-common-separator-tests (Files):
41752         Likewise.
41753         * modules/unictype/property-bidi-control-tests (Files): Likewise.
41754         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
41755         Likewise.
41756         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
41757         Likewise.
41758         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
41759         Likewise.
41760         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
41761         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
41762         Likewise.
41763         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
41764         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
41765         Likewise.
41766         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
41767         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
41768         * modules/unictype/property-bidi-segment-separator-tests (Files):
41769         Likewise.
41770         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
41771         * modules/unictype/property-byname-tests (Files): Likewise.
41772         * modules/unictype/property-combining-tests (Files): Likewise.
41773         * modules/unictype/property-composite-tests (Files): Likewise.
41774         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
41775         * modules/unictype/property-dash-tests (Files): Likewise.
41776         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
41777         * modules/unictype/property-default-ignorable-code-point-tests (Files):
41778         Likewise.
41779         * modules/unictype/property-deprecated-tests (Files): Likewise.
41780         * modules/unictype/property-diacritic-tests (Files): Likewise.
41781         * modules/unictype/property-extender-tests (Files): Likewise.
41782         * modules/unictype/property-format-control-tests (Files): Likewise.
41783         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
41784         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
41785         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
41786         * modules/unictype/property-hex-digit-tests (Files): Likewise.
41787         * modules/unictype/property-hyphen-tests (Files): Likewise.
41788         * modules/unictype/property-id-continue-tests (Files): Likewise.
41789         * modules/unictype/property-id-start-tests (Files): Likewise.
41790         * modules/unictype/property-ideographic-tests (Files): Likewise.
41791         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
41792         * modules/unictype/property-ids-trinary-operator-tests (Files):
41793         Likewise.
41794         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
41795         * modules/unictype/property-iso-control-tests (Files): Likewise.
41796         * modules/unictype/property-join-control-tests (Files): Likewise.
41797         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
41798         * modules/unictype/property-line-separator-tests (Files): Likewise.
41799         * modules/unictype/property-logical-order-exception-tests (Files):
41800         Likewise.
41801         * modules/unictype/property-lowercase-tests (Files): Likewise.
41802         * modules/unictype/property-math-tests (Files): Likewise.
41803         * modules/unictype/property-non-break-tests (Files): Likewise.
41804         * modules/unictype/property-not-a-character-tests (Files): Likewise.
41805         * modules/unictype/property-numeric-tests (Files): Likewise.
41806         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
41807         * modules/unictype/property-other-default-ignorable-code-point-tests
41808         (Files): Likewise.
41809         * modules/unictype/property-other-grapheme-extend-tests (Files):
41810         Likewise.
41811         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
41812         * modules/unictype/property-other-id-start-tests (Files): Likewise.
41813         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
41814         * modules/unictype/property-other-math-tests (Files): Likewise.
41815         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
41816         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
41817         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
41818         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
41819         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
41820         * modules/unictype/property-private-use-tests (Files): Likewise.
41821         * modules/unictype/property-punctuation-tests (Files): Likewise.
41822         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
41823         * modules/unictype/property-radical-tests (Files): Likewise.
41824         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
41825         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
41826         * modules/unictype/property-space-tests (Files): Likewise.
41827         * modules/unictype/property-terminal-punctuation-tests (Files):
41828         Likewise.
41829         * modules/unictype/property-test-tests (Files): Likewise.
41830         * modules/unictype/property-titlecase-tests (Files): Likewise.
41831         * modules/unictype/property-unassigned-code-value-tests (Files):
41832         Likewise.
41833         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
41834         * modules/unictype/property-uppercase-tests (Files): Likewise.
41835         * modules/unictype/property-variation-selector-tests (Files): Likewise.
41836         * modules/unictype/property-white-space-tests (Files): Likewise.
41837         * modules/unictype/property-xid-continue-tests (Files): Likewise.
41838         * modules/unictype/property-xid-start-tests (Files): Likewise.
41839         * modules/unictype/property-zero-width-tests (Files): Likewise.
41840         * modules/unictype/scripts-tests (Files): Likewise.
41841         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
41842         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
41843         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
41844         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
41845         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
41846         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
41847         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
41848         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
41849         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
41850         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
41851         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
41852         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
41853         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
41854         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
41855         * modules/uninorm/composition-tests (Files): Likewise.
41856         * modules/uninorm/decomposing-form-tests (Files): Likewise.
41857         * modules/uninorm/decomposition-tests (Files): Likewise.
41858         * modules/uninorm/filter-tests (Files): Likewise.
41859         * modules/uninorm/nfc-tests (Files): Likewise.
41860         * modules/uninorm/nfd-tests (Files): Likewise.
41861         * modules/uninorm/nfkc-tests (Files): Likewise.
41862         * modules/uninorm/nfkd-tests (Files): Likewise.
41863         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
41864         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
41865         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
41866         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
41867         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
41868         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
41869         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
41870         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
41871         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
41872         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
41873         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
41874         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
41875         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
41876         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
41877         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
41878         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
41879         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
41880         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
41881         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
41882         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
41883         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
41884         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
41885         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
41886         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
41887         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
41888         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
41889         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
41890         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
41891         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
41892         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
41893         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
41894         * modules/uniwidth/u8-width-tests (Files): Likewise.
41895         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
41896         * modules/uniwidth/u16-width-tests (Files): Likewise.
41897         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
41898         * modules/uniwidth/u32-width-tests (Files): Likewise.
41899         * modules/uniwidth/width-tests (Files): Likewise.
41900         * modules/unlink-tests (Files): Likewise.
41901         * modules/unsetenv-tests (Files): Likewise.
41902         * modules/usleep-tests (Files): Likewise.
41903         * modules/utimens-tests (Files): Likewise.
41904         * modules/utimensat-tests (Files): Likewise.
41905         * modules/vasnprintf-posix-tests (Files): Likewise.
41906         * modules/vasnprintf-tests (Files): Likewise.
41907         * modules/vasprintf-posix-tests (Files): Likewise.
41908         * modules/vasprintf-tests (Files): Likewise.
41909         * modules/vdprintf-posix-tests (Files): Likewise.
41910         * modules/vfprintf-posix-tests (Files): Likewise.
41911         * modules/vprintf-posix-tests (Files): Likewise.
41912         * modules/vsnprintf-posix-tests (Files): Likewise.
41913         * modules/vsnprintf-tests (Files): Likewise.
41914         * modules/vsprintf-posix-tests (Files): Likewise.
41915         * modules/wcrtomb-tests (Files): Likewise.
41916         * modules/wcsnrtombs-tests (Files): Likewise.
41917         * modules/wcsrtombs-tests (Files): Likewise.
41918         * modules/wctype-tests (Files): Likewise.
41919         * modules/wcwidth-tests (Files): Likewise.
41920         * modules/xmemdup0-tests (Files): Likewise.
41921         * modules/xprintf-posix-tests (Files): Likewise.
41922         * modules/xvasprintf-tests (Files): Likewise.
41923
41924 2009-12-24  Eric Blake  <ebb9@byu.net>
41925
41926         test-nanosleep: fix typo
41927         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
41928         patch.
41929         Reported by Bruno Haible.
41930
41931 2009-12-24  Bruno Haible  <bruno@clisp.org>
41932
41933         Reduce namespace pollution on glibc systems.
41934         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
41935         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
41936         systems.
41937         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
41938         <getopt.h> on glibc systems.
41939         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
41940         systems.
41941         * lib/fcntl.c: Include <unistd.h> here instead.
41942
41943 2009-12-24  Bruno Haible  <bruno@clisp.org>
41944
41945         * lib/stdlib.in.h (includes): Fix typo in today's commit.
41946
41947 2009-12-24  Eric Blake  <ebb9@byu.net>
41948
41949         tests: add signature checks
41950         * tests/signature.h (SIGNATURE_CHECK): New file.
41951         * modules/atexit-tests (Files): Use it.
41952         * modules/btowc-tests (Files): Likewise.
41953         * modules/canonicalize-lgpl-tests (Files): Likewise.
41954         * modules/ceilf-tests (Files): Likewise.
41955         * modules/ceill-tests (Files): Likewise.
41956         * modules/chown-tests (Files): Likewise.
41957         * modules/dprintf-posix-tests (Files): Likewise.
41958         * modules/dup2-tests (Files): Likewise.
41959         * modules/dup3-tests (Files): Likewise.
41960         * modules/duplocale-tests (Files): Likewise.
41961         * modules/fchdir-tests (Files): Likewise.
41962         * modules/fcntl-tests (Files): Likewise.
41963         * modules/fdopendir-tests (Files): Likewise.
41964         * modules/fflush-tests (Files): Likewise.
41965         * modules/flock-tests (Files): Likewise.
41966         * modules/floorf-tests (Files): Likewise.
41967         * modules/floorl-tests (Files): Likewise.
41968         * modules/fnmatch-tests (Files): Likewise.
41969         * modules/fopen-tests (Files): Likewise.
41970         * modules/fprintf-posix-tests (Files): Likewise.
41971         * modules/freopen-tests (Files): Likewise.
41972         * modules/frexp-nolibm-tests (Files): Likewise.
41973         * modules/frexp-tests (Files): Likewise.
41974         * modules/frexpl-nolibm-tests (Files): Likewise.
41975         * modules/frexpl-tests (Files): Likewise.
41976         * modules/fseek-tests (Files): Likewise.
41977         * modules/fseeko-tests (Files): Likewise.
41978         * modules/fsync-tests (Files): Likewise.
41979         * modules/ftell-tests (Files): Likewise.
41980         * modules/ftello-tests (Files): Likewise.
41981         * modules/futimens-tests (Files): Likewise.
41982         * modules/getaddrinfo-tests (Files): Likewise.
41983         * modules/getcwd-tests (Files): Likewise.
41984         * modules/getdelim-tests (Files): Likewise.
41985         * modules/getdtablesize-tests (Files): Likewise.
41986         * modules/getgroups-tests (Files): Likewise.
41987         * modules/gethostname-tests (Files): Likewise.
41988         * modules/getline-tests (Files): Likewise.
41989         * modules/getopt-posix-tests (Files): Likewise.
41990         * modules/gettimeofday-tests (Files): Likewise.
41991         * modules/glob-tests (Files): Likewise.
41992         * modules/iconv-tests (Files): Likewise.
41993         * modules/inet_ntop-tests (Files): Likewise.
41994         * modules/inet_pton-tests (Files): Likewise.
41995         * modules/isblank-tests (Files): Likewise.
41996         * modules/lchown-tests (Files): Likewise.
41997         * modules/ldexpl-tests (Files): Likewise.
41998         * modules/link-tests (Files): Likewise.
41999         * modules/linkat-tests (Files): Likewise.
42000         * modules/lseek-tests (Files): Likewise.
42001         * modules/lstat-tests (Files): Likewise.
42002         * modules/mbrtowc-tests (Files): Likewise.
42003         * modules/mbsinit-tests (Files): Likewise.
42004         * modules/mbsnrtowcs-tests (Files): Likewise.
42005         * modules/mbsrtowcs-tests (Files): Likewise.
42006         * modules/memchr-tests (Files): Likewise.
42007         * modules/memcmp-tests (Files): Likewise.
42008         * modules/memmem-tests (Files): Likewise.
42009         * modules/memrchr-tests (Files): Likewise.
42010         * modules/mkdir-tests (Files): Likewise.
42011         * modules/mkfifo-tests (Files): Likewise.
42012         * modules/mkfifoat-tests (Files): Likewise.
42013         * modules/mknod-tests (Files): Likewise.
42014         * modules/nanosleep-tests (Files): Likewise.
42015         * modules/nl_langinfo-tests (Files): Likewise.
42016         * modules/obstack-printf-tests (Files): Likewise.
42017         * modules/open-tests (Files): Likewise.
42018         * modules/openat-tests (Files): Likewise.
42019         * modules/perror-tests (Files): Likewise.
42020         * modules/pipe2-tests (Files): Likewise.
42021         * modules/poll-tests (Files): Likewise.
42022         * modules/popen-tests (Files): Likewise.
42023         * modules/posix_spawn-tests (Files): Likewise.
42024         * modules/posix_spawnp-tests (Files): Likewise.
42025         * modules/pread-tests (Files): Likewise.
42026         * modules/printf-posix-tests (Files): Likewise.
42027         * modules/pty-tests (Files): Likewise.
42028         * modules/random_r-tests (Files): Likewise.
42029         * modules/rawmemchr-tests (Files): Likewise.
42030         * modules/readlink-tests (Files): Likewise.
42031         * modules/remove-tests (Files): Likewise.
42032         * modules/rename-tests (Files): Likewise.
42033         * modules/renameat-tests (Files): Likewise.
42034         * modules/rmdir-tests (Files): Likewise.
42035         * modules/round-tests (Files): Likewise.
42036         * modules/roundf-tests (Files): Likewise.
42037         * modules/roundl-tests (Files): Likewise.
42038         * modules/select-tests (Files): Likewise.
42039         * modules/setenv-tests (Files): Likewise.
42040         * modules/sigaction-tests (Files): Likewise.
42041         * modules/sleep-tests (Files): Likewise.
42042         * modules/snprintf-posix-tests (Files): Likewise.
42043         * modules/snprintf-tests (Files): Likewise.
42044         * modules/sprintf-posix-tests (Files): Likewise.
42045         * modules/stat-tests (Files): Likewise.
42046         * modules/strcasestr-tests (Files): Likewise.
42047         * modules/strchrnul-tests (Files): Likewise.
42048         * modules/strerror-tests (Files): Likewise.
42049         * modules/strsignal-tests (Files): Likewise.
42050         * modules/strstr-tests (Files): Likewise.
42051         * modules/strtod-tests (Files): Likewise.
42052         * modules/strverscmp-tests (Files): Likewise.
42053         * modules/symlink-tests (Files): Likewise.
42054         * modules/symlinkat-tests (Files): Likewise.
42055         * modules/times-tests (Files): Likewise.
42056         * modules/trunc-tests (Files): Likewise.
42057         * modules/truncf-tests (Files): Likewise.
42058         * modules/truncl-tests (Files): Likewise.
42059         * modules/tsearch-tests (Files): Likewise.
42060         * modules/uname-tests (Files): Likewise.
42061         * modules/unlink-tests (Files): Likewise.
42062         * modules/unsetenv-tests (Files): Likewise.
42063         * modules/usleep-tests (Files): Likewise.
42064         * modules/utimensat-tests (Files): Likewise.
42065         * modules/vasprintf-tests (Files): Likewise.
42066         * modules/vdprintf-posix-tests (Files): Likewise.
42067         * modules/vfprintf-posix-tests (Files): Likewise.
42068         * modules/vprintf-posix-tests (Files): Likewise.
42069         * modules/vsnprintf-posix-tests (Files): Likewise.
42070         * modules/vsnprintf-tests (Files): Likewise.
42071         * modules/vsprintf-posix-tests (Files): Likewise.
42072         * modules/wcrtomb-tests (Files): Likewise.
42073         * modules/wcsnrtombs-tests (Files): Likewise.
42074         * modules/wcsrtombs-tests (Files): Likewise.
42075         * modules/wcwidth-tests (Files): Likewise.
42076         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
42077         * tests/test-isinf.c (isinf): Likewise.
42078         * tests/test-isnan.c (isnan): Likewise.
42079         * tests/test-signbit.c (signbit): Likewise.
42080         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
42081         declaration, either as macro or with correct signature.
42082         (select): Ensure function under test is declared with correct
42083         signature in correct header.
42084         * tests/test-atexit.c (atexit): Likewise.
42085         * tests/test-btowc.c (btowc): Likewise.
42086         * tests/test-canonicalize-lgpl.c (realpath)
42087         (canonicalize_file_name): Likewise.
42088         * tests/test-ceilf1.c (ceilf): Likewise.
42089         * tests/test-ceill.c (ceill): Likewise.
42090         * tests/test-chown.c (chown): Likewise.
42091         * tests/test-dprintf-posix.c (dprintf): Likewise.
42092         * tests/test-dup2.c (dup2): Likewise.
42093         * tests/test-dup3.c (dup3): Likewise.
42094         * tests/test-duplocale.c (duplocale): Likewise.
42095         * tests/test-fchdir.c (fchdir): Likewise.
42096         * tests/test-fchownat.c (fchownat): Likewise.
42097         * tests/test-fcntl.c (fcntl): Likewise.
42098         * tests/test-fdopendir.c (fdopendir): Likewise.
42099         * tests/test-fflush.c (fflush): Likewise.
42100         * tests/test-flock.c (flock): Likewise.
42101         * tests/test-floorf1.c (floorf): Likewise.
42102         * tests/test-floorl.c (floorl): Likewise.
42103         * tests/test-fnmatch.c (fnmatch): Likewise.
42104         * tests/test-fopen.c (fopen): Likewise.
42105         * tests/test-fprintf-posix.c (fprintf): Likewise.
42106         * tests/test-freopen.c (freopen): Likewise.
42107         * tests/test-frexp.c (frexp): Likewise.
42108         * tests/test-frexpl.c (frexpl): Likewise.
42109         * tests/test-fseek.c (fseek): Likewise.
42110         * tests/test-fseeko.c (fseeko): Likewise.
42111         * tests/test-fstatat.c (fstatat): Likewise.
42112         * tests/test-fsync.c (fsync): Likewise.
42113         * tests/test-ftell.c (ftell): Likewise.
42114         * tests/test-ftello.c (ftello): Likewise.
42115         * tests/test-futimens.c (futimens): Likewise.
42116         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
42117         (gai_strerror): Likewise.
42118         * tests/test-getcwd.c (getcwd): Likewise.
42119         * tests/test-getdelim.c (getdelim): Likewise.
42120         * tests/test-getdtablesize.c (getdtablesize): Likewise.
42121         * tests/test-getgroups.c (getgroups): Likewise.
42122         * tests/test-gethostname.c (gethostname): Likewise.
42123         * tests/test-getline.c (getline): Likewise.
42124         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
42125         Likewise.
42126         * tests/test-gettimeofday.c (gettimeofday): Likewise.
42127         * tests/test-glob.c (glob, globfree): Likewise.
42128         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
42129         * tests/test-inet_ntop.c (inet_ntop): Likewise.
42130         * tests/test-inet_pton.c (inet_pton): Likewise.
42131         * tests/test-isblank.c (isblank): Likewise.
42132         * tests/test-lchown.c (lchown): Likewise.
42133         * tests/test-ldexpl.c (ldexpl): Likewise.
42134         * tests/test-link.c (link): Likewise.
42135         * tests/test-linkat.c (linkat): Likewise.
42136         * tests/test-lseek.c (lseek): Likewise.
42137         * tests/test-lstat.c (lstat): Likewise.
42138         * tests/test-mbrtowc.c (mbrtowc): Likewise.
42139         * tests/test-mbsinit.c (mbsinit): Likewise.
42140         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
42141         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
42142         * tests/test-memchr.c (memchr): Likewise.
42143         * tests/test-memcmp.c (memcmp): Likewise.
42144         * tests/test-memmem.c (memmem): Likewise.
42145         * tests/test-memrchr.c (memrchr): Likewise.
42146         * tests/test-mkdir.c (mkdir): Likewise.
42147         * tests/test-mkdirat.c (mkdirat): Likewise.
42148         * tests/test-mkfifo.c (mkfifo): Likewise.
42149         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
42150         * tests/test-mknod.c (mknod): Likewise.
42151         * tests/test-nanosleep.c (nanosleep): Likewise.
42152         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
42153         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
42154         Likewise.
42155         * tests/test-open.c (open): Likewise.
42156         * tests/test-openat.c (openat): Likewise.
42157         * tests/test-perror.c (perror): Likewise.
42158         * tests/test-pipe2.c (pipe2): Likewise.
42159         * tests/test-poll.c (poll): Likewise.
42160         * tests/test-popen.c (popen, pclose): Likewise.
42161         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
42162         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
42163         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
42164         (posix_spawn_file_actions_destroy)
42165         (posix_spawn_file_actions_addclose)
42166         (posix_spawn_file_actions_addopen)
42167         (posix_spawn_file_actions_adddup2): Likewise.
42168         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
42169         * tests/test-pread.c (pread): Likewise.
42170         * tests/test-printf-posix.c (printf): Likewise.
42171         * tests/test-pty.c (openpty, forkpty): Likewise.
42172         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
42173         (random_r): Likewise.
42174         * tests/test-rawmemchr.c (rawmemchr): Likewise.
42175         * tests/test-readlink.c (readlink): Likewise.
42176         * tests/test-remove.c (remove): Likewise.
42177         * tests/test-rename.c (rename): Likewise.
42178         * tests/test-renameat.c (renameat): Likewise.
42179         * tests/test-rmdir.c (rmdir): Likewise.
42180         * tests/test-round1.c (round): Likewise.
42181         * tests/test-roundf1.c (roundf): Likewise.
42182         * tests/test-roundl.c (roundl): Likewise.
42183         * tests/test-setenv.c (setenv): Likewise.
42184         * tests/test-sigaction.c (sigaction): Likewise.
42185         * tests/test-sleep.c (sleep): Likewise.
42186         * tests/test-snprintf.c (snprintf): Likewise.
42187         * tests/test-sprintf-posix.c (sprintf): Likewise.
42188         * tests/test-stat.c (stat): Likewise.
42189         * tests/test-stpncpy.c (stpncpy): Likewise.
42190         * tests/test-strcasestr.c (strcasestr): Likewise.
42191         * tests/test-strchrnul.c (strchrnul): Likewise.
42192         * tests/test-strerror.c (strerror): Likewise.
42193         * tests/test-strsignal.c (strsignal): Likewise.
42194         * tests/test-strstr.c (strstr): Likewise.
42195         * tests/test-strtod.c (strtod): Likewise.
42196         * tests/test-strverscmp.c (strverscmp): Likewise.
42197         * tests/test-symlink.c (symlink): Likewise.
42198         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
42199         * tests/test-times.c (times): Likewise.
42200         * tests/test-trunc1.c (trunc): Likewise.
42201         * tests/test-truncf1.c (truncf): Likewise.
42202         * tests/test-truncl.c (truncl): Likewise.
42203         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
42204         Likewise.
42205         * tests/test-uname.c (uname): Likewise.
42206         * tests/test-unlink.c (unlink): Likewise.
42207         * tests/test-unlinkat.c (unlinkat): Likewise.
42208         * tests/test-unsetenv.c (unsetenv): Likewise.
42209         * tests/test-usleep.c (usleep): Likewise.
42210         * tests/test-utimensat.c (utimensat): Likewise.
42211         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
42212         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
42213         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
42214         * tests/test-vprintf-posix.c (vprintf): Likewise.
42215         * tests/test-vsnprintf.c (vsnprintf): Likewise.
42216         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
42217         * tests/test-wcrtomb.c (wcrtomb): Likewise.
42218         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
42219         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
42220         * tests/test-wcwidth.c (wcwidth): Likewise.
42221
42222         build: pull in conditional headers during GNULIB_POSIXCHECK
42223         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
42224         definitions from any conditionally-included headers.
42225         * lib/stdlib.in.h (includes): Likewise.
42226         * lib/unistd.in.h (includes): Likewise.
42227
42228 2009-12-24  Bruno Haible  <bruno@clisp.org>
42229
42230         * tests/test-argv-iter.c: Include header file being tested immediately
42231         after config.h.
42232         * tests/test-base64.c: Likewise.
42233         * tests/test-flock.c: Likewise.
42234         * tests/test-fsync.c: Likewise.
42235         * tests/test-getdate.c: Likewise.
42236         * tests/test-getndelim2.c: Likewise.
42237         * tests/test-isfinite.c: Likewise.
42238         * tests/test-isinf.c: Likewise.
42239         * tests/test-strerror.c: Likewise.
42240         * tests/test-strsignal.c: Likewise.
42241
42242 2009-12-23  Eric Blake  <ebb9@byu.net>
42243
42244         unistd: work around cygwin bug
42245         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
42246         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
42247         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
42248
42249 2009-12-23  Bruno Haible  <bruno@clisp.org>
42250
42251         localename: More tests.
42252         * tests/test-localename.c (SIZEOF): New macro.
42253         (categories): New variable.
42254         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
42255         test_locale_name_default): Add test w.r.t. thread locale.
42256         (test_locale_name_thread): New function.
42257         (main): Invoke it.
42258
42259         localename: Make aware of thread locale.
42260         * lib/localename.h (gl_locale_name_thread): New declaration.
42261         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
42262         behaviour with respect to thread locale.
42263         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
42264         <langinfo.h>, glthread/lock.h.
42265         (SIZE_BITS): New macro.
42266         (string_hash): New function.
42267         (struct hash_node): New type.
42268         (HASH_TABLE_SIZE): New macro.
42269         (struniq_hash_table, struniq_lock): New variables.
42270         (struniq): New function.
42271         (gl_locale_name_thread): New function.
42272         (gl_locale_name): Invoke it.
42273         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
42274         * modules/localename (Depends-on): Add lock.
42275         Reported by Mike Gran <spk121@yahoo.com>.
42276
42277 2009-12-23  Eric Blake  <ebb9@byu.net>
42278
42279         va-args: new module
42280         * modules/va-args: New file.
42281         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
42282         * MODULES.html.sh (Core language properties): Mention it.
42283
42284         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
42285         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
42286         named alias for __attribute__((__unused__)).
42287         * lib/chown.c: Update client.
42288         * lib/fchmodat.c: Likewise.
42289         * lib/fts.c: Likewise.
42290         * lib/getdate.y: Likewise.
42291         * lib/getgroups.c: Likewise.
42292         * lib/getopt.c: Likewise.
42293         * lib/getugroups.c: Likewise.
42294         * lib/mkdir.c: Likewise.
42295         * lib/mkfifo.c: Likewise.
42296         * lib/mkfifoat.c: Likewise.
42297         * lib/mknod.c: Likewise.
42298         * lib/mknodat.c: Likewise.
42299         * lib/readlink.c: Likewise.
42300         * lib/se-context.in.h: Likewise.
42301         * lib/se-selinux.in.h: Likewise.
42302         * lib/sockets.c: Likewise.
42303         * lib/symlink.c: Likewise.
42304         * lib/symlinkat.c: Likewise.
42305         * lib/unicodeio.c: Likewise.
42306         * lib/unistr.h: Likewise.
42307         * tests/test-areadlink.c: Likewise.
42308         * tests/test-areadlinkat.c: Likewise.
42309         * tests/test-filenamecat.c: Likewise.
42310         * tests/test-fseeko.c: Likewise.
42311         * tests/test-ftello.c: Likewise.
42312         * tests/test-getdate.c: Likewise.
42313         * tests/test-getgroups.c: Likewise.
42314         * tests/test-gethostname.c: Likewise.
42315         * tests/test-quotearg.c: Likewise.
42316         * tests/test-version-etc.c: Likewise.
42317         * tests/test-xalloc-die.c: Likewise.
42318         * tests/test-xfprintf-posix.c: Likewise.
42319         * tests/test-xprintf-posix.c: Likewise.
42320         * tests/test-xvasprintf.c: Likewise.
42321
42322         tests: avoid compiler warnings
42323         * tests/test-fcntl.c (main): Delete unused parameters.
42324         * tests/test-freopen-safer.c (main): Likewise.
42325         * tests/test-xalloc-die.c (main): Mark unused parameters.
42326         * tests/test-fseeko.c (main): Likewise.
42327         * tests/test-ftello.c (main): Likewise.
42328         * tests/test-nanosleep.c (main): Avoid declaration warning.
42329         * tests/test-sleep.c (main): Likewise.
42330         * tests/test-unsetenv.c (main): Silence warning about string
42331         literal.
42332         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
42333
42334 2009-12-23  Bruno Haible  <bruno@clisp.org>
42335
42336         * tests/test-localename.c (test_locale_name): New function, extracted
42337         from main. Also test mixed situations.
42338         (test_locale_name_posix, test_locale_name_environ,
42339         test_locale_name_default): New functions.
42340         (main): Invoke them all.
42341         * modules/localename-tests (configure.ac): Test for newlocale.
42342
42343 2009-12-23  Bruno Haible  <bruno@clisp.org>
42344
42345         unistd: Ensure getcwd gets declared before being overridden.
42346         * lib/unistd.in.h: Conditionally include <io.h>.
42347
42348 2009-12-22  Bruno Haible  <bruno@clisp.org>
42349
42350         wchar: Diagnose broken combination of glibc and gcc versions and flags.
42351         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
42352         (gl_WCHAR_H): Invoke it.
42353         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
42354         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
42355         Reported by Karl Berry <karl@freefriends.org>.
42356
42357 2009-12-22  Eric Blake  <ebb9@byu.net>
42358
42359         math, unistd: avoid redundant includes
42360         * lib/math.in.h (isnan): No need to re-include <math.h>.
42361         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
42362
42363         getsubopt: work around cygwin bug
42364         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
42365         avoid conflicting with system getsubopt.
42366         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
42367         bug.
42368
42369         getopt: synchronize from glibc
42370         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
42371         parameter order.  Adjust all callers.
42372         (_getopt_internal_r, main): Adjust quoting in error messages.
42373         Drop considerations for outdated POSIX 1003.2 error message.
42374         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
42375         callers.
42376         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
42377
42378         test-getopt: test stderr behavior
42379         * modules/getopt-posix-tests (Depends-on): Add dup2.
42380         * tests/test-getopt.c (ASSERT): Avoid stderr.
42381         (main): Move stderr to a temporary file.
42382         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
42383         Instead, add parameter to inform caller if output occurred.
42384         (test_getopt): Adjust all existing tests to expect silence, and
42385         add new tests of leading ":".
42386         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
42387         glibc shortcomings with leading "-:" or "+:" in optstring.
42388         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
42389         Likewise.
42390         * doc/posix-functions/getopt.texi (getopt): Likewise.
42391
42392         test-getopt: enhance test
42393         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
42394         supports optind=0.
42395         * tests/test-getopt.c (OPTIND_MIN): Move...
42396         * tests/test-getopt.h (OPTIND_MIN): ...here.
42397         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
42398         Require that optind=0 works, since modern BSD supports it in
42399         addition to optreset, and since coreutils expects it.
42400         (test_getopt_long_only): New test.
42401         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
42402         glibc shortcomings with 'W;', and enforcement of optind=0.
42403         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
42404         Likewise.
42405
42406 2009-12-21  Bruno Haible  <bruno@clisp.org>
42407
42408         localename: Improvements for MacOS X and Cygwin.
42409         * lib/localename.h (gl_locale_name_environ): New declaration.
42410         * lib/localename.c (gl_locale_name_environ): New function, extracted from
42411         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
42412         (gl_locale_name_posix): Invoke it.
42413         (gl_locale_name_default): Add comments. Use Windows native API also on
42414         Cygwin.
42415
42416 2009-12-21  Bruno Haible  <bruno@clisp.org>
42417
42418         Update list of Win32 locale ids.
42419         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
42420         (LANG_SAMI): Renamed from LANG_SAAMI.
42421         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
42422         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
42423         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
42424         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
42425         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
42426         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
42427         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
42428         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
42429         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
42430         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
42431         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
42432         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
42433         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
42434         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
42435         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
42436         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
42437         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
42438         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
42439         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
42440         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
42441         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
42442         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
42443         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
42444         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
42445         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
42446         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
42447         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
42448         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
42449         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
42450         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
42451         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
42452         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
42453         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
42454         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
42455         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
42456         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
42457         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
42458         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
42459         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
42460         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
42461         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
42462         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
42463         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
42464         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
42465         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
42466         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
42467         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
42468         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
42469         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
42470         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
42471         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
42472         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
42473         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
42474         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
42475         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
42476         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
42477         Add more languages and countries for Sami, Sorbian. Add more countries
42478         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
42479         for Pashto. Change country for Syriac, Tswana.
42480
42481 2009-12-21  Eric Blake  <ebb9@byu.net>
42482
42483         test-utimens: avoid spurious failure
42484         * tests/test-chown.h (nap): Factor...
42485         * tests/nap.h: ...into new file.
42486         * tests/test-lchown.h (nap): Avoid duplication.
42487         * tests/test-utimens-common.h (nap): Use shared implementation,
42488         necessary on file systems with 1-second resolution.
42489         * modules/chown-tests (Files): Include new file.
42490         * modules/fdutimensat-tests (Files): Likewise.
42491         * modules/futimens-tests (Files): Likewise.
42492         * modules/lchown-tests (Files): Likewise.
42493         * modules/openat-tests (Files): Likewise.
42494         * modules/utimens-tests (Files): Likewise.
42495         * modules/utimensat-tests (Files): Likewise.
42496
42497 2009-12-19  Eric Blake  <ebb9@byu.net>
42498
42499         futimens, utimensat: work around Linux bug
42500         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
42501         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
42502         * lib/utimensat.c (rpl_utimensat): Work around it.
42503         * lib/futimens.c (rpl_futimens): Adjust comment.
42504
42505         utimens: work around Linux ctime bug
42506         * lib/utimens.c (detect_ctime_bug): New helper function.
42507         (update_timespec): Differentiate between workaround needed for
42508         this bug vs. what is needed for systems that lack utimensat.
42509         (fdutimens, lutimens): Work around bug.
42510
42511         utimens: check for ctime update
42512         * tests/test-utimens-common.h (check_ctime): Define.
42513         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
42514         * tests/test-futimens.h (test_futimens): Likewise.
42515         * tests/test-lutimens.h (test_lutimens): Likewise.
42516         * doc/posix-functions/futimens.texi (futimens): Document the bug.
42517         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
42518
42519 2009-12-19  Bruno Haible  <bruno@clisp.org>
42520
42521         dprintf-posix: Check against memory leak fixed on 2009-12-15.
42522         * tests/test-dprintf-posix2.sh: New file.
42523         * tests/test-dprintf-posix2.c: New file.
42524         * modules/dprintf-posix-tests (Files): Add them.
42525         (configure.ac): Check for getrlimit and setrlimit.
42526         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
42527
42528 2009-12-19  Bruno Haible  <bruno@clisp.org>
42529
42530         fprintf-posix: Check against memory leak fixed on 2009-12-15.
42531         * tests/test-fprintf-posix3.sh: New file.
42532         * tests/test-fprintf-posix3.c: New file.
42533         * modules/fprintf-posix-tests (Files): Add them.
42534         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
42535
42536 2009-12-19  Eric Blake  <ebb9@byu.net>
42537
42538         dirfd: fix prototype
42539         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
42540         * lib/dirfd.c (dirfd): Likewise.
42541
42542         canonicalize: reduce memory usage
42543         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
42544         allocation to size.
42545         Reported by Solar Designer <solar@openwall.com>.
42546
42547 2009-12-19  Bruno Haible  <bruno@clisp.org>
42548
42549         New module attribute 'Applicability'.
42550         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
42551         * gnulib-tool: New option --extract-applicability.
42552         (func_usage): Document it.
42553         (sed_extract_prog): Recognize it.
42554         (func_get_applicability): New function.
42555         (func_import): Generalize handling of 'link-warning' module.
42556         * modules/link-warning (Applicability): New section.
42557         * modules/arg-nonnull (Applicability): New section.
42558         Repoted by Simon Josefsson <simon@josefsson.org>.
42559
42560 2009-12-19  Bruno Haible  <bruno@clisp.org>
42561
42562         fflush: tweak
42563         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
42564         * lib/fseeko.c (rpl_fseeko): Likewise.
42565
42566 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
42567
42568         * lib/gl_list.h: Fix typo in comment.
42569
42570 2009-12-16  Eric Blake  <ebb9@byu.net>
42571
42572         fcntl: use to simplify other modules
42573         * modules/cloexec (Depends-on): Add fcntl.
42574         * modules/fchdir (Depends-on): Likewise.
42575         * modules/fd-safer-flag (Depends-on): Likewise.
42576         * modules/unistd-safer (Depends-on): Likewise.
42577         * modules/dup3 (configure.ac): Set module indicator.
42578         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
42579         missing.
42580         * lib/fchdir.c (_gl_register_dup): Fix comment.
42581         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
42582         * lib/dup-safer.c (dup_safer): Likewise.
42583         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
42584         * lib/dup3.c (dup3): Likewise.
42585         * tests/test-fchdir.c (main): Enhance test.
42586         Fixes a dup_cloexec bug reported by Ondřej Vašík.
42587
42588         fcntl: port portions of fcntl to mingw
42589         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
42590         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
42591         replacement for mingw.
42592         * modules/fcntl (Description): Update.
42593         (Depends-on): Add dup2.
42594         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
42595         * modules/fcntl-h (Makefile.am): Substitute it.
42596         * lib/fcntl.in.h (fcntl): Update declaration.
42597         (F_DUPFD, F_GETFD): New macros, when needed.
42598         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
42599         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
42600         * tests/test-fcntl.c (check_flags, main): Enhance test for items
42601         we now guarantee.
42602
42603         fcntl: work around cygwin bug in F_DUPFD
42604         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
42605         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
42606         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
42607         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
42608         * doc/posix-functions/fcntl.texi (fcntl): Document it.
42609
42610         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
42611         * modules/fcntl (Files): List new files.
42612         (configure.ac): Run a test.
42613         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
42614         * lib/fcntl.c (rpl_fcntl): Likewise.
42615         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
42616         (gl_FCNTL_H): Always replace fcntl.h.
42617         * modules/fcntl-h (Makefile.am): Substitute witnesses.
42618         * lib/fcntl.in.h (fcntl): Declare replacement.
42619         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
42620         needed, plus a witness.
42621         * doc/posix-functions/fcntl.texi (fcntl): Document this.
42622         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
42623         * tests/test-fcntl.c: New file.
42624         * modules/fcntl-tests: Likewise.
42625
42626         binary-io: avoid potential compilation warning
42627         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
42628         directives.
42629
42630         fflush: avoid compilation error on NetBSD
42631         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
42632         between off_t and fpos_t, since the latter is sometimes a struct.
42633         * lib/fseeko.c (rpl_fseeko): Likewise.
42634         Reported by Alexander Nasonov <alnsn@yandex.ru>.
42635
42636 2009-12-15  Eric Blake  <ebb9@byu.net>
42637
42638         fcntl-h, stdio, sys_ioctl: fix declarations
42639         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
42640         function must not take arguments.
42641         * lib/sys_ioctl.in.h (ioctl): Likewise.
42642         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
42643         (open): Add a link warning.
42644
42645 2009-12-15  Jim Meyering  <meyering@redhat.com>
42646
42647         areadlink, areadlink-with-size: relax license to LGPLv2+
42648         * modules/areadlink (License): Relax to LGPLv2+.
42649         * modules/areadlink-with-size (License): Likewise.
42650
42651 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
42652             Bruno Haible  <bruno@clisp.org>
42653
42654         *printf: Fix memory leak.
42655         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
42656         * lib/vfprintf.c (vfprintf): Likewise.
42657         * lib/dprintf.c (dprintf): Likewise.
42658         * lib/vdprintf.c (vdprintf): Likewise.
42659
42660 2009-12-14  Eric Blake  <ebb9@byu.net>
42661
42662         accept4: adjust module dependencies
42663         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
42664
42665         utimens: one more try at avoiding compiler warning
42666         * lib/utimens.c (lutimens): Lower scope of result.
42667
42668 2009-12-13  Bruno Haible  <bruno@clisp.org>
42669
42670         Move the malloc checking from module 'list' to new module 'xlist'.
42671         * modules/xlist: New file.
42672         * lib/gl_xlist.h: New file.
42673         * lib/gl_xlist.c: New file.
42674         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
42675         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
42676         gl_list_add_last, gl_list_add_before, gl_list_add_after,
42677         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
42678         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
42679         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
42680         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
42681         gl_sortedlist_nx_add): New declarations.
42682         (struct gl_list_implementation): Rename and change methods accordingly.
42683         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
42684         (gl_list_nx_create): Renamed from gl_list_create.
42685         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
42686         (gl_list_nx_set_at): Renamed from gl_list_set_at.
42687         (gl_list_nx_add_first): Renamed from gl_list_add_first.
42688         (gl_list_nx_add_last): Renamed from gl_list_add_last.
42689         (gl_list_nx_add_before): Renamed from gl_list_add_before.
42690         (gl_list_nx_add_after): Renamed from gl_list_add_after.
42691         (gl_list_nx_add_at): Renamed from gl_list_add_at.
42692         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
42693         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
42694         gl_list_create_empty.
42695         (gl_list_nx_create): Renamed from gl_list_create.
42696         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
42697         (gl_list_nx_set_at): Renamed from gl_list_set_at.
42698         (gl_list_nx_add_first): Renamed from gl_list_add_first.
42699         (gl_list_nx_add_last): Renamed from gl_list_add_last.
42700         (gl_list_nx_add_before): Renamed from gl_list_add_before.
42701         (gl_list_nx_add_after): Renamed from gl_list_add_after.
42702         (gl_list_nx_add_at): Renamed from gl_list_add_at.
42703         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
42704         * lib/gl_array_list.c: Don't include xalloc.h.
42705         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
42706         NULL upon out-of-memory.
42707         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
42708         out-of-memory.
42709         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
42710         Change return type to 'int'.
42711         (gl_array_nx_set_at): Renamed from gl_array_set_at.
42712         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
42713         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
42714         upon out-of-memory.
42715         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
42716         upon out-of-memory.
42717         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
42718         upon out-of-memory.
42719         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
42720         upon out-of-memory.
42721         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
42722         out-of-memory.
42723         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
42724         Update.
42725         (gl_array_list_implementation): Update.
42726         * lib/gl_carray_list.c: Don't include xalloc.h.
42727         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
42728         Return NULL upon out-of-memory.
42729         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
42730         out-of-memory.
42731         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
42732         Change return type to 'int'.
42733         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
42734         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
42735         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
42736         upon out-of-memory.
42737         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
42738         upon out-of-memory.
42739         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
42740         out-of-memory.
42741         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
42742         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
42743         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
42744         Update.
42745         (gl_carray_list_implementation): Update.
42746         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
42747         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
42748         gl_linked_create_empty. Return NULL upon out-of-memory.
42749         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
42750         out-of-memory.
42751         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
42752         Change return type to 'int'. Return -1 upon out-of-memory.
42753         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
42754         out-of-memory.
42755         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
42756         upon out-of-memory.
42757         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
42758         upon out-of-memory.
42759         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
42760         NULL upon out-of-memory.
42761         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
42762         upon out-of-memory.
42763         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
42764         out-of-memory.
42765         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
42766         Update.
42767         * lib/gl_linked_list.c: Don't include xalloc.h.
42768         (gl_linked_list_implementation): Update.
42769         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
42770         (add_to_bucket): Change return type to 'int'.
42771         (gl_linkedhash_list_implementation): Update.
42772         * lib/gl_anytree_list1.h (free_subtree): New function.
42773         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
42774         gl_tree_create_empty. Return NULL upon out-of-memory.
42775         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
42776         Change return type to 'int'. Return -1 upon out-of-memory.
42777         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
42778         out-of-memory.
42779         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
42780         (gl_tree_remove_node): New function, moved here from
42781         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
42782         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
42783         Update.
42784         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
42785         malloc, not xmalloc. Return NULL upon out-of-memory.
42786         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
42787         out-of-memory.
42788         (gl_tree_remove_node_from_tree): New function, extracted from
42789         gl_tree_remove_node.
42790         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
42791         upon out-of-memory.
42792         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
42793         out-of-memory.
42794         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
42795         upon out-of-memory.
42796         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
42797         upon out-of-memory.
42798         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
42799         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
42800         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_avltree_list.c: Don't include xalloc.h. Include
42815         gl_anytree_list1.h before gl_anyavltree_list2.h.
42816         (gl_avltree_list_implementation): Update.
42817         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
42818         gl_anytree_list1.h before gl_anyavltree_list2.h.
42819         (gl_rbtree_list_implementation): Update.
42820         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
42821         Change return type to 'int'. Return -1 upon out-of-memory. Use
42822         __builtin_expect.
42823         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
42824         (gl_avltreehash_list_implementation): Update.
42825         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
42826         (gl_rbtreehash_list_implementation): Update.
42827         * modules/array-list (Depends-on): Remove xalloc.
42828         * modules/carray-list (Depends-on): Likewise.
42829         * modules/linked-list (Depends-on): Likewise.
42830         * modules/linkedhash-list (Depends-on): Likewise.
42831         * modules/avltree-list (Depends-on): Likewise.
42832         * modules/rbtree-list (Depends-on): Likewise.
42833         * modules/avltreehash-list (Depends-on): Likewise.
42834         * modules/rbtreehash-list (Depends-on): Likewise.
42835
42836         * modules/xsublist: New file.
42837         * lib/gl_xsublist.h: New file.
42838         * lib/gl_xsublist.c: New file.
42839         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
42840         (gl_sublist_nx_create): New declaration.
42841         * lib/gl_sublist.c: Don't include xalloc.h.
42842         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
42843         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
42844         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
42845         Change return type to 'int'. Return -1 upon out-of-memory.
42846         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
42847         upon out-of-memory.
42848         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
42849         NULL upon out-of-memory.
42850         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
42851         upon out-of-memory.
42852         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
42853         NULL upon out-of-memory.
42854         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
42855         NULL upon out-of-memory.
42856         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
42857         upon out-of-memory.
42858         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
42859         (gl_sublist_list_implementation): Update.
42860         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
42861         upon out-of-memory.
42862         * modules/sublist (Depends-on): Remove xalloc.
42863
42864         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
42865         * tests/test-carray_list.c: Likewise.
42866         * tests/test-linked_list.c: Likewise.
42867         * tests/test-linkedhash_list.c: Likewise.
42868         * tests/test-avltree_list.c: Likewise.
42869         * tests/test-rbtree_list.c: Likewise.
42870         * tests/test-avltreehash_list.c: Likewise.
42871         * tests/test-rbtreehash_list.c: Likewise.
42872         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
42873         * modules/carray-list-tests (Makefile.am): Likewise.
42874         * modules/linked-list-tests (Makefile.am): Likewise.
42875         * modules/linkedhash-list-tests (Makefile.am): Likewise.
42876         * modules/avltree-list-tests (Makefile.am): Likewise.
42877         * modules/rbtree-list-tests (Makefile.am): Likewise.
42878         * modules/avltreehash-list-tests (Makefile.am): Likewise.
42879         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
42880
42881         * NEWS: Mention the changes.
42882
42883         * lib/clean-temp.c: Include gl_xlist.h.
42884         * modules/clean-temp (Depends-on): Add xlist.
42885
42886         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
42887         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
42888
42889         * tests/test-array_oset.c: Include gl_xlist.h.
42890         * modules/array-oset-tests (Depends-on): Add xlist.
42891
42892         Reported by José E. Marchesi <jemarch@gnu.org>.
42893
42894 2009-12-13  Bruno Haible  <bruno@clisp.org>
42895
42896         Move the malloc checking from module 'oset' to new module 'xoset'.
42897         * modules/xoset: New file.
42898         * lib/gl_xoset.h: New file.
42899         * lib/gl_xoset.c: New file.
42900         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
42901         declarations.
42902         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
42903         (struct gl_oset_implementation): Rename and change methods accordingly.
42904         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
42905         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
42906         'int'. Mark as __warn_unused_result__.
42907         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
42908         gl_oset_create_empty.
42909         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
42910         'int'.
42911         * lib/gl_array_oset.c: Don't include xalloc.h.
42912         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
42913         malloc, not xmalloc.
42914         (grow): Change return type to 'int'. Don't call xalloc_die.
42915         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
42916         to 'int'.
42917         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
42918         'int'.
42919         (gl_array_oset_implementation): Update.
42920         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
42921         gl_tree_create_empty.
42922         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
42923         'int'.
42924         * lib/gl_avltree_oset.c: Don't include xalloc.h.
42925         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
42926         xmalloc.
42927         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
42928         not xmalloc.
42929         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
42930         xmalloc.
42931         (gl_avltree_oset_implementation): Update.
42932         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
42933         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
42934         xmalloc.
42935         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
42936         not xmalloc.
42937         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
42938         xmalloc.
42939         (gl_rbtree_oset_implementation): Update.
42940         * modules/array-oset (Depends-on): Remove xalloc.
42941         * modules/avltree-oset (Depends-on): Likewise.
42942         * modules/rbtree-oset (Depends-on): Likewise.
42943         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
42944         * tests/test-avltree_oset.c: Likewise.
42945         * tests/test-rbtree_oset.c: Likewise.
42946         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
42947         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
42948         * modules/rbtree-oset-tests (Makefile.am): Likewise.
42949         * NEWS: Mention the change.
42950
42951 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
42952
42953         maint.mk: allow a project to override release-prep commands
42954         * top/maint.mk (alpha, beta, stable): Move release-preparatory
42955         commands into a new rule.
42956         (release-prep): New rule.
42957         (release-prep-hook): New overridable variable.
42958
42959 2009-12-13  Bruno Haible  <bruno@clisp.org>
42960
42961         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
42962
42963 2009-12-13  Jim Meyering  <meyering@redhat.com>
42964
42965         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
42966         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
42967
42968 2009-12-12  Bruno Haible  <bruno@clisp.org>
42969
42970         duplocale: Tweak.
42971         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
42972
42973 2009-12-12  Karl Berry  <karl@gnu.org>
42974
42975         * config/srclist.txt (strtoll.c): tab changes, no more sync.
42976
42977 2009-12-12  Bruno Haible  <bruno@clisp.org>
42978
42979         * m4/po.m4: Undo incorrect untabification.
42980
42981 2009-12-12  Bruno Haible  <bruno@clisp.org>
42982
42983         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
42984         * modules/c-strtod (Depends-on): Add locale.
42985         * modules/c-strtold (Depends-on): Likewise.
42986
42987 2009-12-12  Bruno Haible  <bruno@clisp.org>
42988
42989         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
42990
42991 2009-12-11  Eric Blake  <ebb9@byu.net>
42992
42993         setenv: relax requirement in light of POSIX ruling
42994         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
42995         not NULL.
42996         * tests/test-setenv.c (main): Relax test.
42997         * tests/test-unsetenv.c (main): Likewise.
42998         * doc/posix-functions/setenv.texi (setenv): Document this.
42999         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
43000
43001 2009-12-11  Bruno Haible  <bruno@clisp.org>
43002
43003         New module 'fd-safer-flag'.
43004         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
43005         * lib/dup-safer.c (dup_safer_flag): Remove function.
43006         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
43007         * lib/fd-safer.c (fd_safer_flag): Remove function.
43008         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
43009         * modules/cloexec (configure.ac): Drop indicator macro.
43010         * modules/fd-safer-flag: New file.
43011         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
43012         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
43013         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
43014
43015 2009-12-11  Bruno Haible  <bruno@clisp.org>
43016
43017         Tests for module 'nl_langinfo'.
43018         * modules/nl_langinfo-tests: New file.
43019         * tests/test-nl_langinfo.sh: New file.
43020         * tests/test-nl_langinfo.c: New file.
43021
43022         New module 'nl_langinfo'.
43023         * lib/nl_langinfo.c: New file.
43024         * m4/nl_langinfo.m4: New file.
43025         * modules/nl_langinfo: New file.
43026         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
43027
43028 2009-12-11  Bruno Haible  <bruno@clisp.org>
43029
43030         Tests for module 'langinfo'.
43031         * modules/langinfo-tests: New file.
43032         * tests/test-langinfo.c: New file.
43033
43034         New module 'langinfo'.
43035         * lib/langinfo.in.h: New file.
43036         * m4/langinfo_h.m4: New file.
43037         * modules/langinfo: New file.
43038         * doc/posix-headers/langinfo.texi: Mention the new module.
43039
43040 2009-12-11  Bruno Haible  <bruno@clisp.org>
43041
43042         * lib/config.charset: Untabify.
43043
43044 2009-12-11  Bruno Haible  <bruno@clisp.org>
43045
43046         * modules/unistd-safer (configure.ac): Drop indicator macro.
43047
43048 2009-12-11  Bruno Haible  <bruno@clisp.org>
43049
43050         Move pipe2-safer code to its own file.
43051         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
43052         * lib/pipe-safer.c (pipe2_safer): Remove function.
43053         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
43054         (Makefile.am): Add it to lib_SOURCES.
43055
43056 2009-12-10  Bruno Haible  <bruno@clisp.org>
43057
43058         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
43059
43060 2009-12-10  Bruno Haible  <bruno@clisp.org>
43061
43062         Declare which arguments expect non-NULL values, for GCC and clang.
43063         * build-aux/arg-nonnull.h: New file.
43064         * modules/arg-nonnull: New file.
43065         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
43066         (inet_ntop, inet_pton): Use it.
43067         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
43068         (closedir, dirfd, opendir, scandir, alphasort): Use it.
43069         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
43070         (open, openat): Use it.
43071         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
43072         (fnmatch): Use it.
43073         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
43074         (getopt, getopt_long, getopt_long_only): Use it.
43075         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
43076         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
43077         Use it.
43078         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
43079         (iconv_open): Use it.
43080         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
43081         (strtoimax, strtoumax): Use it.
43082         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
43083         (duplocale): Use it.
43084         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
43085         (frexp, frexpl): Use it.
43086         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
43087         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
43088         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
43089         (tsearch, tfind, tdelete, twalk): Use it.
43090         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
43091         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
43092         sigpending): Use it.
43093         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
43094         (posix_spawn, posix_spawnp, posix_spawnattr_init,
43095         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
43096         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
43097         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
43098         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
43099         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
43100         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
43101         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
43102         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
43103         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
43104         Use it.
43105         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
43106         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
43107         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
43108         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
43109         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
43110         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
43111         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
43112         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
43113         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
43114         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
43115         strtoull, unsetenv): Use it.
43116         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
43117         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
43118         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
43119         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
43120         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
43121         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
43122         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
43123         (strcasecmp, strncasecmp): Use it.
43124         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
43125         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
43126         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
43127         rpl_setsockopt): Use it.
43128         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
43129         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
43130         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
43131         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
43132         (gettimeofday): Use it.
43133         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
43134         (times): Use it.
43135         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
43136         (uname): Use it.
43137         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
43138         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
43139         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
43140         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
43141         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
43142         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
43143         unlinkat, write): Use it.
43144         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
43145         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
43146         * lib/argv-iter.h: Include arg-nonnull.h.
43147         (_ATTRIBUTE_NONNULL_): Remove macro.
43148         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
43149         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
43150         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
43151         optimization.
43152         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
43153         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
43154         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
43155         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
43156         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
43157         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
43158         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
43159         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
43160         * modules/arpa_inet (Depends-on): Add arg-nonnull.
43161         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
43162         * modules/dirent (Depends-on): Add arg-nonnull.
43163         (Makefile.am): Insert arg-nonnull.h into dirent.h.
43164         * modules/fcntl-h (Depends-on): Add arg-nonnull.
43165         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
43166         * modules/fnmatch (Depends-on): Add arg-nonnull.
43167         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
43168         * modules/getopt-posix (Depends-on): Add arg-nonnull.
43169         (Makefile.am): Insert arg-nonnull.h into getopt.h.
43170         * modules/glob (Depends-on): Add arg-nonnull.
43171         (Makefile.am): Insert arg-nonnull.h into glob.h.
43172         * modules/iconv_open (Depends-on): Add arg-nonnull.
43173         (Makefile.am): Insert arg-nonnull.h into iconv.h.
43174         * modules/inttypes (Depends-on): Add arg-nonnull.
43175         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
43176         * modules/locale (Depends-on): Add arg-nonnull.
43177         (Makefile.am): Insert arg-nonnull.h into locale.h.
43178         * modules/math (Depends-on): Add arg-nonnull.
43179         (Makefile.am): Insert arg-nonnull.h into math.h.
43180         * modules/netdb (Depends-on): Add arg-nonnull.
43181         (Makefile.am): Insert arg-nonnull.h into netdb.h.
43182         * modules/search (Depends-on): Add arg-nonnull.
43183         (Makefile.am): Insert arg-nonnull.h into search.h.
43184         * modules/signal (Depends-on): Add arg-nonnull.
43185         (Makefile.am): Insert arg-nonnull.h into signal.h.
43186         * modules/spawn (Depends-on): Add arg-nonnull.
43187         (Makefile.am): Insert arg-nonnull.h into spawn.h.
43188         * modules/stdio (Depends-on): Add arg-nonnull.
43189         (Makefile.am): Insert arg-nonnull.h into stdio.h.
43190         * modules/stdlib (Depends-on): Add arg-nonnull.
43191         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
43192         * modules/string (Depends-on): Add arg-nonnull.
43193         (Makefile.am): Insert arg-nonnull.h into string.h.
43194         * modules/strings (Depends-on): Add arg-nonnull.
43195         (Makefile.am): Insert arg-nonnull.h into strings.h.
43196         * modules/sys_socket (Depends-on): Add arg-nonnull.
43197         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
43198         * modules/sys_stat (Depends-on): Add arg-nonnull.
43199         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
43200         * modules/sys_time (Depends-on): Add arg-nonnull.
43201         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
43202         * modules/sys_times (Depends-on): Add arg-nonnull.
43203         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
43204         * modules/sys_utsname (Depends-on): Add arg-nonnull.
43205         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
43206         * modules/time (Depends-on): Add arg-nonnull.
43207         (Makefile.am): Insert arg-nonnull.h into time.h.
43208         * modules/unistd (Depends-on): Add arg-nonnull.
43209         (Makefile.am): Insert arg-nonnull.h into unistd.h.
43210         * modules/wchar (Depends-on): Add arg-nonnull.
43211         (Makefile.am): Insert arg-nonnull.h into wchar.h.
43212         * modules/argv-iter (Depends-on): Add arg-nonnull.
43213         * tests/test-canonicalize.c (null_ptr): New function.
43214         (main): Use it.
43215         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
43216         (main): Use it.
43217         * tests/test-memmem.c (null_ptr): New function.
43218         (main): Use it.
43219         Reported by Jim Meyering.
43220
43221 2009-12-10  Bruno Haible  <bruno@clisp.org>
43222
43223         Use spaces for indentation, not tabs.
43224         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
43225         * m4/*.m4: Untabify.
43226         * build-aux/*.h: Untabify.
43227         * tests/**/*.[hc]: Untabify.
43228         * README: New section "Indent with spaces, not TABs", based on
43229         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
43230         * NEWS: Mention the change.
43231
43232 2009-12-10  Bruno Haible  <bruno@clisp.org>
43233
43234         pty test: Fix link error.
43235         * modules/pty-tests (Makefile.am): Add the default LDADD value to
43236         test_pty_LDADD.
43237
43238 2009-12-07  Simon Josefsson  <simon@josefsson.org>
43239
43240         * modules/pty: New file.
43241         * modules/pty-tests: New file.
43242         * m4/pty.m4: New file.
43243         * tests/test-pty.c: New file.
43244         * doc/glibc-headers/pty.texi: Modified.
43245         * doc/glibc-functions/forkpty.texi: Modified.
43246         * doc/glibc-functions/openpty.texi: Modified.
43247
43248 2009-12-10  Bruno Haible  <bruno@clisp.org>
43249
43250         Avoid syntax error in C++ mode.
43251         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
43252
43253 2009-12-10  Bruno Haible  <bruno@clisp.org>
43254
43255         Use sed with option -e.
43256         * gnulib-tool (func_version, func_emit_copyright_notice,
43257         func_emit_initmacro_end, func_import, func_create_testdir): Pass
43258         option -e to sed.
43259         * modules/link-warning (Makefile.am): Likewise.
43260
43261 2009-12-10  Jim Meyering  <meyering@redhat.com>
43262
43263         mgetgroups: do not write bytes beyond end of malloc'd buffer
43264         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
43265         username, we call getgroups with a one-element-shorter buffer,
43266         but still told it the length was original, max_n_groups.
43267
43268 2009-12-09  Eric Blake  <ebb9@byu.net>
43269
43270         cloexec: relax license
43271         * modules/cloexec (Maintainer): Add myself.
43272         (License): Use LGPL, not GPL.
43273
43274         link-warning: optimize generation
43275         * modules/link-warning (Makefile.am): Reduce process usage.
43276
43277 2009-12-09  Bruno Haible  <bruno@clisp.org>
43278
43279         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
43280         workaround was added on 2009-11-17.
43281
43282 2009-12-09  Jim Meyering  <meyering@redhat.com>
43283             Bruno Haible  <bruno@clisp.org>
43284
43285         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
43286         * modules/link-warning (Makefile.am): Make the comment-removing sed
43287         command more robust in the face of bootstrap-prepended comment lines.
43288
43289 2009-12-09  Bruno Haible  <bruno@clisp.org>
43290
43291         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
43292         most one group.
43293
43294 2009-12-09  Simon Josefsson <simon@josefsson.org>
43295             Bruno Haible  <bruno@clisp.org>
43296
43297         * build-aux/link-warning.h: Add copyright notice.
43298         * modules/link-warning (Makefile.am): Generate link-warning.h from
43299         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
43300         * NEWS: Mention change in link-warning module.
43301         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
43302         * modules/dirent (Makefile.am): Add dependency to dirent.h.
43303         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
43304         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
43305         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
43306         * modules/math (Makefile.am): Add dependency to math.h.
43307         * modules/search (Makefile.am): Add dependency to search.h.
43308         * modules/signal (Makefile.am): Add dependency to signal.h.
43309         * modules/spawn (Makefile.am): Add dependency to spawn.h.
43310         * modules/stdio (Makefile.am): Add dependency to stdio.h.
43311         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
43312         * modules/string (Makefile.am): Add dependency to string.h.
43313         * modules/strings (Makefile.am): Add dependency to strings.h.
43314         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
43315         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
43316         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
43317         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
43318         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
43319         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
43320         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
43321         * modules/unistd (Makefile.am): Add dependency to unistd.h.
43322         * modules/wchar (Makefile.am): Add dependency to wchar.h.
43323
43324 2009-12-09  Bruno Haible  <bruno@clisp.org>
43325
43326         fchdir: Optimize away rpl_fstat when possible.
43327         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
43328         REPLACE_OPEN_DIRECTORY.
43329         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
43330
43331 2009-12-09  Bruno Haible  <bruno@clisp.org>
43332
43333         * lib/fchdir.c: Update comment.
43334
43335 2009-12-09  Bruno Haible  <bruno@clisp.org>
43336
43337         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
43338
43339 2009-12-08  Eric Blake  <ebb9@byu.net>
43340
43341         fchdir: avoid memory leak on re-registration.
43342         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
43343
43344 2009-12-08  Jim Meyering  <meyering@redhat.com>
43345
43346         init.sh: avoid Solaris 10 /bin/sh portability problem
43347         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
43348         sourced script:
43349           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
43350           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
43351           bar
43352         tests/init.sh relied on that, accepting a --set-path=DIR argument,
43353         and two tests used that idiom.
43354         * tests/init.sh: Update suggested usage comments.
43355         (path_prepend_): New function, to be used in place
43356         of the --src-path=DIR option.
43357         (setup_): Move PATH-prepending code into path_prepend_.
43358         * tests/test-pread.sh: Adapt to new usage.
43359         * tests/test-xalloc-die.sh: Likewise.
43360
43361 2009-12-08  Simon Josefsson  <simon@josefsson.org>
43362
43363         * doc/gnulib.texi (Glibc pty.h): Add.
43364         * doc/glibc-functions/forkpty.texi: Add.
43365         * doc/glibc-functions/openpty.texi: Add.
43366         Suggested by Bruno Haible.
43367
43368 2009-12-08  Eric Blake  <ebb9@byu.net>
43369
43370         fchdir: fix logic bugs
43371         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
43372         * tests/test-fchdir.c (main): Enhance test.
43373         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
43374         is in use.
43375
43376         dup2: fix logic bugs
43377         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
43378         REPLACE_DUP2 to decide when rpl_dup2 is needed.
43379         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
43380         exists.
43381         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
43382
43383 2009-12-07  Eric Blake  <ebb9@byu.net>
43384
43385         unlink: fix m4 detection
43386         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
43387
43388         unistd-safer: add unit test
43389         * modules/unistd-safer-tests: New file.
43390         * tests/test-dup-safer.c: Likewise.
43391         * tests/test-cloexec.c (setmode): Avoid compiler warning.
43392         * tests/test-dup2.c (setmode): Likewise.
43393         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
43394
43395         cloexec: preserve text vs. binary across dup_cloexec
43396         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
43397         mode.
43398         * modules/dup2-tests (Depends-on): Add binary-io.
43399         * modules/cloexec-tests (Depends-on): Likewise.
43400         * tests/test-dup2.c (setmode, is_mode): New helpers.
43401         (main): Add tests that translation mode is preserved.
43402         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
43403         Reported by Bruno Haible.
43404
43405         mgetgroups: reduce duplicate listings
43406         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
43407         resulting array.
43408         * tests/test-chown.h (test_chown): Simplify client.
43409         * tests/test-lchown.h (test_lchown): Likewise.
43410
43411 2009-12-06  Bruno Haible  <bruno@clisp.org>
43412
43413         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
43414         value.
43415
43416 2009-12-06  Bruno Haible  <bruno@clisp.org>
43417
43418         * lib/progname.c: Include stdio.h, stdlib.h.
43419         (set_program_name): Reject a NULL argument.
43420
43421 2009-12-05  Eric Blake  <ebb9@byu.net>
43422
43423         pipe2-safer: new module
43424         * modules/pipe2-safer: New file.
43425         * lib/unistd-safer.h (pipe2_safer): New prototype.
43426         * lib/unistd--.h (pipe2): New wrapper.
43427         * lib/pipe-safer.c (pipe2_safer): New function.
43428         * modules/pipe (Depends-on): Add pipe2-safer.
43429         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
43430
43431         stdlib-safer: preserve cloexec flag for mkostemp[s]
43432         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
43433         fd_safer_flag.
43434
43435         unistd-safer: allow preservation of cloexec status via flag
43436         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
43437         prototypes.
43438         * lib/dup-safer.c (dup_safer_flag): New function.
43439         * lib/fd-safer.c (fd_safer_flag): Likewise.
43440         * modules/cloexec (configure.ac): Set witness.
43441
43442         test-dup2: enhance test
43443         * modules/dup2-tests (Depends-on): Add cloexec.
43444         * tests/test-dup2.c (main): Enhance test.
43445
43446         cloexec: add dup_cloexec
43447         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
43448         header and comments.
43449         * lib/cloexec.c (set_cloexec_flag): Add comments.
43450         (dup_cloexec): New function, with mingw implementation borrowed
43451         from...
43452         * lib/w32spawn.h (dup_noinherit): ...here.
43453         * modules/execute (Depends-on): Add cloexec.
43454         * modules/pipe (Depends-on): Likewise.
43455         * modules/cloexec (Depends-on): Add dup2.
43456         * modules/cloexec-tests (Files): New file.
43457         * tests/test-cloexec.c: Likewise.
43458
43459         test-xalloc-die: fix test for mingw
43460         * modules/xalloc-die-tests (Files): Add tests/init.sh.
43461         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
43462         directory and .exe suffix off argv[0] output.
43463
43464         test-fseeko: fix test for mingw
43465         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
43466         than undefining fseek, so test will pass on mingw.
43467
43468 2009-12-05  Bruno Haible  <bruno@clisp.org>
43469
43470         * lib/progname.h (set_program_name): Clarify specification.
43471         * lib/progname.c (set_program_name): Likewise.
43472         Reported by Jim Meyering.
43473
43474 2009-12-05  Jim Meyering  <meyering@redhat.com>
43475
43476         maint.mk: backslash-escape parens in default regexp
43477         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
43478         backslash-escape the literal parentheses.
43479
43480         maint.mk: news-date-check: use grep -E
43481         * top/maint.mk (today): Define a Make variable, not a...
43482         (news-date-check): ...shell variable.
43483         (news-date-regexp): Use the Make variable.
43484         Use grep's -E option.  Change the failing diagnostic to mention
43485         the variable, $(news-date-regexp).
43486
43487 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
43488
43489         maintainer-makefile: allow customization of NEWS entry format
43490         * top/maint.mk (news-date-regexp): New overridable variable.
43491         (news-date-check): Use it.
43492
43493 2009-12-04  Eric Blake  <ebb9@byu.net>
43494
43495         mgetgroups: add xgetgroups, and avoid ENOSYS failures
43496         * lib/mgetgroups.h (xgetgroups): New prototype.
43497         * lib/mgetgroups.c (xgetgroups): New wrapper.
43498         (mgetgroups): Handle ENOSYS.
43499         * modules/mgetgroups (Depends-on): Add realloc.
43500         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
43501
43502         mgetgroups: avoid argument promotion issues with -1
43503         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
43504         for invalid gid_t.
43505         * tests/test-chown.h (getegid, test_chown): Likewise.
43506         * tests/test-lchown.h (getegid, test_lchown): Likewise.
43507
43508 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
43509
43510         exclude: Fix header file problems.
43511         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
43512
43513 2009-12-01  Jim Meyering  <meyering@redhat.com>
43514
43515         fts: fts_open: do not let an empty string cause immediate failure
43516         This is required in support of GNU rm, for which the command
43517         "rm A '' B" must process and remove both A and B, in spite of
43518         the empty string argument.
43519         * lib/fts.c (fts_open): Do not let the presence of an empty string
43520         cause fts_open to fail immediately.  Most fts-using tools must be
43521         able to process all arguments, in order, and can be expected to
43522         diagnose such arguments themselves.
43523
43524 2009-11-30  Eric Blake  <ebb9@byu.net>
43525
43526         utimens: fix compilation error
43527         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
43528         Declare variable at right scope.
43529
43530 2009-11-29  Jim Meyering  <meyering@redhat.com>
43531
43532         bootstrap: handle perl-5.11's changed --version output
43533         * build-aux/bootstrap (get_version): Handle perl separately,
43534         since perl-5.11's --version output is different.
43535
43536 2009-11-28  Jim Meyering  <meyering@redhat.com>
43537
43538         userspec: depend on the inttostr module, too
43539         * modules/userspec (Depends-on): Add inttostr.
43540
43541         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
43542         * lib/userspec.c (parse_with_separator): Do not accept a user ID
43543         number of MAXUID when it evaluates to (uid_t) -1.
43544         Likewise for group ID.  Reported by Matt McCutchen in
43545         <http://savannah.gnu.org/bugs/?28113>
43546
43547         userspec: reformat to use spaces, not TABs
43548         * lib/userspec.c: Expand TABs to spaces.
43549         Add Emacs' "indent-tabs-mode: nil" hint.
43550
43551 2009-11-27  Eric Blake  <ebb9@byu.net>
43552
43553         getopt-gnu: flush out another BSD bug
43554         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
43555         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
43556         flush out BSD bug.
43557         * tests/test-getopt.h (test_getopt): End lists with NULL.
43558         * tests/test-getopt_long.h (test_getopt_long): Likewise.
43559         (test_getopt_long_posix): Enhance test.
43560         * modules/getopt-posix-tests (Depends-on): Add stdbool.
43561         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
43562         getopt-gnu.
43563         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
43564         Likewise.
43565
43566 2009-11-27  Simon Josefsson  <simon@josefsson.org>
43567
43568         * modules/idpriv-droptemp-tests (Notice): Fix text.
43569
43570 2009-11-27  Jim Meyering  <meyering@redhat.com>
43571
43572         test-xalloc-die: avoid spurious failure due to libtool argv difference
43573         In a libtool-enabled project, this test would fail due to a difference
43574         in the emitted program name, e.g.,
43575         -test-xalloc-die: memory exhausted
43576         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
43577         Use program to avoid that.
43578         * modules/xalloc-die-tests (Depends-on): Add progname.
43579         * tests/test-xalloc-die.c: Include progname.h".
43580         (program_name): Remove decl.
43581         (main): Call set_program_name.
43582         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
43583
43584 2009-11-26  Richard Jones  <rjones@redhat.com>
43585
43586         w32sock: leave win32 error in place.
43587         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
43588
43589 2009-11-26  Eric Blake  <ebb9@byu.net>
43590
43591         init.sh: suggest to use skip_ and fail_ functions in comments
43592         * tests/init.sh: Add a sentence.
43593
43594 2009-11-25  Bruno Haible  <bruno@clisp.org>
43595
43596         init.sh: add documentation in comments
43597         * tests/init.sh: Add some developer and user documentation.
43598
43599 2009-11-26  Jim Meyering  <meyering@redhat.com>
43600
43601         init.sh: accommodate even those who specify bogus srcdir manually
43602         * tests/init.sh: Normally, srcdir is guaranteed by automake and
43603         configure-time tests to be sanitized, so that there is no need to
43604         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
43605         (with no double quotes) suffices.  However, since tests may be
43606         invoked manually, and since you may explicitly set srcdir to the
43607         name of a directory containing spaces, do quote its uses here.
43608         * tests/test-pread.sh: Likewise.
43609         Suggested by Bruno Haible.
43610
43611         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
43612         * tests/test-pread.sh: Write no data into the pipe, because
43613         test-pread actually reads none.  This avoids a diagnostic,
43614         "bash: echo: write error: Broken pipe", that arises in the unusual
43615         event something is ignoring SIGPIPE, and might be interpreted
43616         as some sort of failure.  Reported by Bruno Haible.
43617
43618 2009-11-25  Jim Meyering  <meyering@redhat.com>
43619
43620         test-pread: cover failure with ESPIPE and EINVAL
43621         * tests/test-pread.c (main): Test for failure, too.
43622         * tests/test-pread.sh: Invoke with stdin on a pipe.
43623         Suggested by Eric Blake.
43624
43625         pread: improvement and fix
43626         * modules/pread (Depends-on): Depend on lseek, for portability to
43627         e.g., mingw.  Suggested by Eric Blake.
43628         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
43629
43630         unistd.in.h: correct declaration of pread
43631         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
43632         Reported by Richard W.M. Jones.
43633
43634         test-pread.sh: distribute the test script
43635         * modules/pread-tests (Files): Include test-pread.sh.
43636
43637         test-pread.sh: clean up
43638         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
43639         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
43640         That is unnecessary, since it's always ".".
43641         Suggestion from Eric Blake.
43642
43643         test-pread.sh: make executable
43644         * tests/test-pread.sh: Set executable bit.
43645         Reported by Eric Blake.
43646
43647         correct typo in test-pread.sh
43648         * tests/test-pread.sh: Add #! line.
43649
43650         test pread
43651         * tests/test-pread.c: New file.
43652         * tests/test-pread.sh: Likewise.
43653         * modules/pread-tests: Likewise.
43654
43655         pread: new module
43656         * modules/pread: New file.
43657         * lib/unistd.in.h (pread): Define/declare.
43658         * lib/pread.c (pread): New file.
43659         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
43660         * modules/unistd (Makefile.am): Substitute witnesses.
43661         * doc/posix-functions/pread.texi (pread): Update.
43662         * MODULES.html.sh: Add pread.
43663
43664 2009-11-25  Jim Meyering  <meyering@redhat.com>
43665
43666         tests/init.sh: new file to be used via most *.sh tests
43667         * tests/init.sh: New file.
43668
43669 2009-11-25  Eric Blake  <ebb9@byu.net>
43670
43671         utimens: work around older Linux failure with symlinks
43672         * lib/utimens.c (lutimensat_works_really): New variable.
43673         (fdutimens, lutimens): Use it to manage kernels that support
43674         nanosecond times on files, but not on symlinks.
43675         Reported by Ondřej Vašík.
43676
43677         utimes: fix configure grammar
43678         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
43679
43680 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
43681
43682         regex: Fix fastmap for multibyte character ranges.
43683         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
43684         characters when a multibyte character range is included.
43685
43686 2009-11-22  Andy Wingo  <wingo@pobox.com>
43687
43688         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
43689         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
43690
43691 2009-11-24  Bruno Haible  <bruno@clisp.org>
43692
43693         doc: Most *_l functions exist in MacOS X 10.5.
43694         * doc/posix-functions/duplocale.texi: Update platforms list.
43695         * doc/posix-functions/freelocale.texi: Likewise.
43696         * doc/posix-functions/newlocale.texi: Likewise.
43697         * doc/posix-functions/uselocale.texi: Likewise.
43698         * doc/posix-functions/isalnum_l.texi: Likewise.
43699         * doc/posix-functions/isalpha_l.texi: Likewise.
43700         * doc/posix-functions/isblank_l.texi: Likewise.
43701         * doc/posix-functions/iscntrl_l.texi: Likewise.
43702         * doc/posix-functions/isdigit_l.texi: Likewise.
43703         * doc/posix-functions/isgraph_l.texi: Likewise.
43704         * doc/posix-functions/islower_l.texi: Likewise.
43705         * doc/posix-functions/isprint_l.texi: Likewise.
43706         * doc/posix-functions/ispunct_l.texi: Likewise.
43707         * doc/posix-functions/isspace_l.texi: Likewise.
43708         * doc/posix-functions/isupper_l.texi: Likewise.
43709         * doc/posix-functions/iswalnum_l.texi: Likewise.
43710         * doc/posix-functions/iswalpha_l.texi: Likewise.
43711         * doc/posix-functions/iswblank_l.texi: Likewise.
43712         * doc/posix-functions/iswcntrl_l.texi: Likewise.
43713         * doc/posix-functions/iswctype_l.texi: Likewise.
43714         * doc/posix-functions/iswdigit_l.texi: Likewise.
43715         * doc/posix-functions/iswgraph_l.texi: Likewise.
43716         * doc/posix-functions/iswlower_l.texi: Likewise.
43717         * doc/posix-functions/iswprint_l.texi: Likewise.
43718         * doc/posix-functions/iswpunct_l.texi: Likewise.
43719         * doc/posix-functions/iswspace_l.texi: Likewise.
43720         * doc/posix-functions/iswupper_l.texi: Likewise.
43721         * doc/posix-functions/iswxdigit_l.texi: Likewise.
43722         * doc/posix-functions/isxdigit_l.texi: Likewise.
43723         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
43724         * doc/posix-functions/strcasecmp_l.texi: Likewise.
43725         * doc/posix-functions/strcoll_l.texi: Likewise.
43726         * doc/posix-functions/strfmon_l.texi: Likewise.
43727         * doc/posix-functions/strftime_l.texi: Likewise.
43728         * doc/posix-functions/strncasecmp_l.texi: Likewise.
43729         * doc/posix-functions/strxfrm_l.texi: Likewise.
43730         * doc/posix-functions/tolower_l.texi: Likewise.
43731         * doc/posix-functions/toupper_l.texi: Likewise.
43732         * doc/posix-functions/towctrans_l.texi: Likewise.
43733         * doc/posix-functions/towlower_l.texi: Likewise.
43734         * doc/posix-functions/towupper_l.texi: Likewise.
43735         * doc/posix-functions/wcscoll_l.texi: Likewise.
43736         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
43737         * doc/posix-functions/wctrans_l.texi: Likewise.
43738         * doc/posix-functions/wctype_l.texi: Likewise.
43739         * doc/glibc-functions/strptime_l.texi: Likewise.
43740         * doc/glibc-functions/strtod_l.texi: Likewise.
43741         * doc/glibc-functions/strtof_l.texi: Likewise.
43742         * doc/glibc-functions/strtol_l.texi: Likewise.
43743         * doc/glibc-functions/strtold_l.texi: Likewise.
43744         * doc/glibc-functions/strtoll_l.texi: Likewise.
43745         * doc/glibc-functions/strtoul_l.texi: Likewise.
43746         * doc/glibc-functions/strtoull_l.texi: Likewise.
43747         * doc/glibc-functions/wcsftime_l.texi: Likewise.
43748         * doc/glibc-functions/wcstod_l.texi: Likewise.
43749         * doc/glibc-functions/wcstof_l.texi: Likewise.
43750         * doc/glibc-functions/wcstol_l.texi: Likewise.
43751         * doc/glibc-functions/wcstold_l.texi: Likewise.
43752         * doc/glibc-functions/wcstoll_l.texi: Likewise.
43753         * doc/glibc-functions/wcstoul_l.texi: Likewise.
43754         * doc/glibc-functions/wcstoull_l.texi: Likewise.
43755
43756 2009-11-24  Bruno Haible  <bruno@clisp.org>
43757
43758         duplocale: Fix logic bug.
43759         * lib/duplocale.c: Don't include <langinfo.h>.
43760         (_NL_LOCALE_NAME): Remove macro.
43761         (rpl_duplocale): Use setlocale instead of nl_langinfo.
43762         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
43763
43764 2009-11-23  Jim Meyering  <meyering@redhat.com>
43765
43766         test-update-copyright: don't hard-code /usr/bin/perl
43767         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
43768         perl to print the current year.  Gilles Espinasse reported that
43769         the replaced use of perl was hard-coded as /usr/bin/perl.
43770
43771 2009-11-23  Bruno Haible  <bruno@clisp.org>
43772
43773         duplocale: Add support for glibc 2.3.x.
43774         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
43775
43776 2009-11-22  Bruno Haible  <bruno@clisp.org>
43777
43778         vasnprintf: Tiny optimization.
43779         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
43780         MacOS X.
43781
43782 2009-11-22  Bruno Haible  <bruno@clisp.org>
43783
43784         Tests for module 'duplocale'.
43785         * modules/duplocale-tests: New file.
43786         * tests/test-duplocale.c: New file.
43787
43788         New module 'duplocale'.
43789         * m4/duplocale.m4: New file.
43790         * lib/locale.in.h (duplocale): New declaration.
43791         * lib/duplocale.c: New file.
43792         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
43793         gl_LOCALE_H_DEFAULTS): New macros.
43794         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
43795         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
43796         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
43797         REPLACE_DUPLOCALE.
43798         * modules/duplocale: New file.
43799         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
43800
43801 2009-11-22  Bruno Haible  <bruno@clisp.org>
43802
43803         * modules/locale-tests (configure.ac): Test for newlocale function.
43804         * tests/test-locale.c: When the system has extended locale functions,
43805         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
43806
43807         locale: Make locale_t available when possible.
43808         * lib/locale.in.h: Include <xlocale.h> when it exists.
43809         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
43810         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
43811         * modules/locale (Depends-on): Add extensions.
43812         (Makefile.am): Also substitute HAVE_XLOCALE_H.
43813         * doc/posix-headers/locale.texi: Document the problem with locale_t.
43814
43815 2009-11-22  Bruno Haible  <bruno@clisp.org>
43816
43817         Add comments.
43818         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
43819         invocation.
43820         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
43821         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
43822         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
43823
43824 2009-11-22  Bruno Haible  <bruno@clisp.org>
43825
43826         error: account for the possibility of freopen (stdout).
43827         * lib/error.c: Include <unistd.h>.
43828         (flush_stdout): New function, extracted from error and error_at_line.
43829         Determine stdout's fd dynamically.
43830         (error, error_at_line): Invoke flush_stdout.
43831         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
43832         * modules/error (Depends-on): Add unistd.
43833
43834 2009-11-22  Bruno Haible  <bruno@clisp.org>
43835
43836         diffseq: Add comment.
43837         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
43838
43839 2009-11-22  Jim Meyering  <meyering@redhat.com>
43840
43841         c-stack: avoid defining an unused static function
43842         * lib/c-stack.c (find_stack_direction): Do not define this function
43843         when it will not be used.
43844
43845         diffseq: avoid spurious gcc warnings
43846         * lib/diffseq.h (IF_LINT2): Define.
43847         (compareseq): Use it to initialize two members of "part".
43848         This avoids two used-uninitialized warnings.
43849
43850 2009-11-21  Jim Meyering  <meyering@redhat.com>
43851
43852         c-stack: avoid "ignoring return value of `write'" warning
43853         * lib/c-stack.c: Include "ignore-value.h".
43854         (die): Explicitly ignore each write return value.
43855         * modules/c-stack (Depends-on): Add ignore-value.
43856
43857 2009-11-21  Bruno Haible  <bruno@clisp.org>
43858
43859         diffseq: reduce scope of variable 'best'.
43860         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
43861         variable, earlier used for two different purposes.
43862
43863 2009-11-21  Jim Meyering  <meyering@redhat.com>
43864
43865         diffseq: remove useless assignment to "best"
43866         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
43867         assignment.  At that point "best" is already guaranteed to be zero.
43868
43869 2009-11-20  Eric Blake  <ebb9@byu.net>
43870
43871         build: mention ftp redirector in release announcements
43872         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
43873         values that used to come from cfg.mk; mention FTP redirect URL.
43874         * build-aux/announce-gen: Mention the mirror list.
43875         Suggested by Karl Berry.
43876
43877         nanosleep: improve port to mingw
43878         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
43879         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
43880         LIB_NANOSLEEP, but only when needed.
43881         * modules/select (Link): Document LIBSOCKET.
43882         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
43883         enough.
43884
43885         nanosleep: work around cygwin bug
43886         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
43887         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
43888         bug.
43889         (getnow): Delete, not needed.
43890         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
43891         LIB_CLOCK_GETTIME.
43892         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
43893         clock-time, gettime.
43894         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
43895         bug.
43896         * modules/nanosleep-tests: New test.
43897         * tests/test-nanosleep.c: New file.
43898
43899         sleep: work around cygwin bug
43900         * lib/sleep.c (rpl_sleep): Work around the bug.
43901         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
43902         (gl_PREREQ_SLEEP): Delete unused macro.
43903         * modules/sleep (Depends-on): Add verify.
43904         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
43905         * modules/unistd (Makefile.am): Substitute witness.
43906         * lib/unistd.in.h (sleep): Update prototype.
43907         * doc/posix-functions/sleep.texi (sleep): Document the bug.
43908         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
43909         * modules/sleep-tests (Depends-on): Check for alarm.
43910
43911 2009-11-20  Jim Meyering  <meyering@redhat.com>
43912
43913         maint.mk: improve sc_prohibit_magic_number_exit
43914         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
43915         so it does not match uses like System.exit(1).
43916         Add comments showing how to correct all offenders.
43917
43918 2009-11-19  Eric Blake  <ebb9@byu.net>
43919
43920         xalloc-die-tests: add missing library
43921         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
43922
43923         test-xvasprintf: silence compiler warnings
43924         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
43925         empty string from gcc.
43926
43927 2009-11-19  Jim Meyering  <meyering@redhat.com>
43928
43929         xfreopen: new module, from coreutils
43930         * modules/xfreopen: New module.
43931         * lib/xfreopen.c: New file.
43932         * lib/xfreopen.h: New file.
43933         * MODULES.html.sh (File stream based Input/Output"): Add it.
43934
43935 2009-11-19  Eric Blake  <ebb9@byu.net>
43936
43937         manywarnings: depend on warnings
43938         * modules/manywarnings (Depends-on): Add warnings.
43939
43940         build: avoid compiler warnings
43941         * lib/select.c (rpl_select): Delete unused variable.
43942         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
43943
43944 2009-11-18  Eric Blake  <ebb9@byu.net>
43945
43946         tests: avoid false negative with --with-packager
43947         * tests/test-version-etc.sh: Discard packager information.
43948         * tests/test-argp-version-etc-1.sh: Likewise.
43949         Reported by Mike Frysinger.
43950
43951         utimens: fix regression on Solaris
43952         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
43953         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
43954         can only change fd timestamps via futimesat.  Instead, use an
43955         additional witness macro to avoid BSD bug.
43956         Reported by Jim Meyering.
43957
43958 2009-11-17  Eric Blake  <ebb9@byu.net>
43959
43960         usleep: use it to simplify tests
43961         * modules/stat-time-tests (Depends-on): Add usleep.
43962         (configure.ac): Drop usleep check.
43963         * modules/chown-tests (Depends-on, configure.ac): Likewise.
43964         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
43965         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
43966         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
43967         * modules/openat-tests (Depends-on, configure.ac): Likewise.
43968         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
43969         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
43970         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
43971         Likewise.
43972         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
43973         * tests/test-lchown.h (nap): Likewise.
43974         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
43975         * tests/test-stat-time.c (nap): Likewise.
43976         * tests/test-utimens-common.h (nap): Update comments.
43977
43978         usleep: new module
43979         * modules/usleep: New file.
43980         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
43981         * lib/usleep.c (usleep): Likewise.
43982         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
43983         * modules/unistd (Makefile.am): Substitute witnesses.
43984         * lib/unistd.in.h (usleep): Add declaration.
43985         * doc/pastposix-functions/usleep.texi (usleep): Document this.
43986         * MODULES.html.sh (Date and time): Likewise.
43987         * modules/usleep-tests (Depends-on): New test.
43988         * tests/test-usleep.c: New file.
43989
43990         chown: work around OpenBSD bug
43991         * lib/chown.c (rpl_chown): Work around the bug.
43992         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
43993         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
43994         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
43995         * modules/chown (Depends-on): Add stdbool.
43996         * modules/lchown (Depends-on): Likewise.
43997         * doc/posix-functions/chown.texi (chown): Document the bug.
43998         * doc/posix-functions/lchown.texi (lchown): Likewise.
43999         * tests/test-lchown.h (test_chown): Relax test.
44000
44001         mkstemp: avoid conflict with C++ keyword template
44002         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
44003         * lib/mkostemp.c (mkostemp): Likewise.
44004         * lib/mkostemps.c (mkostemps): Likewise.
44005         * lib/mkstemp.c (mkstemp): Likewise.
44006         * lib/mkstemps.c (mkstemps): Likewise.
44007
44008         xalloc-die-tests: optimize
44009         * tests/test-xalloc-die.sh: Reduce number of processes.
44010
44011 2009-11-17  Simon Josefsson  <simon@josefsson.org>
44012
44013         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
44014         patch from ludo@gnu.org (Ludovic Courtès).
44015
44016 2009-11-17  Jim Meyering  <meyering@redhat.com>
44017
44018         version-etc: use proper license string
44019         * modules/version-etc (License): Use LGPL, not LGPLv3+.
44020         * modules/version-etc-fsf: Likewise.
44021
44022 2009-11-17  Simon Josefsson  <simon@josefsson.org>
44023
44024         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
44025         printed to stdout.  Deal with EOL differences.
44026
44027 2009-11-17  Eric Blake  <ebb9@byu.net>
44028
44029         unsetenv: work around Solaris bug
44030         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
44031         * lib/unsetenv.c (rpl_unsetenv): Work around it.
44032         Reported by Jim Meyering.
44033
44034         vasnprintf: avoid compiler warnings
44035         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
44036         variables.
44037         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
44038
44039 2009-11-17  Simon Josefsson  <simon@josefsson.org>
44040
44041         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
44042         settings since xalloc-die is no longer the self test,
44043         xalloc-die.sh is.
44044
44045 2009-11-17  Jim Meyering  <meyering@redhat.com>
44046
44047         test-xalloc-die.sh: make the code agree with the commit log
44048         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
44049         at the end, just in case you happen to have a test-xalloc-die
44050         program in some other PATH directory.
44051
44052         test-xalloc-die.sh: fix a portability bug
44053         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
44054         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
44055         Otherwise, argv[0] (as often seen in diagnostics) would be too
44056         system-dependent, sometimes with, and sometimes without the leading "./".
44057
44058         version-etc-fsf: relax license to LGPLv3+
44059         * modules/version-etc-fsf (License): Relax license.
44060
44061 2009-11-16  Eric Blake  <ebb9@byu.net>
44062
44063         xalloc-die-tests: avoid printing null pointer
44064         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
44065         shell script.
44066         * tests/test-xalloc-die.c (program_name): Declare.
44067         * tests/test-xalloc-die.sh (tmpfiles): New file.
44068
44069         setenv, unsetenv: work around various bugs
44070         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
44071         (setenv) [HAVE_SETENV]: Work around bugs.
44072         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
44073         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
44074         for bugs.
44075         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
44076         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
44077         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
44078         * modules/stdlib (Makefile.am): Update substitutions.
44079         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
44080         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
44081         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
44082         * modules/setenv-tests: New test.
44083         * modules/unsetenv-tests: Likewise.
44084         * tests/test-setenv.c: New file.
44085         * tests/test-unsetenv.c: Likewise.
44086
44087 2009-11-16  Jim Meyering  <meyering@redhat.com>
44088
44089         version-etc: relax license to LGPLv3+
44090         * modules/version-etc (License): Relax license.
44091
44092         better AC_REQUIRE expanded-before-required-warning avoidance
44093         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
44094         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
44095         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
44096         which is no longer needed.
44097
44098 2009-11-16  Eric Blake  <ebb9@byu.net>
44099
44100         test-freading: clean up temporary file
44101         * tests/test-freading.c (main): Remove file on success, and use
44102         ASSERT more liberally.
44103         Reported by Jim Meyering.
44104
44105 2009-11-16  Jim Meyering  <meyering@redhat.com>
44106
44107         avoid new AC_REQUIRE expanded-before-required warnings
44108         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
44109         merely using it.
44110         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
44111         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
44112
44113 2009-11-15  Simon Josefsson  <simon@josefsson.org>
44114
44115         * tests/test-xalloc-die.c: New file.
44116         * modules/xalloc-die-tests: New file.
44117         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
44118         XFAIL_TESTS so it can be appended by modules.
44119
44120 2009-11-15  Simon Josefsson  <simon@josefsson.org>
44121
44122         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
44123         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
44124
44125 2009-11-14  Eric Blake  <ebb9@byu.net>
44126
44127         fnmatch: avoid compiler warning
44128         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
44129         to silence compiler warning about mismatch signedness in ?:.
44130         Reported by Robert Millan.
44131
44132         intprops: add double-inclusion guard
44133         * lib/intprops.h: Allow idempotent includes.
44134         Suggested by Bruce Korb.
44135
44136         openat: detect Solaris fchownat bug
44137         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
44138         penalizing glibc chownat when only lchownat is broken.
44139         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
44140         trailing slash bugs.
44141         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
44142         * modules/openat-tests (Files): Include more files.
44143         (Depends-on): Add mgetgroups, sleep, stat-time.
44144         (configure.ac): Add additional checks.
44145         (Makefile.am): Build new test.
44146         * tests/test-fchownat.c: New file.
44147
44148         lchown: detect Solaris and FreeBSD bug
44149         * lib/lchown.c (rpl_lchown): Work around bug.
44150         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
44151         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
44152         * modules/unistd (Makefile.am): Populate it.
44153         * lib/unistd.in.h (lchown): Update declaration.
44154         * doc/posix-functions/lchown.texi (lchown): Document the bug.
44155         * modules/lchown-tests: New file.
44156         * tests/test-lchown.h (test_lchown): Likewise.
44157         * tests/test-lchown.c (main): Likewise.
44158
44159         chown: detect Solaris and FreeBSD bug
44160         * lib/chown.c (rpl_chown): Work around bug.
44161         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
44162         (gl_PREREQ_CHOWN): Delete.
44163         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
44164         * modules/unistd (Makefile.am): Populate it.
44165         * lib/unistd.in.h (chown): Update declaration.
44166         * lib/lchown.c (chown): Update client.
44167         * modules/lchown (Depends-on): Add lstat.
44168         * doc/posix-functions/chown.texi (chown): Document the bug.
44169         * doc/posix-functions/getgroups.texi (getgroups): Document
44170         getgroups pitfall.
44171         * modules/chown-tests: New file.
44172         * tests/test-chown.h (test_chown): Likewise.
44173         * tests/test-chown.c (main): Likewise.
44174
44175 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
44176
44177         gnulib-tool: correctly detect absence of m4 directories
44178         * gnulib-tool: Avoid extra newline on data passed to wc -l.
44179
44180 2009-11-14  Jim Meyering  <meyering@redhat.com>
44181
44182         maint.mk: Prohibit inclusion of "xalloc.h" without use.
44183         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
44184
44185 2009-11-14  John W. Eaton  <jwe@gnu.org>
44186
44187         strftime.h: wrap function declaration in extern "C" block
44188         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
44189
44190 2009-11-13  Eric Blake  <ebb9@byu.net>
44191
44192         getgroups: avoid compiler warning
44193         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
44194
44195         getgroups: work around FreeBSD bug
44196         * lib/getgroups.c (rpl_getgroups): Work around the bug.
44197         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
44198         * doc/posix-functions/getgroups.texi (getgroups): Document it.
44199         * tests/test-getgroups.c (main): Fix buffer overrun.
44200
44201         getgroups: avoid compilation failure
44202         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
44203         * modules/getgroups (Depends-on): Add stdint.
44204
44205 2009-11-13  Jim Meyering  <meyering@redhat.com>
44206
44207         test-getgroups: avoid compilation failure
44208         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
44209
44210 2009-11-13  Eric Blake  <ebb9@byu.net>
44211
44212         mgetgroups: new module, taken from coreutils
44213         * modules/mgetgroups: New file.
44214         * lib/mgetgroups.h: Likewise.
44215         * lib/mgetgroups.c (mgetgroups): Likewise.
44216         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
44217         * MODULES.html.sh (Users and groups): Mention it.
44218
44219         getgroups: don't expose GETGROUPS_T to user
44220         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
44221         an element at a time if GETGROUPS_T is wrong size.
44222         * lib/getugroups.h (getugroups): Change signature.
44223         * lib/unistd.in.h (getgroups): Likewise.
44224         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
44225         signature needs fixing.
44226         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
44227         AC_TYPE_GETGROUPS.
44228         * modules/group-member (Depends-on): Add getgroups.
44229         * lib/group-member.c (group_info, get_group_info): Use gid_t.
44230         (group_member): Rely on getgroups replacement.
44231         * lib/getugroups.c (getugroups): Use gid_t.
44232         * tests/test-getgroups.c (main): Likewise.
44233         * NEWS: Mention the signature change.
44234         * doc/posix-functions/getgroups.texi (getgroups): Mention the
44235         problem with signature.
44236         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
44237         GETGROUPS_T is still useful for setgroups.
44238
44239         getgroups, getugroups: provide stubs for mingw
44240         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
44241         * lib/getugroups.c (getugroups): Likewise.
44242         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
44243         function.  Modernize replacement scheme.
44244         (gl_PREREQ_GETGROUPS): Delete.
44245         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
44246         * modules/getgroups (configure.ac): Declare witness.
44247         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
44248         * modules/unistd (Depends-on): Substitute witness.
44249         * lib/unistd.in.h (getgroups): Declare replacement.
44250
44251         getgroups: avoid calling exit
44252         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
44253         drop xalloc.
44254         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
44255         dependencies.
44256         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
44257         exiting, in the rare case of malloc failure.
44258
44259         getgroups: fix logic error
44260         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
44261         has more than 20 groups.
44262         * modules/getgroups-tests: New test.
44263         * tests/test-getgroups.c: New file.
44264
44265 2009-11-13  Simon Josefsson  <simon@josefsson.org>
44266
44267         * tests/test-base64.c: Improve.
44268
44269 2009-11-13  Simon Josefsson  <simon@josefsson.org>
44270
44271         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
44272         Blake <ebb9@byu.net>.
44273
44274 2009-11-13  Simon Josefsson  <simon@josefsson.org>
44275
44276         * tests/test-xvasprintf.c: Add %s%s related checks.
44277
44278 2009-11-12  Eric Blake  <ebb9@byu.net>
44279
44280         version-etc: match standards.texi style
44281         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
44282         and use <> only for URLs.
44283
44284 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
44285
44286         fts: do not fail on a submount during traversal
44287         * lib/fts.c (fts_build): Read the stat info again after opening
44288         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
44289         Original report at http://bugzilla.redhat.com/501848.
44290
44291 2009-11-12  Jim Meyering  <meyering@redhat.com>
44292
44293         bootstrap: sync from coreutils
44294         * build-aux/bootstrap (bootstrap_epilogue): New function.
44295         Use git_modules_config in one more place.  This make bootstrap's
44296         --gnulib-srcdir option more useful for testing.
44297
44298         bootstrap: generalize autoheader check
44299         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
44300         AC_CONFIG_HEADERS.
44301
44302 2009-11-11  Eric Blake  <ebb9@byu.net>
44303
44304         mkfifoat: use new modules for Solaris and BSD bugs
44305         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
44306         * lib/mkfifoat.c (mknodat): Split...
44307         * lib/mknodat.c (mknodat): ...into new file.
44308         * modules/mkfifoat (Files): Ship new file.
44309         (Depends-on): Add mkfifo, mknod.
44310         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
44311         (Depends-on): Add symlink.
44312         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
44313         redundant with test_mkfifo.h.
44314         (do_mkfifoat, do_mknodat): New helpers.
44315
44316         mknod: new module
44317         * modules/mknod: New file.
44318         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
44319         * lib/mknod.c (mknod): Likewise.
44320         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
44321         defaults.
44322         * modules/sys_stat (Makefile.am): Substitute them.
44323         * lib/sys_stat.in.h (mknod): Declare replacement.
44324         * MODULES.html.sh (Support for systems lacking POSIX:2008):
44325         Document it.
44326         * doc/posix-functions/mknod.texi (mknod): Likewise.
44327         * modules/mknod-tests: New test.
44328         * tests/test-mknod.c: Likewise.
44329
44330         mkfifo: new module
44331         * modules/mkfifo: New file.
44332         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
44333         * lib/mkfifo.c (mkfifo): Likewise.
44334         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
44335         defaults.
44336         * modules/sys_stat (Makefile.am): Substitute them.
44337         * lib/sys_stat.in.h (mkfifo): Declare replacement.
44338         * MODULES.html.sh (Support for systems lacking POSIX:2008):
44339         Document it.
44340         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
44341         * modules/mkfifo-tests: New test.
44342         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
44343         from test-mkfifoat.c.
44344         * tests/test-mkfifo.c: New file.
44345
44346         readlink: detect FreeBSD bug
44347         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
44348         slash on symlink.
44349         * doc/posix-functions/readlink.texi (readlink): Document the bug.
44350         * tests/test-readlink.h (test_readlink): Enhance test.
44351
44352         symlink: detect FreeBSD bug
44353         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
44354         slash on symlink.
44355         * doc/posix-functions/symlink.texi (symlink): Document the bug.
44356         * tests/test-symlink.h (test_symlink): Enhance test.
44357
44358 2009-11-10  Eric Blake  <ebb9@byu.net>
44359
44360         link: detect FreeBSD bug
44361         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
44362         symlink.
44363         * doc/posix-functions/link.texi (link): Document the bug.
44364         * tests/test-link.h (test_link): Enhance test.
44365         * tests/test-linkat.c (main): Update caller.
44366
44367         unlink, remove: detect FreeBSD bug
44368         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
44369         slash on symlink.
44370         * doc/posix-functions/unlink.texi (unlink): Document the bug.
44371         * doc/posix-functions/remove.texi (remove): Likewise.
44372         * tests/test-unlink.h (test_unlink): Enhance test.
44373         * tests/test-remove.c (main): Likewise.
44374
44375 2009-11-09  Eric Blake  <ebb9@byu.net>
44376
44377         rename: detect FreeBSD bug
44378         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
44379         slash on symlink.
44380         * modules/renameat-tests (Depends-on): Add filenamecat.
44381         * tests/test-rename.h (test_rename): Allow one more errno.
44382         * tests/test-renameat.c (main): Likewise.
44383         * doc/posix-functions/rename.texi (rename): Document the bug.
44384
44385         open: detect FreeBSD bug
44386         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
44387         symlink.
44388         * doc/posix-functions/open.texi (open): Document the bug.
44389         * doc/posix-functions/utimes.texi (utimes): Likewise.
44390         * tests/test-open.h (test_open): Add parameters, and test symlink
44391         handling.
44392         * tests/test-open.c (main): Adjust caller.
44393         * tests/test-fcntl-safer.c (main): Likewise.
44394         * modules/open-tests (Depends-on): Add stdbool, symlink.
44395         * modules/fcntl-safer-tests (Depends-on): Likewise.
44396         * tests/test-openat.c (main): Add test-open tests.
44397
44398         stat: detect FreeBSD bug
44399         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
44400         symlink.
44401         * doc/posix-functions/stat.texi (stat): Document the bug.
44402         * tests/test-stat.h (test_stat_func): Add argument.
44403         * tests/test-stat.c (main): Adjust caller.
44404         * tests/test-fstatat.c (main): Likewise.
44405         * modules/stat-tests (Depends-on): Add stdbool, symlink.
44406         Reported by Jim Meyering.
44407
44408 2009-11-09  James Youngman  <jay@gnu.org>
44409
44410         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
44411         * lib/strftime.c: Correct placement of #include "ignore-value.h".
44412
44413 2009-11-08  Jim Meyering  <meyering@redhat.com>
44414
44415         utimens: remove invalid futimesat call
44416         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
44417         It used the file descriptor of the target file as the DIR_FD
44418         parameter and NULL as the file name.  That caused failure with
44419         errno == EFAULT on FreeBSD-8.0-rc2
44420
44421 2009-11-07  Eric Blake  <ebb9@byu.net>
44422
44423         fflush, freadseek: use fseeko, not fseek
44424         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
44425         (clear_ungetc_buffer): Avoid potential problems on large files.
44426         * lib/freadseek.c (freadseek): Likewise.
44427         * modules/freadseek (Depends-on): Add fseeko.
44428         * modules/fseek (configure.ac): Set a witness.
44429         * tests/test-fflush.c (main): Use fseeko.
44430         * tests/test-fpurge.c (fseek): Disable link warning.
44431         * tests/test-freadable.c (fseek): Likewise.
44432         * tests/test-freading.c (fseek): Likewise.
44433         * tests/test-fseeko.c (fseek): Likewise.
44434         * tests/test-ftell.c (fseek): Likewise.
44435         * tests/test-ftello.c (fseek): Likewise.
44436         * tests/test-fwritable.c (fseek): Likewise.
44437         * tests/test-fwriting.c (fseek): Likewise.
44438
44439 2009-11-06  Simon Josefsson  <simon@josefsson.org>
44440
44441         * modules/memchr (Depends-on): Drop getpagesize dependency.
44442
44443 2009-11-06  Simon Josefsson  <simon@josefsson.org>
44444
44445         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
44446         Reported by Ludovic Courtès.
44447         * build-aux/pmccabe2html: Improve example usage.
44448         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
44449
44450 2009-11-06  Jim Meyering  <meyering@redhat.com>
44451
44452         do-release-commit-and-tag: New module.
44453         Automate the release-commit and tag process.
44454         * build-aux/do-release-commit-and-tag: New script, from coreutils.
44455         * modules/do-release-commit-and-tag: New file.
44456         * MODULES.html.sh (Support for maintaining and releasing): Add it.
44457
44458 2009-11-06  Simon Josefsson  <simon@josefsson.org>
44459
44460         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
44461         because test-select.c uses inet_pton.
44462
44463 2009-11-06  Simon Josefsson  <simon@josefsson.org>
44464
44465         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
44466         GETADDRINFO_LIB.  Bump serial number.
44467         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
44468         Suggested by Eric Blake <ebb9@byu.net>.
44469
44470 2009-11-05  Eric Blake  <ebb9@byu.net>
44471
44472         strtod: detect darwin bug
44473         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
44474         Reported by Leo Davis.
44475
44476         freopen-safer: new module
44477         * modules/freopen-safer: New module.
44478         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
44479         * lib/freopen-safer.c (freopen_safer): New file.
44480         * lib/stdio-safer.h (freopen_safer): New declaration.
44481         * lib/stdio--.h (freopen): New override.
44482         * MODULES.html.sh (File stream based Input/Output): Mention it.
44483         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
44484         freopen-safer module.
44485         * doc/posix-functions/stderr.texi (stderr): Likewise.
44486         * doc/posix-functions/stdin.texi (stdin): Likewise.
44487         * doc/posix-functions/stdout.texi (stdout): Likewise.
44488         * modules/freopen-safer-tests: New test.
44489         * tests/test-reopen-safer.c: New file.
44490
44491 2009-11-05  Jim Meyering  <meyering@redhat.com>
44492
44493         maint.mk: Prohibit inclusion of "close-stream.h" without use.
44494         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
44495
44496 2009-11-05  Simon Josefsson  <simon@josefsson.org>
44497
44498         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
44499
44500 2009-11-05  Simon Josefsson  <simon@josefsson.org>
44501
44502         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
44503
44504 2009-11-05  Simon Josefsson  <simon@josefsson.org>
44505
44506         Fix link error.
44507         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
44508         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
44509
44510 2009-11-05  Simon Josefsson  <simon@josefsson.org>
44511
44512         * tests/test-func.c: Also test value of __func__.
44513
44514 2009-11-05  Simon Josefsson  <simon@josefsson.org>
44515
44516         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
44517         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
44518
44519 2009-11-05  Bruno Haible  <bruno@clisp.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         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
44525
44526 2009-11-05  Bruno Haible  <bruno@clisp.org>
44527
44528         Tests for module 'inet_pton'.
44529         * modules/inet_pton-tests: New file.
44530         * tests/test-inet_pton.c: New file.
44531
44532 2009-11-05  Bruno Haible  <bruno@clisp.org>
44533
44534         Tests for module 'inet_ntop'.
44535         * modules/inet_ntop-tests: New file.
44536         * tests/test-inet_ntop.c: New file.
44537
44538 2009-11-04  Eric Blake  <ebb9@byu.net>
44539
44540         stdlib-safer: wrap all mkstemp variants
44541         * modules/mkostemp (configure.ac): Set witness.
44542         * modules/mkostemps (configure.ac): Likewise.
44543         * modules/mkstemps (configure.ac): Likewise.
44544         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
44545         (mkstemps_safer): Wrap more functions.
44546         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
44547         wrapping.
44548         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
44549         (mkstemps_safer): Implement the wrappers.
44550
44551         mkstemps, mkostemps: new modules
44552         * modules/mkostemps: New module.
44553         * modules/mkstemps: Likewise.
44554         * lib/mkostemps.c (mkostemps): New file.
44555         * lib/mkstemps.c (mkstemps): Likewise.
44556         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
44557         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
44558         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
44559         * modules/stdlib (Makefile.am): Substitute them.
44560         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
44561         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
44562         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
44563         * doc/gnulib.texi (Glibc stdlib.h): Include them.
44564         * MODULES.html.sh (File system functions): Mention them.
44565
44566         tempname: resync from glibc
44567         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
44568         same values for __GT_FILE as glibc.  Abort even when assertions
44569         are disabled.
44570         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
44571         match its value otherwise.  Allow idempotent inclusion.
44572         * lib/mkdtemp.c (mkdtemp): Adjust caller.
44573         * lib/mkostemp.c (mkostemp): Likewise.
44574         * lib/mkstemp.c (mkstemp): Likewise.
44575         * lib/tmpfile.c (tmpfile): Likewise.
44576         * NEWS: Document this.
44577
44578         utimens: fix use of futimens on older Linux
44579         * lib/utimens.c (fdutimens): Use updated, rather than original,
44580         timespec to avoid bug in older Linux kernel.
44581         Reported by Simon Josefsson.
44582
44583 2009-11-04  Bruno Haible  <bruno@clisp.org>
44584
44585         Make num_processors more flexible and consistent.
44586         * lib/nproc.h (enum nproc_query): New type.
44587         (num_processors): Add a 'query' argument.
44588         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
44589         (num_processors): Add a 'query' argument. Test the value of the
44590         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
44591         mingw, count the number of CPUs available for the current process.
44592         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
44593         Check for sched_getaffinity and sched_getaffinity_np.
44594         * modules/nproc (Depends-on): Add c-ctype, extensions.
44595         * NEWS: Mention the change.
44596
44597 2009-11-03  Bruno Haible  <bruno@clisp.org>
44598
44599         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
44600
44601 2009-11-03  Jim Meyering  <meyering@redhat.com>
44602
44603         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
44604         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
44605         if it is defined.
44606
44607 2009-11-02  Eric Blake  <ebb9@byu.net>
44608
44609         mktime, timegm: share common declaration
44610         * lib/mktime-internal.h: New file.
44611         * lib/mktime.c: Use it rather than open-coding a declaration.
44612         * lib/timegm.c: Likewise.
44613         * modules/mktime (Files): Ship it.
44614         * modules/timegm (Files): Likewise.
44615         Suggested by Bruno Haible.
44616
44617         test-update-copyright: update test to match script changes
44618         * tests/test-update-copyright.sh: Avoid hard-coding perl
44619         location.  Don't update *.bak created by earlier runs.
44620
44621 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
44622             Simon Josefsson  <simon@josefsson.org>
44623             Bruno Haible  <bruno@clisp.org>
44624
44625         Fix link error on Solaris 8.
44626         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
44627         also in libnsl. Define also INET_PTON_LIB.
44628         * modules/inet_pton (Link): New section.
44629
44630 2009-11-02  Simon Josefsson  <simon@josefsson.org>
44631             Bruno Haible  <bruno@clisp.org>
44632
44633         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
44634         * modules/inet_ntop (Link): New section.
44635         Reported by Boyan Kasarov <bkasarov@gmail.com>.
44636
44637 2009-11-02  Eric Blake  <ebb9@byu.net>
44638
44639         maint: avoid compiler warnings in m4 macros
44640         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
44641         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
44642
44643 2009-11-02  Simon Josefsson  <simon@josefsson.org>
44644
44645         * m4/pmccabe2html.m4: Remove file.
44646         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
44647         function.  Change maintainer.
44648         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
44649         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
44650         Courtès).
44651
44652 2009-10-31  Eric Blake  <ebb9@byu.net>
44653
44654         fseeko: fix m4 regression
44655         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
44656         regression from 2009-10-27.
44657         Reported by Ralf Wildenhues.
44658
44659 2009-10-31  Jim Meyering  <meyering@redhat.com>
44660
44661         inttostr: aesthetics and improved (compile-time) safety
44662         Define inttype_is_signed rather than inttype_is_unsigned,
44663         since the sole use is via "#if inttype_is_signed".
44664         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
44665         inttype_is_unsigned.
44666         * lib/offtostr.c (inttype_is_signed): Likewise.
44667         * lib/uinttostr.c (inttype_is_signed): Likewise.
44668         * lib/umaxtostr.c (inttype_is_signed): Likewise.
44669         * lib/inttostr.c (inttostr): Use verify to cross-check the
44670         inttype_is_signed value and the signedness of the actual type.
44671         * modules/inttostr (Depends-on): Add verify.
44672
44673 2009-10-30  Eric Blake  <ebb9@byu.net>
44674
44675         build: avoid compiler warnings
44676         * lib/fchmodat.c (lchmod): Mark unused variables.
44677         * lib/getopt.c (_getopt_initialize): Likewise.
44678         * lib/mktime.c (__mktime_internal): Provide prototype.
44679         * lib/inttostr.c (inttostr): Avoid compiler warning even with
44680         older gcc that do not understand #pragma GCC diagnostic.
44681         * lib/uinttostr.c (inttype_is_unsigned): Define.
44682         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
44683
44684 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
44685
44686         stat: fix compilation on AIX
44687         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
44688         only see struct stat64.
44689
44690 2009-10-30  Eric Blake  <ebb9@byu.net>
44691
44692         exclude: make more robust
44693         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
44694         rather than masking a coding bug.
44695         Suggested by Bruno Haible.
44696
44697 2009-10-30  Jim Meyering  <meyering@redhat.com>
44698
44699         perl scripts: remove #!/usr/bin/perl in favor of more portable...
44700         Rather than putting #!/usr/bin/perl on the first line,
44701         start with a variant of what's recommended by "man perlrun" that
44702         invokes the first "perl" program from your shell's search path.
44703         * build-aux/gitlog-to-changelog: Replace #!... as above.
44704         Add a "Local Variables" perl mode setting.
44705         Prompted by a patch from Ludovic Courtès.
44706         Improved by Eric Blake.
44707         * build-aux/useless-if-before-free: Likewise.
44708         * build-aux/announce-gen: Likewise.
44709         * build-aux/update-copyright: Likewise.
44710
44711 2009-10-29  Eric Blake  <ebb9@byu.net>
44712
44713         filenamecat-lgpl: adjust clients
44714         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
44715         filenamecat.
44716         * modules/renameat (Depends-on): Likewise.
44717
44718         filenamecat: split into filenamecat-lgpl
44719         * modules/filenamecat-lgpl: New module.
44720         * modules/filenamecat (Files): Move library-safe files into
44721         filenamecat-lgpl.
44722         (Depends-on): Add filenamecat-lgpl.
44723         (configure.ac): Declare witness.
44724         * lib/filenamecat.h (file_name_concat): Only declare when using
44725         GPL module.
44726         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
44727         Move...
44728         * lib/filenamecat-lgpl.c: ...into new file.
44729         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
44730         (gl_FILE_NAME_CONCAT): Use it.
44731         * MODULES.html.sh (File system functions): Mention new module.
44732
44733         argp: avoid memory leak
44734         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
44735         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
44736         base_name, since the latter malloc()s and can call exit().
44737         Leak introduced 2006-07-03.
44738
44739         dirname-lgpl: adjust clients that don't need full dirname
44740         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
44741         * modules/filenamecat (Depends-on): Likewise.
44742         * modules/linkat (Depends-on): Likewise.
44743         * modules/mkancesdirs (Depends-on): Likewise.
44744         * modules/mkdir (Depends-on): Likewise.
44745         * modules/openat (Depends-on): Likewise.
44746         * modules/savewd (Depends-on): Likewise.
44747         * modules/rename (Depends-on): Likewise.
44748         (License): Relax license.
44749         * modules/mkdir-tests (Depends-on): Drop progname.
44750         (Makefile.am): Delete unneeded LDADD.
44751         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
44752
44753         dirname: split into dirname-lgpl
44754         * modules/dirname-lgpl: New module.
44755         * modules/dirname (Files): Move library-safe files into
44756         dirname-lgpl.
44757         (Depends-on): Add dirname-lgpl.
44758         (configure.ac): Declare witness.
44759         * modules/double-slash-root (License): Relax license.
44760         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
44761         module.
44762         * lib/dirname.c (dir_len, mdir_name): Move...
44763         * lib/dirname-lgpl.c: ...into new file.
44764         * lib/basename.c (last_component, base_len): Move...
44765         * lib/basename-lgpl.c: ...into new file.
44766         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
44767         (gl_DIRNAME): Use it.
44768         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
44769         Mention new module.
44770         * modules/dirname-tests (Depends-on): Add progname.
44771         * tests/test-dirname.c (program_name): Delete.
44772
44773         mkdir: make safe for libraries
44774         * modules/mkdir (Depends-on): Drop xalloc.
44775         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
44776         exit.
44777
44778         tests: avoid some compiler warnings
44779         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
44780         literals.
44781         * tests/test-memchr.c (main): Avoid type mismatch.
44782         * tests/test-arpa_inet.c (main): Avoid unused parameters.
44783         * tests/test-base64.c (main): Likewise.
44784         * tests/test-getdelim.c (main): Likewise.
44785         * tests/test-gethostname.c (main): Likewise.
44786         * tests/test-getline.c (main): Likewise.
44787         * tests/test-netinet_in.c (main): Likewise.
44788         * tests/test-select.c (open_server_socket, main): Likewise.
44789         * tests/test-select-stdin.c (main): Likewise.
44790         * tests/test-sockets.c (main): Likewise.
44791         * tests/test-strsignal.c (main): Likewise.
44792         * tests/test-sys_select.c (main): Likewise.
44793         * tests/test-sys_socket.c (main): Likewise.
44794         * tests/test-u64.c (main): Likewise.
44795         * tests/test-xfprintf-posix.c (main): Likewise.
44796         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
44797
44798         sockets: avoid compiler warning
44799         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
44800
44801         maint: detect usage(1) and other suspicious exits
44802         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
44803
44804 2009-10-29  Jim Meyering  <meyering@redhat.com>
44805
44806         timespec: long-to-int truncation could make timespec_cmp malfunction
44807         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
44808         a multiple of 2^32 nanoseconds as no difference.
44809
44810 2009-10-28  Jim Meyering  <meyering@redhat.com>
44811
44812         fprintftime: wrap macro code argument in "do {...} while(0)"
44813         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
44814         cpy macro must be a statement that can be followed by a semicolon.
44815         Now that the else clause contains a comment and is hence longer
44816         than one line, I require curly braces.  That in turn requires
44817         that we wrap this code block in the standard do...while(0).
44818
44819         fprintftime: remove stray semicolon from previous change
44820         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
44821
44822         fprintftime: avoid a warning about ignored fwrite return value
44823         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
44824         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
44825         that is unsafe.
44826         * modules/fprintftime (Depends-on): Add ignore-value.
44827
44828         exclude: avoid an unwarranted warning
44829         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
44830
44831 2009-10-27  Eric Blake  <ebb9@byu.net>
44832
44833         fseek: avoid compilation failure when fflush is replaced
44834         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
44835         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
44836         module is in use.
44837         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
44838         module is not in use; since REPLACE_FSEEK worked otherwise.
44839         (GNULIB_FTELLO): Likewise for ftell.
44840         Reported by Ian Beckwith and others.
44841
44842 2009-10-27  Bruno Haible  <bruno@clisp.org>
44843
44844         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
44845         Reported by Jim Meyering.
44846
44847 2009-10-27  Jim Meyering  <jim@meyering.net>
44848             Bruno Haible  <bruno@clisp.org>
44849
44850         Avoid warning despite dropping the return value of fwrite.
44851         * lib/unicodeio.c: Include ignore-value.h.
44852         (fwrite_success_callback): Explicitly ignore fwrite's return value.
44853         * modules/unicodeio (Depends-on): Add ignore-value.
44854
44855 2009-10-26  Eric Blake  <ebb9@byu.net>
44856
44857         areadlinkat: fix fallback path
44858         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
44859         pointer and zero.
44860
44861 2009-10-22  Pádraig Brady  <P@draigBrady.com>
44862
44863         Use a better IO block size for modern systems
44864         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
44865         * lib/md2.c: Likewise.
44866         * lib/md4.c: Likewise.
44867         * lib/md5.c: Likewise.
44868         * lib/sha1.c: Likewise.
44869         * lib/sha256.c: Likewise.
44870         * lib/sha512.c: Likewise.
44871
44872 2009-10-22  Eric Blake  <ebb9@byu.net>
44873
44874         tests: avoid several compiler warnings
44875         * tests/test-getcwd.c (main): Avoid buffer underflow.
44876         * tests/test-getdate.c (main): String literals are not safe with
44877         putenv, so use setenv.  Declare unused argument.
44878         * modules/getdate-tests (Depends-on): Add setenv.
44879         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
44880         problems with string literals in char *.
44881         * tests/test-hash.c (main): Avoid shadowing declaration.
44882         (insert_new): Treat string literals as char const *.
44883         * tests/test-getopt.h (test_getopt): Likewise.
44884         (getopt_loop): Alter types to minimize casting elsewhere.
44885         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
44886         (test_getopt_long_posix): Likewise.
44887         (do_getopt_long): Add wrapper to minimize casting.
44888         * tests/test-atexit.c (clear_temp_file): Use void.
44889         * tests/test-areadlink-with-size.c (main): Declare unused
44890         arguments.
44891         * tests/test-areadlink.c (main): Likewise.
44892         * tests/test-areadlinkat-with-size.c (main): Likewise.
44893         * tests/test-areadlinkat.c (main): Likewise.
44894         * tests/test-canonicalize-lgpl.c (main): Likewise.
44895         * tests/test-canonicalize.c (main): Likewise.
44896         * tests/test-dirent-safer.c (main): Likewise.
44897         * tests/test-dirname.c (main): Likewise.
44898         * tests/test-dup2.c (main): Likewise.
44899         * tests/test-fchdir.c (main): Likewise.
44900         * tests/test-fcntl-h.c (main): Likewise.
44901         * tests/test-fcntl-safer.c (main): Likewise.
44902         * tests/test-fdopendir.c (main): Likewise.
44903         * tests/test-fdutimensat.c (main): Likewise.
44904         * tests/test-fflush.c (main): Likewise.
44905         * tests/test-filenamecat.c (main): Likewise.
44906         * tests/test-filevercmp.c (main): Likewise.
44907         * tests/test-fopen-safer.c (main): Likewise.
44908         * tests/test-fopen.c (main): Likewise.
44909         * tests/test-fpending.c (main): Likewise.
44910         * tests/test-fpurge.c (main): Likewise.
44911         * tests/test-freading.c (main): Likewise.
44912         * tests/test-fstatat.c (main): Likewise.
44913         * tests/test-fsync.c (main): Likewise.
44914         * tests/test-futimens.c (main): Likewise.
44915         * tests/test-getndelim2.c (main): Likewise.
44916         * tests/test-gettimeofday.c (main): Likewise.
44917         * tests/test-getopt.c (main): Likewise.
44918         * tests/test-i-ring.c (main): Likewise.
44919         * tests/test-inttypes.c (main): Likewise.
44920         * tests/test-link.c (main): Likewise.
44921         * tests/test-lstat.c (main): Likewise.
44922         * tests/test-math.c (main): Likewise.
44923         * tests/test-md5.c (main): Likewise.
44924         * tests/test-memchr2.c (main): Likewise.
44925         * tests/test-memrchr.c (main): Likewise.
44926         * tests/test-mkdir.c (main): Likewise.
44927         * tests/test-mkdirat.c (main): Likewise.
44928         * tests/test-mkfifoat.c (main): Likewise.
44929         * tests/test-open.c (main): Likewise.
44930         * tests/test-openat-safer.c (main): Likewise.
44931         * tests/test-openat.c (main): Likewise.
44932         * tests/test-quotearg.c (main): Likewise.
44933         * tests/test-rawmemchr.c (main): Likewise.
44934         * tests/test-readlink.c (main): Likewise.
44935         * tests/test-remove.c (main): Likewise.
44936         * tests/test-rename.c (main): Likewise.
44937         * tests/test-renameat.c (main): Likewise.
44938         * tests/test-rmdir.c (main): Likewise.
44939         * tests/test-sha1.c (main): Likewise.
44940         * tests/test-signal.c (main): Likewise.
44941         * tests/test-sigaction.c (main): Likewise.
44942         * tests/test-stat.c (main): Likewise.
44943         * tests/test-stat-time.c (main): Likewise.
44944         * tests/test-stddef.c (main): Likewise.
44945         * tests/test-stdint.c (main): Likewise.
44946         * tests/test-stdio.c (main): Likewise.
44947         * tests/test-stdlib.c (main): Likewise.
44948         * tests/test-strchrnul.c (main): Likewise.
44949         * tests/test-strerror.c (main): Likewise.
44950         * tests/test-string.c (main): Likewise.
44951         * tests/test-strtod.c (main): Likewise.
44952         * tests/test-strverscmp.c (main): Likewise.
44953         * tests/test-symlink.c (main): Likewise.
44954         * tests/test-symlinkat.c (main): Likewise.
44955         * tests/test-sys_stat.c (main): Likewise.
44956         * tests/test-sys_time.c (main): Likewise.
44957         * tests/test-time.c (main): Likewise.
44958         * tests/test-unistd.c (main): Likewise.
44959         * tests/test-unlink.c (main): Likewise.
44960         * tests/test-unlinkat.c (main): Likewise.
44961         * tests/test-utimens.c (main): Likewise.
44962         * tests/test-utimensat.c (main): Likewise.
44963         * tests/test-version-etc.c (main): Likewise.
44964         * tests/test-wchar.c (main): Likewise.
44965         * tests/test-wctype.c (main): Likewise.
44966         * tests/test-xprintf-posix.c (main): Likewise.
44967         * tests/test-posixtm.c (main): Likewise.
44968         (STREQ): Delete unused macro.
44969         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
44970         shadowed variables.
44971         * tests/test-memchr.c (main): Likewise.
44972
44973 2009-10-21  Eric Blake  <ebb9@byu.net>
44974
44975         areadlinkat: avoid failure on older glibc
44976         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
44977         rather than mis-comparing 0 against FUNC_RESULT of char*.
44978
44979 2009-10-21  Bruno Haible  <bruno@clisp.org>
44980
44981         * modules/stpncpy (License): Relicense under LGPLv2+.
44982         Reported by David Lutterkort <lutter@redhat.com>.
44983
44984 2009-10-20  Eric Blake  <ebb9@byu.net>
44985
44986         utimensat: work around Solaris 9 bug
44987         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
44988         has trailing slash bugs.
44989         * tests/test-lutimens.h (test_lutimens): Enhance test.
44990         * tests/test-utimens.h (test_utimens): Likewise.
44991         * doc/posix-functions/utime.texi (utime): Enhance documentation.
44992         * doc/posix-functions/utimes.texi (utimes): Likewise.
44993         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
44994         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
44995         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
44996         * doc/posix-functions/futimens.texi (futimens): Likewise.
44997
44998         fdutimensat: new module
44999         * modules/fdutimensat: New file.
45000         * lib/fdutimensat.c (fdutimensat): Likewise.
45001         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
45002         * MODULES.html.sh (File system functions): Mention module.
45003         * modules/fdutimensat-tests: New test.
45004         * tests/test-fdutimensat.c: Likewise.
45005
45006         doc: regenerate INSTALL
45007         * doc/INSTALL: Reflect recent autoconf update.
45008         * doc/INSTALL.ISO: Likewise.
45009         * doc/INSTALL.UTF-8: Likewise.
45010
45011 2009-10-20  Pádraig Brady  <P@draigBrady.com>
45012
45013         acl: warn if ACL support is not detected
45014         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
45015
45016 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
45017
45018         * lib/nproc.h: Add extern "C" block for C++.
45019
45020 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
45021             Bruno Haible  <bruno@clisp.org>
45022
45023         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
45024         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
45025         * doc/posix-functions/isalpha.texi: Likewise.
45026         * doc/posix-functions/isblank.texi: Likewise.
45027         * doc/posix-functions/iscntrl.texi: Likewise.
45028         * doc/posix-functions/isdigit.texi: Likewise.
45029         * doc/posix-functions/isgraph.texi: Likewise.
45030         * doc/posix-functions/islower.texi: Likewise.
45031         * doc/posix-functions/isprint.texi: Likewise.
45032         * doc/posix-functions/ispunct.texi: Likewise.
45033         * doc/posix-functions/isspace.texi: Likewise.
45034         * doc/posix-functions/isupper.texi: Likewise.
45035         * doc/posix-functions/isxdigit.texi: Likewise.
45036
45037 2009-10-18  Bruno Haible  <bruno@clisp.org>
45038
45039         Tests for module 'isblank'.
45040         * modules/isblank-tests: New file.
45041         * tests/test-isblank.c: New file.
45042
45043         New module 'isblank'.
45044         * lib/isblank.c: New file.
45045         * m4/isblank.m4: New file.
45046         * modules/isblank: New file.
45047         * doc/posix-functions/isblank.texi: Mention the new module.
45048
45049 2009-10-18  Bruno Haible  <bruno@clisp.org>
45050
45051         New module 'ctype'.
45052         * lib/ctype.in.h: New file.
45053         * m4/ctype.m4: New file.
45054         * modules/ctype: New file.
45055         * doc/posix-headers/ctype.texi: Mention the new module.
45056
45057 2009-10-18  Jim Meyering  <meyering@redhat.com>
45058
45059         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
45060         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
45061         right after its initialization, rather than farther down.
45062         Keeping these in close proximity makes it easier to ensure
45063         that each such variable is initialized.  E.g.,
45064
45065             LIB_CLOCK_GETTIME=
45066             AC_SUBST([LIB_CLOCK_GETTIME])
45067
45068         This change also increments these serial numbers.
45069         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
45070         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
45071         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
45072
45073 2009-10-18  Bruno Haible  <bruno@clisp.org>
45074
45075         Don't let environment variables perturb build.
45076         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
45077         (gl_PREREQ_GETHRXTIME): ... not here.
45078
45079 2009-10-18  Bruno Haible  <bruno@clisp.org>
45080
45081         Avoid symlink attack in localcharset module.
45082         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
45083         (O_NOFOLLOW): Define fallback.
45084         (get_charset_aliases): Don't open the file if it is a symbolic link.
45085         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
45086         gl_FCNTL_H.
45087         (gl_FCNTL_H): Require it.
45088         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
45089         * modules/localcharset (Files): Add m4/fcntl_h.m4.
45090         Reported by Fergal Glynn <fglynn@veracode.com>.
45091
45092 2009-10-18  Bruno Haible  <bruno@clisp.org>
45093
45094         Implement nproc for mingw.
45095         * lib/nproc.c: Include <windows.h>
45096         (num_processors): On native Windows platforms, try GetSystemInfo.
45097
45098 2009-10-18  Bruno Haible  <bruno@clisp.org>
45099
45100         Implement nproc for IRIX.
45101         * lib/nproc.c: Include <sys/sysmp.h>.
45102         (num_processors): On IRIX systems, try sysmp.
45103         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
45104
45105 2009-10-18  Bruno Haible  <bruno@clisp.org>
45106
45107         Implement nproc for HP-UX.
45108         * lib/nproc.c: Include <sys/pstat.h>
45109         (num_processors): On HP-UX systems, try pstat_getdynamic.
45110         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
45111         pstat_getdynamic.
45112
45113 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
45114             Bruno Haible  <bruno@clisp.org>
45115
45116         Implement nproc for NetBSD, OpenBSD.
45117         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
45118         (ARRAY_SIZE): New macro.
45119         (num_processors): On BSD systems, try sysctl of HW_NCPU.
45120         * m4/nproc.m4: New file.
45121         * modules/nproc (Files): Add m4/nproc.m4.
45122         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
45123         (Makefile.am): Instead, augment lib_SOURCES.
45124
45125 2009-10-18  Bruno Haible  <bruno@clisp.org>
45126
45127         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
45128         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
45129         sys/param.h.
45130
45131 2009-10-16  Eric Blake  <ebb9@byu.net>
45132
45133         utimensat: new module
45134         * modules/utimensat: New file.
45135         * lib/utimensat.c (utimensat): Likewise.
45136         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
45137         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
45138         so we can work around Linux bugs.
45139         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
45140         * modules/sys_stat (Makefile.am): Substitute them.
45141         * lib/sys_stat.in.h (utimensat): Declare it.
45142         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45143         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
45144         * modules/utimensat-tests: New test.
45145         * tests/test-utimensat.c: Likewise.
45146
45147         utimens: let lutimens work on non-symlinks
45148         * lib/utimens.c (lutimens): Fall back to utimens rather than
45149         failing with ENOSYS, when file is not a symlink.
45150         (utimens): Reduce redirection.
45151         * tests/test-lutimens.h (test_lutimens): Update test to cover
45152         non-symlinks.
45153         * tests/test-utimens.h (test_utimens): Update test to cover
45154         symlinks.
45155         * tests/test-utimens.c (main): Update caller.
45156
45157         utimens: cache whether utimensat syscall works
45158         * lib/utimens.c (utimensat_works_really): New cache variable.
45159         (fdutimens, lutimens): Use it to avoid failing syscall.
45160
45161         test-stat-time, test-utimens: improve portability
45162         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
45163         ext4 on alpha, and for cygwin.
45164         * tests/test-utimens-common.h: New file.
45165         (nap): Factor delays into single function.
45166         * tests/test-lutimens.h (test_lutimens): Use new header.
45167         * tests/test-futimens.h (test_futimens): Likewise.
45168         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
45169         timestamps to occur from same machine, as was done previously for
45170         test_utimens.
45171         * modules/utimens-tests (Files): Ship new file.
45172         * modules/futimens-tests (Files): Likewise.
45173         Reported in part by Jim Meyering.
45174
45175         sys_stat: sort replacement declarations
45176         * lib/sys_stat.in.h: Sort declarations.
45177         * lib/futimens.c (futimens): Fix typo.
45178
45179 2009-10-15  Jim Meyering  <meyering@redhat.com>
45180
45181         don't let environment settings perturb build
45182         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
45183         could cause a configure-time and/or build-time malfunction.
45184         Typically, a configure-time function-in-library test is performed
45185         via code like this:
45186
45187           LIB_VAR=
45188           AC_SUBST([LIB_VAR])
45189           prefix_saved_LIBS=$LIBS
45190             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
45191                        [test "$ac_cv_search_FUNC" = "none required" ||
45192                         LIB_VAR=$ac_cv_search_FUNC])
45193           LIBS=$prefix_saved_LIBS
45194
45195         However, in each of the files affected by this change, the LIB_VAR=
45196         initialization was omitted.  Thus, when set in the environment, its
45197         value would propagate into generated Makefiles when FUNC is not found
45198         in LIB_NAME.
45199         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
45200         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
45201         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
45202
45203 2009-10-14  Eric Blake  <ebb9@byu.net>
45204
45205         fchdir: avoid infinite recursion in mingw
45206         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
45207         recursing.
45208
45209         test-stat-time: port to mingw
45210         * tests/test-stat-time.c (force_unlink): Return a value.
45211         (test_ctime) [W32]: Fix compilation error.
45212         (nap): Don't call usleep with too large an argument.  Use
45213         force_unlink.
45214         * doc/pastposix-functions/usleep.texi (usleep): Document the
45215         portability issue.
45216
45217 2009-10-13  Jim Meyering  <meyering@redhat.com>
45218
45219         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
45220         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
45221         * modules/pipe-filter-ii: Likewise.
45222         * modules/sys_socket-tests: Likewise.
45223         * modules/tsearch-tests: Likewise.
45224         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
45225         (check): Depend on it.
45226
45227 2009-10-12  Eric Blake  <ebb9@byu.net>
45228
45229         utimens-tests: port to NFS file systems
45230         * tests/test-utimens.h (test_utimens): Refactor utimecmp
45231         comparisons to avoid spurious failures from timestamp drift
45232         between NFS machines.
45233
45234 2009-10-12  Eric Blake  <ebb9@byu.net>
45235
45236         stat-time-tests: minor cleanups
45237         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
45238         * tests/test-stat-time.c (nap): Separate assignment from call.
45239         Suggested by Paolo Bonzini and Bruno Haible.
45240
45241         sys_stat: guarantee struct timespec
45242         * lib/sys_stat.in.h (includes): Always include <time.h>
45243         * modules/sys_stat (Depends-on): Add time.
45244         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
45245         mode_t permission values.
45246         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
45247         get at subsecond timestamps.
45248
45249 2009-10-10  Eric Blake  <ebb9@byu.net>
45250
45251         futimens: new module
45252         * modules/futimens: New file.
45253         * lib/futimens.c (futimens): Likewise.
45254         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
45255         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
45256         we can work around Linux bugs.
45257         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
45258         * modules/sys_stat (Makefile.am): Substitute them.
45259         * lib/sys_stat.in.h (futimens): Declare it.
45260         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45261         * doc/posix-functions/futimens.texi (futimens): Likewise.
45262         * modules/futimens-tests: New test.
45263         * tests/test-futimens.c: Likewise.
45264
45265         utimens: introduce fdutimens
45266         * lib/utimens.h (fdutimens): New prototype.
45267         * lib/utimens.c (gl_futimens): Move guts...
45268         (fdutimens): ...to new interface.
45269         * tests/test-utimens.c (do_fdutimens): Use it.
45270
45271         utimens: add UTIME_NOW and UTIME_OMIT support
45272         * lib/utimens.c (validate_timespec, update_timespec): New helper
45273         functions.
45274         (gl_futimens, lutimens): Use them.
45275         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
45276         stdbool, sys_stat.
45277         (Link): Mention resulting library dependency.
45278         * modules/utimecmp (Link): Likewise.
45279         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
45280         (Makefile.am): Pick up library dependency.
45281         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
45282         definition.
45283         * tests/test-sys_stat.c: Test the definitions.
45284         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
45285         * NEWS: Document library dependency.
45286
45287         utimecmp: support symlink timestamps
45288         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
45289         hashing when possible.  Use pathconf when available.
45290         (SYSCALL_RESOLUTION): Recognize tighter resolution.
45291         * modules/utimecmp (Depends-on): Add lstat.
45292
45293         utimens: add lutimens interface
45294         * lib/utimens.c (lutimens): New function.
45295         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
45296         * lib/utimens.h (lutimens): Declare new interface.
45297         * tests/test-utimens.c (main): Enhance test.
45298         * tests/test-lutimens.h (test_lutimens): New file.
45299         * modules/utimens-tests (Files): Distribute it.
45300         (Depends-on): Add symlink.
45301         (configure.ac): Check for usleep.
45302
45303         utimens: validate futimens usage
45304         * lib/utimens.c (gl_futimens): Require valid fd up front, using
45305         fewer syscalls on failure later on.  Avoid compiler warning on
45306         mingw.
45307         * modules/utimens (Depends-on): Add dup2.
45308
45309         utimens: add test
45310         * modules/utimens-tests: New test.
45311         * tests/test-utimens.h: New file.
45312         * tests/test-futimens.h: Likewise.
45313         * tests/test-utimens.c: Likewise.
45314
45315         doc: mention timestamp portability issues
45316         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
45317         instead.
45318         * doc/posix-functions/utime.texi (utime): Likewise.
45319         * doc/posix-functions/utimes.texi (utimes): Likewise.
45320         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
45321         instead.
45322         * doc/posix-functions/futimens.texi (futimens): Mention utimens
45323         module.
45324         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
45325         Mention weakness with symlink timestamps.
45326         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
45327         to utimensat/futimens instead.
45328         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
45329
45330         test-dup2: enhance test
45331         * tests/test-dup2.c (main): Also check AT_FDCWD.
45332
45333         test-stat-time: avoid more spurious failures
45334         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
45335         xfs; and avoid race if the two timestamps cross quantization edge.
45336
45337         relocatable: prefer 'file system' over 'filesystem'
45338         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
45339         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
45340         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
45341         * doc/relocatable.texi (Enabling Relocatability): Likewise.
45342         * lib/relocatable.c (compute_curr_prefix): Likewise.
45343
45344 2009-10-10  Jim Meyering  <meyering@redhat.com>
45345
45346         stat-time-tests: check for the usleep function
45347         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
45348
45349 2009-10-10  Bruno Haible  <bruno@clisp.org>
45350
45351         * modules/xnanosleep: Put the Link section after the Include section.
45352
45353 2009-10-09  Eric Blake  <ebb9@byu.net>
45354
45355         dup2: work around FreeBSD 6.1 bug
45356         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
45357         * doc/posix-functions/dup2.texi (dup2): Document it.
45358         Reported by Nelson H. F. Beebe and Jim Meyering.
45359
45360         test-stat-time: port to buggy NFS clients
45361         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
45362         (test_ctime): Also skip test if mtime and ctime are skewed.
45363
45364         maint: prefer 'file system' over 'filesystem'
45365         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
45366         * doc/posix-functions/lstat.texi (lstat): Likewise.
45367         * lib/file-has-acl.c (file_has_acl): Likewise.
45368         * lib/fwriteerror.c [TEST]: Likewise.
45369         * tests/test-areadlink.h (test_areadlink): Likewise.
45370         * tests/test-areadlinkat-with-size.c (main): Likewise.
45371         * tests/test-areadlinkat.c (main): Likewise.
45372         * tests/test-canonicalize-lgpl.c (main): Likewise.
45373         * tests/test-canonicalize.c (main): Likewise.
45374         * tests/test-fstatat.c (main): Likewise.
45375         * tests/test-linkat.c (main): Likewise.
45376         * tests/test-lstat.h (test_lstat_func): Likewise.
45377         * tests/test-mkdir.h (test_mkdir): Likewise.
45378         * tests/test-readlink.h (test_readlink): Likewise.
45379         * tests/test-remove.c (main): Likewise.
45380         * tests/test-rename.h (test_rename): Likewise.
45381         * tests/test-renameat.c (main): Likewise.
45382         * tests/test-rmdir.h (test_rmdir_func): Likewise.
45383         * tests/test-symlink.h (test_symlink): Likewise.
45384         * tests/test-symlinkat.c (main): Likewise.
45385         * tests/test-unlink.h (test_unlink_func): Likewise.
45386         * tests/test-unlinkat.c (main): Likewise.
45387
45388         maint: make realtime library usage explicit
45389         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
45390         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
45391         * modules/settime (Link): Likewise.
45392         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
45393
45394         test-stat-time: speed up execution
45395         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
45396         warning on mingw.
45397         (nap): New helper function.
45398         (prepare_test): Use it to reduce sleep time.
45399         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
45400         execution.
45401         * modules/stat-time-tests (configure.ac): Check for usleep.
45402
45403 2009-10-09  Jim Meyering  <meyering@redhat.com>
45404
45405         selinux-h: always use getfilecon wrappers
45406         * lib/getfilecon.c: New file.
45407         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
45408         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
45409         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
45410         (fgetfilecon): Provide a stub.
45411         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
45412         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
45413         file unconditionally.
45414         When <selinux/selinux.h> is found, arrange to use wrappers.
45415         * modules/selinux-h (Files): Add getfilecon.c.
45416         (Makefile.am): Substitute include-next-related bits
45417         into the now-always-generated selinux/selinux.h file.
45418         * doc/glibc-functions/lgetfilecon.texi: New file.
45419         * doc/glibc-functions/fgetfilecon.texi: New file.
45420         * doc/glibc-functions/getfilecon.texi: New file.
45421         * doc/glibc-functions/getfilecon-desc.texi: New file.
45422         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
45423         which to pull in the new files.
45424         * MODULES.html.sh (Misc): Add selinux-h.
45425
45426 2009-10-08  Jim Meyering  <meyering@redhat.com>
45427
45428         unistd: fix comment typo
45429         * lib/unistd.in.h (euidaccess): Fix a comment typo.
45430
45431 2009-10-08  Eric Blake  <ebb9@byu.net>
45432
45433         areadlink: use SIZE_MAX consistently
45434         * modules/areadlink (Depends-on): Add stdint.
45435         * modules/areadlink-with-size (Depends-on): Likewise.
45436         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
45437         gives NULL; drop sys/types, since unistd gives size_t; and add
45438         stdint for SIZE_MAX.
45439         (SIZE_MAX): Rely on headers.
45440         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
45441         and add stdint.
45442         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
45443         (SIZE_MAX): Likewise.
45444         (INITIAL_BUF_SIZE): Turn into enum.
45445         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
45446
45447 2009-10-08  Jim Meyering  <meyering@redhat.com>
45448
45449         areadlinkat: avoid compilation failure
45450         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
45451         Fix typo in comment.
45452
45453 2009-10-07  Eric Blake  <ebb9@byu.net>
45454
45455         areadlinkat-with-size: new module
45456         * modules/areadlinkat-with-size: New module.
45457         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
45458         * lib/areadlink.h (areadlinkat): Declare it.
45459         * MODULES.html.sh (File system functions): Mention it.
45460         * modules/areadlinkat-with-size-tests: New test.
45461         * tests/test-areadlinkat-with-size.c: New file.
45462
45463         xreadlinkat: new module
45464         * modules/xreadlinkat: New module.
45465         * lib/xreadlinkat.c (xreadlinkat): New file.
45466         * lib/xreadlink.h (xreadlinkat): Declare it.
45467         * MODULES.html.sh (File system functions): Mention it.
45468
45469         areadlinkat: new module
45470         * lib/at-func.c (FUNC_FAIL): New define.
45471         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
45472         * modules/areadlinkat: New module.
45473         * lib/linkat.c (areadlinkat): Move...
45474         * lib/areadlinkat.c (areadlinkat): ...to new file.
45475         * lib/areadlink.h (areadlinkat): Declare it.
45476         * modules/linkat (Depends-on): Add areadlinkat.
45477         * MODULES.html.sh (File system functions): Mention it.
45478         * modules/areadlinkat-tests: New test.
45479         * tests/test-areadlinkat.c: New file.
45480
45481         areadlink, areadlink-with-size: add tests
45482         * modules/areadlink-tests: New test.
45483         * modules/areadlink-with-size-tests: Likewise.
45484         * tests/test-areadlink.h: New file.
45485         * tests/test-areadlink.c: Likewise.
45486         * tests/test-areadlink-with-size.c: Likewise.
45487
45488         maint: minor cleanups
45489         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
45490         _UNUSED_PARAMETER_ instead.
45491         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
45492         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
45493         * modules/linkat-tests (Files): Distribute test-link.h.
45494
45495         openat, utimens: whitespace cleanup
45496         * lib/openat.c: Prefer space throughout, rather than mix of 8
45497         spaces vs. tabs.
45498         * lib/at-func.c: Likewise.
45499         * lib/utimens.c: Likewise.
45500
45501         openat: avoid using wrong fd
45502         * lib/openat.c (openat_permissive): Reject user's fd if saving the
45503         working directory chooses same fd.
45504         * lib/at-func.c (AT_FUNC_NAME): Likewise.
45505
45506         mkdir, mkdirat: fix cygwin 1.5.x bug
45507         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
45508         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
45509         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
45510         bug.
45511         (gl_PREREQ_MKDIR): Delete unused macro.
45512         * modules/mkdir (Files): Track file rename.
45513         (configure.ac): Update macro name.
45514         * modules/openat (Depends-on): Add mkdir.
45515         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
45516
45517         mkdir, mkdirat: add tests
45518         * modules/mkdir-tests: New test.
45519         * tests/test-mkdir.h: New file.
45520         * tests/test-mkdir.c: Likewise.
45521         * tests/test-mkdirat.c: Likewise.
45522         * modules/openat-tests (Files): Add new files.
45523         (Makefile.am): Run new test.
45524
45525 2009-10-06  Eric Blake  <ebb9@byu.net>
45526
45527         doc: tweak *at function documentation
45528         * doc/posix-functions/faccessat.texi (faccessat): Mention
45529         known issue with replacement.
45530         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
45531         * doc/posix-functions/linkat.texi (linkat): Likewise.
45532         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
45533         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
45534         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
45535         * doc/posix-functions/renameat.texi (renameat): Likewise.
45536         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
45537
45538         openat: fix GNU/Hurd bug in unlinkat
45539         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
45540         broken.
45541         * doc/posix-functions/unlink.texi (unlink): Document this.
45542         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
45543
45544         fdopendir: fix GNU/Hurd bug
45545         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
45546         allowing non-directory fds.
45547         * lib/fdopendir.c (rpl_fdopendir): Work around it.
45548         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
45549         * modules/dirent (Makefile.am): Substitute it.
45550         * lib/dirent.in.h (fdopendir): Declare replacement.
45551         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
45552         * tests/test-fdopendir.c (main): Test something other than
45553         /dev/null, since on Hurd that behaves like a directory.
45554
45555         test-symlink: port to GNU/Hurd
45556         * tests/test-symlink.h (test_symlink): Relax expected errno.
45557
45558         doc: tweak more cygwin information
45559         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
45560         now compatible with glibc.
45561         * doc/posix-functions/getopt.texi (getopt): Likewise.
45562
45563         getopt-gnu: add another test
45564         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
45565         guarantee behavior relied on by m4.
45566         * tests/test-getopt.c (main): Use it.
45567         * modules/getopt-posix-tests (Depends-on): Add setenv.
45568         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
45569
45570         getopt: fix compilation on darwin
45571         * lib/getopt.in.h (includes): Leave breadcrumbs during system
45572         include.
45573         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
45574         Reported by Ludovic Courtès.
45575
45576 2009-10-06  Bruno Haible  <bruno@clisp.org>
45577
45578         * modules/size_max (Description): Discourage its use.
45579         Reported by Simon Josefsson.
45580
45581 2009-10-06  Jim Meyering  <meyering@redhat.com>
45582
45583         linkat: avoid compilation failure
45584         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
45585
45586 2009-10-05  Eric Blake  <ebb9@byu.net>
45587
45588         linkat: support Linux 2.6.17
45589         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
45590         linkat on Linux, but allow cache variable override.
45591         * lib/linkat.c (rpl_linkat): Define override.
45592         * modules/linkat (Depends-on): Add symlinkat.
45593         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
45594         * modules/unistd (Makefile.am): Substitute it.
45595         * lib/unistd.in.h (linkat): Declare replacement.
45596         Reported by Pádraig Brady.
45597
45598         quotearg: port test to systems with C.UTF-8 locale
45599         * tests/test-quotearg.c (struct result_strings): Add another
45600         member, differentiating between C.ASCII and C.UTF-8 handling.
45601         (compare_strings): Add parameter.
45602         (main): Adjust all callers.
45603
45604         getopt: avoid clash with FreeBSD _getopt_internal
45605         * lib/getopt.in.h (_getopt_internal): Override the name.
45606         * lib/getopt_int.h (includes): Pick up any overrides.
45607         Reported by Reuben Thomas.
45608
45609         hash: allow C89 compilation
45610         * lib/hash.c (check_tuning): Move declaration before statement.
45611         Reported by Reuben Thomas.
45612
45613 2009-10-05  Karl Berry  <karl@gnu.org>
45614
45615         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
45616
45617 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
45618             Bruno Haible  <bruno@clisp.org>
45619
45620         * lib/uname.c (uname): Use a table-driven algorithm to compute
45621         Windows NT versions.
45622
45623 2009-10-04  Bruno Haible  <bruno@clisp.org>
45624
45625         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
45626         program_invocation_short_name.
45627         * modules/progname (configure.ac): Test for presence of
45628         program_invocation_short_name.
45629         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
45630
45631 2009-10-04  Bruno Haible  <bruno@clisp.org>
45632
45633         * lib/progname.c (set_program_name): Fix comment.
45634         Reported by Jim Meyering.
45635
45636 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
45637             Bruno Haible  <bruno@clisp.org>
45638
45639         * lib/uname.c: Include <string.h>.
45640         (uname): Do only one call to GetVersionEx in the common case.
45641
45642 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
45643             Bruno Haible  <bruno@clisp.org>
45644
45645         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
45646         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
45647         (uname): Add support for Windows CE and various non-x86 CPU types.
45648
45649 2009-10-03  Bruno Haible  <bruno@clisp.org>
45650
45651         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
45652         invocation to tests/configure.ac.
45653         Reported by Ian Beckwith <ianb@erislabs.net>.
45654
45655 2009-10-02  Eric Blake  <ebb9@byu.net>
45656
45657         fchdir: avoid compiler warning
45658         * lib/fchdir.c (canonicalize_file_name)
45659         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
45660
45661         test-open: support mingw errno values
45662         * tests/test-open.h (test_open): Relax test.
45663         * tests/test-fopen.h (test_fopen): Likewise.
45664         * tests/test-openat-safer.c (main): Likewise.
45665
45666         open: fix opening directory on mingw
45667         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
45668
45669         test-open: on GNU/Hurd, /dev/null is a directory
45670         * tests/test-fopen.h (main): Rename...
45671         (test_fopen): ...to this.  Use a guaranteed non-directory when
45672         confirming open behavior on trailing slash.
45673         * tests/test-openat-safer.c (main): Likewise.
45674         * tests/test-open.h (main): Likewise....
45675         (test_open): ...to this.
45676         * tests/test-fopen.c (main): Adjust caller.
45677         * tests/test-fopen-safer.c (main): Likewise.
45678         * tests/test-open.c (main): Likewise.
45679         * tests/test-fcntl-safer.c (main): Likewise.
45680         Reported by Samuel Thibault.
45681
45682         rename, fchdir: don't ignore chdir failure
45683         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
45684         * lib/rename.c (rpl_rename) [W32]: Likewise.
45685         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
45686         an empty destination directory if source cannot be renamed,
45687         although there is still possibility for failure.
45688         * doc/posix-functions/rename.texi (rename): Document the race.
45689         Reported by Jim Meyering.
45690
45691         maint: cleanup whitespace in recent commits
45692         * lib/rename.c (rpl_rename): Remove tabs.
45693         * tests/test-link.h (test_link): Likewise.
45694         * lib/fchdir.c (get_name): Likewise.
45695         Reported by Jim Meyering.
45696
45697 2009-10-02  Ben Pfaff  <blp@gnu.org>
45698
45699         relocatable-prog-wrapper: Add missing dependency on
45700         double-slash-root.
45701         * modules/relocatable-prog-wrapper: Add dependency.
45702         Reported by Ian Beckwith <ianb@erislabs.net>.
45703
45704 2009-10-02  Eric Blake  <ebb9@byu.net>
45705
45706         renameat: fix Solaris bugs
45707         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
45708         needed fixing.
45709         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
45710         * modules/stdio (Makefile.am): Substitute it.
45711         * lib/stdio.in.h (renameat): Declare replacement.
45712         * lib/renameat.c (rpl_renameat): Implement fix.
45713
45714         renameat: new module
45715         * modules/renameat: New file.
45716         * lib/renameat.c (renameat): Likewise.
45717         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
45718         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
45719         * modules/stdio (Makefile.am): Substitute them.
45720         * lib/stdio.in.h (renameat): Declare it.
45721         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45722         * doc/posix-functions/renameat.texi (renameat): Likewise.
45723         * modules/renameat-tests: New test.
45724         * tests/test-renameat.c: Likewise.
45725
45726         rename: fix mingw bugs
45727         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
45728         directory overwrite bugs.
45729
45730         rename: fix another cygwin 1.5 bug
45731         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
45732         checks.
45733         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
45734         unnecessary cygwin workarounds.  Also work around bug with moving
45735         full directory onto an empty one.
45736         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
45737
45738         rename-dest-slash: merge into rename module
45739         * modules/rename-dest-slash (Status): Mark obsolete.
45740         (Depends-on): Add rename.
45741         (Files): Let rename do it all.
45742         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
45743         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
45744         * m4/rename-dest-slash.m4: ...so this file can be deleted.
45745         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
45746         * lib/rename.c (rpl_rename): Update comments.
45747
45748         rename: fix cygwin 1.5.x bugs
45749         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
45750         * lib/rename.c (rpl_rename): Work around them.
45751         * modules/rename (Depends-on): Add same-inode.
45752
45753         rename: fix Solaris 10 bug
45754         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
45755         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
45756         was the only bug.
45757
45758         rename: fix Solaris 9 bug
45759         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
45760         on non-directory.  Avoid calling exit.
45761         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
45762         strdup.
45763         * modules/rename-tests (Depends-on): Drop lstat.
45764         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
45765         (gl_PREREQ_RENAME): Delete unused macro.
45766
45767         rename-dest-slash: fix NetBSD bug
45768         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
45769         links.
45770         * modules/rename-dest-slash (Depends-on): Add same-inode.
45771
45772         rename-tests: new test, exposes several platform bugs
45773         * modules/rename-tests: New file.
45774         * tests/test-rename.h: Likewise.
45775         * tests/test-rename.c: Likewise.
45776         * doc/posix-functions/rename.texi (rename): Improve documentation,
45777         including bugs that will eventually be fixed in gnulib.
45778
45779 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
45780
45781         * lib/uname.c: Include <stdlib.h>
45782         (uname): Assume version info is available.
45783
45784 2009-10-02  Jim Meyering  <meyering@redhat.com>
45785
45786         gnu-web-doc-update: correct --help output
45787         * build-aux/gnu-web-doc-update: Make --help output relevant.
45788
45789         gnu-web-doc-update: add standard options
45790         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
45791
45792         gnu-web-doc-update: New module.
45793         Use this script to automatically update the on-line web documentation
45794         for your GNU project at http://www.gnu.org/software/$pkg/manual/
45795         * modules/gnu-web-doc-update: New file, from coreutils.
45796         * build-aux/gnu-web-doc-update: New script.
45797
45798 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
45799
45800         link: LoadLibrary is not needed.
45801         * lib/link.c: Use GetModuleHandle.
45802
45803 2009-10-01  Eric Blake  <ebb9@byu.net>
45804
45805         getopt: bump serial number
45806         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
45807         change.
45808
45809         tests: tighten link, rmdir, and remove tests
45810         * tests/test-link.h (includes): No need to use <config.h> here.
45811         Clean up if directory hard link was created, otherwise test for
45812         trailing '.'.
45813         * tests/test-linkat.c (main): Simplify.
45814         * tests/test-remove.c (main): Enhance test for trailing '.'.
45815         * tests/test-rmdir.h (test_rmdir_func): Likewise.
45816
45817 2009-10-01  Jim Meyering  <meyering@redhat.com>
45818
45819         maint.mk: requiring "make major" was annoying, for a "minor" release.
45820         What is intended is "stable", to contrast with alpha and beta,
45821         so require "make stable", not "make major".
45822         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
45823         (get_tool_versions): Likewise.
45824         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
45825
45826 2009-09-30  Ben Pfaff  <blp@gnu.org>
45827
45828         Fix broken build of replacement for Windows tmpfile().
45829         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
45830         flags argument added along with the 'mkostemp' module.
45831
45832 2009-09-28  Bruno Haible  <bruno@clisp.org>
45833
45834         Avoid identifier clash with POSIX function 'remove' defined as a macro.
45835         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
45836         to 'remove_elt'.
45837         (gl_list_remove): Update.
45838         * lib/gl_list.c (gl_list_remove): Update.
45839         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
45840         to 'remove_elt'.
45841         (gl_oset_remove): Update.
45842         * lib/gl_list.c (gl_oset_remove): Update.
45843         Reported by Eric Blake.
45844
45845 2009-09-28  Eric Blake  <ebb9@byu.net>
45846
45847         doc: mention yet more cygwin 1.7 status
45848         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
45849         cygwin.
45850         * doc/glibc-functions/execvpe.texi (execvpe): New file.
45851         * doc/gnulib.texi (Glibc unistd.h): Mention it.
45852
45853         argp: fix test failure
45854         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
45855         that are not upper-case.  Pass correct range to tolower.
45856
45857 2009-09-27  Jim Meyering  <meyering@redhat.com>
45858
45859         test-yesno: work around sparc-dash here-document infelicity
45860         Without this change, the literal \177 byte in a here document
45861         would make dash 0.5.5.1-3 access uninitialized memory.
45862         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
45863         Instead, use a marker, "@", and filter through tr to create the desired
45864         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
45865
45866 2009-09-27  Bruno Haible  <bruno@clisp.org>
45867
45868         Disable untested support for new flavours of ACLs on AIX.
45869         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
45870         progress.
45871         * lib/set-mode-acl.c (qset_acl): Likewise.
45872
45873 2008-12-07  Bruno Haible  <bruno@clisp.org>
45874
45875         Add support for new flavours of ACLs on AIX. (Untested.)
45876         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
45877         (file_has_acl): Add support for newer AIX.
45878         * lib/set-mode-acl.c (qset_acl): Likewise.
45879         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
45880         Rainer Tammer <tammer@tammer.net>.
45881
45882 2009-09-26  Eric Blake  <ebb9@byu.net>
45883
45884         argp: fix compilation of getopt
45885         * lib/getopt.in.h (includes): Use different guard than glibc.
45886         Reported by Sergey Poznyakoff.
45887
45888         doc: mention more cygwin 1.7 status
45889         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
45890         bug.
45891         * doc/posix-functions/execl.texi (execl): Likewise.
45892         * doc/posix-functions/execle.texi (execle): Likewise.
45893         * doc/posix-functions/execlp.texi (execlp): Likewise.
45894         * doc/posix-functions/execv.texi (execv): Likewise.
45895         * doc/posix-functions/execve.texi (execve): Likewise.
45896         * doc/posix-functions/execvp.texi (execvp): Likewise.
45897         * doc/glibc-functions/canonicalize_file_name.texi
45898         (canonicalize_file_name): Cygwin 1.7 now provides this.
45899         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
45900         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
45901         on AT_SYMLINK_NOFOLLOW.
45902
45903 2009-09-24  Eric Blake  <ebb9@byu.net>
45904
45905         test-linkat: make test more robust
45906         * tests/test-linkat.c (main): Avoid collision with EEXIST.
45907
45908         getopt: fix inclusion guards for cygwin
45909         * modules/getopt-posix (Depends-on): Add include-next.
45910         (Makefile.am): Substitute more items in replacement header.
45911         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
45912         <getopt.h>.
45913         * lib/getopt.in.h (includes): Use split inclusion guard, and
45914         prefer <getopt.h> over include <unistd.h> when one is present.
45915         (option): Also override name of 'struct option'.
45916
45917         same-inode: revert prior change; it is not yet ready
45918         * NEWS: Undo mention of this change.
45919         * lib/same-inode.h (same-inode.h): Undo tri-state change.
45920         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
45921         * lib/cycle-check.c (cycle_check): Likewise.
45922         * lib/same.c (same_name): Likewise.
45923         * lib/at-func2.c (at_func2): Likewise.
45924
45925 2009-09-23  Eric Blake  <ebb9@byu.net>
45926
45927         linkat: new module
45928         * modules/linkat: New file.
45929         * lib/at-func2.c (at_func2): Likewise.
45930         * lib/linkat.c (linkat): Likewise.
45931         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
45932         * lib/openat-priv.h (at_func2): Add declaration.
45933         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
45934         * modules/unistd (Makefile.am): Substitute them.
45935         * lib/unistd.in.h (linkat): Declare it.
45936         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45937         * doc/posix-functions/linkat.texi (linkat): Likewise.
45938         * doc/posix-functions/link.texi (link): Tweak wording.
45939         * tests/test-link.c (main): Move guts...
45940         * tests/test-link.h (test_link): ...into new file.
45941         * modules/linkat-tests: New test.
45942         * tests/test-linkat.c: Likewise.
45943         * modules/link-tests (Files): Ship new file.
45944         (Depends-on): Add stdbool.
45945
45946         dirname: add library-safe mdir_name
45947         * lib/dirname.h (mdir_name): New prototype.
45948         * lib/dirname.c (dir_name): Move guts...
45949         (mdir_name): ...to new function that avoids xalloc_die.
45950
45951         fchdir: another mingw fix
45952         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
45953         * lib/fchdir.c (get_name): New helper method; skips canonicalize
45954         on mingw (where it has not yet been ported), and make it optional
45955         elsewhere.
45956         (_gl_register_fd): Use it.
45957
45958         same-inode: make SAME_INODE tri-state, to port to mingw
45959         * NEWS: Mention this change.
45960         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
45961         st_ino always being 0.
45962         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
45963         * lib/cycle-check.c (cycle_check): Likewise.
45964         * lib/same.c (same_name): Likewise.
45965
45966         lstat: avoid mingw compilation error
45967         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
45968         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
45969         lstat ourselves.
45970         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
45971         was adequate.
45972         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
45973         the checks for lstat.
45974         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
45975
45976         link: fix test failure on Solaris 9
45977         * lib/link.c (rpl_link): Don't assume link will catch bogus
45978         trailing slash on source.
45979
45980         test-symlinkat: enhance test
45981         * tests/test-readlink.c (main): Move guts...
45982         * tests/test-readlink.h (test_readlink): ...into new file.
45983         * tests/test-symlink.c (main): Move guts...
45984         * tests/test-symlink.h (test_symlink): ...into new file.
45985         * tests/test-symlinkat.c (main): Use new files for further
45986         coverage.
45987         (do_symlink, do_readlink): New helper functions.
45988         * modules/symlink-tests (Files): Ship new file.
45989         (Depends-on): Add stdbool.
45990         * modules/readlink-tests (Files): Ship new file.
45991         (Depends-on): Add stdbool.
45992         * modules/symlinkat-tests (Files): Use new files.
45993
45994 2009-09-23  Eric Blake  <ebb9@byu.net>
45995
45996         readlink: document portability issue with symlink length
45997         * doc/posix-functions/lstat.texi (lstat): Mention that some file
45998         systems have bogus st_size on symlinks, and mention the
45999         areadlink-with-size module.
46000         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
46001         * doc/posix-functions/readlink.texi (readlink): Mention the
46002         areadlink module, and ERANGE failure.
46003         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
46004         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
46005
46006         readlink: fix Solaris 9 bug with trailing slash
46007         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
46008         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
46009         * doc/posix-functions/readlink.texi (readlink): Document this.
46010         * modules/readlink-tests: New test.
46011         * tests/test-readlink.c: Likewise.
46012
46013         readlink: fix cygwin 1.5.x bug with return type
46014         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
46015         * lib/unistd.in.h (readlink): Use ssize_t.
46016         * lib/readlink.c (readlink): Likewise.
46017         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
46018         * modules/unistd (Makefile.am): Substitute it.
46019         * lib/unistd.in.h (readlink): Declare replacement.
46020         * doc/posix-functions/readlink.texi (readlink): Document this.
46021
46022         symlink: use throughout gnulib
46023         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
46024         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
46025         symlink is not used.
46026         * modules/symlinkat (Depends-on): Add symlink.
46027         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
46028         * modules/canonicalize-tests (Depends-on): Likewise.
46029         * modules/lstat-tests (Depends-on): Likewise.
46030         * modules/openat-tests (Depends-on): Likewise.
46031         * modules/remove-tests (Depends-on): Likewise.
46032         * modules/rmdir-tests (Depends-on): Likewise.
46033         * modules/unlink-tests (Depends-on): Likewise.
46034         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
46035         * tests/test-canonicalize.c (symlink): Likewise.
46036         * tests/test-fstatat.c (symlink): Likewise.
46037         * tests/test-lstat.c (symlink): Likewise.
46038         * tests/test-remove.c (symlink): Likewise.
46039         * tests/test-rmdir.c (symlink): Likewise.
46040         * tests/test-unlink.c (symlink): Likewise.
46041         * tests/test-unlinkat.c (symlink): Likewise.
46042
46043         symlink: new module, for Solaris 9 bug
46044         * modules/symlink: New file.
46045         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
46046         * lib/symlink.c: Likewise.
46047         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
46048         * modules/unistd (Makefile.am): Substitute them.
46049         * lib/unistd.in.h (symlink): Declare replacement.
46050         * MODULES.html.sh (File system functions): Mention it.
46051         * doc/posix-functions/symlink.texi (symlink): Likewise.
46052         * modules/symlink-tests: New test.
46053         * tests/test-symlink.c: Likewise.
46054
46055 2009-09-23  Bruno Haible  <bruno@clisp.org>
46056
46057         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
46058         when needed.
46059         Test case: gnulib-tool --import --with-tests atexit inttypes.
46060         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
46061
46062 2009-09-23  Bruno Haible  <bruno@clisp.org>
46063
46064         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
46065         subcommand, not in a subshell.
46066
46067 2009-09-22  Eric Blake  <ebb9@byu.net>
46068
46069         unistd: sort replacement declarations
46070         * lib/unistd.in.h: Sort declarations.
46071
46072         open, openat: minor optimization
46073         * lib/open.c (open): If open succeeded, len is non-zero.
46074         * lib/openat.c (rpl_openat): Likewise.
46075
46076         link-follow: ensure correct result
46077         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
46078         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
46079         distinguish between possible failures.
46080
46081 2009-09-21  Eric Blake  <ebb9@byu.net>
46082
46083         fts: avoid compiler warning
46084         * lib/fts.c (dirent_inode_sort_may_be_useful)
46085         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
46086
46087 2009-09-19  Bruno Haible  <bruno@clisp.org>
46088
46089         * lib/progreloc.c (canonicalize_file_name): New declaration.
46090
46091 2009-09-19  Eric Blake  <ebb9@byu.net>
46092
46093         link: fix quoting
46094         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
46095
46096         openat: fix openat bugs on Solaris 9
46097         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
46098         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
46099         * modules/openat (Depends-on): Add open.
46100         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
46101         * modules/fcntl-h (Makefile.am): Substitute it.
46102         * lib/fcntl.in.h (openat): Declare replacement.
46103         * doc/posix-functions/openat.texi (openat): Document this.
46104
46105         openat: move fstatat and unlinkat into correct files
46106         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
46107         compiled.
46108         * lib/openat.c (fstatat, unlinkat): Move...
46109         * lib/fstatat.c (fstatat): ...into correct files.
46110         * lib/unlinkat.c (unlinkat): Likewise.
46111
46112         openat: fix unlinkat bugs on Solaris 9
46113         * lib/unlinkat.c (unlinkat): New file.
46114         * modules/openat (Depends-on): Add unlink.
46115         (Files): Distribute it.
46116         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
46117         trailing slash behavior is broken.
46118         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
46119         * modules/unistd (Makefile.am): Substitute it.
46120         * lib/unistd.in.h (unlinkat): Declare replacement.
46121         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
46122
46123         openat: fix fstatat bugs on Solaris 9
46124         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
46125         stat.
46126         * doc/posix-functions/fstatat.texi (fstatat): Document this.
46127
46128         test-unlinkat: enhance test, to expose Solaris 9 bug
46129         * tests/test-unlink.c (main): Factor guts...
46130         * tests/test-unlink.h (test_rmdir_func): ...into new file.
46131         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
46132         * tests/test-rmdir.c (main): Adjust caller.
46133         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
46134         (unlinker): New helper function.
46135         (rmdirat): Enhance check.
46136         * modules/rmdir-tests (Depends-on): Add stdbool.
46137         * modules/unlink-tests (Depends-on): Likewise.
46138         (Files): Add test-unlink.h.
46139         * modules/openat-tests (Files): Likewise.
46140         (Depends-on): Add unlinkdir.
46141
46142         test-fstatat: new test, to expose Solaris 9 bugs
46143         * tests/test-stat.c (main): Factor guts...
46144         * tests/test-stat.h (test_stat_func): ...into new file.
46145         * tests/test-lstat.c (main): Factor guts...
46146         * tests/test-lstat.h (test_lstat_func): ...into new file.
46147         * tests/test-fstatat.c: New file.
46148         * modules/stat-tests (Files): Add test-stat.h.
46149         * modules/lstat-tests (Files): Add test-lstat.h.
46150         (Depends-on): Add stdbool.
46151         * modules/openat-tests (Depends-on): Add pathmax.
46152         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
46153         (Makefile.am): Run new test.
46154
46155         remove: new module, for mingw and Solaris 9 bugs
46156         * modules/remove: New file.
46157         * lib/remove.c: Likewise.
46158         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
46159         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
46160         * modules/stdio (Makefile.am): Use them.
46161         * lib/stdio.in.h (remove): Declare replacement.
46162         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
46163         * doc/posix-functions/remove.texi (remove): Likewise.
46164         * modules/remove-tests: New test.
46165         * tests/test-remove.c: Likewise.
46166
46167         unlink: new module, for Solaris 9 bug
46168         * modules/unlink: New file.
46169         * lib/unlink.c: Likewise.
46170         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
46171         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
46172         * modules/unistd (Makefile.am): Use them.
46173         * lib/unistd.in.h (stat): Declare replacement.
46174         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
46175         * doc/posix-functions/unlink.texi (unlink): Likewise.
46176         * modules/unlink-tests: New test.
46177         * tests/test-unlink.c: Likewise.
46178
46179         lstat: fix Solaris 9 bug
46180         * lib/lstat.c (lstat): Also check for trailing slash on
46181         non-symlink, non-directories.  Use stat module to simplify logic.
46182         * doc/posix-functions/lstat.texi (lstat): Document it.
46183         * modules/lstat-tests (Depends-on): Add errno, same-inode.
46184         (configure.ac): Check for symlink.
46185         * tests/test-lstat.c (main): Add more tests.
46186
46187         stat: add as dependency to other modules
46188         * modules/chown (Depends-on): Add stat.
46189         * modules/euidaccess (Depends-on): Likewise.
46190         * modules/fchdir (Depends-on): Likewise.
46191         * modules/isdir (Depends-on): Likewise.
46192         * modules/link (Depends-on): Likewise.
46193         * modules/lstat (Depends-on): Likewise.
46194         * modules/mkdir-p (Depends-on): Likewise.
46195         * modules/modechange (Depends-on): Likewise.
46196         * modules/open (Depends-on): Likewise.
46197         * modules/readlink (Depends-on): Likewise.
46198         * modules/same (Depends-on): Likewise.
46199
46200         stat: fix Solaris 9 bug
46201         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
46202         slash.
46203         * lib/stat.c (rpl_stat): Work around it.
46204         * doc/posix-functions/stat.texi (stat): Update documentation.
46205
46206         stat: new module, for mingw bug
46207         * modules/stat: New file.
46208         * lib/stat.c: Likewise.
46209         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
46210         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
46211         * modules/sys_stat (Makefile.am): Use them.
46212         * lib/sys_stat.in.h (stat): Declare replacement.
46213         * lib/openat.c (fstatat): Deal with lstat and stat being function
46214         macros.
46215         * modules/openat (Depends-on): Add inline.
46216         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
46217         * doc/posix-functions/stat.texi (stat): Likewise.
46218         * modules/stat-tests: New test.
46219         * tests/test-stat.c: Likewise.
46220
46221 2009-09-19  Jim Meyering  <meyering@redhat.com>
46222
46223         syntax-check: detect unnecessary inclusion of canonicalize.h
46224         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
46225
46226 2009-09-19  Eric Blake  <ebb9@byu.net>
46227
46228         canonicalize-lgpl: adjust clients to use correct header
46229         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
46230         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
46231         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
46232         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
46233         * lib/progreloc.c (includes): Likewise.
46234
46235 2009-09-19  Jim Meyering  <meyering@redhat.com>
46236
46237         test-posixtm.c: correct a comment
46238         * tests/test-posixtm.c: Correct first-line comment.
46239         Spotted by Eric Blake.
46240
46241 2009-09-16  Jim Meyering  <meyering@redhat.com>
46242
46243         posixtm-tests: make T const-correct; add a test case
46244         * tests/test-posixtm.c (T): Declare const.
46245         Add a test for -(2^31+1).
46246         Remove useless can-succeed-only-in-2002 test.
46247
46248         posixtm-tests: adjust the sole failing test
46249         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
46250         expected output matches what mktime now produces.  Cross-checked via
46251         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
46252
46253         posixtm: move #ifdef'd tests into a new module
46254         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
46255         * tests/test-posixtm.c: ... this new file.
46256         * modules/posixtm-tests: New module.
46257
46258 2009-09-19  Eric Blake  <ebb9@byu.net>
46259
46260         openat: simplify use of at-func.c
46261         * lib/at-func.c (includes): Include prerequisites here, to
46262         simplify requirements on client files.
46263         * lib/openat-priv.h: Add double-inclusion guard.
46264         * lib/faccessat.c (includes): Simplify.
46265         * lib/fchmodat.c (includes): Likewise.
46266         * lib/fchownat.c (includes): Likewise.
46267         * lib/mkdirat.c (includes): Likewise.
46268         * lib/mkfifoat.c (includes): Likewise.
46269         * lib/symlinkat.c (includes): Likewise.
46270
46271         openat: allow return of fd 0
46272         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
46273         * modules/save-cwd (Depends-on): Replace fcntl-safer with
46274         unistd-safer.
46275         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
46276         <fcntl.h>; this module does not leak fds.
46277         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
46278         must be allowed to return 0, leaving openat_safer to add the
46279         safety.
46280         (openat_permissive): Avoid writing to just-opened fd 2 if
46281         restoring the current directory fails.
46282         * lib/openat-die.c (openat_restore_fail): Add comment.
46283         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
46284         (save_cwd): Guarantee safe fd, but without use of open_safer.
46285         * tests/test-openat.c: New test.
46286         * modules/openat-tests (Files, Makefile.am): Distribute and build
46287         new file.
46288
46289         relocatable-prog-wrapper: fix build
46290         * modules/relocatable-prog-wrapper (Files): Update name of
46291         canonicalize m4 file, broken on 2009-09-17.
46292         Reported by emad hajjar <aleppos@hotmail.com>.
46293
46294 2009-09-19  Bruno Haible  <bruno@clisp.org>
46295
46296         * lib/safe-alloc.h: Use the standard header with GPL copyright.
46297         * lib/safe-alloc.c: Likewise.
46298         Reported by Ian Beckwith <ianb@erislabs.net>.
46299
46300 2009-09-18  Bruno Haible  <bruno@clisp.org>
46301
46302         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
46303         Reported by <erobles@sensacd.com.mx>.
46304
46305 2009-09-17  Eric Blake  <ebb9@byu.net>
46306
46307         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
46308         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
46309         slashes when checking if last component is missing.
46310         * tests/test-canonicalize.c (main): Test this.
46311
46312         canonicalize, canonicalize-lgpl: honor // if distinct from /
46313         * modules/canonicalize (Files): Add double-slash-root.m4.
46314         * modules/canonicalize-lgpl (Files): Likewise.
46315         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
46316         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
46317         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
46318         fallback definition.
46319         (canonicalize_filename_mode): Use it to protect //.
46320         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
46321         (__realpath): Likewise.
46322         * tests/test-canonicalize.c (main): Test this.
46323         * tests/test-canonicalize-lgpl.c (main): Likewise.
46324         * modules/canonicalize-tests (Depends-on): Add same-inode.
46325         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
46326
46327         canonicalize-lgpl: fix glibc bug with trailing slash
46328         * m4/canonicalize-lgpl.m4: Move contents...
46329         * m4/canonicalize.m4: ...here.
46330         (gl_CANONICALIZE_LGPL): Factor realpath check...
46331         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
46332         glibc 2.3.5 bug, fixed 2005-04-27.
46333         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
46334         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
46335         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
46336         * modules/canonicalize-lgpl (Files): Manage file rename.
46337         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
46338         * modules/stdlib (Makefile.am): Substitute witness.
46339         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
46340         is needed.
46341         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
46342         replacement is required.
46343         * lib/canonicalize.c (canonicalize_file_name): Likewise.
46344         * doc/glibc-functions/canonicalize_file_name.texi
46345         (canonicalize_file_name): Document this.
46346         * doc/posix-functions/realpath.texi (realpath): Likewise.
46347
46348         canonicalize-lgpl: reject non-directory with trailing slash
46349         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
46350         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
46351         catches failures in glibc 2.3.5.
46352         * tests/test-canonicalize.c (main): Likewise.
46353
46354         canonicalize-lgpl: use native realpath if it works
46355         * lib/canonicalize-lgpl.c (realpath): Guard with
46356         FUNC_REALPATH_WORKS.
46357         * lib/stdlib.in.h (realpath): Make declaration optional based on
46358         HAVE_REALPATH.
46359         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
46360         native realpath works.
46361         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
46362         * modules/stdlib (Makefile.am): Substitute witness.
46363
46364         canonicalize, canonicalize-lgpl: use <stdlib.h>
46365         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
46366         (Include): Mention <stdlib.h>.
46367         (configure.ac): Mention functions we provide.
46368         * modules/canonicalize (configure.ac): Likewise.
46369         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
46370         realpath if canonicalize_file_name is missing.
46371         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
46372         * modules/stdlib (Makefile.am): Substitute witnesses.
46373         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
46374         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
46375         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
46376         * NEWS: Document this.
46377         * doc/glibc-functions/canonicalize_file_name.texi
46378         (canonicalize_file_name): Likewise.
46379         * doc/posix-functions/realpath.texi (realpath): Likewise.
46380         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
46381
46382         test-canonicalize: consolidate into single C program
46383         * tests/test-canonicalize.sh: Delete; move setup into...
46384         * tests/test-canonicalize.c (main): ...the program, making it
46385         easier to run in debugger.  Add some tests.
46386         * modules/canonicalize-tests (Files): Remove unused file.
46387         (Depends-on): Add progname.
46388         (configure.ac, Makefile.am): Simplify.
46389
46390         test-canonicalize-lgpl: consolidate into single C program
46391         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
46392         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
46393         easier to run in debugger.  Add some tests.
46394         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
46395         (configure.ac, Makefile.am): Simplify.
46396
46397         canonicalize: avoid resolvepath
46398         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
46399         unnecessary checks.
46400         * lib/canonicalize.c (includes): Simplify.
46401         (canonicalize_file_name): Drop resolvepath implementation.
46402         * modules/canonicalize (Depends-on): Drop filenamecat.
46403
46404         canonicalize: don't lose errno
46405         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
46406         over calls to free.
46407
46408         canonicalize: simplify errno handling
46409         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
46410         assignment.
46411
46412         canonicalize, canonicalize-lgpl: update module dependencies
46413         * modules/canonicalize (Depends-on): Add extensions, lstat,
46414         pathmax, stdlib.
46415         (Files): Drop pathmax.h.
46416         (configure.ac): Adjust macro name.
46417         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
46418         lstat, stdlib, sys_stat.
46419         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
46420         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
46421         extensions.
46422         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
46423         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
46424         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
46425         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
46426         declaration, if available.
46427         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
46428         we can rely on the readlink module.
46429         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
46430         (includes): Use <unistd.h> unconditionally.
46431
46432 2009-09-17  Eric Blake  <ebb9@byu.net>
46433
46434         maint: make Include sections of modules consistent
46435         * modules/alloca: Use only header name; no need to list #include.
46436         * modules/alloca-opt: Likewise.
46437         * modules/arpa_inet: Likewise.
46438         * modules/canon-host: Likewise.
46439         * modules/configmake: Likewise.
46440         * modules/dirent: Likewise.
46441         * modules/eealloc: Likewise.
46442         * modules/environ: Likewise.
46443         * modules/fchdir: Likewise.
46444         * modules/fcntl: Likewise.
46445         * modules/fcntl-h: Likewise.
46446         * modules/gethrxtime: Likewise.
46447         * modules/gettime: Likewise.
46448         * modules/ignore-value: Likewise.
46449         * modules/inet_ntop: Likewise.
46450         * modules/inet_pton: Likewise.
46451         * modules/inttypes: Likewise.
46452         * modules/isnand-nolibm: Likewise.
46453         * modules/isnanf-nolibm: Likewise.
46454         * modules/mbchar: Likewise.
46455         * modules/mbfile: Likewise.
46456         * modules/mbiter: Likewise.
46457         * modules/mbuiter: Likewise.
46458         * modules/netdb: Likewise.
46459         * modules/netinet_in: Likewise.
46460         * modules/nproc: Likewise.
46461         * modules/pagealign_alloc: Likewise.
46462         * modules/poll: Likewise.
46463         * modules/printf-frexp: Likewise.
46464         * modules/pthread: Likewise.
46465         * modules/putenv: Likewise.
46466         * modules/random_r: Likewise.
46467         * modules/relocatable-prog: Likewise.
46468         * modules/search: Likewise.
46469         * modules/select: Likewise.
46470         * modules/selinux-h: Likewise.
46471         * modules/settime: Likewise.
46472         * modules/signal: Likewise.
46473         * modules/size_max: Likewise.
46474         * modules/socklen: Likewise.
46475         * modules/ssize_t: Likewise.
46476         * modules/stdarg: Likewise.
46477         * modules/stdbool: Likewise.
46478         * modules/stddef: Likewise.
46479         * modules/stdint: Likewise.
46480         * modules/stdio: Likewise.
46481         * modules/stdlib: Likewise.
46482         * modules/string: Likewise.
46483         * modules/strings: Likewise.
46484         * modules/sys_file: Likewise.
46485         * modules/sys_ioctl: Likewise.
46486         * modules/sys_select: Likewise.
46487         * modules/sys_socket: Likewise.
46488         * modules/sys_stat: Likewise.
46489         * modules/sys_time: Likewise.
46490         * modules/sys_times: Likewise.
46491         * modules/sys_utsname: Likewise.
46492         * modules/sys_wait: Likewise.
46493         * modules/sysexits: Likewise.
46494         * modules/time: Likewise.
46495         * modules/times: Likewise.
46496         * modules/tmpfile: Likewise.
46497         * modules/trim: Likewise.
46498         * modules/unistd: Likewise.
46499         * modules/wchar: Likewise.
46500         * modules/wctype: Likewise.
46501
46502 2009-09-17  Bruno Haible  <bruno@clisp.org>
46503
46504         Make getdate.y compile on QNX and NetBSD 5 / i386.
46505         * m4/getdate.m4 (gl_GETDATE): Conditionally define
46506         TIME_T_FITS_IN_LONG_INT.
46507         * lib/getdate.y (long_time_t): New type.
46508         (relative_time): Change type of 'seconds' field to long_time_t.
46509         (get_date): Update types of local variables. Check against overflow
46510         during conversion from long_time_t to time_t.
46511         Reported by Matt Kraai <kraai@ftbfs.org>
46512         and Hasso Tepper <hasso@netbsd.org>.
46513
46514 2009-09-17  Bruno Haible  <bruno@clisp.org>
46515
46516         * modules/COPYING: Update copyright years.
46517         * modules/README: Likeiwse.
46518         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
46519         Reported by Ian Beckwith <ianb@erislabs.net>.
46520
46521 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
46522
46523         * users.txt: Update references for gnuit package.
46524
46525 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
46526
46527         * m4/getdelim.m4: Fix typo in copyright line.
46528
46529 2009-09-17  Bruno Haible  <bruno@clisp.org>
46530
46531         * lib/atoll.c: Use the standard header with GPL copyright.
46532         * lib/argz.in.h: Likewise.
46533         * lib/glob.c: Likewise.
46534         * lib/glob-libc.h: Likewise.
46535         * lib/random_r.c: Likewise.
46536         * lib/siglist.h: Likewise.
46537         * lib/strsignal.c: Likewise.
46538         Reported by Ian Beckwith <ianb@erislabs.net>.
46539
46540 2009-09-17  Eric Blake  <ebb9@byu.net>
46541
46542         rmdir: ensure correct dependency order
46543         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
46544
46545 2009-09-17  Bruno Haible  <bruno@clisp.org>
46546
46547         Disable assertion that fails on NetBSD 5 / i386.
46548         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
46549         Reported by Sam Steingold <sds@gnu.org>
46550         and Hasso Tepper <hasso@netbsd.org>.
46551
46552 2009-09-16  Eric Blake  <ebb9@byu.net>
46553
46554         unlinkdir: port to mingw
46555         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
46556         on which no one can unlink a directory.
46557
46558         stdlib: sort witness names
46559         * modules/stdlib (Makefile.am): Sort replacements.
46560         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
46561         * lib/stdlib.in.h: Likewise.
46562
46563         parse-duration-tests: avoid link failure
46564         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
46565         LIBINTL.
46566         Reported by Tom G. Christensen.
46567
46568         openat-tests: ensure unlinkat behaves like rmdir
46569         * tests/test-rmdir.c (main): Factor guts...
46570         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
46571         * modules/rmdir-tests (Files): Ship new file.
46572         * modules/openat-tests: New test.
46573         * tests/test-unlinkat.c: Likewise.
46574
46575         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
46576         * modules/rmdir-errno (Status, Notice): Now obsolete.
46577
46578         rmdir: work around cygwin 1.5.x and mingw bugs
46579         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
46580         * lib/rmdir.c (rmdir): Work around it.
46581         * modules/rmdir (Status, Notice): No longer obsolete.
46582         (Files): Add dos.m4.
46583         (Depends-on): Add unistd.
46584         (configure.ac): Set witnesses.
46585         (License): Relax to LGPLv2+.
46586         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
46587         * modules/unistd (Makefile.am): Substitute witnesses.
46588         * lib/unistd.in.h (rmdir): Declare replacement.
46589         * doc/posix-functions/rmdir.texi (rmdir): Document this.
46590         * modules/rmdir-tests: New tests.
46591         * tests/test-rmdir.c: Likewise.
46592
46593 2009-09-15  Eric Blake  <ebb9@byu.net>
46594
46595         fchdir: improve use of replacement functions
46596         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
46597         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
46598         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
46599         REPLACE_CLOSEDIR.
46600         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
46601         * modules/sys_stat (Makefile.am): Substitute correct witness.
46602         * modules/dirent (Makefile.am): Likewise.
46603         * modules/unistd (Makefile.am): Likewise.
46604         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
46605         * lib/unistd.in.h (dup): Likewise.
46606         * lib/sys_stat.in.h (fstat): Likewise.
46607
46608         maint: ignore gnulib-tool temp files
46609         * .gitignore: Ignore files created during gnulib-tool --test.
46610
46611 2009-09-13  Jim Meyering  <meyering@redhat.com>
46612
46613         posixtm: don't reject a time that specify "60" as the number of seconds
46614         * lib/posixtm.c (posixtime): The code to reject invalid dates
46615         would also reject a time specified with the .60 suffix.
46616         But POSIX allows that, in order to accommodate leap seconds.
46617         So don't reject it.
46618         (main): Adjust tests accordingly.
46619         * modules/posixtm (Depends-on): Add stpcpy.
46620
46621 2009-09-11  Jim Meyering  <meyering@redhat.com>
46622
46623         announce-gen: include [$release_type] in emitted Subject:
46624         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
46625         e.g., [stable] in the emitted Subject: line.
46626
46627 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46628
46629         Remove obsolete macros from several modules.
46630         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
46631         obsolete Autoconf macros with their modern counterparts.
46632         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
46633         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
46634         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
46635         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
46636         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
46637         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
46638         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
46639         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
46640         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
46641         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
46642         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
46643         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
46644         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
46645         * m4/sockets.m4 (gl_SOCKETS): Likewise.
46646         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
46647         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
46648         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
46649         * m4/time_r.m4 (gl_TIME_R): Likewise.
46650         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
46651         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
46652         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
46653
46654         Fix copyright header in build-aux scripts.
46655         * build-aux/git-version-gen: Fix copyright header to match GPLv3
46656         recommendation.
46657         * build-aux/ncftpput-ftp: Likewise.
46658         * build-aux/update-copyright: Likewise.
46659
46660 2009-09-09  Eric Blake  <ebb9@byu.net>
46661
46662         test-link: allow Linux choice of errno
46663         * tests/test-link.c (main): Relax test for alternate error.
46664
46665         strndup: fix improper m4 caching
46666         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
46667         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
46668         (gl_PREREQ_STRNDUP): Delete.
46669         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
46670         * modules/string (Makefile.am): Substitute it.
46671         * lib/string.in.h (strndup): Modernize prototype.
46672
46673         getcwd: port to mingw
46674         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
46675         different from the POSIX assumptions made throughout the getcwd
46676         module; fortunately, the mingw getcwd does not need replacement.
46677         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
46678         * modules/getcwd-tests: New test.
46679         * tests/test-getcwd.c: Likewise.
46680
46681         link: fix platform bugs
46682         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
46683         * lib/link.c (link): Work around them.  Fix related mingw bug.
46684         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
46685         * modules/unistd (Makefile.am): Substitute it.
46686         * lib/unistd.in.h (link): Declare replacement.
46687         * doc/posix-functions/link.texi (link): Document this.
46688         * modules/link (Depends-on): Add strdup-posix, sys_stat.
46689
46690         test-link: consolidate into single C program, test more cases
46691         * tests/test-link.sh: Delete.
46692         * tests/test-link.c: Test more error conditions.  Exposes bugs on
46693         at least Cygwin and Solaris.
46694         * modules/link-tests (Files): Remove unused file.
46695         (Depends-on): Add errno, sys_stat.
46696         (Makefile.am): Simplify.
46697
46698 2009-09-08  Bruno Haible  <bruno@clisp.org>
46699
46700         Work around towlower, towupper bug on mingw.
46701         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
46702         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
46703         * doc/posix-functions/towlower.texi: Mention the mingw bug.
46704         * doc/posix-functions/towupper.texi: Likewise.
46705         Reported by Eric Blake.
46706
46707 2009-09-08  Jim Meyering  <meyering@redhat.com>
46708
46709         build: don't try to run autoheader if we don't use it
46710         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
46711         is not used in configure.ac.
46712
46713 2009-09-08  Eric Blake  <ebb9@byu.net>
46714
46715         euidaccess: fix compilation error
46716         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
46717
46718         rawmemchr: relax license
46719         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
46720         okay.
46721         Reported by Jim Meyering.
46722
46723         mkfifoat: new module
46724         * modules/mkfifoat: New file.
46725         * lib/mkfifoat.c: Likewise.
46726         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
46727         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
46728         * modules/sys_stat (Makefile.am): Use them.
46729         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
46730         * MODULES.html.sh (File system functions): Mention module.
46731         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
46732         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
46733         * modules/mkfifoat-tests: New test.
46734         * tests/test-mkfifoat.c: Likewise.
46735
46736         strchrnul: relax license
46737         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
46738         okay.
46739         Reported by Jim Meyering.
46740
46741 2009-09-08  Eric Blake  <ebb9@byu.net>
46742
46743         fstatat: fix compilation on Solaris
46744         * lib/fstatat.c (includes): Add fcntl.h.
46745         Reported by Pádraig Brady.
46746
46747 2009-09-07  Eric Blake  <ebb9@byu.net>
46748
46749         rename: modernize replacement
46750         * modules/rename (Depends-on): Add stdio.
46751         (configure.ac): Declare witness.
46752         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
46753         stdio take care of replacement.
46754         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
46755         * modules/stdio (Makefile.am): Substitute them.
46756         * lib/stdio.in.h (rename): Declare replacement.
46757         * lib/rename.c (includes): Allow cross-compilation to non-windows
46758         machines.
46759         * doc/posix-functions/rename.texi (rename): Improve
46760         documentation.
46761
46762         stdio: sort witness names
46763         * modules/stdio (Makefile.am): Sort replacements.
46764         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
46765         * lib/stdio.in.h: Likewise.
46766
46767         getcwd: minor cleanups
46768         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
46769         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
46770
46771         openat: provide more convenience names
46772         * modules/faccessat (configure.ac): Add C witness.
46773         * lib/unistd.in.h (readlinkat): Fix typo.
46774         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
46775         convenience wrappers.
46776         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
46777         wrappers in syntax checks.
46778
46779 2009-09-06  Eric Blake  <ebb9@byu.net>
46780
46781         doc: fix comments in recent patches
46782         * lib/faccessat.c: Mention correct function.
46783         * lib/fchmodat.c: Likewise.
46784         * lib/fchownat.c: Likewise.
46785         * lib/symlinkat.c: Likewise.
46786         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
46787         constants.
46788
46789         faccessat, symlinkat: continue cleanup of previous patch
46790         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
46791         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
46792         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
46793         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
46794         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
46795         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
46796         set.
46797
46798 2009-09-06  Bruno Haible  <bruno@clisp.org>
46799
46800         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
46801         (fstatat): Declare if GNULIB_FSTATAT is set.
46802         (mkdirat): Declare if GNULIB_MKDIRAT is set.
46803         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
46804         (unlinkat): Declare if GNULIB_UNLINKAT is set.
46805         * modules/fcntl-h (Files): Remove m4/openat.m4.
46806         * modules/sys_stat (Files): Remove m4/openat.m4.
46807         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
46808         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
46809         * modules/unistd (Files): Remove m4/openat.m4.
46810         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
46811         GNULIB_OPENAT.
46812         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
46813         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
46814         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
46815         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
46816         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
46817         gl_OPENAT_DEFAULTS.
46818         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
46819         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
46820         Don't require gl_OPENAT_DEFAULTS.
46821         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
46822         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
46823         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
46824         (gl_OPENAT_DEFAULTS): Remove macro.
46825
46826 2009-09-06  Bruno Haible  <bruno@clisp.org>
46827
46828         * modules/openat (configure.ac): Remove unneeded witness.
46829
46830 2009-09-06  Bruno Haible  <bruno@clisp.org>
46831
46832         Set errno to ENOSYS when a function is entirely unsupported.
46833         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
46834         EOPNOTSUPP.
46835         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
46836         * modules/chown (Depends-on): Remove errno.
46837
46838 2009-09-06  Bruno Haible  <bruno@clisp.org>
46839
46840         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
46841
46842 2009-09-06  Bruno Haible  <bruno@clisp.org>
46843
46844         * lib/sys_stat.in.h: Fix preprocessor command indentation.
46845
46846 2009-09-06  Ben Pfaff  <blp@gnu.org>
46847             Bruno Haible  <bruno@clisp.org>
46848
46849         Work around a glibc bug in strtok_r.
46850         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
46851         Undefine if UNDEFINE_STRTOK_R is set.
46852         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
46853         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
46854         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
46855         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
46856         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
46857         UNDEFINE_STRTOK_R.
46858         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
46859
46860 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
46861
46862         exclude: minor fix
46863         * lib/exclude.c: Include wctype.h
46864
46865 2009-09-06  Akim Demaille  <demaille@gostai.com>
46866
46867         bootstrap: improve error message
46868         * build-aux/bootstrap (find_tool): Upon failure, report the list
46869         of candidates.
46870         Honor the initial value of the envvar.
46871
46872 2009-09-05  Eric Blake  <ebb9@byu.net>
46873
46874         symlinkat: new module
46875         * modules/symlinkat: New file.
46876         * lib/symlinkat.c: Likewise.
46877         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
46878         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
46879         * modules/unistd (Makefile.am): Use them.
46880         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
46881         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
46882         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
46883         * MODULES.html.sh (File system functions): Mention module.
46884         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
46885         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
46886         * modules/symlinkat-tests: New test.
46887         * tests/test-symlinkat.c: Likewise.
46888
46889         test-openat-safer: add more checks
46890         * tests/test-openat-safer.c (main): Check more code paths.
46891
46892 2009-09-05  Jim Meyering  <meyering@redhat.com>
46893
46894         syntax-check: detect unnecessary inclusion of openat.h
46895         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
46896
46897 2009-09-05  Bruno Haible  <bruno@clisp.org>
46898
46899         Support towlower, towupper.
46900         * doc/posix-functions/towlower.texi: Mention module wctype.
46901         * doc/posix-functions/towupper.texi: Likewise.
46902         * lib/wctype.in.h (towlower, towupper): New functions.
46903         * tests/test-wctype.c: Include stdio.h, stdlib.h.
46904         (ASSERT): New macro.
46905         (e): New variable.
46906         (main): Test also towlower, towupper. Test WEOF argument.
46907         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46908
46909 2009-09-05  Bruno Haible  <bruno@clisp.org>
46910
46911         Fix conversion behaviour when the input is invalid.
46912         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
46913         mark occurring in first pass of indirect conversion.
46914         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
46915         input.
46916         Found by clang's static analyzer.
46917
46918 2009-09-05  Bruno Haible  <bruno@clisp.org>
46919
46920         * tests/test-striconveh.c (main): Test indirect conversion on platforms
46921         where direct conversion is possible.
46922
46923 2009-09-04  Eric Blake  <ebb9@byu.net>
46924
46925         openat: fail with ENOENT on empty name
46926         * lib/openat-proc.c (openat_proc_name): Special-case the empty
46927         buffer.
46928
46929         link-follow: fix logic bug in prior patch
46930         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
46931         reversed sense of yes and no in prior patch.  Avoid confusing
46932         compilation failure with desired semantics.
46933
46934         link-follow: accommodate mingw and cross-compilation
46935         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
46936         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
46937         cross-compilation results to -1, to make linkat easier to
46938         implement when cross-compiling.  Trivially support mingw.
46939         * modules/link-follow (configure.ac): Call new name.
46940         * NEWS: Mention this.
46941
46942 2009-09-03  Eric Blake  <ebb9@byu.net>
46943
46944         faccessat: compile replacement
46945         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
46946         needed.
46947
46948         fts: fix compilation error
46949         * lib/fts.c (includes): Re-add "openat.h", for
46950         openat_needs_fchdir.
46951
46952         faccessat: new module
46953         * modules/faccessat: New file.
46954         * lib/faccessat.c: Likewise.
46955         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
46956         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
46957         * modules/unistd (Makefile.am): Use it.
46958         * lib/unistd.in.h (faccessat): Declare it.
46959         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
46960         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
46961         * MODULES.html.sh (File system functions): Mention it.
46962         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
46963         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
46964
46965         euidaccess: prefer POSIX over non-standard implementation
46966         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
46967         * lib/euidaccess.c (euidaccess): Use it if available.
46968
46969         openat: make template easier to use
46970         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
46971         AT_FUNC_F2 to be undefined.
46972         (VALIDATE_FLAG): New macro; use it to reject bad flags.
46973         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
46974         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
46975         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
46976         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
46977         Likewise.
46978         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
46979         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
46980         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
46981         Likewise.
46982
46983         openat: declare in POSIX headers
46984         * NEWS: Mention this.
46985         * modules/openat (configure.ac): Declare witnesses.
46986         (Depends-on): Add fcntl-h, sys_stat, unistd.
46987         (Include): Mention correct headers.
46988         * modules/fcntl-h (Depends-on): Add link-warning.
46989         (Files): Add openat.m4.
46990         (Makefile.am): Substitute witnesses.
46991         * modules/sys_stat (Files, Makefile.am): Likewise.
46992         * modules/unistd (Files, Makefile.am): Likewise.
46993         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
46994         (gl_OPENAT_DEFAULTS): New macro.
46995         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
46996         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
46997         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
46998         (SYS_STAT_H): Remove unused variable.
46999         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
47000         * lib/fcntl--.h (includes): Remove unneeded header.
47001         * lib/openat-safer.c (includes): Likewise.
47002         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
47003         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
47004         appropriate headers.
47005         (__OPENAT_PREFIX): Delete.
47006         * lib/fcntl.in.h (openat): Provide declaration.
47007         (AT_FDCWD): Fix Solaris bug.
47008         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
47009         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
47010         * lib/fchmodat.c (includes):  Adjust to find declaration.
47011         * lib/fchownat.c (includes): Likewise.
47012         * lib/mkdirat.c (includes): Likewise.
47013         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
47014         still visible.
47015
47016 2009-09-02  Eric Blake  <ebb9@byu.net>
47017
47018         errno: use consistently
47019         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
47020         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
47021         * lib/canonicalize.c (ELOOP): Likewise.
47022         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
47023         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
47024         * lib/lchown.c (EOPNOTSUPP): Likewise.
47025         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
47026         * lib/savewd.c (ESTALE): Likewise.
47027         * lib/settime.c (ENOSYS): Likewise.
47028         * lib/utimens.c (ENOSYS): Likewise.
47029         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
47030         * lib/chdir-safer.c (ELOOP): Likewise.
47031         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
47032         * modules/c-stack (Depends-on): Add errno.
47033         * modules/canonicalize (Depends-on): Likewise.
47034         * modules/chdir-safer (Depends-on): Likewise.
47035         * modules/fdopendir (Depends-on): Likewise.
47036         * modules/inet_ntop (Depends-on): Likewise.
47037         * modules/inet_pton (Depends-on): Likewise.
47038         * modules/lchown (Depends-on): Likewise.
47039         * modules/openat (Depends-on): Likewise.
47040         * modules/savewd (Depends-on): Likewise.
47041         * modules/settime (Depends-on): Likewise.
47042         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
47043
47044         fts: avoid leaking fds
47045         * modules/fts (Depends-on): Add cloexec.
47046         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
47047         flag.
47048
47049         fts: make directory fds more robust
47050         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
47051         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
47052
47053         backupfile, chdir-long, fts, savedir: make safer
47054         * lib/backupfile.c (includes): Use "dirent--.h", since
47055         numbered_backup can write to stderr during readdir.
47056         * lib/savedir.c (includes): Likewise.
47057         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
47058         emulation can write to stderr on failure.
47059         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
47060         * lib/getcwd.c: Document why opendir_safer is unused.
47061         * lib/glob.c: Likewise.
47062         * lib/scandir.c: Likewise.
47063         * lib/openat-proc.c: Likewise, for open_safer.
47064         * modules/backupfile (Depends-on): Add dirent-safer.
47065         * modules/savedir (Depends-on): Likewise.
47066         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
47067         * modules/chdir-long (Depends-on): Add openat-safer.
47068
47069         openat-safer: new module
47070         * modules/openat-safer: New file.
47071         * lib/openat-safer.c: Likewise.
47072         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
47073         * lib/fcntl-safer.h (openat_safer): Declare.
47074         * lib/fcntl--.h (openat): Override.
47075         * MODULES.html.sh (File descriptor based I/O): Mention it.
47076         * lib/openat.h: Add double-inclusion guards.
47077         * lib/openat.c (includes): Only include "fcntl-safer.h", not
47078         "fcntl--.h", so we can implement openat.
47079         * modules/openat-safer-tests: New test.
47080         * tests/test-openat-safer.c: New file.
47081
47082         dirent-safer: new module
47083         * modules/dirent-safer: New file.
47084         * lib/dirent--.h: Likewise.
47085         * lib/dirent-safer.h: Likewise.
47086         * lib/opendir-safer.c: Likewise.
47087         * m4/dirent-safer.m4: Likewise.
47088         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
47089         * modules/dirent-safer-tests: New test.
47090         * tests/test-dirent-safer.c: New file.
47091         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
47092
47093         fdopendir: optimize on mingw
47094         * lib/unistd.in.h (_gl_directory_name): New prototype.
47095         * lib/fchdir.c (_gl_directory_name): Implement it.
47096         (fchdir): Use it to simplify implementation.
47097         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
47098         fchdir, when available, to avoid calling [f]chdir().
47099
47100         fdopendir: split into its own module
47101         * lib/openat.c (fdopendir): Move...
47102         * lib/fdopendir.c: ...into new file.
47103         * modules/fdopendir: New module.
47104         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
47105         * modules/openat (Depends-on): Add fdopendir.
47106         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
47107         fdopendir here.
47108         * modules/savedir (Depends-on): Only need fdopendir, not full
47109         openat.
47110         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
47111         * lib/openat.h (fdopendir): Drop prototype.
47112         * lib/dirent.in.h (fdopendir): Provide prototype.
47113         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
47114         * modules/dirent (Makefile.am): Substitute them.
47115         * MODULES.html.sh (File system functions): Mention it.
47116         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
47117         * modules/fdopendir-tests: New file.
47118         * tests/test-fdopendir.c: Likewise.
47119
47120         fchdir: use more consistent macro convention
47121         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
47122         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
47123         REPLACE_FCHDIR, rather than relying on config.h macros.
47124         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
47125         inside a single make-time REPLACE_FCHDIR block, rather than using
47126         the config.h FCHDIR_REPLACEMENT.
47127         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
47128         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
47129         Manage fstat replacement.
47130         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
47131         REPLACE_FCHDIR.
47132         * modules/sys_stat (Files): Add m4/unistd_h.m4.
47133         (Makefile.am): Substitute REPLACE_FCHDIR.
47134         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
47135         FCHDIR_REPLACEMENT.
47136         * lib/dup-safer.c (dup_safer): Likewise.
47137         * lib/dup2.c (rpl_dup2): Likewise.
47138         * lib/dup3.c (rpl_dup3): Likewise.
47139         * lib/open.c (rpl_open): Likewise.
47140
47141         fchdir: simplify error handling, and support dup3
47142         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
47143         stdbool, malloc-posix, realloc-posix.
47144         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
47145         (ensure_dirs_slot): Return false on allocation failure.
47146         (rpl_dup2): Delete.
47147         (_gl_register_dup): New function.
47148         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
47149         (_gl_register_fd): Close fd on allocation failure.
47150         * lib/fcntl.in.h (_gl_register_fd): Update signature.
47151         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
47152         prototype.
47153         (rpl_dup2_fchdir): Delete prototype.
47154         * lib/open.c (open): Update caller.
47155         * lib/dup2.c (dup2): Track fchdir metadata.
47156         * lib/dup3.c (dup3): Likewise.
47157         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
47158         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
47159
47160 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47161
47162         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
47163         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
47164         don't pass arguments to AC_OUTPUT.
47165
47166 2009-09-02  Bruno Haible  <bruno@clisp.org>
47167
47168         * modules/mkdtemp (License): Relicense under LGPLv2+.
47169         Reported by Paolo Bonzini.
47170
47171 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47172
47173         Replace uses of obsolete autoconf macros in Jim's modules.
47174         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
47175         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
47176         can evoke a warning from autoconf when run with -Wobsolete
47177         enabled.  They were declared obsolete for good reasons (see
47178         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
47179         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
47180         should not continue using the deprecated macros.
47181         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
47182         obsolete Autoconf macros with modern counterparts.
47183         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
47184         * m4/dos.m4 (gl_AC_DOS): Likewise.
47185         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
47186         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
47187         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
47188         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
47189         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
47190         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
47191         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
47192         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
47193         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
47194         Likewise.
47195         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
47196         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
47197         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
47198         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
47199         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
47200         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
47201
47202 2009-09-01  Eric Blake  <ebb9@byu.net>
47203
47204         fchdir: fix off-by-one bug in previous patch
47205         * lib/fchdir.c (rpl_fstat): Use correct bounds.
47206         (_gl_unregister_fd): Delete useless if.
47207
47208 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
47209
47210         maint.mk: sort the list of syntax-check rules
47211         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
47212         easier to get a sense of progress when the rules are run sequentially
47213         and take a long time.
47214
47215 2009-09-01  Simon Josefsson  <simon@josefsson.org>
47216
47217         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
47218         * modules/netinet_in: Likewise.
47219         * modules/sys_file: Likewise.
47220         * modules/sys_ioctl: Likewise.
47221         * modules/sys_select: Likewise.
47222         * modules/sys_socket: Likewise.
47223         * modules/sys_stat: Likewise.
47224         * modules/sys_time: Likewise.
47225         * modules/sys_times: Likewise.
47226         * modules/sys_utsname: Likewise.
47227         * modules/sys_wait: Likewise.
47228
47229 2009-09-01  Jim Meyering  <meyering@redhat.com>
47230
47231         fts: help ensure that return values are not ignored
47232         * lib/fts_.h (__GNUC_PREREQ): Define.
47233         (__attribute_warn_unused_result__): Define.
47234         (fts_children, fts_close, fts_open, fts_read): Declare with
47235         __attribute_warn_unused_result__.
47236
47237         fts: fts_close now fails also when closing a dir file descriptor fails
47238         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
47239         and propagate to caller, along with errno.
47240
47241         announce-gen: correct formatting in --help output
47242         * build-aux/announce-gen (usage): Move the one-line description in
47243         --help output "up", to where it belongs, just after Usage:.
47244
47245 2009-08-31  Eric Blake  <ebb9@byu.net>
47246
47247         fchdir: port to mingw
47248         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
47249         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
47250         opened, then use a substitute.
47251         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
47252         replacement.
47253         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
47254         (_gl_register_fd): No need to check stat if open already filters
47255         all directories.
47256         (fchdir): Fix error condition to match POSIX.
47257         * modules/fchdir (Depends-on): Add sys_stat.
47258         * doc/posix-functions/open.texi (open): Document the limitation.
47259         * modules/fchdir-tests: New file.
47260         * tests/test-fchdir.c: Likewise.
47261
47262         canonicalize: allow cross-testing from cygwin to mingw
47263         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
47264         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
47265         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
47266         Likewise.
47267         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
47268         target does not support symlinks.
47269         * tests/test-canonicalize-lgpl.sh: Likewise.
47270
47271         chown: avoid compilation warning on mingw
47272         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
47273         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
47274         mingw.
47275         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
47276         * modules/chown (Depends-on): Add errno.
47277
47278 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
47279
47280         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
47281         command.
47282
47283 2009-08-31  Jim Meyering  <meyering@redhat.com>
47284
47285         canonicalize: remove useless initialization
47286         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
47287         initialization of local, "end".
47288
47289 2009-08-30  Bruno Haible  <bruno@clisp.org>
47290
47291         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
47292         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
47293         ENOSYS.
47294
47295 2009-08-30  Bruno Haible  <bruno@clisp.org>
47296
47297         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
47298         /usr/xpg4/bin/tr when it exists.
47299         * tests/test-pipe-filter-gi1.sh: Likewise.
47300
47301 2009-08-30  Bruno Haible  <bruno@clisp.org>
47302
47303         Work around deficient /usr/bin/id program on Solaris.
47304         * tests/test-file-has-acl.sh (ID): New variable.
47305         * tests/test-set-mode-acl.sh (ID): Likewise.
47306         * tests/test-copy-acl.sh (ID): Likewise.
47307         * tests/test-copy-file.sh (ID): Likewise.
47308
47309 2009-08-30  Bruno Haible  <bruno@clisp.org>
47310
47311         New module 'xstriconveh'.
47312         * lib/xstriconveh.h: New file.
47313         * lib/xstriconveh.c: New file.
47314         * modules/xstriconveh: New file.
47315
47316 2009-08-30  Bruno Haible  <bruno@clisp.org>
47317
47318         Make it easier to use mem_cd_iconveh.
47319         * lib/striconveh.h (iconveh_t): New type.
47320         (iconveh_open, iconveh_close): New declarations.
47321         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
47322         with a single 'const iconveh_t *' argument.
47323         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
47324         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
47325         with a single 'const iconveh_t *' argument.
47326         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
47327         * tests/test-striconveh.c (main): Update.
47328         * NEWS: Mention the change.
47329
47330 2009-08-30  Bruno Haible  <bruno@clisp.org>
47331
47332         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
47333         problem.
47334
47335 2009-08-30  Bruno Haible  <bruno@clisp.org>
47336
47337         Work around iconv_open problem on Solaris.
47338         * lib/iconv_open-solaris.gperf: New file.
47339         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
47340         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
47341         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
47342         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
47343         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
47344         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
47345
47346 2009-08-29  Jim Meyering  <meyering@redhat.com>
47347
47348         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
47349         * top/maint.mk (cvs-check): Remove target; it was just an alias
47350         to the better-named vc-diff-check.
47351         (maintainer-distcheck): Remove rule.  It was used only from
47352         the (alpha/beta/major) target, and all of its commands but one
47353         were coreutils-specific.
47354         (vc-dist): Remove rule.
47355         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
47356         Run vc-diff-check, not vc-dist.
47357         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
47358
47359 2009-08-27  Bruno Haible  <bruno@clisp.org>
47360
47361         * tests/test-bitrotate.c (main): Remove test that uses a shift count
47362         of 0.
47363
47364 2009-08-27  Bruno Haible  <bruno@clisp.org>
47365
47366         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
47367         compilers.
47368         * doc/func.texi: Document the SunPRO C bug.
47369
47370 2009-08-27  Bruno Haible  <bruno@clisp.org>
47371
47372         Fix link error on Solaris.
47373         * tests/test-parse-duration.c (xstrdup): Remove function.
47374
47375 2009-08-26  Pádraig Brady  <P@draigbrady.com>
47376
47377         ignore-value: handle pointer types, too
47378         * lib/ignore-value.h (__attribute__): Remove definition.
47379         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
47380         of a more concise and more-often effective "(void) i" statement.
47381         (ignore_ptr): New function to suppress warnings from functions that
47382         return pointers, and to make it explicit that one function doesn't
47383         handle all cases.
47384
47385 2009-08-25  Bruno Haible  <bruno@clisp.org>
47386
47387         dup2: work around a Linux bug.
47388         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
47389         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
47390         * doc/posix-functions/dup2.texi: Mention the Linux bug.
47391         Reported by Simon Josefsson.
47392
47393 2009-08-25  Jim Meyering  <meyering@redhat.com>
47394
47395         libguestfs uses gnulib
47396         * users.txt: Add libguestfs.
47397
47398 2009-08-24  Eric Blake  <ebb9@byu.net>
47399
47400         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
47401         * lib/pipe2.c (includes): Add binary-io.h.
47402         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
47403
47404 2009-08-24  Bruno Haible  <bruno@clisp.org>
47405
47406         Tolerate declared but missing accept4 syscall.
47407         * lib/accept4.c (accept4): Invoke original accept4 function first, if
47408         available.
47409         * lib/sys_socket.in.h (accept4): If the function is already present,
47410         override it.
47411         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
47412         * modules/accept4 (Makefile.am): Compile accept4.c always.
47413         Reported by Paolo Bonzini and Eric Blake.
47414
47415 2009-08-23  Bruno Haible  <bruno@clisp.org>
47416
47417         New module 'accept4'.
47418         * lib/sys_socket.in.h (accept4): New declaration.
47419         * lib/accept4.c: New file.
47420         * m4/accept4.m4: New file.
47421         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
47422         GNULIB_ACCEPT4, HAVE_ACCEPT4.
47423         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
47424         HAVE_ACCEPT4.
47425         * modules/accept4: New file.
47426         * doc/glibc-functions/accept4.texi: Mention the new module.
47427
47428 2009-08-24  Jim Meyering  <meyering@redhat.com>
47429
47430         progname: also set global program_invocation_name, when possible
47431         Before this change, a libtool-enabled program that calls glibc's
47432         error function would report the program name as
47433         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
47434         * modules/progname (configure.ac): Check for a declaration of
47435         program_invocation_name.
47436         * lib/progname.c:  Include <errno.h>.
47437         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
47438         Set program_invocation_name.
47439
47440 2009-08-23  Bruno Haible  <bruno@clisp.org>
47441
47442         * lib/dup3.c: Include <string.h>.
47443
47444 2009-08-23  Bruno Haible  <bruno@clisp.org>
47445
47446         * lib/dup3.c (dup3): Test only once whether the system actually exists.
47447         * lib/pipe2.c (pipe2): Likewise.
47448         Suggested by Eric Blake.
47449
47450 2009-08-23  Bruno Haible  <bruno@clisp.org>
47451
47452         Tolerate declared but missing dup3 syscall.
47453         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
47454         * lib/unistd.in.h (dup3): If the function is already present,
47455         override it.
47456         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
47457         * modules/dup3 (Makefile.am): Compile dup3.c always.
47458         Reported by Paolo Bonzini.
47459
47460 2009-08-23  Bruno Haible  <bruno@clisp.org>
47461
47462         Tolerate declared but missing pipe2 syscall.
47463         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
47464         available.
47465         * lib/unistd.in.h (pipe2): If the function is already present,
47466         override it.
47467         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
47468         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
47469         Reported by Paolo Bonzini.
47470
47471 2009-08-23  Bruno Haible  <bruno@clisp.org>
47472
47473         * lib/pipe2.c (pipe2): Move #ifs inside function.
47474
47475 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
47476
47477         quotearg: document limitations of quote_these_too
47478         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
47479         those limitations are created.
47480         * lib/quotearg.h (set_char_quoting): Document that digits and
47481         letters that are special after backslash are not permitted.
47482         (quotearg_char): Cross-reference set_char_quoting documentation.
47483
47484 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
47485
47486         quotearg: implement custom_quoting_style
47487         * lib/quotearg.c: (struct quoting_options): Add left_quote and
47488         right_quote fields.
47489         (set_custom_quoting): New public function.
47490         (quotearg_buffer_restyled): Add left_quote and right_quote
47491         arguments, handle them very much like locale quoting, and update
47492         all uses.
47493         (quotearg_n_custom): New public function.
47494         (quotearg_n_custom_mem): New public function.
47495         (quotearg_custom): New public function.
47496         (quotearg_custom_mem): New public function.
47497         * lib/quotearg.h: Prototype and document new public functions.
47498         (enum quoting_style): For escape_quoting_style and
47499         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
47500         ignored even though they're otherwise like c_quoting_style.
47501         Add custom_quoting_style member and document with comparison to
47502         clocale_quoting_style.
47503         * tests/test-quotearg.c (custom_quotes): New array.
47504         (custom_results): New array.
47505         (main): Extend to test custom quoting.
47506
47507 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
47508
47509         quotearg: fix right quote escaping when it's in quote_these_too
47510         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
47511         quote, be sure to prepend only one backslash.
47512         * tests/test-quotearg.c (use_quote_double_quotes): New function.
47513         (main): Test it.
47514
47515 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
47516
47517         quotearg-tests: test escaping of embedded locale quotes
47518         * tests/test-quotearg.c (struct result_strings): Add member for
47519         new input.
47520         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
47521         (inputs): Add new input.
47522         (results_g): Add expected results.
47523         (flag_results): Likewise.
47524         (locale_results): Likewise.
47525         (compare_strings): Check those.
47526
47527 2009-08-23  Bruno Haible  <bruno@clisp.org>
47528
47529         Tests for module 'dup3'.
47530         * modules/dup3-tests: New file.
47531         * tests/test-dup3.c: New file.
47532
47533         New module 'dup3'.
47534         * lib/unistd.in.h (dup3): New declaration.
47535         * lib/dup3.c: New file.
47536         * m4/dup3.m4: New file.
47537         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
47538         HAVE_DUP3.
47539         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
47540         * modules/dup3: New file.
47541         * doc/glibc-functions/dup3.texi: Mention the new module.
47542
47543 2009-08-23  Bruno Haible  <bruno@clisp.org>
47544
47545         Tweak the dup2 test.
47546         * tests/test-dup2.c (main): Create the test file empty. Verify that an
47547         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
47548         the test file is still empty. Fix argument order of lseek.
47549
47550 2009-08-23  Bruno Haible  <bruno@clisp.org>
47551
47552         Avoid test link errors when the modules getopt-gnu, gettext are used.
47553         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
47554         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47555
47556 2009-08-23  Bruno Haible  <bruno@clisp.org>
47557
47558         Fix getdtablesize() on mingw.
47559         * lib/getdtablesize.c (getdtablesize): Implement differently.
47560         * lib/unistd.in.h (getdtablesize): Improve comment.
47561
47562 2009-08-23  Bruno Haible  <bruno@clisp.org>
47563
47564         New module 'mkostemp'.
47565         Based on Ulrich Drepper's 2007-08-10 change in glibc.
47566         * lib/stdlib.in.h (mksotemp): New declaration.
47567         * lib/mkostemp.c: New file, from glibc with modifications.
47568         * lib/tempname.h (GT_FILE): Remove outdated comment.
47569         (gen_tempname): Add flags argument.
47570         * lib/tempname.c (__GT_BIGFILE): Remove macro.
47571         (__GT_FILE): Map to 1.
47572         (small_open, large_open): Remove macros.
47573         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
47574         * lib/mkstemp.c (mkstemp): Update.
47575         * lib/mkdtemp.c (mkdtemp): Likewise.
47576         * m4/mkostemp.m4: New file.
47577         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
47578         HAVE_MKOSTEMP.
47579         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
47580         HAVE_MKOSTEMP.
47581         * modules/mkostemp: New file, based on modules/mkstemp.
47582         * doc/glibc-functions/mkostemp.texi: Mention the new module.
47583         * NEWS: Mention the change.
47584
47585 2009-08-23  Bruno Haible  <bruno@clisp.org>
47586
47587         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
47588         Reported by Eric Blake.
47589
47590 2009-08-23  Bruno Haible  <bruno@clisp.org>
47591
47592         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
47593         Reported by Eric Blake.
47594
47595 2009-08-23  Bruno Haible  <bruno@clisp.org>
47596
47597         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
47598         * modules/pipe2 (Depends-on): Likewise.
47599
47600 2009-08-23  Eric Blake  <ebb9@byu.net>
47601
47602         fcntl-h: add O_TTY_INIT support
47603         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
47604         * tests/test-fcntl-h.c (o): Test it.
47605         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
47606
47607         fcntl-h: rename from fcntl, in preparation for fcntl(2)
47608         * modules/fcntl: Move <fcntl.h> header replacement...
47609         * modules/fcntl-h: ...to new name, so as not to collide with
47610         like-named function.
47611         * tests/test-fcntl.c: Rename...
47612         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
47613         * modules/fcntl-tests: Rename...
47614         * modules/fcntl-h-tests: ...to this.  Update test file name.
47615         * modules/chdir-long (Depends-on): Update clients.
47616         * modules/chdir-safer (Depends-on): Likewise.
47617         * modules/fcntl-safer (Depends-on): Likewise.
47618         * modules/fts (Depends-on): Likewise.
47619         * modules/mkancesdirs (Depends-on): Likewise.
47620         * modules/mkdir-p (Depends-on): Likewise.
47621         * modules/open (Depends-on): Likewise.
47622         * modules/savewd (Depends-on): Likewise.
47623         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
47624         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
47625
47626 2009-08-22  Bruno Haible  <bruno@clisp.org>
47627
47628         * modules/binary-io (License): Relicense under LGPL.
47629         * modules/pipe2 (License): Likewise.
47630
47631 2009-08-22  Bruno Haible  <bruno@clisp.org>
47632
47633         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
47634         return value.
47635         * lib/pipe-filter-gi.c (filter_init): Likewise.
47636         Reported by Eric Blake.
47637
47638 2009-08-22  Bruno Haible  <bruno@clisp.org>
47639
47640         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
47641         * modules/pipe (Depends-on): Add pipe2.
47642
47643 2009-08-22  Bruno Haible  <bruno@clisp.org>
47644
47645         Tests for module 'pipe2'.
47646         * modules/pipe2-tests: New file.
47647         * tests/test-pipe2.c: New file.
47648
47649         New module 'pipe2'.
47650         * lib/unistd.in.h (pipe2): New declaration.
47651         * lib/pipe2.c: New file.
47652         * m4/pipe2.m4: New file.
47653         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
47654         HAVE_PIPE2.
47655         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
47656         * modules/pipe2: New file.
47657         * doc/glibc-functions/pipe2.texi: Mention the new module.
47658
47659 2009-08-22  Bruno Haible  <bruno@clisp.org>
47660
47661         Reference some new glibc functions.
47662         * doc/glibc-functions/accept4.texi: New file.
47663         * doc/glibc-functions/dup3.texi: New file.
47664         * doc/glibc-functions/mkostemp.texi: New file.
47665         * doc/glibc-functions/pipe2.texi: New file.
47666         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
47667         (Glibc sys/socket.h): Refer to accept4.
47668         (Glibc unistd.h): Refer to dup3, pipe2.
47669         Reported by Eric Blake.
47670
47671 2009-08-22  Jim Meyering  <meyering@redhat.com>
47672             Bruno Haible  <bruno@clisp.org>
47673
47674         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
47675         This makes it so packages using automake-1.11's silent-rules option
47676         can print e.g., a single "GEN    configmake.h" line, rather than
47677         the 30+ statements that perform the job.  If you want to see the
47678         actual commands, you can still run "make V=1".
47679         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
47680         so that make output is abbreviated when those variables are defined
47681         appropriately.
47682         * modules/argz: Likewise.
47683         * modules/arpa_inet: Likewise.
47684         * modules/byteswap: Likewise.
47685         * modules/configmake: Likewise.
47686         * modules/dirent: Likewise.
47687         * modules/errno: Likewise.
47688         * modules/fcntl: Likewise.
47689         * modules/float: Likewise.
47690         * modules/fnmatch: Likewise.
47691         * modules/getopt-posix: Likewise.
47692         * modules/glob: Likewise.
47693         * modules/iconv_open: Likewise.
47694         * modules/inttypes: Likewise.
47695         * modules/localcharset: Likewise.
47696         * modules/locale: Likewise.
47697         * modules/math: Likewise.
47698         * modules/netdb: Likewise.
47699         * modules/netinet_in: Likewise.
47700         * modules/poll: Likewise.
47701         * modules/posix_spawnp-tests: Likewise.
47702         * modules/sched: Likewise.
47703         * modules/search: Likewise.
47704         * modules/selinux-h: Likewise.
47705         * modules/signal: Likewise.
47706         * modules/spawn: Likewise.
47707         * modules/stdarg: Likewise.
47708         * modules/stdbool: Likewise.
47709         * modules/stddef: Likewise.
47710         * modules/stdint: Likewise.
47711         * modules/stdio: Likewise.
47712         * modules/stdlib: Likewise.
47713         * modules/string: Likewise.
47714         * modules/strings: Likewise.
47715         * modules/sys_file: Likewise.
47716         * modules/sys_ioctl: Likewise.
47717         * modules/sys_select: Likewise.
47718         * modules/sys_socket: Likewise.
47719         * modules/sys_stat: Likewise.
47720         * modules/sys_time: Likewise.
47721         * modules/sys_times: Likewise.
47722         * modules/sys_utsname: Likewise.
47723         * modules/sys_wait: Likewise.
47724         * modules/sysexits: Likewise.
47725         * modules/time: Likewise.
47726         * modules/unistd: Likewise.
47727         * modules/wchar: Likewise.
47728         * modules/wctype: Likewise.
47729
47730 2009-08-22  Jim Meyering  <meyering@redhat.com>
47731
47732         announce-gen: detect write failure
47733         * build-aux/announce-gen: Add Coda at end.
47734         Remove equivalent-but-more-verbose block at top.
47735
47736 2009-08-19  Akim Demaille  <demaille@gostai.com>
47737
47738         bootstrap: --help to stdout.
47739         * bootstrap (usage): Don't send --help to stderr.
47740         Use a here doc instead of a long string.
47741
47742 2009-08-21  Eric Blake  <ebb9@byu.net>
47743
47744         test-popen-safer: split from test-popen
47745         * tests/test-popen.c (main): Move...
47746         * tests/test-popen.h: ...into new file.
47747         * tests/test-popen-safer2.c: New file.
47748         * modules/popen-tests (Files): Add test-popen.h.
47749         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
47750         Suggested by Bruno Haible.
47751
47752         test-fcntl-safer: split from test-open
47753         * tests/test-open.c (main): Move...
47754         * tests/test-open.h: ...into new file.
47755         * tests/test-fcntl-safer.c: New file.
47756         * modules/open-tests (Files): Add test-open.h.
47757         * modules/fcntl-safer-tests: New file.
47758         Suggested by Bruno Haible.
47759
47760         test-fopen-safer: split from test-fopen
47761         * tests/test-fopen.c (main): Move...
47762         * tests/test-fopen.h: ...into new file.
47763         * tests/test-fopen-safer.c: New file.
47764         * modules/fopen-tests (Files): Add test-fopen.h.
47765         * modules/fopen-safer-tests: New file.
47766         Suggested by Bruno Haible.
47767
47768 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
47769
47770         popen-safer: test O_CLOEXEC at run-time.
47771         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
47772
47773 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
47774
47775         fcntl: move more flags to the header
47776         * lib/cloexec.c: Do not define FD_CLOEXEC here.
47777         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
47778         * lib/fcntl.in.h: Do both things here.
47779
47780 2009-08-21  Jim Meyering  <meyering@redhat.com>
47781
47782         consistently remove $@-t before redirecting to it
47783         * modules/argz: Remove $@-t and $@ before redirecting to the former.
47784         * modules/alloca-opt: Likewise.
47785         * modules/byteswap: Likewise.
47786         * modules/fnmatch: Likewise.
47787         * modules/getopt-posix: Likewise.
47788         * modules/glob: Likewise.
47789         * modules/poll: Likewise.
47790         * modules/posix_spawnp-tests: Likewise.
47791         * modules/sys_socket: Likewise.
47792         * modules/sysexits: Likewise.
47793
47794 2009-08-21  Eric Blake  <ebb9@byu.net>
47795
47796         popen: simplify access to original popen
47797         * lib/popen.c (rpl_popen): No need to worry about popen being a
47798         macro.
47799         Reported by Bruno Haible.
47800
47801 2009-08-20  Eric Blake  <ebb9@byu.net>
47802
47803         build: avoid some compiler warnings
47804         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
47805         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
47806         type.
47807         (new_exclude_segment, excluded_file_pattern_p)
47808         (excluded_file_name_p): Reduce scope.
47809         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
47810         old-style declaration.
47811
47812 2009-08-20  Simon Josefsson  <simon@josefsson.org>
47813
47814         * tests/test-exclude1.sh: Handle Windows EOL.
47815         * tests/test-exclude2.sh: Likewise.
47816         * tests/test-exclude3.sh: Likewise.
47817         * tests/test-exclude4.sh: Likewise.
47818         * tests/test-exclude5.sh: Likewise.
47819         * tests/test-exclude6.sh: Likewise.
47820         * tests/test-exclude7.sh: Likewise.
47821
47822 2009-08-19  Akim Demaille  <demaille@gostai.com>
47823
47824         bootstrap: find sha1sum when named gsha1sum.
47825         * bootstrap (find_tool): New.
47826         ($SHA1SUM): New.
47827         Use it.
47828
47829 2009-08-20  Jim Meyering  <meyering@redhat.com>
47830
47831         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
47832         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
47833         expression that converts "." in a file name to "\." in the resulting
47834         regexp.  Start with a dummy statement, so that prior shell variable
47835         definitions are expanded portably.  Reported by Simon Josefsson.
47836
47837 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
47838
47839         Fix polling for writeability of a screen buffer.
47840         * lib/poll.c: Distinguish input and screen buffers for the
47841         Win32 implementation.
47842         * lib/select.c: Likewise.
47843
47844 2009-08-19  Eric Blake  <ebb9@byu.net>
47845
47846         popen-safer: prevent popen from clobbering std descriptors
47847         * modules/popen-safer: New file.
47848         * lib/popen-safer.c: Likewise.
47849         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
47850         * lib/stdio--.h (popen): Provide override.
47851         * lib/stdio-safer.h (popen_safer): Provide declaration.
47852         * tests/test-popen.c (includes): Partially test this.
47853         * modules/popen-safer-tests: New file, for more tests.
47854         * tests/test-popen-safer.c: Likewise.
47855         * MODULES.html.sh (file stream based Input/Output): Mention it.
47856
47857         tests: test some of the *-safer modules
47858         * modules/fopen-safer (Depends-on): Add fopen.
47859         * modules/fcntl-safer (Depends-on): Add fcntl.
47860         * modules/stdlib-safer (Depends-on): Add stdlib.
47861         (configure.ac): Set indicator.
47862         * modules/unistd-safer (configure.ac): Likewise.
47863         * modules/tmpfile-safer (configure.ac): Likewise.
47864         (Depends-on): Add tmpfile.
47865         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
47866         active.
47867         * tests/test-fopen.c (includes): Test safer versions when they are
47868         in use.
47869         * tests/test-open.c (includes): Likewise.
47870
47871         popen: fix cygwin 1.5 bug when stdin closed
47872         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
47873         * modules/popen: New file.
47874         * modules/popen-tests: Likewise.
47875         * tests/test-popen.c: Likewise.
47876         * m4/popen.m4: Likewise.
47877         * lib/popen.c: Likewise.
47878         * lib/stdio.in.h (popen): New declaration.
47879         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
47880         * modules/stdio (Makefile.am): Likewise.
47881         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
47882
47883 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
47884
47885         maint.mk: give full control over update-copyright exclusions
47886         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
47887         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
47888         (update-copyright): Don't force inclusion of top-level
47889         ChangeLog.  Don't force exclusion of all COPYING files, but make
47890         them the default exclusion instead.
47891
47892 2009-08-16  Bruno Haible  <bruno@clisp.org>
47893
47894         Fix test failures on Solaris 10.
47895         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
47896         tests when Solaris iconv() is used.
47897         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
47898         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
47899         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
47900         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
47901         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
47902
47903 2009-08-16  Bruno Haible  <bruno@clisp.org>
47904
47905         Fix test failures on Solaris 10.
47906         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
47907         'tr' program and pass it as first argument.
47908         * tests/test-pipe-filter-gi1.sh: Likewise.
47909         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
47910         program as first argument.
47911         * tests/test-pipe-filter-gi1.c (main): Likewise.
47912
47913 2009-08-16  Eric Blake  <ebb9@byu.net>
47914
47915         fpurge: fix previous commits
47916         * modules/fpurge (Makefile.am): Make replacement conditional,
47917         partially reverting 2007-04-29 change; missed in previous
47918         attempt.
47919         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
47920         is missing.
47921
47922 2009-08-16  Bruno Haible  <bruno@clisp.org>
47923
47924         Clarify fpurge's effect on the file position.
47925         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
47926         * tests/test-fpurge.c (main): Make a second pass for checking the file
47927         position.
47928
47929 2009-08-16  Bruno Haible  <bruno@clisp.org>
47930
47931         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
47932         declaration of fpurge is missing.
47933         * tests/test-fpurge.c (main): Check that the file has not more contents
47934         than expected. Close the file before removing it.
47935
47936 2009-08-15  Eric Blake  <ebb9@byu.net>
47937
47938         fpurge: don't wrap working cygwin implementation
47939         * lib/fpurge.c (fpurge): Fix comment typo.
47940         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
47941         1.7 to avoid replacement.
47942         * tests/test-fpurge.c (main): Enhance test.
47943
47944 2009-08-15  Eric Blake  <ebb9@byu.net>
47945         and Jim Meyering  <meyering@redhat.com>
47946
47947         test-update-copyright: skip if perl is insufficient
47948         * tests/test-update-copyright.sh: Failure to run maintainer tool
47949         should not cause testsuite failure on cygwin 1.5.
47950
47951 2009-08-14  Eric Blake  <ebb9@byu.net>
47952
47953         doc: mention more functions added in cygwin 1.7.0
47954         * doc/posix-headers/limits.texi (limits.h): Update for recent
47955         cygwin additions.
47956         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
47957         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
47958         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
47959         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
47960         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
47961
47962 2009-08-14  Eric Blake  <ebb9@byu.net>
47963
47964         maint.mk: simplify update-copyright rule
47965         * top/maint.mk (update-copyright-local): Delete, and document how
47966         to do it in cfg.mk instead.
47967         (update-copyright-exclude-regexp): Delete, and document how to do
47968         it in .x-update-copyright instead.
47969         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
47970         exclude ChangeLog.
47971
47972 2009-08-14  Bruno Haible  <bruno@clisp.org>
47973
47974         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
47975
47976 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
47977
47978         maint.mk: support update-copyright-env
47979         * top/maint.mk (update-copyright-env): Define place-holder.
47980         (update-copyright): Expand $(update-copyright-env) before
47981         invoking update-copyright.
47982
47983 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
47984
47985         update-copyright: implement forced reformatting
47986         * build-aux/update-copyright: Implement and document
47987         UPDATE_COPYRIGHT_FORCE.
47988         * tests/test-update-copyright.sh: Test it.
47989
47990 2009-08-14  Eric Blake  <ebb9@byu.net>
47991         and Bruno Haible  <bruno@clisp.org>
47992
47993         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
47994         * tests/test-locale.c: Revert previous patch related to NULL.
47995         * tests/test-stdio.c: Likewise.
47996         * tests/test-stdlib.c: Likewise.
47997         * tests/test-string.c: Likewise.
47998         * tests/test-unistd.c: Likewise.
47999         * modules/time-tests (Depends-on): Add verify.
48000         * modules/wchar-tests (Depends-on): Likewise.
48001         * tests/test-time.c: Test for NULL compliance.
48002         * tests/test-wchar.c: Likewise.
48003         * modules/locale (Depends-on): Add stddef.
48004         * modules/stdio (Depends-on): Likewise.
48005         * modules/stdlib (Depends-on): Likewise.
48006         * modules/string (Depends-on): Likewise.
48007         * modules/time (Depends-on): Likewise.
48008         * modules/unistd (Depends-on): Likewise.
48009         * modules/wchar (Depends-on): Likewise.
48010         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
48011         * lib/stdlib.in.h (includes): Likewise.
48012         * lib/string.in.h (includes): Likewise.
48013         * lib/time.in.h (includes): Likewise.
48014         * lib/unistd.in.h (includes): Likewise.
48015         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
48016         replaced.
48017         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
48018         * m4/stddef_h.m4: New file.
48019         * modules/stddef: Likewise.
48020         * lib/stddef.in.h: Likewise.
48021         * modules/stddef-tests: Likewise.
48022         * tests/test-stddef.c: Likewise.
48023         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
48024         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
48025         * doc/posix-headers/locale.texi (locale.h): Likewise.
48026         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
48027         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
48028         * doc/posix-headers/string.texi (string.h): Likewise.
48029         * doc/posix-headers/time.texi (time.h): Likewise.
48030         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
48031         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
48032
48033 2009-08-14  Eric Blake  <ebb9@byu.net>
48034
48035         doc: improve git diff of texinfo files
48036         * .gitattributes: Add rule for *.texi files, with hint on how to
48037         use it.
48038         Copied from m4, and based on a report by Bruno Haible.
48039
48040 2009-08-14  Bruno Haible  <bruno@clisp.org>
48041
48042         Disable multithread support by default on Cygwin 1.5.x for real.
48043         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
48044
48045 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
48046
48047         update-copyright: much ado about intervals
48048         * build-aux/update-copyright: Implement and document
48049         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
48050         of copyright year intervals.
48051         Also, document UPDATE_COPYRIGHT_YEAR.
48052         * tests/test-update-copyright.sh: Test it.
48053
48054         update-copyright: convert 2-digit to 4-digit years
48055         * build-aux/update-copyright: Implement and document.
48056         * tests/test-update-copyright.sh: Update.
48057
48058 2009-08-14  Jim Meyering  <meyering@redhat.com>
48059
48060         test-exclude: avoid coreutils "make check" failure
48061         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
48062         just as in test-argmatch.c.
48063
48064 2009-08-13  Eric Blake  <ebb9@byu.net>
48065
48066         test-dup2: fix bad assumption
48067         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
48068         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
48069
48070         test-version-etc: fix CRLF portability issue
48071         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
48072         recognize \r.
48073         * tests/test-argp-version-etc-1.sh: Likewise.
48074
48075         getopt: update client modules
48076         * modules/argp (Depends-on): Use getopt-gnu.
48077         * modules/git-merge-changelog (Depends-on): Likewise.
48078         * modules/long-options (Depends-on): Likewise.
48079         * modules/xstrtol (Depends-on): Likewise.
48080
48081 2009-08-13  Simon Josefsson  <simon@josefsson.org>
48082
48083         * tests/test-version-etc.sh: Don't fail on different
48084         project/version.  Don't fail on CRLF differences.  Rewrite to use
48085         multiple -e instead of multiple sed forks, suggested by Eric Blake
48086         <ebb9@byu.net>.
48087         * tests/test-argp-version-etc-1.sh: Likewise.
48088
48089 2009-08-13  Simon Josefsson  <simon@josefsson.org>
48090
48091         * tests/test-version-etc.sh: Don't fail on different
48092         project/version.
48093
48094 2009-08-12  Bruno Haible  <bruno@clisp.org>
48095
48096         Tests for modules 'getopt-posix', 'getopt-gnu'.
48097         * modules/getopt-posix-tests: New file.
48098         * tests/test-getopt.c: New file.
48099         * tests/test-getopt.h: New file.
48100         * tests/test-getopt_long.h: New file.
48101
48102         New modules 'getopt-posix', 'getopt-gnu'.
48103         * modules/getopt-gnu: New file, renamed from modules/getopt.
48104         * modules/getopt-posix: New file.
48105         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
48106         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
48107         (gl_GETOPT): Remove macro.
48108         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
48109         Disable the test against BSD systems that declare optreset. Test
48110         against mingw bug. Test against lack of support of optional arguments
48111         on many platforms.
48112         * doc/glibc-headers/getopt.texi: Update module name and list of
48113         relevant platforms.
48114         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
48115         'getopt-gnu' and more portability problems.
48116         * NEWS: Mention the changes.
48117
48118 2009-08-12  Bruno Haible  <bruno@clisp.org>
48119
48120         Ensure that optarg etc. get declared by <unistd.h>.
48121         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
48122         AC_USE_SYSTEM_EXTENSIONS.
48123         * modules/getopt (Depends-on): Add 'extensions'.
48124
48125 2009-08-12  Bruno Haible  <bruno@clisp.org>
48126
48127         Avoid test link errors.
48128         * modules/pipe-filter-ii-tests (Makefile.am): Define
48129         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
48130         * modules/pipe-filter-gi-tests (Makefile.am): Define
48131         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
48132         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48133
48134 2009-08-12  Bruno Haible  <bruno@clisp.org>
48135
48136         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
48137         gl_GETOPT_SUBSTITUTE before.
48138         (gl_GETOPT): Use it.
48139         * m4/argp.m4 (gl_ARGP): Update.
48140         Reported by Sergey Poznyakoff.
48141
48142         * m4/getopt.m4: Reorder macros.
48143         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
48144         (gl_GETOPT_SUBSTITUTE): Remove macro.
48145
48146 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
48147
48148         Minor improvement in gitlog-to-changelog
48149
48150         * build-aux/gitlog-to-changelog: New option `--format' makes
48151         output format string configurable.
48152
48153 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
48154
48155         Optimize exclude: use hash tables for non-wildcard patterns.
48156
48157         * lib/exclude.c: Include hash.h and mbuiter.h
48158         (struct exclude_pattern, exclude_segment): New data types.
48159         (struct exclude): Rewrite.
48160         (fnmatch_pattern_has_wildcards): New function.
48161         (new_exclude_segment, free_exclude_segment): New functions.
48162         (excluded_file_pattern_p, excluded_file_name_p): New functions.
48163         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
48164         * lib/exclude.h (is_fnmatch_pattern): New prototype.
48165         * modules/exclude: Depend on hash and mbuiter.
48166
48167         * modules/exclude-tests: New file.
48168         * tests/test-exclude.c: New file.
48169         * tests/test-exclude1.sh: New file.
48170         * tests/test-exclude2.sh: New file.
48171         * tests/test-exclude3.sh: New file.
48172         * tests/test-exclude4.sh: New file.
48173         * tests/test-exclude5.sh: New file.
48174         * tests/test-exclude6.sh: New file.
48175         * tests/test-exclude7.sh: New file.
48176
48177 2009-08-12  Bruno Haible  <bruno@clisp.org>
48178
48179         Ensure that getopt() gets declared by <unistd.h>.
48180         * lib/unistd.in.h: Conditionally include getopt.h.
48181         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
48182         Set GNULIB_UNISTD_H_GETOPT.
48183         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
48184         GNULIB_UNISTD_H_GETOPT.
48185         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
48186
48187 2009-08-12  Bruno Haible  <bruno@clisp.org>
48188
48189         Clarify logic.
48190         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
48191         gl_replace_getopt instead of GETOPT_H.
48192
48193 2009-08-12  Bruno Haible  <bruno@clisp.org>
48194
48195         * m4/getopt.m4: Add comments.
48196
48197 2009-08-12  Bruno Haible  <bruno@clisp.org>
48198
48199         Disable multithread support by default on Cygwin 1.5.x.
48200         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
48201         set gl_use_threads=no if not specified otherwise.
48202
48203 2009-08-11  Bruno Haible  <bruno@clisp.org>
48204
48205         Avoid compilation error on NetBSD 5.0.
48206         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
48207         * tests/test-stdio.c: Likewise.
48208         * tests/test-stdlib.c: Likewise.
48209         * tests/test-string.c: Likewise.
48210         * tests/test-unistd.c: Likewise.
48211         Reported by Greg Troxel <gdt@ir.bbn.com>
48212         at <https://savannah.gnu.org/support/?106973>.
48213
48214 2009-08-11  Bruno Haible  <bruno@clisp.org>
48215
48216         * modules/dup2-tests (Depends-on): Remove close.
48217
48218         Undo 2009-07-19 commit.
48219         * modules/acl-tests (Depends-on): Remove close.
48220         * modules/binary-io-tests (Depends-on): Likewise.
48221         * modules/closein-tests (Depends-on): Likewise.
48222         * modules/flock-tests (Depends-on): Likewise.
48223         * modules/fsync-tests (Depends-on): Likewise.
48224         * modules/lseek-tests (Depends-on): Likewise.
48225         * modules/pipe-tests (Depends-on): Likewise.
48226         * modules/posix_spawn-tests (Depends-on): Likewise.
48227         * modules/posix_spawnp-tests (Depends-on): Likewise.
48228         * modules/stat-time-tests (Depends-on): Likewise.
48229         * modules/yesno-tests (Depends-on): Likewise.
48230
48231 2009-08-10  Bruno Haible  <bruno@clisp.org>
48232
48233         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
48234
48235 2009-08-10  Bruno Haible  <bruno@clisp.org>
48236
48237         Fix a gcc warning.
48238         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
48239
48240 2009-08-10  Bruno Haible  <bruno@clisp.org>
48241
48242         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
48243         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
48244         not only the first time.
48245         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
48246         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
48247         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
48248         is 1, not only the the first time.
48249
48250 2009-08-10  Bruno Haible  <bruno@clisp.org>
48251
48252         Make it possible to use module 'gethostname' without module 'close'.
48253         * lib/unistd.in.h (close): Evoke a link error only if
48254         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
48255         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
48256         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
48257         * modules/unistd (Makefile.am): Substitute
48258         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
48259         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
48260         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
48261         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
48262         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
48263         * modules/sys_ioctl (Makefile.am): Substitute
48264         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
48265         * modules/socket (configure.ac): On native Windows, set
48266         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
48267         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
48268         Reported by Sam Steingold <sds@gnu.org>.
48269
48270 2009-08-10  Bruno Haible  <bruno@clisp.org>
48271
48272         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
48273         * modules/ioctl (configure.ac): Likewise.
48274
48275 2009-08-10  Bruno Haible  <bruno@clisp.org>
48276
48277         Avoid collision between gnulib wrapper and libintl wrapper.
48278         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
48279         already defined in intl/printf.c.
48280         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
48281         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
48282
48283 2009-08-09  Bruno Haible  <bruno@clisp.org>
48284
48285         Make <sys/select.h> really self-contained, also on Solaris 10.
48286         * lib/sys_select.in.h: Include <string.h>.
48287         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
48288         Solaris 10 problem.
48289         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
48290         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
48291         Reported by Jim Meyering.
48292
48293 2009-08-09  Bruno Haible  <bruno@clisp.org>
48294
48295         Avoid warnings from 'aclocal' that are due to a use of macro name
48296         AM_XGETTEXT_OPTION that is not defined in automake.
48297         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
48298         automake.
48299         * modules/error (configure.ac): Likewise.
48300         * modules/propername (configure.ac): Likewise.
48301         * modules/vasprintf (configure.ac): Likewise.
48302         * modules/verror (configure.ac): Likewise.
48303         * modules/xprintf (configure.ac): Likewise.
48304         * modules/xvasprintf (configure.ac): Likewise.
48305
48306 2009-08-08  Bruno Haible  <bruno@clisp.org>
48307
48308         Avoid compilation error in C++ mode.
48309         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
48310         Reported by Sam Steingold <sds@gnu.org>.
48311
48312 2009-08-08  Bruno Haible  <bruno@clisp.org>
48313
48314         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
48315         for the various Unix platforms.
48316         * doc/posix-headers/limits.texi: Update platforms list regarding
48317         HOST_NAME_MAX.
48318         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48319
48320 2009-08-07  Jim Meyering  <meyering@redhat.com>
48321
48322         selinux-at: fix typo in a comment
48323         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
48324         Spotted by Paolo Bonzini.
48325
48326         selinux-at: remove redundant m4 code, add documentation
48327         * modules/selinux-at (configure.ac): Remove redundant code.
48328         LIB_SELINUX is already set via the dependent module, selinux-h.
48329         (Include): Add quotes around selinux-at.h.
48330         * lib/selinux-at.h: Add documentation.
48331         Reported by Bruno Haible in
48332         http://marc.info/?l=gnulib-bug&m=124958988300749
48333
48334 2009-08-07  Bruno Haible  <bruno@clisp.org>
48335
48336         Avoid link error on MacOS X 10.3 and 10.4.
48337         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
48338         on non-ELF systems.
48339         * lib/argp-pv.c (argp_program_version): Likewise.
48340         Reported by Simon Josefsson.
48341
48342 2009-08-07  Simon Josefsson  <simon@josefsson.org>
48343
48344         * tests/test-version-etc.sh: Use $EXEEXT.
48345
48346 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
48347
48348         update-copyright: update documentation to point to maint.mk
48349         * build-aux/update-copyright: Here.
48350
48351 2009-08-06  Jim Meyering  <meyering@redhat.com>
48352
48353         maint.mk: support update-copyright-local
48354         * top/maint.mk (update-copyright-local): Define place-holder.
48355         (update-copyright): Depend on $(update-copyright-local).
48356
48357 2009-08-06  Jim Meyering  <meyering@redhat.com>
48358
48359         selinux-at: new module
48360         Initially written for coreutils, this module will soon be
48361         used by findutils, too.
48362         * MODULES.html.sh [Misc]: Add selinux-at.
48363         * lib/selinux-at.h: New file, from coreutils.
48364         * lib/selinux-at.c: Likewise.
48365         * modules/selinux-at: Likewise.
48366         (License): Change from LGPL to GPL, since it depends
48367         on the GPL'd openat module.
48368
48369         doc: update README
48370         * README: Remove references to cogito.
48371         Remove cvs-repo-updating instructions from 2007.
48372         Don't imply that CVS is better if you have limited disk space.
48373
48374 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
48375
48376         update-copyright: support C-style comments
48377         * build-aux/update-copyright: Implement and document.
48378         * tests/test-update-copyright.sh: Test.
48379
48380 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
48381
48382         update-copyright: support omitted "(C)"
48383         * build-aux/update-copyright: Implement and document.  Also,
48384         allow variable whitespace before "(C)".
48385         * tests/test-update-copyright.sh: Test.
48386
48387 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
48388
48389         update-copyright: don't trip on non-FSF copyright statements
48390         * build-aux/update-copyright: Fix so that the first correctly
48391         formatted FSF copyright statement is recognized no matter what
48392         appears before it.  Update documentation.
48393         * tests/test-update-copyright.sh: Test that.
48394
48395 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
48396
48397         update-copyright: clean up code a little
48398         * build-aux/update-copyright: Append "_re" to the name of any
48399         variable holding a regular expression.
48400         Replace "old" and "new" with "stmt" in variable names.
48401         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
48402         handled correctly.
48403         Format code more consistently.
48404
48405 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
48406
48407         update-copyright-tests: improve portability
48408         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
48409         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
48410
48411 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
48412
48413         update-copyright: support @copyright{} and &copy;
48414         * build-aux/update-copyright: Implement and document.
48415         * tests/test-update-copyright.sh: Test.
48416
48417 2009-08-04  Jim Meyering  <meyering@redhat.com>
48418
48419         update-copyright-tests: correctly test EOL=\r\n handling
48420         * tests/test-update-copyright.sh: Put \r at the end of some lines
48421         for the dos-eol tests.  Based on a patch by Joel E. Denny.
48422
48423         maint.mk: make update-copyright exclusion list more configurable
48424         * top/maint.mk (update-copyright): Default to excluding COPYING,
48425         but allow an override, in case someone does want to update that file.
48426
48427         maint.mk: don't update copyright date in COPYING
48428         * top/maint.mk (update-copyright): Exclude COPYING.
48429
48430         maint.mk: add a copyright-updating rule
48431         * top/maint.mk (update-copyright): New rule.
48432         Derived from coreutils/Makefile.am.
48433
48434         update-copyright: rename some variables
48435         * build-aux/update-copyright: Rename a few variables for clarity.
48436         Tweak syntax.  List Joel E. Denny as coauthor.
48437
48438 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
48439
48440         update-copyright: fix bug for 2-digit last year and add tests
48441         * build-aux/update-copyright: Fix bug.
48442         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
48443         specified.
48444         * modules/update-copyright-tests: New
48445         * tests/test-update-copyright.sh: New.
48446
48447 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
48448
48449         update-copyright: handle leading tabs in line prefix
48450         * build-aux/update-copyright: Count leading tabs as 8 spaces
48451         when computing margin.  This helps with the formatting of
48452         ChangeLogs, for example.
48453         Fix documentation a little.
48454
48455 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
48456
48457         update-copyright: support EOL=\r\n
48458         * build-aux/update-copyright: Implement that.
48459
48460 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
48461
48462         update-copyright: automatically format copyright statements
48463         * build-aux/update-copyright: Implement that.
48464         Also, be a little more predictable and safer by always failing
48465         when the full copyright format is not perfectly recognized as an
48466         unbroken whole.  Discussed at
48467         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
48468         Rewrite documentation.
48469
48470 2009-08-03  Bruno Haible  <bruno@clisp.org>
48471
48472         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
48473
48474 2009-08-02  Bruno Haible  <bruno@clisp.org>
48475
48476         Tests for module 'uname'.
48477         * modules/uname-tests: New file.
48478         * tests/test-uname.c: New file.
48479
48480         New module 'uname'.
48481         * lib/uname.c: New file.
48482         * m4/uname.m4: New file.
48483         * modules/uname: New file.
48484         * doc/posix-functions/uname.texi: Mention the new module.
48485
48486 2009-08-02  Bruno Haible  <bruno@clisp.org>
48487
48488         Tests for module 'sys_utsname'.
48489         * modules/sys_utsname-tests: New file.
48490         * tests/test-sys_utsname.c: New file.
48491
48492         New module 'sys_utsname'.
48493         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
48494         * m4/sys_utsname_h.m4: New file.
48495         * modules/sys_utsname: New file.
48496         * doc/posix-headers/sys_utsname.texi: Mention the new module.
48497
48498 2009-08-02  Bruno Haible  <bruno@clisp.org>
48499
48500         Implicitly initialize the sockets library.
48501         * lib/gethostname.c: Include sockets.h.
48502         (rpl_gethostname): Invoke gl_sockets_startup.
48503         * lib/socket.c: Include sockets.h.
48504         (rpl_socket): Invoke gl_sockets_startup.
48505         * modules/gethostname (Depends-on): Add sockets.
48506         * modules/socket (Depends-on): Likewise.
48507         * tests/test-poll.c: Don't include sockets.h.
48508         (main): Don't invoke gl_sockets_startup.
48509         * tests/test-select.c: Don't include sockets.h.
48510         (main): Don't invoke gl_sockets_startup.
48511
48512 2009-08-02  Bruno Haible  <bruno@clisp.org>
48513
48514         Allow multiple calls to gl_sockets_startup.
48515         * lib/sockets.c (initialized_sockets_version): New variable.
48516         (gl_sockets_startup): Do nothing if already called for this or a higher
48517         version.
48518         (gl_sockets_cleanup): Reset initialized_sockets_version.
48519
48520 2009-08-03  Simon Josefsson  <simon@josefsson.org>
48521
48522         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
48523         different project/version.
48524
48525 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
48526             Bruno Haible  <bruno@clisp.org>
48527
48528         Tests for module 'pipe-filter-gi'.
48529         * modules/pipe-filter-gi-tests: New file.
48530         * tests/test-pipe-filter-gi1.sh: New file.
48531         * tests/test-pipe-filter-gi1.c: New file.
48532         * tests/test-pipe-filter-gi2.sh: New file.
48533         * tests/test-pipe-filter-gi2-main.c: New file.
48534         * tests/test-pipe-filter-gi2-child.c: New file.
48535
48536         New module 'pipe-filter-gi'.
48537         * lib/pipe-filter-gi.c: New file.
48538         * modules/pipe-filter-gi: New file.
48539
48540 2009-08-02  Bruno Haible  <bruno@clisp.org>
48541             Paolo Bonzini  <bonzini@gnu.org>
48542
48543         Tests for module 'pipe-filter-ii'.
48544         * modules/pipe-filter-ii-tests: New file.
48545         * tests/test-pipe-filter-ii1.sh: New file.
48546         * tests/test-pipe-filter-ii1.c: New file.
48547         * tests/test-pipe-filter-ii2.sh: New file.
48548         * tests/test-pipe-filter-ii2-main.c: New file.
48549         * tests/test-pipe-filter-ii2-child.c: New file.
48550
48551         New module 'pipe-filter-ii'.
48552         * lib/pipe-filter.h: New file.
48553         * lib/pipe-filter-ii.c: New file.
48554         * lib/pipe-filter-aux.h: New file.
48555         * modules/pipe-filter-ii: New file.
48556
48557 2009-08-02  Simon Josefsson  <simon@josefsson.org>
48558
48559         * lib/gc-libgcrypt.c: Change copyright to FSF.
48560         * lib/gc-gnulib.c: Likewise.
48561
48562 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
48563
48564         * lib/gethostname.c: Include limits.h.
48565
48566 2009-08-02  Simon Josefsson  <simon@josefsson.org>
48567             Bruno Haible  <bruno@clisp.org>
48568
48569         Ensure HOST_NAME_MAX as part of the gethostname module.
48570         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
48571         define also HOST_NAME_MAX.
48572         * tests/test-gethostname.c: Include <limits.h>.
48573         (main): Check also HOST_NAME_MAX.
48574         * doc/posix-headers/limits.texi: Document the mingw problem.
48575
48576 2009-08-02  Bruno Haible  <bruno@clisp.org>
48577
48578         * lib/gethostname.c (gethostname): Fix handling of large len argument.
48579         Add comments.
48580
48581 2009-03-31  Simon Josefsson  <simon@josefsson.org>
48582
48583         * lib/gethostname.c: Add Windows wrapper.
48584         * m4/gethostname.m4: Look for gethostname in -lws2_32.
48585         * modules/gethostname: Depend on sys_socket & errno, for also
48586         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
48587         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
48588
48589 2009-07-31  Jim Meyering  <meyering@redhat.com>
48590
48591         getloadavg: fix symbol name in comment
48592         * lib/getloadavg.c: Correct a typo I introduced when adding
48593         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
48594         Matt Kraai spotted the problem.
48595
48596 2009-07-29  Matt Kraai  <mkraai@beckman.com>
48597
48598         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
48599         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
48600         code also if ! defined N_NAME_POINTER.
48601         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
48602         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
48603         but the n_name member is a 12-byte array.
48604
48605 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
48606
48607         update-copyright: generalize comment handling
48608         * build-aux/update-copyright: Handle copyright statements
48609         within more comment styles.
48610         Document usage.
48611         Report any file with an external copyright holder or parse failure.
48612
48613 2009-07-29  Jim Meyering  <meyering@redhat.com>
48614
48615         mktime: correct setting of REPLACE_MKTIME
48616         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
48617
48618         update-copyright: new module
48619         * modules/update-copyright: New file.
48620         * build-aux/update-copyright: New file.
48621         * MODULES.html.sh (maint+release support): Add update-copyright.
48622
48623 2009-07-27  Bruno Haible  <bruno@clisp.org>
48624
48625         Fix compilation error when <ctime> is used and mktime is replaced.
48626         * lib/time.in.h (mktime): New declaration.
48627         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
48628         REPLACE_MKTIME instead of defining mktime in config.h.
48629         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
48630         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
48631         Reported by Ross McFarland <rwmcfa1@neces.com>.
48632
48633 2009-07-27  Bruno Haible  <bruno@clisp.org>
48634
48635         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
48636         Reported by Matt Kraai <mkraai@beckman.com>.
48637
48638 2009-07-25  Jim Meyering  <meyering@redhat.com>
48639
48640         maint.mk: avoid warnings about missing files
48641         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
48642         diagnostic when .prev-version does not exist.
48643         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
48644         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
48645         nonexistent cfg.mk.
48646         Suggestions from Simon Josefsson.
48647
48648 2009-07-25  Bruno Haible  <bruno@clisp.org>
48649
48650         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
48651         defined as macros. Needed on QNX 6.4.1.
48652         Reported by Matt Kraai <mkraai@beckman.com>.
48653
48654 2009-07-23  Jim Meyering  <meyering@redhat.com>
48655
48656         maint.mk: invoke "make dist" with a working value of XZ_OPT
48657         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
48658
48659 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
48660
48661         Make fseeko.c compile on QNX.
48662         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
48663
48664 2009-07-22  Peter Simons  <simons@cryp.to>
48665
48666         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
48667         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
48668         * lib/md4.h: Likewise.
48669         * lib/md5.h: Likewise.
48670         * lib/sha1.h: Likewise.
48671         * lib/sha256.h: Likewise.
48672         * lib/sha512.h: Likewise.
48673
48674         tests-sha1: don't assign literal string to 'char *' variable
48675         * tests/test-sha1.c (main): Declare locals with "const" to match
48676         attributes of the right hand side.
48677
48678 2009-07-21  Eric Blake  <ebb9@byu.net>
48679
48680         dup2: fix more mingw problems
48681         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
48682         fd to itself.
48683         * doc/posix-functions/dup2.texi (dup2): Document the bug.
48684         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
48685         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
48686         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
48687         care of mingw bugs.
48688
48689 2009-07-21  Jim Meyering  <meyering@redhat.com>
48690
48691         vc-list-files: avoid failure when /bin/sh is dash
48692         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
48693         On some Debian based systems, /bin/sh is a symlink to dash, and running
48694         this command would omit the "/" following each 'tests' prefix:
48695           dash -x build-aux/vc-list-files -C . tests
48696         That is because bash and dash work differently:
48697           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
48698           bash ok
48699           dash odd
48700
48701 2009-07-21  Eric Blake  <ebb9@byu.net>
48702
48703         dup2-tests: test previous patch
48704         * modules/dup2-tests: New file.
48705         * tests/test-dup2.c: Likewise.
48706         * tests/test-open.c (main): Avoid unspecified behavior.
48707         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
48708         test.
48709
48710         dup2: work around mingw and cygwin 1.5 bug
48711         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
48712         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
48713         * modules/unistd (Makefile.am): Substitute it.
48714         * lib/unistd.in.h (dup2): Declare the replacement.
48715         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
48716         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
48717         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
48718         * modules/execute (Depends-on): Add dup2.
48719         * modules/fseterr (Depends-on): Likewise.
48720         * modules/pipe (Depends-on): Likewise.
48721         * modules/posix_spawn-internal (Depends-on): Likewise.
48722
48723 2009-07-21  Bruno Haible  <bruno@clisp.org>
48724
48725         * modules/.gitattributes: New file.
48726
48727 2009-07-20  Bruno Haible  <bruno@clisp.org>
48728
48729         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
48730         (main): Use it.
48731
48732 2009-07-20  Eric Blake  <ebb9@byu.net>
48733
48734         test-pipe: make a bit more robust.
48735         * tests/test-pipe.c (myerr): Allow error messages regardless of
48736         what we do to stderr.
48737         (test_pipe): Rearrange to avoid deadlock.
48738         (child_main): Try a larger read, to ensure we avoided deadlock.
48739         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
48740         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
48741         if misused.
48742
48743 2009-07-19  Jim Meyering  <meyering@redhat.com>
48744
48745         fts: avoid false-positive cycle-detection
48746         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
48747         for each new command line argument.
48748
48749 2009-07-19  Bruno Haible  <bruno@clisp.org>
48750
48751         Fix build error on mingw with the modules sys_select and unistd.
48752         * modules/acl-tests (Depends-on): Add close.
48753         * modules/binary-io-tests (Depends-on): Likewise.
48754         * modules/closein-tests (Depends-on): Likewise.
48755         * modules/flock-tests (Depends-on): Likewise.
48756         * modules/fsync-tests (Depends-on): Likewise.
48757         * modules/lseek-tests (Depends-on): Likewise.
48758         * modules/pipe-tests (Depends-on): Likewise.
48759         * modules/posix_spawn-tests (Depends-on): Likewise.
48760         * modules/posix_spawnp-tests (Depends-on): Likewise.
48761         * modules/stat-time-tests (Depends-on): Likewise.
48762         * modules/yesno-tests (Depends-on): Likewise.
48763
48764 2009-07-19  Bruno Haible  <bruno@clisp.org>
48765
48766         Unify conditionals.
48767         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
48768         macros, not at the compiler macros.
48769         * lib/pipe.c: Likewise.
48770         * lib/execute.c: Likewise.
48771         * lib/spawni.c: Likewise.
48772
48773 2009-07-19  Bruno Haible  <bruno@clisp.org>
48774
48775         Fix handling of closed stdin/stdout/stderr on mingw.
48776         * lib/w32spawn.h: Include unistd.h.
48777         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
48778         file descriptor with O_NOINHERIT flag.
48779         (fd_safer_noinherit): New function, based on fd-safer.c.
48780         (dup_safer_noinherit): New function, based on dup-safer.c.
48781         (undup_safer_noinherit): New function.
48782         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
48783         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
48784         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
48785         instead of fd_safer.
48786         * tests/test-pipe.c: Include <windows.h>.
48787         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
48788         result.
48789
48790         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
48791         from main.
48792         (test_pipe): Pass an extra argument for disambiguation.
48793         (main): Invoke parent_main or child_main.
48794
48795         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
48796         consistently.
48797
48798 2009-07-18  Eric Blake  <ebb9@byu.net>
48799
48800         test-pipe: fix mingw build
48801         * tests/test-pipe.c (main): Avoid fcntl on mingw.
48802
48803 2009-07-18  Bruno Haible  <bruno@clisp.org>
48804
48805         * modules/pipe-tests (Makefile.am): Fix typo.
48806
48807 2009-07-18  Eric Blake  <ebb9@byu.net>
48808
48809         error: fix mingw build
48810         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
48811         Reported by Bruno Haible.
48812
48813         error: avoid undefined use of stdout
48814         * lib/error.c (error, error_at_line): Check that fd 1 is open
48815         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
48816         is handling faults and the close_stdout module wants to report the
48817         detection of closed stdout as an error.
48818
48819 2009-07-17  Eric Blake  <ebb9@byu.net>
48820
48821         pipe: be robust in face of closed fds
48822         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
48823         should cause child to misbehave.
48824         * modules/pipe-tests: New module.
48825         * tests/test-pipe.c: New file.
48826         * tests/test-pipe.sh: New file.
48827         Reported by Akim Demaille.
48828
48829 2009-07-14  Bruno Haible  <bruno@clisp.org>
48830
48831         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
48832         Reported by anonymous kc.
48833
48834 2009-07-07  Jim Meyering  <meyering@redhat.com>
48835
48836         maint.mk: don't look for translatable strings in *.m4 or *.mk
48837         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
48838         when searching for translatable strings.
48839
48840 2009-07-05  Jim Meyering  <meyering@redhat.com>
48841
48842         remove superfluous parentheses in STREQ definition
48843         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
48844         * lib/getugroups.c (STREQ): Likewise.
48845         * lib/fnmatch.c (STREQ): Likewise.
48846         Spotted by Bruno Haible.
48847
48848 2009-07-04  Jim Meyering  <meyering@redhat.com>
48849
48850         argv-iter: new module
48851         * MODULES.html.sh: Add argv-iter.
48852         * lib/argv-iter.c, lib/argv-iter.h: New files.
48853         * modules/argv-iter: New file.
48854         * modules/argv-iter-tests: New file.
48855         * tests/test-argv-iter.c: Test it.
48856
48857 2009-07-04  Bruno Haible  <bruno@clisp.org>
48858
48859         Fix assertion.
48860         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
48861         contains more exact copies of a given entry than file2, leave the extra
48862         copies unpaired rather than aborting.
48863         Reported by Eric Blake.
48864
48865 2009-07-02  Bruno Haible  <bruno@clisp.org>
48866
48867         Speedup git-merge-changelog for git cherry-pick.
48868         * lib/git-merge-changelog.c (struct entries_mapping): New type.
48869         (entries_mapping_get): New function, extracted from compute_mapping.
48870         (entries_mapping_reverse_get): New function.
48871         (compute_mapping): Add a 'full' argument. Return the result in a
48872         'struct entries_mapping'.
48873         (main): Update. Access the mappings through entries_mapping_get.
48874         Reported by Eric Blake.
48875
48876 2009-07-02  Bruno Haible  <bruno@clisp.org>
48877
48878         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
48879         best_i.
48880
48881 2009-07-02  Bruno Haible  <bruno@clisp.org>
48882
48883         Speed up approximate search for matching ChangeLog entries.
48884         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
48885         argument. Call fstrcmp_bounded instead of fstrcmp.
48886         (compute_mapping, try_split_merged_entry, main): Update callers.
48887
48888 2009-07-02  Bruno Haible  <bruno@clisp.org>
48889
48890         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
48891
48892 2009-06-30  Bruno Haible  <bruno@clisp.org>
48893
48894         Reduce the number of uc_is_cased calls.
48895         * lib/unicase.h (casing_suffix_context_t): Add
48896         'first_char_except_ignorable' field.
48897         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
48898         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
48899         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
48900         Update initializer.
48901         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
48902         case-ignorable characters.
48903         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
48904         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
48905         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
48906         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
48907         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
48908
48909 2009-06-30  Bruno Haible  <bruno@clisp.org>
48910
48911         Tests for module 'unicase/ignorable'.
48912         * modules/unicase/ignorable-tests: New file.
48913         * tests/unicase/test-ignorable.c: New file, generated by
48914         gen-uni-tables.
48915
48916         Tests for module 'unicase/cased'.
48917         * modules/unicase/cased-tests: New file.
48918         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
48919         * tests/unicase/test-predicate-part1.h: New file, derived from
48920         tests/unictype/test-predicate-part1.h.
48921         * tests/unicase/test-predicate-part2.h: New file, same as
48922         tests/unictype/test-predicate-part2.h.
48923
48924         Fix evaluation of "Before C" condition of FINAL_SIGMA.
48925         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
48926         (output_casing_properties): New function.
48927         (main): Call it.
48928         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
48929         * lib/unicase/cased.c: Include unictype/bitmap.h.
48930         (uc_is_cased): Define through a bitmap lookup.
48931         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
48932         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
48933         (uc_is_case_ignorable): Define through a bitmap lookup.
48934         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
48935         lib/unictype/bitmap.h.
48936         (Depends-on): Add inline. Clean up.
48937         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
48938         lib/unictype/bitmap.h.
48939         (Depends-on): Add inline. Clean up.
48940         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
48941         recognition.
48942         * tests/unicase/test-u16-tolower.c (main): Likewise.
48943         * tests/unicase/test-u32-tolower.c (main): Likewise.
48944
48945 2009-06-30  Bruno Haible  <bruno@clisp.org>
48946
48947         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
48948         * lib/unicase/u16-casemap.c: Likewise.
48949         * lib/unicase/u32-casemap.c: Likewise.
48950
48951 2009-06-29  Bruno Haible  <bruno@clisp.org>
48952
48953         Define u32_casefold as a wrapper around u32_ct_casefold.
48954         * lib/unicase/u32-casefold.c: Update.
48955         * modules/unicase/u32-casefold (Depends-on): Add
48956         unicase/u32-ct-casefold, unicase/empty-prefix-context,
48957         unicase/empty-suffix-context. Clean up.
48958
48959         Define u16_casefold as a wrapper around u16_ct_casefold.
48960         * lib/unicase/u16-casefold.c: Update.
48961         * modules/unicase/u16-casefold (Depends-on): Add
48962         unicase/u16-ct-casefold, unicase/empty-prefix-context,
48963         unicase/empty-suffix-context. Clean up.
48964
48965         Define u8_casefold as a wrapper around u8_ct_casefold.
48966         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
48967         * lib/unicase/u8-casefold.c: Update.
48968         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
48969         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
48970
48971         Define u32_totitle as a wrapper around u32_ct_totitle.
48972         * lib/unicase/u32-totitle.c: Update.
48973         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
48974         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
48975
48976         Define u16_totitle as a wrapper around u16_ct_totitle.
48977         * lib/unicase/u16-totitle.c: Update.
48978         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
48979         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
48980
48981         Define u8_totitle as a wrapper around u8_ct_totitle.
48982         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
48983         functions.
48984         (FUNC): Delegate to U_CT_TOTITLE.
48985         * lib/unicase/u8-totitle.c: Update.
48986         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
48987         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
48988
48989         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
48990         invocation.
48991         * modules/unicase/u32-tolower (Depends-on): Add
48992         unicase/empty-prefix-context, unicase/empty-suffix-context.
48993
48994         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
48995         invocation.
48996         * modules/unicase/u16-tolower (Depends-on): Add
48997         unicase/empty-prefix-context, unicase/empty-suffix-context.
48998
48999         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
49000         * modules/unicase/u8-tolower (Depends-on): Add
49001         unicase/empty-prefix-context, unicase/empty-suffix-context.
49002
49003         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
49004         invocation.
49005         * modules/unicase/u32-toupper (Depends-on): Add
49006         unicase/empty-prefix-context, unicase/empty-suffix-context.
49007
49008         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
49009         invocation.
49010         * modules/unicase/u16-toupper (Depends-on): Add
49011         unicase/empty-prefix-context, unicase/empty-suffix-context.
49012
49013         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
49014         * modules/unicase/u8-toupper (Depends-on): Add
49015         unicase/empty-prefix-context, unicase/empty-suffix-context.
49016
49017         New module 'unicase/u32-ct-casefold'.
49018         * lib/unicase/u32-ct-casefold.c: New file.
49019         * modules/unicase/u32-ct-casefold: New file.
49020
49021         New module 'unicase/u16-ct-casefold'.
49022         * lib/unicase/u16-ct-casefold.c: New file.
49023         * modules/unicase/u16-ct-casefold: New file.
49024
49025         New module 'unicase/u8-ct-casefold'.
49026         * lib/unicase/u8-ct-casefold.c: New file.
49027         * lib/unicase/u-ct-casefold.h: New file, derived from
49028         lib/unicase/u-casefold.h.
49029         * modules/unicase/u8-ct-casefold: New file.
49030
49031         New module 'unicase/u32-ct-totitle'.
49032         * lib/unicase/u32-ct-totitle.c: New file.
49033         * modules/unicase/u32-ct-totitle: New file.
49034
49035         New module 'unicase/u16-ct-totitle'.
49036         * lib/unicase/u16-ct-totitle.c: New file.
49037         * modules/unicase/u16-ct-totitle: New file.
49038
49039         New module 'unicase/u8-ct-totitle'.
49040         * lib/unicase/u8-ct-totitle.c: New file.
49041         * lib/unicase/u-ct-totitle.h: New file, derived from
49042         lib/unicase/u-totitle.h.
49043         * modules/unicase/u8-ct-totitle: New file.
49044
49045         New module 'unicase/u32-ct-tolower'.
49046         * lib/unicase/u32-ct-tolower.c: New file.
49047         * modules/unicase/u32-ct-tolower: New file.
49048
49049         New module 'unicase/u16-ct-tolower'.
49050         * lib/unicase/u16-ct-tolower.c: New file.
49051         * modules/unicase/u16-ct-tolower: New file.
49052
49053         New module 'unicase/u8-ct-tolower'.
49054         * lib/unicase/u8-ct-tolower.c: New file.
49055         * modules/unicase/u8-ct-tolower: New file.
49056
49057         New module 'unicase/u32-ct-toupper'.
49058         * lib/unicase/u32-ct-toupper.c: New file.
49059         * modules/unicase/u32-ct-toupper: New file.
49060
49061         New module 'unicase/u16-ct-toupper'.
49062         * lib/unicase/u16-ct-toupper.c: New file.
49063         * modules/unicase/u16-ct-toupper: New file.
49064
49065         New module 'unicase/u8-ct-toupper'.
49066         * lib/unicase/u8-ct-toupper.c: New file.
49067         * modules/unicase/u8-ct-toupper: New file.
49068
49069         Add context arguments to u*_casemap functions.
49070         * lib/unicase/unicasemap.h: Include unicase.h.
49071         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
49072         suffix_context arguments.
49073         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
49074         functions.
49075         (FUNC): Add prefix_context and suffix_context arguments. Use
49076         uc_is_cased and uc_is_case_ignorable.
49077         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
49078         * lib/unicase/u16-casemap.c: Likewise.
49079         * lib/unicase/u32-casemap.c: Likewise.
49080         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
49081         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
49082         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
49083         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
49084         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
49085         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
49086
49087         New module 'unicase/u32-suffix-context'.
49088         * lib/unicase/u32-suffix-context.c: New file.
49089         * modules/unicase/u32-suffix-context: New file.
49090
49091         New module 'unicase/u16-suffix-context'.
49092         * lib/unicase/u16-suffix-context.c: New file.
49093         * modules/unicase/u16-suffix-context: New file.
49094
49095         New module 'unicase/u8-suffix-context'.
49096         * lib/unicase/u8-suffix-context.c: New file.
49097         * lib/unicase/u-suffix-context.h: New file.
49098         * modules/unicase/u8-suffix-context: New file.
49099
49100         New module 'unicase/empty-suffix-context'.
49101         * lib/unicase/empty-suffix-context.c: New file.
49102         * modules/unicase/empty-suffix-context: New file.
49103
49104         New module 'unicase/u32-prefix-context'.
49105         * lib/unicase/u32-prefix-context.c: New file.
49106         * modules/unicase/u32-prefix-context: New file.
49107
49108         New module 'unicase/u16-prefix-context'.
49109         * lib/unicase/u16-prefix-context.c: New file.
49110         * modules/unicase/u16-prefix-context: New file.
49111
49112         New module 'unicase/u8-prefix-context'.
49113         * lib/unicase/u8-prefix-context.c: New file.
49114         * lib/unicase/u-prefix-context.h: New file.
49115         * lib/unicase/context.h: New file.
49116         * modules/unicase/u8-prefix-context: New file.
49117
49118         New module 'unicase/empty-prefix-context'.
49119         * lib/unicase/empty-prefix-context.c: New file.
49120         * modules/unicase/empty-prefix-context: New file.
49121
49122         New module 'unicase/ignorable'.
49123         * lib/unicase/ignorable.c: New file.
49124         * modules/unicase/ignorable: New file.
49125
49126         New module 'unicase/cased'.
49127         * lib/unicase/caseprop.h: New file.
49128         * lib/unicase/cased.c: New file.
49129         * modules/unicase/cased: New file.
49130
49131         New functions for case mapping of substrings.
49132         * lib/unicase.h (casing_prefix_context_t): New type.
49133         (unicase_empty_prefix_context): New variable.
49134         (u8_casing_prefix_context, u16_casing_prefix_context,
49135         u32_casing_prefix_context, u8_casing_prefixes_context,
49136         u16_casing_prefixes_context, u32_casing_prefixes_context): New
49137         declarations.
49138         (casing_suffix_context_t): New type.
49139         (unicase_empty_suffix_context): New variable.
49140         (u8_casing_suffix_context, u16_casing_suffix_context,
49141         u32_casing_suffix_context, u8_casing_suffixes_context,
49142         u16_casing_suffixes_context, u32_casing_suffixes_context,
49143         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
49144         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
49145         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
49146         declarations.
49147
49148 2009-06-28  Jim Meyering  <meyering@redhat.com>
49149
49150         boostrap: indent only with spaces
49151         * build-aux/bootstrap: Indent only with spaces, never TABs.
49152
49153         bootstrap: split long lines
49154         * build-aux/bootstrap: Keep line length < 80.
49155
49156         bootstrap: sync from coreutils
49157         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
49158         just as autoreconf does.  Verify a list of prerequisite
49159         package-name,version-number pairs if defined in bootstrap.conf.
49160         Refer to README-prereq, if prerequisites are not satisfied.
49161
49162 2009-06-27  Eric Blake  <ebb9@byu.net>
49163
49164         tests: add test for bogus NULL definition
49165         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
49166         * tests/test-stdlib.c: Likewise.
49167         * tests/test-string.c: Likewise.
49168         * tests/test-locale.c: Likewise.
49169         * tests/test-unistd.c: Likewise.
49170         * modules/stdio-tests (Depends-on): Add verify.
49171         * modules/stdlib-tests (Depends-on): Likewise.
49172         * modules/string-tests (Depends-on): Likewise.
49173         * modules/locale-tests (Depends-on): Likewise.
49174         * modules/unistd-tests (Depends-on): Likewise.
49175
49176 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
49177
49178         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
49179         self-explaining comment.
49180         * m4/selinux-selinux-h: Update serial.
49181         (gl_LIBSELINUX): New macro, adding a warning for missing development
49182         packages to code extracted from...
49183         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
49184         Add warning for missing development packages here, too.
49185
49186 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
49187
49188         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
49189
49190 2009-06-25  Eric Blake  <ebb9@byu.net>
49191
49192         version-etc: fix regression
49193         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
49194         gcc.
49195         (version_etc): Use it, to catch bugs with trailing NULL.
49196         * lib/version-etc.c (version_etc_arn): Delete unused argument.
49197         (version_etc_va): Fix logic bug.
49198         * modules/version-etc-tests: Add test.
49199         * tests/test-version-etc.c: New file.
49200         * tests/test-version-etc.sh: Likewise.
49201
49202 2009-06-25  Sam Steingold  <sds@gnu.org>
49203
49204         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
49205         mbtowc declaration.
49206
49207 2009-06-25  Eric Blake  <ebb9@byu.net>
49208
49209         fpurge: migrate into <stdio.h>
49210         * lib/fpurge.h: Delete...
49211         * lib/stdio.in.h (fpurge): ...and declare here, instead.
49212         * lib/fpurge.c (fpurge): Change declaring header.
49213         * modules/fpurge (Files): Drop deleted file.
49214         (Depends-on): Add stdio.
49215         (configure.ac): Set witness.
49216         * modules/stdio (Makefile.am): Support fpurge macros.
49217         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
49218         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
49219         * lib/fflush.c: Update client.
49220         * tests/test-fpurge.c: Likewise.
49221         * NEWS: Mention the change.
49222
49223 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
49224
49225         * lib/argp-version-etc.c (program_authors): Add const
49226         qualifier.
49227         * lib/version-etc.c: Fix typos in the comments.
49228         * modules/argp-version-etc: Depends on version-etc.
49229
49230 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
49231
49232         argp-version-etc: new module.
49233
49234         * lib/argp-version-etc.c: New file.
49235         * lib/argp-version-etc.h: New file.
49236         * modules/argp-version-etc: New file.
49237         * modules/argp-version-etc-tests: New file.
49238         * tests/test-argp-version-etc.c: New test.
49239         * tests/test-argp-version-etc-1.sh: New test.
49240
49241 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
49242
49243         Provide additional interfaces and documentation for version-etc
49244         module.
49245
49246         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
49247         interfaces.
49248         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
49249         prototypes.
49250
49251 2009-06-24  Bruno Haible  <bruno@clisp.org>
49252
49253         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
49254         HAVE_LIB${NAME} macro.
49255         Reported by Sam Steingold <sds@gnu.org>.
49256
49257 2009-06-23  Simon Josefsson  <simon@josefsson.org>
49258
49259         * modules/hash-tests (test_hash_LDADD): Link to libintl when
49260         needed.
49261
49262 2009-06-21  Bruno Haible  <bruno@clisp.org>
49263
49264         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
49265         work.
49266         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
49267         together with LIB${NAME}, LTLIB${NAME}.
49268         Reported by Sam Steingold <sds@gnu.org>.
49269
49270 2009-06-20  Jim Meyering  <meyering@redhat.com>
49271
49272         tests: make sc_require_test_exit_idiom more generic
49273         * top/maint.mk (Exit_witness_file): New overridable variable.
49274         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
49275         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
49276
49277 2009-06-19  Jim Meyering  <meyering@redhat.com>
49278
49279         hash: reverse order of src/dst parameters in an internal interface
49280         * lib/hash.c (transfer_entries): Reverse order of parameters to
49281         put DST before SRC.  Adjust callers.
49282
49283         tests: test-hash: avoid wholesale duplication
49284         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
49285         Instead, use a loop and add a single conditional.
49286
49287         tests: test-hash: allow seed selection via a command line argument
49288         * tests/test-hash.c (get_seed): New function.
49289         (main): Use it.
49290
49291 2009-06-19  Eric Blake  <ebb9@byu.net>
49292
49293         hash: avoid memory leak on allocation failure
49294         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
49295         failure.  Factor repeated algorithm...
49296         (transfer_entries): ...into new helper routine.
49297         (hash_delete): React to hash_rehash return value.
49298
49299         hash: reduce memory pressure in hash_rehash no-op case
49300         * lib/hash.c (next_prime): Avoid overflow.
49301         (hash_initialize): Factor bucket size computation...
49302         (compute_bucket_size): ...into new helper function.
49303         (hash_rehash): Use new function and open coding to reduce memory
49304         pressure, and avoid a memory leak in USE_OBSTACK code.
49305         Reported by Jim Meyering.
49306
49307 2009-06-18  Eric Blake  <ebb9@byu.net>
49308
49309         hash: make rotation more obvious
49310         * modules/hash (Depends-on): Add bitrotate and stdint.
49311         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
49312         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
49313         (SIZE_MAX): Rely on headers for definition.
49314         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
49315         (raw_hasher): Use rotr_sz.
49316         Suggested by Jim Meyering.
49317
49318         hash: fix memory leak in last patch
49319         * lib/hash.c (hash_rehash): Avoid memory leak.
49320
49321         hash: avoid no-op rehashing
49322         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
49323
49324         hash: provide default callback functions
49325         * lib/hash.c (raw_hasher, raw_comparator): New functions.
49326         (hash_initialize): Use them as defaults.
49327         * tests/test-hash.c (main): Test this.
49328
49329         hash: minor optimization
49330         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
49331         when possible.
49332         (hash_initialize): Document this promise.
49333         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
49334         * tests/test-hash.c (hash_compare_strings): Test this.
49335
49336 2009-06-18  Bruno Haible  <bruno@clisp.org>
49337
49338         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
49339         going to be replaced anyway.
49340
49341 2009-06-18  Bruno Haible  <bruno@clisp.org>
49342
49343         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
49344         in one place.
49345         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
49346         be replaced anyway.
49347
49348 2009-06-18  Eric Blake  <ebb9@byu.net>
49349
49350         hash: check for resize before insertion
49351         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
49352         threshold before insertion, so that a pathological hash_rehash
49353         that fills every bucket can still trigger another rehash.
49354
49355 2009-06-18  Jim Meyering  <meyering@redhat.com>
49356
49357         hash-tests: add a loop around the small tests
49358         * tests/test-hash.c (main): Repeat small tests with selected
49359         small initial table sizes.
49360
49361 2009-06-17  Eric Blake  <ebb9@byu.net>
49362
49363         hash: minor cleanups
49364         * lib/hash.h (hash_entry): Make opaque, by moving...
49365         * lib/hash.c (hash_entry): ...here.
49366         (hash_insert): Clarify restrictions on what can be inserted.
49367         (hash_get_next): Clarify when it is safe to remove an element
49368         during traversal.
49369         (check_tuning): Skip verification when tuning is known safe.
49370         (hash_initialize): Clarify restrictions on tuning.
49371
49372 2009-06-17  Jim Meyering  <jim@meyering.net>
49373         and Eric Blake  <ebb9@byu.net>
49374
49375         hash-tests: new module
49376         * modules/hash-tests: New file.
49377         * tests/test-hash.c: New file.
49378
49379 2009-06-17  Eric Blake  <ebb9@byu.net>
49380
49381         strstr-simple: document new module
49382         * MODULES.html.sh: Document new module.
49383
49384         strstr, strcasestr: replace on platforms with broken memchr
49385         * modules/strstr: Split into...
49386         * modules/strstr-simple: ...new module that does not care about
49387         performance, but does care about glibc bug.
49388         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
49389         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
49390         if platform memchr is broken, per Debian bug 521737.
49391         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
49392         memchr.
49393         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
49394         * doc/posix-functions/strstr.texi (strstr): Document the fix.
49395         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
49396         * modules/mountlist (Depends-on): Add strstr-simple.
49397         * modules/gen-uni-tables (Depends-on): Likewise.
49398         * modules/argz (Depends-on): Add strstr.
49399
49400 2009-06-17  Bruno Haible  <bruno@clisp.org>
49401
49402         * modules/posix_spawn-internal (Depends-on): Add errno.
49403
49404 2009-06-17  Bruno Haible  <bruno@clisp.org>
49405
49406         Define missing ESTALE on Interix 3.5.
49407         * lib/errno.in.h (ESTALE): Assign a value if missing.
49408         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
49409         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
49410         missing.
49411         * doc/posix-headers/errno.texi: Mention the Interix bug.
49412         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
49413
49414 2009-06-15  Eric Blake  <ebb9@byu.net>
49415
49416         memchr, memchr2: add valgrind exception
49417         * lib/memchr.valgrind: New file.
49418         * lib/memchr2.valgrind: New file.
49419         * modules/memchr (Files): Distribute valgrind file.
49420         * modules/memchr2 (Files): Likewise.
49421
49422         docs: memchr is no longer obsolete
49423         * MODULES.html.sh: Move memchr from obsolete to string.h section.
49424         * lib/string.in.h (memchr): Simplify logic.
49425
49426 2009-06-14  Jim Meyering  <meyering@redhat.com>
49427
49428         link-follow: fix the "checking..." message to not mention trailing slash
49429         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
49430         never considered trailing slashes.
49431
49432 2009-06-14  Bruno Haible  <bruno@clisp.org>
49433
49434         * m4/memchr.m4: Mention also the bug on IA-64.
49435         * doc/posix-functions/memchr.texi: Likewise.
49436
49437 2009-06-12  Eric Blake  <ebb9@byu.net>
49438
49439         memchr: detect broken x86_64 and alpha implementations
49440         * modules/memchr-tests (Depends-on): Move mmap detection...
49441         * modules/memchr (Depends-on): ...here.
49442         (configure.ac): Set indicator.
49443         * lib/string.in.h (memchr): Declare replacement.
49444         * modules/string (Makefile.am): Trigger replacement.
49445         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
49446         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
49447         bugs.
49448         * doc/posix-functions/memchr.texi (memchr): Document the bug.
49449         * modules/getpagesize (License): Relax license.
49450
49451 2009-06-11  Bruno Haible  <bruno@clisp.org>
49452
49453         * lib/idpriv.h: Add more references.
49454
49455 2009-06-08  Bruno Haible  <bruno@clisp.org>
49456
49457         Tests for module 'idpriv-droptemp'.
49458         * modules/idpriv-droptemp-tests: New file.
49459         * tests/test-idpriv-droptemp.sh: New file.
49460         * tests/test-idpriv-droptemp.su.sh: New file.
49461         * tests/test-idpriv-droptemp.c: New file.
49462
49463         New module 'idpriv-droptemp'.
49464         * lib/idpriv-droptemp.c: New file.
49465         * modules/idpriv-droptemp: New file.
49466
49467 2009-06-08  Bruno Haible  <bruno@clisp.org>
49468
49469         Tests for module 'idpriv-drop'.
49470         * modules/idpriv-drop-tests: New file.
49471         * tests/test-idpriv-drop.sh: New file.
49472         * tests/test-idpriv-drop.su.sh: New file.
49473         * tests/test-idpriv-drop.c: New file.
49474
49475         New module 'idpriv-drop'.
49476         * lib/idpriv.h: New file.
49477         * lib-idpriv-drop.c: New file.
49478         * m4/idpriv.m4: New file.
49479         * modules/idpriv-drop: New file.
49480
49481 2009-06-08  Bruno Haible  <bruno@clisp.org>
49482
49483         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
49484         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
49485         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
49486         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
49487         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
49488         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
49489         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
49490
49491 2009-06-08  Eric Blake  <ebb9@byu.net>
49492
49493         test-strstr: use memory fence, when possible
49494         * tests/test-strstr.c (main): Use memory fence, in order to be
49495         more likely to trigger Debian bug 521737.
49496         * modules/strstr-tests (Files): Pull in additional files.
49497
49498         memchr: no longer obsolete, for wider field testing
49499         * modules/memchr (Status, Notice): Delete, this module is no
49500         longer obsolete.
49501         * modules/vasnprintf (Depends-on): Add memchr.
49502
49503 2009-06-07  Jim Meyering  <meyering@redhat.com>
49504
49505         hash: declare some functions with the warn_unused_result attribute
49506         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
49507
49508 2009-06-07  Bruno Haible  <bruno@clisp.org>
49509
49510         * tests/test-alignof.c: Don't test int64_t if it does not exist.
49511         Reported by Eric Blake.
49512
49513 2009-06-06  Eric Blake  <ebb9@byu.net>
49514
49515         test-alignof: fix typo with long double
49516         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
49517         compiler error.
49518
49519 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
49520
49521         Escape non-texinfo { and }s.
49522         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
49523         markup error.
49524
49525 2009-06-04  Jim Meyering  <meyering@redhat.com>
49526
49527         gitlog-to-changelog: don't infloop on an empty commit log
49528         * build-aux/gitlog-to-changelog: Warn about an empty log message.
49529         Reported by Boris Petersen <transacid@centerim.org>.
49530
49531 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
49532
49533         version-etc: extend for packagers
49534         Add three new configure options, intended for packagers:
49535           --with-packager="packager name"
49536           --with-packager-version="packager-specific version"
49537           --with-packager-bug-reports="packager bug reporting"
49538         An example with coreutils:
49539           $ ./configure \
49540             --with-packager=Gentoo \
49541             --with-packager-bug-report=http://bugs.gentoo.org/ \
49542             --with-packager-version="patchset 1.6"
49543           $ ./src/ls --version | head -n2
49544           ls (GNU coreutils) 7.1-dirty
49545           Packaged by Gentoo (patchset 1.6)
49546         Note that the bug reporting info via --help doesn't show up because
49547         coreutils uses its own custom emit_bug_reporting_address() implementation
49548         in src/system.h.  If it didn't, it'd look like:
49549           $ ./src/ls --help | tail -n4
49550           Report bugs to <bug-coreutils@gnu.org>.
49551           Report Gentoo bugs to <http://bugs.gentoo.org/>.
49552           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
49553           General help using GNU software: <http://www.gnu.org/gethelp/>.
49554         * lib/version-etc.c: Print new information, if provided.
49555         * m4/version-etc.m4: New file.
49556         * modules/version-etc (Files): Add m4/version-etc.m4.
49557         (configure.ac): Add gl_VERSION_ETC.
49558
49559 2009-05-31  Bruno Haible  <bruno@clisp.org>
49560
49561         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
49562         and 'int64_t'.
49563         * modules/alignof-tests (Dependencies): Add stdint.
49564         Reported by Eric Blake.
49565
49566 2009-05-31  Bruno Haible  <bruno@clisp.org>
49567
49568         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
49569         restriction due to compiler bugs.
49570         Reported by Eric Blake.
49571
49572 2009-05-31  Simon Josefsson  <simon@josefsson.org>
49573             Bruno Haible  <bruno@clisp.org>
49574
49575         Fix test-alignof failure.
49576         * lib/alignof.h (alignof_slot): New macro.
49577         (alignof_type): New macro, with the same semantics as the previous
49578         'alignof'.
49579         (alignof): Alias to alignof_slot.
49580         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
49581         check that the results are usable as constant expressions.
49582
49583 2009-05-31  Bruno Haible  <bruno@clisp.org>
49584
49585         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
49586         * tests/test-memchr.c (main): Check that memchr does not read past the
49587         first occurrence of the byte.
49588         * tests/test-strstr.c (main): Update comment.
49589         Suggested by Eric Blake.
49590
49591 2009-05-30  Bruno Haible  <bruno@clisp.org>
49592
49593         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
49594         detail how to use dumpbin.
49595         Reported by David Byron <dbyron@dbyron.com>.
49596
49597 2009-06-02  Simon Josefsson  <simon@josefsson.org>
49598
49599         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
49600
49601 2009-06-02  Simon Josefsson  <simon@josefsson.org>
49602
49603         * m4/manywarnings.m4: Add GCC 4.4 warnings.
49604
49605 2009-05-28  Bruno Haible  <bruno@clisp.org>
49606
49607         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
49608         build-aux/ files.
49609
49610 2009-05-28  Simon Josefsson  <simon@josefsson.org>
49611
49612         * gnulib-tool (func_import): Transform license on build-aux/ files too.
49613
49614 2009-05-27  Simon Josefsson  <simon@josefsson.org>
49615
49616         * gnulib-tool (sed_transform_main_lib_file)
49617         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
49618         regexps.
49619
49620 2009-05-26  Simon Josefsson  <simon@josefsson.org>
49621
49622         * tests/test-strstr.c: Add another self-test.
49623         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
49624         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
49625
49626 2009-05-23  Bruno Haible  <bruno@clisp.org>
49627
49628         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
49629         change.
49630
49631 2009-05-21  Bruno Haible  <bruno@clisp.org>
49632
49633         Simplify use of mode_t varargs.
49634         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
49635         uses 'mode_t' or 'int'.
49636         * lib/openat.c (openat): Likewise.
49637         * lib/open-safer.c (open_safer): Likewise.
49638         * m4/mode_t.m4: New file.
49639         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
49640         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
49641         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
49642         * modules/open (Files): Add m4/mode_t.m4.
49643         * modules/openat (Files): Likewise.
49644         * modules/fcntl-safer (Files): Likewise.
49645         Suggested by Eric Blake.
49646
49647 2009-05-21  Pádraig Brady  <P@draigbrady.com>
49648
49649         * doc/glibc-functions/fallocate.texi: New file.
49650         * doc/gnulib.texi: Include it.
49651
49652 2009-05-21  Eric Blake  <ebb9@byu.net>
49653             Bruno Haible  <bruno@clisp.org>
49654
49655         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
49656         invocations.
49657         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
49658
49659 2009-05-21  Eric Blake  <ebb9@byu.net>
49660             Bruno Haible  <bruno@clisp.org>
49661
49662         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
49663         include_next. Fix of 2008-11-20 commit.
49664         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
49665         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
49666         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
49667         NEXT_MATH_H.
49668         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
49669         instead of NEXT_MATH_H.
49670
49671 2009-05-21  Bruno Haible  <bruno@clisp.org>
49672
49673         Avoid redefinition warnings for SIZE_MAX.
49674         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
49675         Reported by Simon Josefsson.
49676
49677 2009-05-21  Bruno Haible  <bruno@clisp.org>
49678
49679         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
49680         AC_CACHE_VAL.
49681
49682 2009-05-20  Bruno Haible  <bruno@clisp.org>
49683
49684         Make zeroptr.h work on mingw.
49685         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
49686         mprotect.
49687         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
49688         * modules/memchr2-tests (configure.ac): Likewise.
49689         * modules/memcmp-tests (configure.ac): Likewise.
49690         * modules/memmem-tests (configure.ac): Likewise.
49691         * modules/memrchr-tests (configure.ac): Likewise.
49692         Reported by Simon Josefsson.
49693
49694 2009-05-20  Simon Josefsson  <simon@josefsson.org>
49695
49696         * tests/test-glob.c: Include string.h for strcmp prototype.
49697
49698 2009-05-20  Simon Josefsson  <simon@josefsson.org>
49699
49700         * modules/getdelim (Depends-on): Add explicit stdint, although it
49701         was implicitly already pulled in via realloc-posix.
49702         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
49703
49704 2009-05-20  Simon Josefsson  <simon@josefsson.org>
49705
49706         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
49707         G. Christensen" <tgc@jupiterrise.com>.
49708         * m4/sys_socket_h.m4: Check for sa_family_t.
49709         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
49710         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
49711         * tests/test-sys_socket.c: Check that sa_family_t works.
49712
49713 2009-05-18  Eric Blake  <ebb9@byu.net>
49714
49715         maint.mk: allow gnulib_dir in VPATH build
49716         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
49717
49718 2009-05-15  Jim Meyering  <meyering@redhat.com>
49719
49720         maint.mk: Give gnulib_dir a default definition.
49721         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
49722         Thus, most packages no longer need to specify this variable in cfg.mk
49723
49724 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
49725
49726         rename.m4: fix typos that would make non-mingw cross-configure fail
49727         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
49728
49729 2009-05-13  Eric Blake  <ebb9@byu.net>
49730
49731         mmap-anon: avoid out-of-order autoconf expansion
49732         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
49733         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
49734         * modules/memchr-tests (Depends-on): Add extensions.
49735         * modules/memchr2-tests (Depends-on): Add extensions.
49736         * modules/memcmp-tests (Depends-on): Add extensions.
49737         * modules/memmem-tests (Depends-on): Add extensions.
49738         * modules/memrchr-tests (Depends-on): Add extensions.
49739
49740 2009-05-13  Bruno Haible  <bruno@clisp.org>
49741
49742         Make some tests ISO C 99 compliant.
49743         * tests/zerosize-ptr.h: New file.
49744         * tests/test-memchr.c: Include zerosize-ptr.h.
49745         (main): Use a zero-size object pointer instead of NULL.
49746         * tests/test-memchr2.c: Include zerosize-ptr.h.
49747         (main): Use a zero-size object pointer instead of NULL.
49748         * tests/test-memcmp.c: Include zerosize-ptr.h.
49749         (main): Use a zero-size object pointer instead of NULL.
49750         * tests/test-memmem.c: Include zerosize-ptr.h.
49751         (main): Use a zero-size object pointer instead of NULL.
49752         * tests/test-memrchr.c: Include zerosize-ptr.h.
49753         (main): Use a zero-size object pointer instead of NULL.
49754         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
49755         m4/mmap-anon.m4.
49756         (Depends-on): Add getpagesize.
49757         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
49758         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
49759         m4/mmap-anon.m4.
49760         (Depends-on): Add getpagesize.
49761         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
49762         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
49763         m4/mmap-anon.m4.
49764         (Depends-on): Add getpagesize.
49765         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
49766         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
49767         m4/mmap-anon.m4.
49768         (Depends-on): Add getpagesize.
49769         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
49770         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
49771         m4/mmap-anon.m4.
49772         (Depends-on): Add getpagesize.
49773         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
49774
49775 2009-05-12  Bruno Haible  <bruno@clisp.org>
49776
49777         Tests for module 'alignof'.
49778         * modules/alignof-tests: New file.
49779         * tests/test-alignof.c: New file.
49780
49781 2009-05-12  Bruno Haible  <bruno@clisp.org>
49782
49783         Fix alignof macro.
49784         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
49785         vendor compilers that are always correct.
49786
49787 2009-05-12  Bruno Haible  <bruno@clisp.org>
49788
49789         Make the MAP_ANONYMOUS detection work on HP-UX 11.
49790         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
49791         not whether its fully works.
49792
49793 2009-05-12  Bruno Haible  <bruno@clisp.org>
49794
49795         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
49796
49797 2009-05-12  Jim Meyering  <meyering@redhat.com>
49798
49799         * top/maint.mk: Adjust backslash alignment.
49800
49801 2009-05-11  Simon Josefsson  <simon@josefsson.org>
49802
49803         * top/maint.mk: Make $(srcdir)/build-aux configurable.
49804
49805 2009-05-11  Eric Blake  <ebb9@byu.net>
49806
49807         argp: avoid undefined behavior
49808         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
49809         macros.
49810
49811 2009-05-08  Simon Josefsson  <simon@josefsson.org>
49812
49813         * tests/test-vc-list-files-git.sh: Do git config of user.email and
49814         user.name to prevent git commit from complaining.
49815
49816 2009-05-10  Bruno Haible  <bruno@clisp.org>
49817
49818         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
49819         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
49820         it rewrites every file name only once.
49821         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
49822
49823 2009-05-08  Bruno Haible  <bruno@clisp.org>
49824
49825         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
49826         instead of 'max'.
49827
49828 2009-05-08  Simon Josefsson  <simon@josefsson.org>
49829
49830         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
49831         sockaddr_storage test.
49832
49833 2009-05-07  Simon Josefsson  <simon@josefsson.org>
49834
49835         * modules/sys_socket (Makefile.am): Substitute
49836         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
49837         * m4/sys_socket_h.m4: Check for sockaddr_storage.
49838         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
49839         * tests/test-sys_socket.c: Check sockaddr_storage.
49840
49841 2009-05-08  Bruno Haible  <bruno@clisp.org>
49842
49843         New module 'alignof'.
49844         * lib/alignof.h: New file.
49845         * modules/alignof: New file.
49846
49847 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
49848             Bruno Haible  <bruno@clisp.org>
49849
49850         Fix test-file-has-acl on FreeBSD.
49851         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
49852         mask is implicitly added.
49853         * tests/test-file-has-acl.c: Include <signal.h>.
49854         (main): Terminate the test after 5 seconds.
49855         * modules/acl-tests (configure.ac): Check for alarm function.
49856
49857 2009-05-04  Bruno Haible  <bruno@clisp.org>
49858
49859         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
49860         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
49861         * modules/errno (configure.ac): Drop AC_REQUIRE.
49862         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
49863         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
49864
49865 2009-05-04  Simon Josefsson  <simon@josefsson.org>
49866
49867         * modules/glob-tests: New module.
49868         * tests/test-glob.c: Add.
49869
49870 2009-05-04  Simon Josefsson  <simon@josefsson.org>
49871
49872         * modules/fnmatch-tests: New module.
49873         * tests/test-fnmatch.c: Add.
49874
49875 2009-05-04  Eric Blake  <ebb9@byu.net>
49876
49877         maint: make the new no-submodule-changes rule VPATH-safe
49878         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
49879
49880 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
49881             Bruno Haible  <bruno@clisp.org>
49882
49883         acl: Fix infinite loop on FreeBSD.
49884         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
49885         of return value from acl_get_entry.
49886         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
49887         Likewise.
49888
49889 2009-05-03  Bruno Haible  <bruno@clisp.org>
49890
49891         * lib/acl-internal.h (acl_entries): Clarify return value.
49892         * lib/acl_entries.c (acl_entries): Likewise.
49893
49894 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
49895
49896         Bug fix in acl module.
49897         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
49898
49899 2009-05-03  Bruno Haible  <bruno@clisp.org>
49900
49901         Create gperf-generated file in the source dir, not in the build dir.
49902         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
49903         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
49904         * modules/unicase/locale-language (unicase/locale-languages.h):
49905         Likewise.
49906         * modules/unicase/special-casing (unicase/special-casing-table.h):
49907         Likewise.
49908         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
49909         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
49910         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
49911         Reported by Ralf Wildenhues.
49912
49913 2009-05-03  Bruno Haible  <bruno@clisp.org>
49914
49915         * modules/fnmatch (Description, configure.ac): Taken from
49916         fnmatch-posix.
49917         * modules/fnmatch-posix: Turn into a symbolic reference to the
49918         'fnmatch' module, and deprecate.
49919         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
49920
49921 2009-05-03  Bruno Haible  <bruno@clisp.org>
49922
49923         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
49924         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
49925         Reported by Ralf Wildenhues.
49926
49927 2009-05-04  Simon Josefsson  <simon@josefsson.org>
49928
49929         * m4/fnmatch.m4: Fix fnmatch re-define.
49930
49931 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
49932
49933         priv-set: new module and tests; adapt write-any-file
49934         * lib/priv-set.c: New file.
49935         * lib/priv-set.h: New file.
49936         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
49937         * lib/write-any-file.c: Simplify by using priv-set module.
49938         * m4/priv-set.m4: New file.
49939         * modules/priv-set: New file.
49940         * modules/unlinkdir: Add dependency on priv-set module.
49941         * modules/write-any-file: Likewise.
49942
49943         Tests for module 'priv-set'.
49944         * modules/priv-set-tests: New file.
49945         * tests/test-priv-set.c: New file.
49946
49947 2009-05-03  Jim Meyering  <meyering@redhat.com>
49948             Bruno Haible  <bruno@clisp.org>
49949
49950         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
49951         use the converted UTF-8 variant of the name instead.
49952
49953 2009-05-03  Jim Meyering  <meyering@redhat.com>
49954
49955         tests: tighten some getdate tests
49956         * tests/test-getdate.c (main): Tighten tests: require equality,
49957         not just greater than.  Set TZ envvar to UTC0.
49958
49959 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
49960
49961         getdate: correctly interpret "next monday" when run on a Monday
49962         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
49963         that e.g., "next tues" (when run on a tuesday) results in a date
49964         that is one week in the future, and not today's date.
49965         I.e., add a week when the wday is the same as the current one.
49966         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
49967         and earlier by Martin Bernreuther and Jan Minář.
49968         * tests/test-getdate.c (main): Check that "next DAY" is always in
49969         the future and that "last DAY" is always in the past.
49970
49971 2009-05-02  Jim Meyering  <meyering@redhat.com>
49972
49973         build: ensure that a release build fails when a submodule is unclean
49974         * top/maint.mk (no-submodule-changes): New rule.
49975         (alpha beta major): Depend on it.
49976
49977 2009-05-02  Bruno Haible  <bruno@clisp.org>
49978
49979         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
49980         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
49981         shell variable gl_fnmatch_required to detect which variant is
49982         requested.
49983         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
49984         gl_FUNC_FNMATCH_POSIX.
49985         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
49986         exclude fnmatch-posix.
49987
49988 2009-05-02  Bruno Haible  <bruno@clisp.org>
49989
49990         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
49991         * modules/mbsrtowcs (License): Change to LGPLv2+.
49992         * modules/strnlen1 (License): Likewise.
49993         Reported by Simon Josefsson.
49994
49995 2009-05-02  Bruno Haible  <bruno@clisp.org>
49996
49997         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
49998         "cross".
49999         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
50000         gnulib-tool was called with option --source-base=lib.
50001
50002 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50003
50004         Use automake *-local hooks without commands, for extensibility.
50005         * modules/localcharset (Makefile.am): Rename install-exec-local
50006         rule to install-exec-localcharset, and make it a prerequisite of
50007         install-exec-local.  Likewise, rename the uninstall-local rule to
50008         uninstall-localcharset, and make it a prerequisite of the former.
50009
50010 2009-05-01  Bruno Haible  <bruno@clisp.org>
50011
50012         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
50013         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
50014         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
50015         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
50016         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
50017         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
50018         m4/locale-zh.m4, m4/codeset.m4.
50019
50020         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
50021         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
50022         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
50023         m4/locale-zh.m4.
50024
50025         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
50026         REPLACE_WCRTOMB if mbstate_t must be replaced.
50027         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
50028         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
50029
50030 2009-05-01  Bruno Haible  <bruno@clisp.org>
50031
50032         Avoid compiler warnings when redefining macros defined by <libintl.h>.
50033         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
50034         dngettext, dcngettext, textdomain, bindtextdomain,
50035         bind_textdomain_codeset): Undefine before redefining.
50036
50037 2009-04-30  Bruno Haible  <bruno@clisp.org>
50038
50039         Fix bug introduced on 2009-04-25.
50040         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
50041         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
50042         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
50043         is defined.
50044         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
50045         is defined.
50046         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
50047         is defined.
50048         Reported by Elbert_Pol <elbert.pol@gmail.com>.
50049
50050 2009-04-28  Bruno Haible  <bruno@clisp.org>
50051
50052         Comment tweaks.
50053         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
50054         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
50055         * lib/unicase.h (u*_casexfrm): Likewise.
50056         Reported by Paolo Bonzini.
50057
50058 2009-04-28  Bruno Haible  <bruno@clisp.org>
50059
50060         Fix a compilation error.
50061         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
50062         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
50063         Reported by Jim Meyering.
50064
50065 2009-04-27  Bruno Haible  <bruno@clisp.org>
50066
50067         New module 'libunistring'.
50068         * modules/libunistring: New file.
50069         * m4/libunistring.m4: New file.
50070         * MODULES.html.sh (Unicode string functions): Add it.
50071
50072 2009-04-27  Eric Blake  <ebb9@byu.net>
50073
50074         maint.mk: allow package-specific header to provide <config.h>
50075         * top/maint.mk (sc_require_config_h): New variable.
50076         (sc_require_config_h, sc_require_config_h_first): Use it.
50077
50078 2009-04-27  Simon Josefsson  <simon@josefsson.org>
50079
50080         * top/maint.mk (sc_avoid_if_before_free): Except
50081         useless-if-before-free script.
50082
50083 2009-04-27  Eric Blake  <ebb9@byu.net>
50084
50085         maintainer-makefile: depend on all required helper scripts
50086         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
50087         useless-if-before-free.
50088         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
50089         version, rather than assuming gnulib checkout is available.
50090         Reported by Simen Josefsson.
50091
50092 2009-04-26  Bruno Haible  <bruno@clisp.org>
50093
50094         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
50095         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
50096         "../" or "..".
50097
50098 2009-04-26  Bruno Haible  <bruno@clisp.org>
50099
50100         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
50101         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
50102         AC_LIB_HAVE_LINKFLAGS.
50103
50104 2009-04-26  Bruno Haible  <bruno@clisp.org>
50105
50106         Simplify calling convention of u*_conv_from_encoding.
50107         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
50108         u32_conv_from_encoding): Expect a resultbuf argument and return the
50109         result directly as a pointer.
50110         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
50111         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
50112         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
50113         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
50114         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
50115         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
50116         Update.
50117         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
50118         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
50119         * lib/vasnprintf.c (VASNPRINTF): Update.
50120         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
50121         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
50122         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
50123         * NEWS: Mention the change.
50124
50125 2009-04-26  Bruno Haible  <bruno@clisp.org>
50126
50127         Simplify calling convention of u*_conv_to_encoding.
50128         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
50129         u32_conv_to_encoding): Expect a resultbuf argument and return the
50130         result directly as a pointer.
50131         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
50132         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
50133         freeing scaled_offsets if mem_iconveha failed.
50134         * lib/unicase/u-casexfrm.h (FUNC): Update.
50135         * lib/uninorm/u-normxfrm.h (FUNC): Update.
50136         * lib/vasnprintf.c (VASNPRINTF): Update.
50137         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
50138         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
50139         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
50140         * NEWS: Mention the change.
50141
50142 2009-04-26  Bruno Haible  <bruno@clisp.org>
50143
50144         Avoid test failures on AIX and OSF/1.
50145         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
50146         malloc(0).
50147         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
50148         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
50149         Likewise.
50150         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
50151         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
50152         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
50153         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
50154         * doc/posix-functions/malloc.texi: Document the portability problem
50155         related to malloc(0).
50156
50157 2009-04-26  Bruno Haible  <bruno@clisp.org>
50158
50159         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
50160         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
50161         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
50162
50163 2009-04-25  Bruno Haible  <bruno@clisp.org>
50164
50165         Avoid link error when creating a namespace clean library.
50166         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
50167         as macro with arguments if already defined as an alias.
50168         * lib/signbitf.c (gl_signbitf): Don't undefine.
50169         * lib/signbitd.c (gl_signbitd): Don't undefine.
50170         * lib/signbitl.c (gl_signbitl): Don't undefine.
50171
50172 2009-04-25  Jim Meyering  <meyering@redhat.com>
50173
50174         vc-list-files: fix another quoting bug
50175         * build-aux/vc-list-files: Avoid sed backslash expansion
50176         of pathological directory names.
50177
50178 2009-04-25  Eric Blake  <ebb9@byu.net>
50179
50180         vc-list-files: fix shell quoting error
50181         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
50182         timestamp.
50183
50184 2009-04-25  Jim Meyering  <meyering@redhat.com>
50185
50186         vc-list-files: restore lost functionality with subdir argument
50187         * build-aux/vc-list-files: When given a non-"." sub-directory
50188         argument, substitute the $dir/ prefix back onto each resulting name.
50189         Otherwise, coreutils' root_tests check would fail.
50190
50191 2009-04-24  Eric Blake  <ebb9@byu.net>
50192
50193         vc-list-files: ignore git symlinks
50194         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
50195         than ls-files, to ignore git symlinks.
50196
50197         maint.mk: import improvements from m4
50198         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
50199         (move_if_change): Delete unused macro.
50200         (news-date-check, vc-diff-check): Support VPATH builds.
50201         (announcement): Likewise.  Split --bootstrap-tools list...
50202         (boostrap-tools): ...into separate list, which can be overridden
50203         in cfg.mk.
50204         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
50205         requiring dependency on useless-if-before-free module.
50206         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
50207         Support VPATH builds.
50208
50209 2009-04-24  Jim Meyering  <meyering@redhat.com>
50210
50211         maint.mk: remove coreutils-specific rules and variables
50212         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
50213         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
50214         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
50215
50216         maint.mk: remove obsolete rule
50217         * top/maint.mk (rel-check): Remove rule.
50218         (WGET, WGETFLAGS): Remove now-unused variables.
50219
50220 2009-04-24  Simon Josefsson  <simon@josefsson.org>
50221
50222         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
50223         consistency.
50224
50225         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
50226         '$(PATH_SEPARATOR)' instead of ':'.
50227
50228 2009-04-24  Simon Josefsson  <simon@josefsson.org>
50229
50230         * lib/getopt1.c (main): Use 'const' for static array.
50231
50232 2009-04-24  Simon Josefsson  <simon@josefsson.org>
50233
50234         * top/maint.mk: Sync with coreutils.
50235         * NEWS: Explain incompatibilities.
50236
50237 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50238             Bruno Haible  <bruno@clisp.org>
50239
50240         Fix cross-compilation results.
50241         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
50242         statement, as third argument of AC_TRY_RUN.
50243         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
50244         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
50245         Likewise.
50246         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
50247         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
50248         Likewise.
50249         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
50250         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
50251         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
50252
50253 2009-04-20  Bruno Haible  <bruno@clisp.org>
50254
50255         Avoid test failure on mingw.
50256         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
50257
50258 2009-04-20  Bruno Haible  <bruno@clisp.org>
50259
50260         Avoid compilation error on mingw.
50261         * modules/localename-tests (Depends-on): Add locale.
50262
50263 2009-04-19  Bruno Haible  <bruno@clisp.org>
50264
50265         Support for building a shared library on Windows platforms.
50266         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
50267         (main): Test the presence of UNINORM_NFC here.
50268         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
50269         (main): Test the presence of UNINORM_NFD here.
50270         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
50271         (main): Test the presence of UNINORM_NFKC here.
50272         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
50273         (main): Test the presence of UNINORM_NFKD here.
50274
50275 2009-04-19  Bruno Haible  <bruno@clisp.org>
50276
50277         Avoid a compiler warning.
50278         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
50279         Change type of variable 'sequence'.
50280
50281 2009-04-19  Bruno Haible  <bruno@clisp.org>
50282
50283         * modules/configmake (Makefile.am): When the contents of configmake.h
50284         does not change, arrange to preserve its modification time.
50285
50286 2009-04-17  Simon Josefsson  <simon@josefsson.org>
50287
50288         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
50289         gettext domain.
50290
50291 2009-04-16  Jim Meyering  <meyering@redhat.com>
50292
50293         useless-if-before-free: improve conversion code
50294         * build-aux/useless-if-before-free: Adjust code-in-comment to match
50295         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
50296
50297 2009-04-14  Bruno Haible  <bruno@clisp.org>
50298
50299         * modules/fcntl (Depends-on): Add extensions.
50300         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
50301
50302 2009-04-12  Ben Pfaff  <blp@gnu.org>
50303
50304         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
50305         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
50306
50307 2009-03-20  Ben Pfaff  <blp@gnu.org>
50308
50309         Make rename replace existing destinations on Windows.
50310         * m4/rename.m4: Add test for Mingw.
50311         * lib/rename.c: Add rename replacement that uses MoveFileEx with
50312         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
50313         * doc/posix-functions/rename.texi: Document.
50314
50315 2009-04-10  Bruno Haible  <bruno@clisp.org>
50316
50317         New include file "iconveh.h".
50318         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
50319         * lib/striconveh.h: Include it.
50320         (enum iconv_ilseq_handler): Remove definition.
50321         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
50322         striconveh.h.
50323         * lib/striconveha.c: Include striconveh.h.
50324         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
50325         * modules/striconveh (Files): Add lib/iconveh.h.
50326         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
50327         lib/striconveh.h.
50328
50329 2009-04-10  Bruno Haible  <bruno@clisp.org>
50330
50331         * lib/uniconv.h: Update comment.
50332
50333 2009-04-10  Bruno Haible  <bruno@clisp.org>
50334
50335         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
50336         always.
50337         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
50338         * lib/unistr/u16-mbtouc-aux.c: Likewise.
50339         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
50340         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
50341         "unistring-notinline.h", so that the function gets defined always.
50342         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
50343         * lib/unistr/u8-uctomb.c: Likewise.
50344         * lib/unistr/u16-mbtouc.c: Likewise.
50345         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
50346         * lib/unistr/u16-uctomb.c: Likewise.
50347         * lib/unistr/u32-mbtouc.c: Likewise.
50348         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
50349         * lib/unistr/u32-uctomb.c: Likewise.
50350
50351 2009-04-10  Bruno Haible  <bruno@clisp.org>
50352
50353         Mark 'utime' obsolete.
50354         * modules/utime (Status, Notice): New sections.
50355         Suggested by Jim Meyering.
50356
50357         Fix cross-compile guess for utime test.
50358         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
50359         autoconf.
50360         * doc/posix-functions/utime.texi: Give more precisions.
50361         Reported by Jan <ipif@ymail.com>.
50362
50363 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
50364
50365         filevercmp: correct today's change
50366         * lib/filevercmp.c: Also handle coreutils' test inputs.
50367         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
50368
50369         Fix regression in 'filevercmp' module. Thanks Sven Joachim
50370         for reporting it.
50371         * lib/filevercmp.c: Special handle for "", "." and "..".
50372         * tests/test-filevercmp.c: Enlarge the set suite.
50373
50374 2009-04-07  Jim Meyering  <meyering@redhat.com>
50375
50376         useless-if-before-free: show how to remove braced useless free, too
50377         * build-aux/useless-if-before-free: still only in a comment, though.
50378
50379 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
50380
50381         maint.mk: import changes to syntax-check macros from coreutils
50382         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
50383         Use them in the relevant macros.
50384
50385 2009-04-06  Bruno Haible  <bruno@clisp.org>
50386
50387         Fix unportable use of bit-fields.
50388         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
50389         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
50390         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
50391
50392 2009-04-06  Bruno Haible  <bruno@clisp.org>
50393
50394         Avoid test failures on AIX and OSF/1.
50395         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
50396         that malloc(0) = NULL.
50397         * tests/unicase/test-u8-tolower.c (check): Likewise.
50398         * tests/unicase/test-u8-totitle.c (check): Likewise.
50399         * tests/unicase/test-u8-toupper.c (check): Likewise.
50400         * tests/unicase/test-u16-casefold.c (check): Likewise.
50401         * tests/unicase/test-u16-tolower.c (check): Likewise.
50402         * tests/unicase/test-u16-totitle.c (check): Likewise.
50403         * tests/unicase/test-u16-toupper.c (check): Likewise.
50404         * tests/unicase/test-u32-casefold.c (check): Likewise.
50405         * tests/unicase/test-u32-tolower.c (check): Likewise.
50406         * tests/unicase/test-u32-totitle.c (check): Likewise.
50407         * tests/unicase/test-u32-toupper.c (check): Likewise.
50408         * tests/uninorm/test-u8-nfc.c (check): Likewise.
50409         * tests/uninorm/test-u8-nfd.c (check): Likewise.
50410         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
50411         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
50412         * tests/uninorm/test-u16-nfc.c (check): Likewise.
50413         * tests/uninorm/test-u16-nfd.c (check): Likewise.
50414         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
50415         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
50416         * tests/uninorm/test-u32-nfc.c (check): Likewise.
50417         * tests/uninorm/test-u32-nfd.c (check): Likewise.
50418         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
50419         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
50420
50421 2009-04-05  Bruno Haible  <bruno@clisp.org>
50422
50423         Work around an autoconf limitation.
50424         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
50425         comment line if it would be longer than 3 KB.
50426
50427 2009-04-05  Bruno Haible  <bruno@clisp.org>
50428
50429         Avoid test failure with libiconv-1.13.
50430         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
50431         of the expected test results.
50432
50433 2009-04-05  Bruno Haible  <bruno@clisp.org>
50434
50435         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
50436         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
50437         that it should be installed.
50438
50439 2009-04-05  Bruno Haible  <bruno@clisp.org>
50440
50441         * gnulib-tool: New option --copy-file.
50442         (func_usage): Document it.
50443         (func_dest_tmpfilename): Moved out of func_import.
50444         (func_add_file, func_update_file): New functions, extracted from
50445         func_import.
50446         (func_import): Update.
50447
50448 2009-04-05  Karl Berry  <karl@gnu.org>
50449
50450         * README: prominently mention gnulib-tool.
50451         Rearrange sections so getting the code is near the top.
50452
50453 2009-04-05  Bruno Haible  <bruno@clisp.org>
50454
50455         * lib/unicase.h: Mention u*_cmp2.
50456         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
50457         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
50458         * lib/unicase/ulc-casecmp.c: Likewise.
50459         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
50460         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
50461         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
50462         unistr/u8-cmp.
50463         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
50464         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
50465         unistr/u16-cmp.
50466         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
50467         unistr/u32-cmp.
50468
50469         * lib/uninorm.h: Mention u*_cmp2.
50470         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
50471         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
50472         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
50473         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
50474         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
50475         unistr/u8-cmp.
50476         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
50477         unistr/u16-cmp.
50478         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
50479         unistr/u32-cmp.
50480
50481         New module 'unistr/u32-cmp2'.
50482         * lib/unistr/u32-cmp2.c: New file.
50483         * modules/unistr/u32-cmp2: New file.
50484
50485         New module 'unistr/u16-cmp2'.
50486         * lib/unistr/u16-cmp2.c: New file.
50487         * modules/unistr/u16-cmp2: New file.
50488
50489         New module 'unistr/u8-cmp2'.
50490         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
50491         * lib/unistr/u8-cmp2.c: New file.
50492         * lib/unistr/u-cmp2.h: New file.
50493         * modules/unistr/u8-cmp2: New file.
50494
50495 2009-04-05  Bruno Haible  <bruno@clisp.org>
50496
50497         * lib/unictype.h (uc_property_is_valid): New macro.
50498         * tests/unictype/test-pr_byname.c (main): Use it.
50499
50500         * lib/unistr.h: Doc fixes.
50501         * lib/uniconv.h: Doc fixes.
50502         * lib/unictype.h: Doc fixes.
50503
50504 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
50505
50506         Port coreutils 7.2 to Solaris 8.
50507
50508         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
50509         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
50510         for Solaris 8.  This is a bit of a hack, as it means it's the
50511         caller's responsibility to add -lnsl if needed, but most likely it
50512         won't be needed since only getaddrinfo uses this and getaddrinfo
50513         isn't needed on Solaris 8.
50514
50515         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
50516         problem to Solaris 8 encountered with coreutils 7.2, which
50517         resulted in a message "fnmatch.c:292: warning: passing argument 4
50518         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
50519         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
50520
50521 2009-04-03  Simon Josefsson  <simon@josefsson.org>
50522
50523         * m4/ld-version-script.m4: Add FIXME comment.
50524
50525 2009-04-02  Simon Josefsson  <simon@josefsson.org>
50526
50527         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
50528         SOVERSION variable.
50529
50530 2009-04-02  Bruno Haible  <bruno@clisp.org>
50531
50532         * Makefile (info, html, dvi, pdf): Combine the rules.
50533         Suggested by Jim Meyering.
50534
50535 2009-04-01  Bruno Haible  <bruno@clisp.org>
50536
50537         * Makefile (info, html, dvi, pdf): New targets.
50538         Reported by Reuben Thomas <rrt@sc3d.org>.
50539
50540 2009-04-01  Bruno Haible  <bruno@clisp.org>
50541
50542         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
50543         can be put into PATH.
50544         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
50545
50546 2009-04-01  Bruno Haible  <bruno@clisp.org>
50547
50548         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
50549
50550 2009-04-01  Bruno Haible  <bruno@clisp.org>
50551
50552         Rename module 'visibility'.
50553         * modules/lib-symbol-visibility: Renamed from modules/visibility.
50554         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
50555         * doc/gnulib.texi: Update.
50556         * MODULES.html.sh (Misc): Update.
50557         * NEWS: Mention the change.
50558
50559 2009-04-01  Simon Josefsson  <simon@josefsson.org>
50560
50561         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
50562         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
50563         Eric Blake <ebb9@byu.net> for review.
50564         * MODULES.html.sh: Add lib-msvc-compat.
50565         * doc/gnulib.texi: Link to new section.
50566         * m4/ld-output-def.m4: New file.
50567         * doc/ld-output-def.texi: New file.
50568
50569 2009-04-01  Simon Josefsson  <simon@josefsson.org>
50570
50571         Rename ld-version-script to lib-symbol-versions.  Suggested by
50572         Bruno Haible <bruno@clisp.org>.
50573         * modules/ld-version-script: Renamed to lib-symbol-versions.
50574         * doc/ld-version-script.texi: Fix module name.
50575         * MODULES.html.sh: Add lib-symbol-versions.
50576
50577 2009-03-31  Simon Josefsson  <simon@josefsson.org>
50578
50579         * modules/u64-tests: New file.
50580         * tests/test-u64.c: New file.
50581
50582 2009-03-04  Simon Josefsson  <simon@josefsson.org>
50583
50584         * MODULES.html.sh: Mention u64.
50585         * modules/u64: New module.
50586         * modules/crypto/sha512: Depend on u64 module instead of providing
50587         u64.h.
50588
50589 2009-03-27  Eric Blake  <ebb9@byu.net>
50590
50591         test-strerror: make debugging EAI_SYSTEM easier
50592         * modules/getaddrinfo-tests (Depends-on): Add strerror.
50593         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
50594         failure was EAI_SYSTEM.
50595
50596 2009-03-25  Bruno Haible  <bruno@clisp.org>
50597
50598         Fix a problem with --enable-relocatable on Solaris 7.
50599         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
50600         since 2008-02-24.
50601
50602 2009-03-25  Eric Blake  <ebb9@byu.net>
50603
50604         test-sockets: avoid gcc warning
50605         * tests/test-sockets.c (main): Silence compiler warning.
50606
50607 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
50608
50609         New modules nproc, pthread, contributed by Glen Lenker.
50610
50611         * MODULES.html.sh: Add pthread, nproc.
50612         * lib/nproc.c: New file.
50613         * lib/nproc.h: New file.
50614         * lib/pthread.in.h: New file.
50615         * m4/pthread.m4: New file.
50616         * modules/nproc: New file.
50617         * modules/pthread: New file.
50618
50619 2009-03-24  Simon Josefsson  <simon@josefsson.org>
50620
50621         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
50622         New variable.
50623
50624 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
50625
50626         filevercmp: handle simple~ and numbered.~3~ backup suffixes
50627         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
50628         * tests/test-filevercmp.c: Add tests for backup suffixes.
50629
50630 2009-03-24  Simon Josefsson  <simon@josefsson.org>
50631
50632         * modules/stdlib (Depends-on): Add stdint, needed when defining
50633         struct random_data on, for example, HP-UX 10.20.  Reported by
50634         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
50635
50636 2009-03-24  Simon Josefsson  <simon@josefsson.org>
50637
50638         * lib/readline.c (readline): Call fflush on stdout after printing
50639         prompt.
50640
50641 2009-03-20  Bruno Haible  <bruno@clisp.org>
50642
50643         Remove dependency from 'close' module to -lws2_32 on native Windows.
50644         * lib/close-hook.h: New file.
50645         * lib/close-hook.c: New file.
50646         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
50647         w32sock.h.
50648         (_gl_close_fd_maybe_socket): Remove function.
50649         (rpl_close): Invoke execute_all_close_hooks instead of
50650         _gl_close_fd_maybe_socket.
50651         * lib/sockets.c: Include close-hook.h, w32sock.h.
50652         (close_fd_maybe_socket): New function, essentially from lib/close.c.
50653         (close_sockets_hook): New variable.
50654         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
50655         (gl_sockets_cleanup): Unregister it.
50656         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
50657         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
50658         * modules/close-hook: New file.
50659         * modules/close (Files): Remove lib/w32sock.h.
50660         (Depends-on): Add close-hook.
50661         (Link): Remove section.
50662         * modules/sockets (Files): Add lib/w32sock.h.
50663         (Depends-on): Add close-hook.
50664         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
50665         invocation.
50666         * NEWS: Mention that LIB_CLOSE is gone.
50667
50668 2009-03-23  Eric Blake  <ebb9@byu.net>
50669
50670         signal-tests: test previous patch
50671         * tests/test-signal.c: New file.
50672         * modules/signal-tests: Likewise.
50673
50674         signal.h: always support 'volatile sig_atomic_t'
50675         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
50676         (gl_SIGNAL_H_DEFAULTS): Add a default.
50677         * modules/signal (Makefile.am): Substitute if needed.
50678         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
50679         users can blindly add volatile.
50680         * doc/posix-headers/signal.texi (signal.h): Document it.
50681         Reported by Matthew Woehlke.
50682
50683 2009-03-23  Jim Meyering  <meyering@redhat.com>
50684
50685         pathmax: PATH_MAX: use pathconf only when available
50686         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
50687         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
50688         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
50689         This avoids a link failure in a PSP cross-compilation environment
50690         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
50691
50692         * lib/vasnprintf.c (divide): Fix typo in comment.
50693
50694 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50695
50696         * gnulib-tool (func_filter_filelist): Fix comment.
50697
50698 2009-03-20  Bruno Haible  <bruno@clisp.org>
50699
50700         Make sockets.h self-contained.
50701         * lib/sockets.c: Include sockets.h first.
50702         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
50703
50704 2009-03-19  Eric Blake  <ebb9@byu.net>
50705
50706         doc: mention more functions added in cygwin 1.7.0
50707         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
50708         addition.
50709         * doc/posix-functions/log2f.texi: Likewise.
50710
50711 2009-03-19  Jim Meyering  <meyering@redhat.com>
50712
50713         fsusage: avoid syntax error due to statement-before-declaration
50714         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
50715         after all declarations.  Reported by Matthew Woehlke in
50716         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
50717
50718 2009-03-18  Eric Blake  <ebb9@byu.net>
50719
50720         build-aux/compile: sync from automake
50721         * build-aux/compile: New file, from automake.
50722         * config/srclist.txt: Mention build-aux/compile.
50723
50724 2009-03-17  Bruno Haible  <bruno@clisp.org>
50725
50726         * lib/git-merge-changelog.c: Fix typo in comment.
50727         Reported by Reuben Thomas <rrt@sc3d.org>.
50728
50729 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
50730
50731         * m4/regex.m4: update and improve help for
50732         --without-included-regex.
50733
50734 2009-03-17  Simon Josefsson  <simon@josefsson.org>
50735
50736         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
50737         failure on missing include files.
50738
50739 2009-03-17  Eric Blake  <ebb9@byu.net>
50740
50741         doc: mention more functions added in cygwin 1.7.0
50742         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
50743         addition.
50744         * doc/posix-functions/fwscanf.texi: Likewise.
50745         * doc/posix-functions/swprintf.texi: Likewise.
50746         * doc/posix-functions/swscanf.texi: Likewise.
50747         * doc/posix-functions/vfwprintf.texi: Likewise.
50748         * doc/posix-functions/vfwscanf.texi: Likewise.
50749         * doc/posix-functions/vswprintf.texi: Likewise.
50750         * doc/posix-functions/vswscanf.texi: Likewise.
50751         * doc/posix-functions/vwprintf.texi: Likewise.
50752         * doc/posix-functions/vwscanf.texi: Likewise.
50753         * doc/posix-functions/wcscasecmp.texi: Likewise.
50754         * doc/posix-functions/wcsdup.texi: Likewise.
50755         * doc/posix-functions/wcsftime.texi: Likewise.
50756         * doc/posix-functions/wcsncasecmp.texi: Likewise.
50757         * doc/posix-functions/wprintf.texi: Likewise.
50758         * doc/posix-functions/wscanf.texi: Likewise.
50759         * doc/glibc-functions/gethostbyname2.texi: Likewise.
50760
50761 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50762
50763         maint.mk: really add $(AM_MAKEFLAGS)
50764         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
50765         was inadvertently omitted in the last commit.
50766         Spotted by Bruno Haible.
50767
50768         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
50769         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
50770         $(AM_MAKEFLAGS)' rather than plain `make'.
50771
50772         gnulib-tool: execute $MAKE not make
50773         * gnulib-tool: Default $MAKE to 'make'.
50774         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
50775         than make.  Initialize $MAKE in the do-autobuild script.
50776
50777         gnulib-tool: use $MAKE not make in generated files
50778         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
50779         make, in generated files.  Initialize $MAKE in the do-autobuild
50780         script.
50781
50782         * top/GNUmakefile (_have-git-version-gen): Fix typo.
50783
50784         GNUmakefile: disable parallelism only for multiple, recursive targets
50785         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
50786         additions in the Makefile.
50787         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
50788         by Automake.
50789         (.NOTPARALLEL): Only disable parallel builds if multiple targets
50790         are listed on the command line and at least one of them is
50791         listed in $(ALL_RECURSIVE_TARGETS).
50792
50793 2009-03-14  Bruno Haible  <bruno@clisp.org>
50794
50795         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
50796         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
50797         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
50798         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
50799         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
50800         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
50801         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
50802         unistr/u8-uctomb.
50803         * modules/unistr/u8-strchr (Depends-on): Likewise.
50804         * modules/unistr/u8-strrchr (Depends-on): Likewise.
50805         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
50806         unistr/u16-uctomb.
50807         * modules/unistr/u16-strchr (Depends-on): Likewise.
50808         * modules/unistr/u16-strrchr (Depends-on): Likewise.
50809
50810 2009-03-12  Bruno Haible  <bruno@clisp.org>
50811
50812         Work around select() bug on Interix 3.5.
50813         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
50814         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
50815         * m4/select.m4: New file.
50816         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
50817         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
50818         * modules/select (Files): Add m4/select.m4.
50819         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
50820         * modules/nanosleep (Depends-on): Add select.
50821         * modules/poll (Depends-on): Likewise.
50822         * doc/posix-functions/select.texi: Mention the Interix bug.
50823         Reported by Markus Duft <mduft@gentoo.org>.
50824
50825         * lib/select.c: Renamed from lib/winsock-select.c.
50826         * modules/select (Files): Add lib/select.c, remove
50827         lib/winsock-select.c.
50828         (configure.ac): Update.
50829
50830 2009-03-12  Jim Meyering  <meyering@redhat.com>
50831
50832         avoid gcc warnings about unused macro definitions
50833         * lib/readtokens.c (STREQ): Remove unused definition.
50834         * lib/xmalloc.c (SIZE_MAX): Likewise.
50835         * lib/openat-die.c (N_): Likewise.
50836         * lib/mountlist.c (SIZE_MAX): Remove definition.
50837         Instead, include <stdint.h>.
50838         * lib/readutmp.c: Likewise.
50839         * modules/readutmp (Depends-on): Add stdint.
50840         * modules/mountlist (Depends-on): Add stdint.
50841         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
50842
50843 2009-03-10  Bruno Haible  <bruno@clisp.org>
50844
50845         Tests for module 'mbmemcasecoll'.
50846         * modules/mbmemcasecoll-tests: New file.
50847         * tests/test-mbmemcasecoll1.sh: New file.
50848         * tests/test-mbmemcasecoll2.sh: New file.
50849         * tests/test-mbmemcasecoll3.sh: New file.
50850         * tests/test-mbmemcasecoll.c: New file.
50851
50852         New module 'mbmemcasecoll'.
50853         * lib/mbmemcasecoll.h: New file.
50854         * lib/mbmemcasecoll.c: New file.
50855         * modules/mbmemcasecoll: New file.
50856
50857         * tests/test-mbmemcasecmp.h: New file, extracted from
50858         tests/test-mbmemcasecmp.c.
50859         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
50860         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
50861         (main): Update.
50862         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
50863
50864 2009-03-09  Bruno Haible  <bruno@clisp.org>
50865
50866         Tests for module 'mbmemcasecmp'.
50867         * modules/mbmemcasecmp-tests: New file.
50868         * tests/test-mbmemcasecmp1.sh: New file.
50869         * tests/test-mbmemcasecmp2.sh: New file.
50870         * tests/test-mbmemcasecmp3.sh: New file.
50871         * tests/test-mbmemcasecmp.c: New file.
50872
50873         New module 'mbmemcasecmp'.
50874         * lib/mbmemcasecmp.h: New file.
50875         * lib/mbmemcasecmp.c: New file.
50876         * modules/mbmemcasecmp: New file.
50877
50878 2009-03-09  Bruno Haible  <bruno@clisp.org>
50879
50880         Tests for module 'unicase/ulc-casecoll'.
50881         * modules/unicase/ulc-casecoll-tests: New file.
50882         * tests/unicase/test-ulc-casecoll1.sh: New file.
50883         * tests/unicase/test-ulc-casecoll2.sh: New file.
50884         * tests/unicase/test-ulc-casecoll.c: New file.
50885
50886         New module 'unicase/ulc-casecoll'.
50887         * lib/unicase.h (ulc_casecoll): New declaration.
50888         * lib/unicase/ulc-casecoll.c: New file.
50889         * modules/unicase/ulc-casecoll: New file.
50890
50891         New module 'unicase/ulc-casexfrm'.
50892         * lib/unicase.h (ulc_casexfrm): New declaration.
50893         * lib/unicase/ulc-casexfrm.c: New file.
50894         * modules/unicase/ulc-casexfrm: New file.
50895
50896 2009-03-09  Bruno Haible  <bruno@clisp.org>
50897
50898         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
50899         invocations.
50900
50901         * m4/mbscasecmp.m4: Remove file.
50902         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
50903         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
50904
50905         * m4/mbscasestr.m4: Remove file.
50906         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
50907         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
50908
50909         * m4/mbschr.m4: Remove file.
50910         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
50911         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
50912
50913         * m4/mbscspn.m4: Remove file.
50914         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
50915         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
50916
50917         * m4/mbslen.m4: Remove file.
50918         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
50919         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
50920
50921         * m4/mbsncasecmp.m4: Remove file.
50922         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
50923         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
50924
50925         * m4/mbsnlen.m4: Remove file.
50926         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
50927         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
50928
50929         * m4/mbspbrk.m4: Remove file.
50930         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
50931         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
50932
50933         * m4/mbspcasecmp.m4: Remove file.
50934         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
50935         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
50936
50937         * m4/mbsrchr.m4: Remove file.
50938         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
50939         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
50940
50941         * m4/mbssep.m4: Remove file.
50942         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
50943         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
50944
50945         * m4/mbsspn.m4: Remove file.
50946         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
50947         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
50948
50949         * m4/mbsstr.m4: Remove file.
50950         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
50951         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
50952
50953         * m4/mbstok_r.m4: Remove file.
50954         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
50955         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
50956
50957         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
50958
50959         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
50960         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
50961
50962         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
50963
50964 2009-03-08  Bruno Haible  <bruno@clisp.org>
50965
50966         Tests for module 'unicase/ulc-casecmp'.
50967         * modules/unicase/ulc-casecmp-tests: New file.
50968         * tests/unicase/test-ulc-casecmp1.sh: New file.
50969         * tests/unicase/test-ulc-casecmp2.sh: New file.
50970         * tests/unicase/test-ulc-casecmp.c: New file.
50971
50972         New module 'unicase/ulc-casecmp'.
50973         * lib/unicase.h (ulc_casecmp): New declaration.
50974         * lib/unicase/ulc-casecmp.c: New file.
50975         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
50976         'const SRC_UNIT *'.
50977         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
50978         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
50979         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
50980         * modules/unicase/ulc-casecmp: New file.
50981
50982         Tests for module 'unicase/u32-is-cased'.
50983         * modules/unicase/u32-is-cased-tests: New file.
50984         * tests/unicase/test-u32-is-cased.c: New file.
50985
50986         Tests for module 'unicase/u16-is-cased'.
50987         * modules/unicase/u16-is-cased-tests: New file.
50988         * tests/unicase/test-u16-is-cased.c: New file.
50989
50990         Tests for module 'unicase/u8-is-cased'.
50991         * modules/unicase/u8-is-cased-tests: New file.
50992         * tests/unicase/test-u8-is-cased.c: New file.
50993         * tests/unicase/test-is-cased.h: New file.
50994
50995         New module 'unicase/u32-is-cased'.
50996         * lib/unicase/u32-is-cased.c: New file.
50997         * modules/unicase/u32-is-cased: New file.
50998
50999         New module 'unicase/u16-is-cased'.
51000         * lib/unicase/u16-is-cased.c: New file.
51001         * modules/unicase/u16-is-cased: New file.
51002
51003         New module 'unicase/u8-is-cased'.
51004         * lib/unicase/u8-is-cased.c: New file.
51005         * lib/unicase/u-is-cased.h: New file.
51006         * modules/unicase/u8-is-cased: New file.
51007
51008         Tests for module 'unicase/u32-is-casefolded'.
51009         * modules/unicase/u32-is-casefolded-tests: New file.
51010         * tests/unicase/test-u32-is-casefolded.c: New file.
51011
51012         Tests for module 'unicase/u16-is-casefolded'.
51013         * modules/unicase/u16-is-casefolded-tests: New file.
51014         * tests/unicase/test-u16-is-casefolded.c: New file.
51015
51016         Tests for module 'unicase/u8-is-casefolded'.
51017         * modules/unicase/u8-is-casefolded-tests: New file.
51018         * tests/unicase/test-u8-is-casefolded.c: New file.
51019         * tests/unicase/test-is-casefolded.h: New file.
51020
51021         New module 'unicase/u32-is-casefolded'.
51022         * lib/unicase/u32-is-casefolded.c: New file.
51023         * modules/unicase/u32-is-casefolded: New file.
51024
51025         New module 'unicase/u16-is-casefolded'.
51026         * lib/unicase/u16-is-casefolded.c: New file.
51027         * modules/unicase/u16-is-casefolded: New file.
51028
51029         New module 'unicase/u8-is-casefolded'.
51030         * lib/unicase/u8-is-casefolded.c: New file.
51031         * modules/unicase/u8-is-casefolded: New file.
51032
51033         Tests for module 'unicase/u32-is-titlecase'.
51034         * modules/unicase/u32-is-titlecase-tests: New file.
51035         * tests/unicase/test-u32-is-titlecase.c: New file.
51036
51037         Tests for module 'unicase/u16-is-titlecase'.
51038         * modules/unicase/u16-is-titlecase-tests: New file.
51039         * tests/unicase/test-u16-is-titlecase.c: New file.
51040
51041         Tests for module 'unicase/u8-is-titlecase'.
51042         * modules/unicase/u8-is-titlecase-tests: New file.
51043         * tests/unicase/test-u8-is-titlecase.c: New file.
51044         * tests/unicase/test-is-titlecase.h: New file.
51045
51046         New module 'unicase/u32-is-titlecase'.
51047         * lib/unicase/u32-is-titlecase.c: New file.
51048         * modules/unicase/u32-is-titlecase: New file.
51049
51050         New module 'unicase/u16-is-titlecase'.
51051         * lib/unicase/u16-is-titlecase.c: New file.
51052         * modules/unicase/u16-is-titlecase: New file.
51053
51054         New module 'unicase/u8-is-titlecase'.
51055         * lib/unicase/u8-is-titlecase.c: New file.
51056         * modules/unicase/u8-is-titlecase: New file.
51057
51058         Tests for module 'unicase/u32-is-lowercase'.
51059         * modules/unicase/u32-is-lowercase-tests: New file.
51060         * tests/unicase/test-u32-is-lowercase.c: New file.
51061
51062         Tests for module 'unicase/u16-is-lowercase'.
51063         * modules/unicase/u16-is-lowercase-tests: New file.
51064         * tests/unicase/test-u16-is-lowercase.c: New file.
51065
51066         Tests for module 'unicase/u8-is-lowercase'.
51067         * modules/unicase/u8-is-lowercase-tests: New file.
51068         * tests/unicase/test-u8-is-lowercase.c: New file.
51069         * tests/unicase/test-is-lowercase.h: New file.
51070
51071         New module 'unicase/u32-is-lowercase'.
51072         * lib/unicase/u32-is-lowercase.c: New file.
51073         * modules/unicase/u32-is-lowercase: New file.
51074
51075         New module 'unicase/u16-is-lowercase'.
51076         * lib/unicase/u16-is-lowercase.c: New file.
51077         * modules/unicase/u16-is-lowercase: New file.
51078
51079         New module 'unicase/u8-is-lowercase'.
51080         * lib/unicase/u8-is-lowercase.c: New file.
51081         * modules/unicase/u8-is-lowercase: New file.
51082
51083         Tests for module 'unicase/u32-is-uppercase'.
51084         * modules/unicase/u32-is-uppercase-tests: New file.
51085         * tests/unicase/test-u32-is-uppercase.c: New file.
51086
51087         Tests for module 'unicase/u16-is-uppercase'.
51088         * modules/unicase/u16-is-uppercase-tests: New file.
51089         * tests/unicase/test-u16-is-uppercase.c: New file.
51090
51091         Tests for module 'unicase/u8-is-uppercase'.
51092         * modules/unicase/u8-is-uppercase-tests: New file.
51093         * tests/unicase/test-u8-is-uppercase.c: New file.
51094         * tests/unicase/test-is-uppercase.h: New file.
51095
51096         New module 'unicase/u32-is-uppercase'.
51097         * lib/unicase/u32-is-uppercase.c: New file.
51098         * modules/unicase/u32-is-uppercase: New file.
51099
51100         New module 'unicase/u16-is-uppercase'.
51101         * lib/unicase/u16-is-uppercase.c: New file.
51102         * modules/unicase/u16-is-uppercase: New file.
51103
51104         New module 'unicase/u8-is-uppercase'.
51105         * lib/unicase/u8-is-uppercase.c: New file.
51106         * modules/unicase/u8-is-uppercase: New file.
51107
51108         New module 'unicase/u32-is-invariant'.
51109         * lib/unicase/u32-is-invariant.c: New file.
51110         * modules/unicase/u32-is-invariant: New file.
51111
51112         New module 'unicase/u16-is-invariant'.
51113         * lib/unicase/u16-is-invariant.c: New file.
51114         * modules/unicase/u16-is-invariant: New file.
51115
51116         New module 'unicase/u8-is-invariant'.
51117         * lib/unicase/u8-is-invariant.c: New file.
51118         * lib/unicase/invariant.h: New file.
51119         * lib/unicase/u-is-invariant.h: New file.
51120         * modules/unicase/u8-is-invariant: New file.
51121
51122         Tests for module 'unicase/u32-casecoll'.
51123         * modules/unicase/u32-casecoll-tests: New file.
51124         * tests/unicase/test-u32-casecoll.c: New file.
51125
51126         Tests for module 'unicase/u16-casecoll'.
51127         * modules/unicase/u16-casecoll-tests: New file.
51128         * tests/unicase/test-u16-casecoll.c: New file.
51129
51130         Tests for module 'unicase/u8-casecoll'.
51131         * modules/unicase/u8-casecoll-tests: New file.
51132         * tests/unicase/test-u8-casecoll.c: New file.
51133
51134         New module 'unicase/u32-casecoll'.
51135         * lib/unicase/u32-casecoll.c: New file.
51136         * modules/unicase/u32-casecoll: New file.
51137
51138         New module 'unicase/u16-casecoll'.
51139         * lib/unicase/u16-casecoll.c: New file.
51140         * modules/unicase/u16-casecoll: New file.
51141
51142         New module 'unicase/u8-casecoll'.
51143         * lib/unicase/u8-casecoll.c: New file.
51144         * lib/unicase/u-casecoll.h: New file.
51145         * modules/unicase/u8-casecoll: New file.
51146
51147         New module 'unicase/u32-casexfrm'.
51148         * lib/unicase/u32-casexfrm.c: New file.
51149         * modules/unicase/u32-casexfrm: New file.
51150
51151         New module 'unicase/u16-casexfrm'.
51152         * lib/unicase/u16-casexfrm.c: New file.
51153         * modules/unicase/u16-casexfrm: New file.
51154
51155         New module 'unicase/u8-casexfrm'.
51156         * lib/unicase/u8-casexfrm.c: New file.
51157         * lib/unicase/u-casexfrm.h: New file.
51158         * modules/unicase/u8-casexfrm: New file.
51159
51160         Tests for module 'unicase/u32-casecmp'.
51161         * modules/unicase/u32-casecmp-tests: New file.
51162         * tests/unicase/test-u32-casecmp.c: New file.
51163
51164         Tests for module 'unicase/u16-casecmp'.
51165         * modules/unicase/u16-casecmp-tests: New file.
51166         * tests/unicase/test-u16-casecmp.c: New file.
51167
51168         Tests for module 'unicase/u8-casecmp'.
51169         * modules/unicase/u8-casecmp-tests: New file.
51170         * tests/unicase/test-u8-casecmp.c: New file.
51171         * tests/unicase/test-casecmp.h: New file.
51172
51173         New module 'unicase/u32-casecmp'.
51174         * lib/unicase/u32-casecmp.c: New file.
51175         * modules/unicase/u32-casecmp: New file.
51176
51177         New module 'unicase/u16-casecmp'.
51178         * lib/unicase/u16-casecmp.c: New file.
51179         * modules/unicase/u16-casecmp: New file.
51180
51181         New module 'unicase/u8-casecmp'.
51182         * lib/unicase/u8-casecmp.c: New file.
51183         * lib/unicase/u-casecmp.h: New file.
51184         * modules/unicase/u8-casecmp: New file.
51185
51186         Tests for module 'unicase/u32-casefold'.
51187         * modules/unicase/u32-casefold-tests: New file.
51188         * tests/unicase/test-u32-casefold.c: New file.
51189
51190         Tests for module 'unicase/u16-casefold'.
51191         * modules/unicase/u16-casefold-tests: New file.
51192         * tests/unicase/test-u16-casefold.c: New file.
51193
51194         Tests for module 'unicase/u8-casefold'.
51195         * modules/unicase/u8-casefold-tests: New file.
51196         * tests/unicase/test-u8-casefold.c: New file.
51197
51198         New module 'unicase/u32-casefold'.
51199         * lib/unicase/u32-casefold.c: New file.
51200         * modules/unicase/u32-casefold: New file.
51201
51202         New module 'unicase/u16-casefold'.
51203         * lib/unicase/u16-casefold.c: New file.
51204         * modules/unicase/u16-casefold: New file.
51205
51206         New module 'unicase/u8-casefold'.
51207         * lib/unicase/u8-casefold.c: New file.
51208         * lib/unicase/u-casefold.h: New file.
51209         * modules/unicase/u8-casefold: New file.
51210
51211         New module 'unicase/tocasefold'.
51212         * lib/unicase/casefold.h: New file.
51213         * lib/unicase/tocasefold.c: New file.
51214         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
51215         * modules/unicase/tocasefold: New file.
51216
51217         Tests for module 'unicase/u32-totitle'.
51218         * modules/unicase/u32-totitle-tests: New file.
51219         * tests/unicase/test-u32-totitle.c: New file.
51220
51221         Tests for module 'unicase/u16-totitle'.
51222         * modules/unicase/u16-totitle-tests: New file.
51223         * tests/unicase/test-u16-totitle.c: New file.
51224
51225         Tests for module 'unicase/u8-totitle'.
51226         * modules/unicase/u8-totitle-tests: New file.
51227         * tests/unicase/test-u8-totitle.c: New file.
51228
51229         New module 'unicase/u32-totitle'.
51230         * lib/unicase/u32-totitle.c: New file.
51231         * modules/unicase/u32-totitle: New file.
51232
51233         New module 'unicase/u16-totitle'.
51234         * lib/unicase/u16-totitle.c: New file.
51235         * modules/unicase/u16-totitle: New file.
51236
51237         New module 'unicase/u8-totitle'.
51238         * lib/unicase/u8-totitle.c: New file.
51239         * lib/unicase/u-totitle.h: New file.
51240         * modules/unicase/u8-totitle: New file.
51241
51242         Tests for module 'unicase/u32-tolower'.
51243         * modules/unicase/u32-tolower-tests: New file.
51244         * tests/unicase/test-u32-tolower.c: New file.
51245
51246         Tests for module 'unicase/u16-tolower'.
51247         * modules/unicase/u16-tolower-tests: New file.
51248         * tests/unicase/test-u16-tolower.c: New file.
51249
51250         Tests for module 'unicase/u8-tolower'.
51251         * modules/unicase/u8-tolower-tests: New file.
51252         * tests/unicase/test-u8-tolower.c: New file.
51253
51254         New module 'unicase/u32-tolower'.
51255         * lib/unicase/u32-tolower.c: New file.
51256         * modules/unicase/u32-tolower: New file.
51257
51258         New module 'unicase/u16-tolower'.
51259         * lib/unicase/u16-tolower.c: New file.
51260         * modules/unicase/u16-tolower: New file.
51261
51262         New module 'unicase/u8-tolower'.
51263         * lib/unicase/u8-tolower.c: New file.
51264         * modules/unicase/u8-tolower: New file.
51265
51266         Tests for module 'unicase/u32-toupper'.
51267         * modules/unicase/u32-toupper-tests: New file.
51268         * tests/unicase/test-u32-toupper.c: New file.
51269
51270         Tests for module 'unicase/u16-toupper'.
51271         * modules/unicase/u16-toupper-tests: New file.
51272         * tests/unicase/test-u16-toupper.c: New file.
51273
51274         Tests for module 'unicase/u8-toupper'.
51275         * modules/unicase/u8-toupper-tests: New file.
51276         * tests/unicase/test-u8-toupper.c: New file.
51277
51278         New module 'unicase/u32-toupper'.
51279         * lib/unicase/u32-toupper.c: New file.
51280         * modules/unicase/u32-toupper: New file.
51281
51282         New module 'unicase/u16-toupper'.
51283         * lib/unicase/u16-toupper.c: New file.
51284         * modules/unicase/u16-toupper: New file.
51285
51286         New module 'unicase/u8-toupper'.
51287         * lib/unicase/u8-toupper.c: New file.
51288         * modules/unicase/u8-toupper: New file.
51289
51290         New module 'unicase/u32-casemap'.
51291         * lib/unicase/u32-casemap.c: New file.
51292         * modules/unicase/u32-casemap: New file.
51293
51294         New module 'unicase/u16-casemap'.
51295         * lib/unicase/u16-casemap.c: New file.
51296         * modules/unicase/u16-casemap: New file.
51297
51298         New module 'unicase/u8-casemap'.
51299         * lib/unicase/unicasemap.h: New file.
51300         * lib/unicase/u8-casemap.c: New file.
51301         * lib/unicase/u-casemap.h: New file.
51302         * modules/unicase/u8-casemap: New file.
51303
51304         New module 'unicase/special-casing'.
51305         * lib/unicase/special-casing.h: New file.
51306         * lib/unicase/special-casing.c: New file.
51307         * lib/unicase/special-casing-table.gperf: New file, generated by
51308         gen-uni-tables.c.
51309         * modules/unicase/special-casing: New file.
51310
51311         Tests for module 'unicase/locale-language'.
51312         * modules/unicase/locale-language-tests: New file.
51313         * tests/unicase/test-locale-language.sh: New file.
51314         * tests/unicase/test-locale-language.c: New file.
51315
51316         New module 'unicase/locale-language'.
51317         * lib/unicase/locale-language.c: New file.
51318         * lib/unicase/locale-languages.gperf: New file.
51319         * modules/unicase/locale-language: New file.
51320
51321         Generate more tables for case conversion and case folding.
51322         * lib/gen-uni-tables.c (SCC_*): New enum items.
51323         (struct special_casing_rule): New type.
51324         (casing_rules, num_casing_rules, allocated_casing_rules): New
51325         variables.
51326         (add_casing_rule, fill_casing_rules): New functions.
51327         (struct casefold_rule): New type.
51328         (casefolding_rules, num_casefolding_rules,
51329         allocated_casefolding_rules): New variables.
51330         (fill_casefolding_rules): New function.
51331         (unicode_casefold): New variable.
51332         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
51333         sort_casing_rules, output_casing_rules): New functions.
51334         (main): Accept to more arguments: SpecialCasing.txt and
51335         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
51336         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
51337         Output mapping for casefolding.
51338
51339         * lib/unicase.h: Include stdbool.h, uninorm.h.
51340         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
51341         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
51342         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
51343         arguments.
51344         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
51345         resultp arguments.
51346         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
51347         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
51348         resultp arguments.
51349         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
51350         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
51351         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
51352         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
51353         declarations.
51354         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
51355
51356 2009-03-08  Bruno Haible  <bruno@clisp.org>
51357
51358         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
51359         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
51360         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
51361         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
51362
51363 2009-03-07  Bruno Haible  <bruno@clisp.org>
51364
51365         Adjust u*_normcmp, u*_normcoll API.
51366         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
51367         u16_normcoll, u32_normcoll): Change failure conventions.
51368         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
51369         errno and return -1.
51370         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
51371
51372 2009-03-07  Bruno Haible  <bruno@clisp.org>
51373
51374         Tests for module 'uninorm/u32-normcoll'.
51375         * modules/uninorm/u32-normcoll-tests: New file.
51376         * tests/uninorm/test-u32-normcoll.c: New file.
51377
51378         Tests for module 'uninorm/u16-normcoll'.
51379         * modules/uninorm/u16-normcoll-tests: New file.
51380         * tests/uninorm/test-u16-normcoll.c: New file.
51381
51382         Tests for module 'uninorm/u8-normcoll'.
51383         * modules/uninorm/u8-normcoll-tests: New file.
51384         * tests/uninorm/test-u8-normcoll.c: New file.
51385
51386 2009-03-07  Bruno Haible  <bruno@clisp.org>
51387
51388         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
51389         tests/uninorm/test-u32-normcmp.c.
51390         * tests/uninorm/test-u32-normcmp.c: Include it.
51391         (test_nonascii): New function, extracted from main. Add some more
51392         tests.
51393         (main): Invoke test_ascii and test_nonascii.
51394         * modules/uninorm/u32-normcmp-tests (Files): Add
51395         tests/uninorm/test-u32-normcmp.h.
51396         (Depends-on): Remove uninorm/u32-normcmp.
51397
51398         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
51399         tests/uninorm/test-u16-normcmp.c.
51400         * tests/uninorm/test-u16-normcmp.c: Include it.
51401         (test_nonascii): New function, extracted from main. Add some more
51402         tests.
51403         (main): Invoke test_ascii and test_nonascii.
51404         * modules/uninorm/u16-normcmp-tests (Files): Add
51405         tests/uninorm/test-u16-normcmp.h.
51406         (Depends-on): Remove uninorm/u16-normcmp.
51407
51408         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
51409         tests/uninorm/test-u8-normcmp.c.
51410         * tests/uninorm/test-u8-normcmp.c: Include it.
51411         (test_nonascii): New function, extracted from main. Add some more
51412         tests.
51413         (main): Invoke test_ascii and test_nonascii.
51414         * modules/uninorm/u8-normcmp-tests (Files): Add
51415         tests/uninorm/test-u8-normcmp.h.
51416         (Depends-on): Remove uninorm/u8-normcmp.
51417
51418 2009-03-07  Bruno Haible  <bruno@clisp.org>
51419
51420         New module 'uninorm/u32-normcoll'.
51421         * lib/uninorm/u32-normcoll.c: New file.
51422         * modules/uninorm/u32-normcoll: New file.
51423
51424         New module 'uninorm/u16-normcoll'.
51425         * lib/uninorm/u16-normcoll.c: New file.
51426         * modules/uninorm/u16-normcoll: New file.
51427
51428         New module 'uninorm/u8-normcoll'.
51429         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
51430         declarations.
51431         * lib/uninorm/u8-normcoll.c: New file.
51432         * lib/uninorm/u-normcoll.h: New file.
51433         * modules/uninorm/u8-normcoll: New file.
51434
51435         New module 'uninorm/u32-normxfrm'.
51436         * lib/uninorm/u32-normxfrm.c: New file.
51437         * modules/uninorm/u32-normxfrm: New file.
51438
51439         New module 'uninorm/u16-normxfrm'.
51440         * lib/uninorm/u16-normxfrm.c: New file.
51441         * modules/uninorm/u16-normxfrm: New file.
51442
51443         New module 'uninorm/u8-normxfrm'.
51444         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
51445         declarations.
51446         * lib/uninorm/u8-normxfrm.c: New file.
51447         * lib/uninorm/u-normxfrm.h: New file.
51448         * modules/uninorm/u8-normxfrm: New file.
51449
51450 2009-03-07  Bruno Haible  <bruno@clisp.org>
51451
51452         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
51453         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
51454         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
51455
51456 2009-03-07  Bruno Haible  <bruno@clisp.org>
51457
51458         New module 'memxfrm'.
51459         * lib/memxfrm.h: New file.
51460         * lib/memxfrm.c: New file.
51461         * modules/memxfrm: New file.
51462
51463 2009-03-07  Bruno Haible  <bruno@clisp.org>
51464
51465         New module 'memcmp2'.
51466         * lib/memcmp2.h: New file.
51467         * lib/memcmp2.c: New file.
51468         * modules/memcmp2: New file.
51469
51470 2009-03-07  Bruno Haible  <bruno@clisp.org>
51471
51472         Tests for module 'uninorm/decomposing-form'.
51473         * modules/uninorm/decomposing-form-tests: New file.
51474         * tests/uninorm/test-decomposing-form.c: New file.
51475
51476         New module 'uninorm/decomposing-form'.
51477         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
51478         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
51479         Add 'decomposing_variant' field.
51480         * lib/uninorm/decomposing-form.c: New file.
51481         * lib/uninorm/nfc.c (uninorm_nfc): Update.
51482         * lib/uninorm/nfd.c (uninorm_nfd): Update.
51483         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
51484         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
51485         * modules/uninorm/decomposing-form: New file.
51486         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
51487         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
51488
51489 2009-03-07  Bruno Haible  <bruno@clisp.org>
51490
51491         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
51492         strings.
51493
51494 2009-03-06  Bruno Haible  <bruno@clisp.org>
51495
51496         Tests for module 'uninorm/u32-normcmp'.
51497         * tests/uninorm/test-u32-normcmp.c: New file.
51498         * modules/uninorm/u32-normcmp-tests: New file.
51499
51500         Tests for module 'uninorm/u16-normcmp'.
51501         * tests/uninorm/test-u16-normcmp.c: New file.
51502         * modules/uninorm/u16-normcmp-tests: New file.
51503
51504         Tests for module 'uninorm/u8-normcmp'.
51505         * tests/uninorm/test-u8-normcmp.c: New file.
51506         * modules/uninorm/u8-normcmp-tests: New file.
51507
51508         New module 'uninorm/u32-normcmp'.
51509         * lib/uninorm/u32-normcmp.c: New file.
51510         * modules/uninorm/u32-normcmp: New file.
51511
51512         New module 'uninorm/u16-normcmp'.
51513         * lib/uninorm/u16-normcmp.c: New file.
51514         * modules/uninorm/u16-normcmp: New file.
51515
51516         New module 'uninorm/u8-normcmp'.
51517         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
51518         declarations.
51519         * lib/uninorm/u8-normcmp.c: New file.
51520         * lib/uninorm/u-normcmp.h: New file.
51521         * modules/uninorm/u8-normcmp: New file.
51522
51523 2009-03-06  Bruno Haible  <bruno@clisp.org>
51524
51525         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
51526         Reported by Eric Blake.
51527
51528 2009-03-06  Eric Blake  <ebb9@byu.net>
51529             Bruno Haible  <bruno@clisp.org>
51530
51531         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
51532         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
51533         condition.
51534         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
51535         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
51536         condition.
51537         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
51538
51539 2009-03-06  Eric Blake  <ebb9@byu.net>
51540
51541         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
51542         to avoid compiler warnings.
51543         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
51544
51545 2009-03-05  Bruno Haible  <bruno@clisp.org>
51546
51547         * tests/test-ftell.c (main): Disable test beyond end of file on
51548         FreeMiNT.
51549         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
51550
51551 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
51552
51553         * lib/filevercmp.c: Move hidden files up in ordering.
51554         * tests/test-filevercmp.c: Add tests for hidden files.
51555
51556 2009-03-04  Bruno Haible  <bruno@clisp.org>
51557
51558         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
51559         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
51560         AM_CFLAGS.
51561         Reported by Simon Josefsson.
51562
51563 2009-03-03  Bruno Haible  <bruno@clisp.org>
51564
51565         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
51566         Reported by Simon Josefsson.
51567
51568         * doc/ld-version-script.texi: Update node reference.
51569
51570 2009-03-03  Bruno Haible  <bruno@clisp.org>
51571
51572         * modules/visibility (License): Change to 'unlimited'.
51573         Suggested by Simon Josefsson.
51574
51575 2009-03-03  Jim Meyering  <meyering@redhat.com>
51576
51577         unlinkdir: cannot_unlink_dir may modify process state
51578         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
51579         it's neither thread-safe nor appropriate for use in a library.
51580
51581 2009-03-03  Eric Blake  <ebb9@byu.net>
51582
51583         test-closein: silence test under Darwin
51584         * tests/test-closein.sh: Ignore stderr from cat, since we don't
51585         care if it dies from EPIPE or EBADF.
51586
51587 2009-03-03  Bruno Haible  <bruno@clisp.org>
51588
51589         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
51590         earlier.
51591         * doc/visibility.texi: Fix @node and @section.
51592
51593 2009-03-03  Simon Josefsson  <simon@josefsson.org>
51594
51595         * doc/gnulib.texi: Link to sections for ld version script and
51596         visibility.
51597         * doc/visibility.texi: Add @node and @section.
51598         * modules/ld-version-script: New module.
51599         * m4/ld-version-script.m4: New file.
51600         * doc/ld-version-script.texi: New file.
51601
51602 2009-03-02  David Lutterkort  <lutter@redhat.com>
51603
51604         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
51605         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51606
51607 2009-03-02  Bruno Haible  <bruno@clisp.org>
51608
51609         * doc/visibility.texi: Mention libtool's -export-symbols option.
51610
51611 2009-03-02  Jim Meyering  <meyering@redhat.com>
51612
51613         announce-gen: new option: --no-print-checksums
51614         * build-aux/announce-gen (usage): Describe it.
51615         (print_checksums): Print a newline here, not in the [*] footnote.
51616         (main): Honor it.
51617
51618 2009-03-01  Bruno Haible  <bruno@clisp.org>
51619
51620         Use socklen_t in the native Windows replacements prototypes.
51621         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
51622         instead of 'int'.
51623         * lib/getsockopt.c (rpl_getsockopt): Likewise.
51624         * lib/setsockopt.c (rpl_setsockopt): Likewise.
51625         * modules/getsockopt (Depends-on): Add socklen.
51626         * modules/setsockopt (Depends-on): Add socklen.
51627
51628 2009-03-01  Bruno Haible  <bruno@clisp.org>
51629
51630         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
51631         least 4.2.
51632
51633 2009-03-01  Eric Blake  <ebb9@byu.net>
51634             Bruno Haible  <bruno@clisp.org>
51635
51636         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
51637         error messages.
51638         * lib/wait-process.c (wait_subprocess): Omit error message about
51639         deadly signal sent to the child of termsigp != NULL.
51640
51641 2009-03-01  Eric Blake  <ebb9@byu.net>
51642
51643         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
51644
51645 2009-03-01  Bruno Haible  <bruno@clisp.org>
51646
51647         Avoid a gcc warning.
51648         * tests/test-sched.c (b): Make global.
51649         Reported by Eric Blake.
51650
51651 2009-01-19  Martin Lambers  <marlam@marlam.de>
51652
51653         Provide POSIX semantics for socket timeout options on W32.
51654         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
51655         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
51656         * modules/setsockopt: Depend on sys_time module for struct timeval.
51657         * modules/getsockopt: Depend on sys_time module for struct timeval.
51658
51659 2009-03-01  Simon Josefsson  <simon@josefsson.org>
51660
51661         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
51662         __USE_GNU, for consistency with netdb.in.h.
51663         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
51664
51665 2009-03-01  Bruno Haible  <bruno@clisp.org>
51666
51667         More support for FreeMiNT.
51668         * lib/fseeko.c (rpl_fseeko): Complete last commit.
51669         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
51670
51671 2009-03-01  Bruno Haible  <bruno@clisp.org>
51672
51673         More support for FreeMiNT.
51674         * lib/fpurge.c (fpurge): Correct last commit.
51675         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
51676
51677 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51678
51679         Fix unportable awk script in vc-list-files.
51680         * build-aux/vc-list-files: In the replacement awk script, use
51681         substr with a second argument of 1, not zero.
51682         Report by Simon Josefsson.
51683
51684 2009-02-28  Bruno Haible  <bruno@clisp.org>
51685
51686         More support for FreeMiNT.
51687         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
51688         to FreeMiNT today.
51689         * lib/fwriting.c (fwriting): Likewise.
51690         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
51691
51692 2009-02-28  Bruno Haible  <bruno@clisp.org>
51693
51694         * tests/test-freadseek.c (main): Disable test beyond end of file on
51695         FreeMiNT.
51696         * tests/test-ftello.c (main): Likewise.
51697         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
51698
51699 2009-02-28  Bruno Haible  <bruno@clisp.org>
51700
51701         Add tentative support for FreeMiNT.
51702         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
51703         * lib/fpurge.c (fpurge): Likewise.
51704         * lib/freadable.c (freadable): Likewise.
51705         * lib/freading.c (freading): Likewise.
51706         * lib/freadptr.c (freadptr): Likewise.
51707         * lib/freadseek.c (freadptrinc): Likewise.
51708         * lib/fseeko.c (rpl_fseeko): Likewise.
51709         * lib/fseterr.c (fseterr): Likewise.
51710         * lib/fwritable.c (fwritable): Likewise.
51711         * lib/fwriting.c (fwriting): Likewise.
51712         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
51713         Hourihane.
51714         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
51715
51716 2009-02-28  Bruno Haible  <bruno@clisp.org>
51717
51718         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
51719         SIGCHLD.
51720         Reported by Jim Meyering.
51721
51722 2009-02-28  Bruno Haible  <bruno@clisp.org>
51723
51724         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
51725         Mention the results of these tests on various platforms.
51726         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
51727         order.
51728         * doc/posix-functions/printf.texi: Likewise.
51729         * doc/posix-functions/snprintf.texi: Likewise.
51730         * doc/posix-functions/sprintf.texi: Likewise.
51731         * doc/posix-functions/vfprintf.texi: Likewise.
51732         * doc/posix-functions/vprintf.texi: Likewise.
51733         * doc/posix-functions/vsnprintf.texi: Likewise.
51734         * doc/posix-functions/vsprintf.texi: Likewise.
51735         * doc/glibc-functions/obstack_printf.texi: Likewise.
51736         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
51737
51738 2009-02-28  Bruno Haible  <bruno@clisp.org>
51739
51740         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
51741         Reported by Loïc Minier <lool@dooz.org>.
51742
51743 2009-02-27  Bruno Haible  <bruno@clisp.org>
51744
51745         * gnulib-tool (func_import): Make the sed expression used to create the
51746         sed script for updating the .gitignore file POSIX compliant.
51747         Reported by Eric Blake.
51748
51749 2009-02-27  Bruno Haible  <bruno@clisp.org>
51750
51751         * gnulib-tool (sed): Don't alias as "sed --posix".
51752         Reported by Eric Blake.
51753
51754 2009-02-27  Bruno Haible  <bruno@clisp.org>
51755
51756         Avoid test link errors.
51757         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
51758         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
51759         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
51760         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
51761         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51762
51763 2009-02-27  Bruno Haible  <bruno@clisp.org>
51764
51765         Avoid spurious "(cached)" in configure output.
51766         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
51767         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
51768         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
51769         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
51770         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
51771         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
51772         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
51773         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
51774         Reported by Eric Blake.
51775
51776 2009-02-27  Eric Blake  <ebb9@byu.net>
51777
51778         printf: fix regression in previous patch
51779         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
51780
51781 2009-02-27  Bruno Haible  <bruno@clisp.org>
51782
51783         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
51784         value.
51785         * lib/stdint.in.h: Likewise.
51786         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
51787
51788 2009-02-27  Eric Blake  <ebb9@byu.net>
51789
51790         doc: mention more functions added in cygwin 1.7.0
51791         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
51792         addition.
51793         * doc/posix-functions/open_wmemstream.texi: Likewise.
51794         * doc/posix-functions/wcsnlen.texi: Likewise.
51795         * doc/posix-functions/wcsnrtombs.texi: Likewise.
51796         * doc/posix-functions/wcstod.texi: Likewise.
51797         * doc/posix-functions/wcstof.texi: Likewise.
51798         * doc/posix-functions/wcstoimax.texi: Likewise.
51799         * doc/posix-functions/wcstok.texi: Likewise.
51800         * doc/posix-functions/wcstoumax.texi: Likewise.
51801
51802         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
51803         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
51804         * doc/posix-functions/fprintf.texi: Update.
51805         * doc/posix-functions/printf.texi: Update.
51806         * doc/posix-functions/snprintf.texi: Update.
51807         * doc/posix-functions/sprintf.texi: Update.
51808         * doc/posix-functions/vfprintf.texi: Update.
51809         * doc/posix-functions/vprintf.texi: Update.
51810         * doc/posix-functions/vsnprintf.texi: Update.
51811         * doc/posix-functions/vsprintf.texi: Update.
51812         * doc/glibc-functions/obstack_printf.texi: Update.
51813         * doc/glibc-functions/obstack_vprintf.texi: Update.
51814
51815 2009-02-26  Eric Blake  <ebb9@byu.net>
51816
51817         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
51818         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
51819         compilation bug by using runtime conversion.
51820         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
51821         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
51822         * modules/ceill-tests (Files): Use nan.h.
51823         * modules/floorl-tests (Files): Likewise.
51824         * modules/frexpl-tests (Files): Likewise.
51825         * modules/isnanl-tests (Files): Likewise.
51826         * modules/ldexpl-tests (Files): Likewise.
51827         * modules/roundl-tests (Files): Likewise.
51828         * modules/truncl-tests (Files): Likewise.
51829         * tests/test-ceill.c (main): Use a working NaN.
51830         * tests/test-floorl.c (main): Likewise.
51831         * tests/test-frexpl.c (main): Likewise.
51832         * tests/test-isnan.c (test_long_double): Likewise.
51833         * tests/test-isnanl.h (main): Likewise.
51834         * tests/test-ldexpl.h (main): Likewise.
51835         * tests/test-roundl.h (main): Likewise.
51836         * tests/test-truncl.h (main): Likewise.
51837         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
51838
51839 2009-02-26  Eric Blake  <ebb9@byu.net>
51840             Bruno Haible  <bruno@clisp.org>
51841
51842         Work around a *printf bug with %ls on Solaris.
51843         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
51844         precision is specified, sprintf stops converting the wide string
51845         argument when the number of bytes that have been produced by this
51846         conversion equals or exceeds the precision.
51847         * doc/posix-functions/fprintf.texi: Update.
51848         * doc/posix-functions/printf.texi: Update.
51849         * doc/posix-functions/snprintf.texi: Update.
51850         * doc/posix-functions/sprintf.texi: Update.
51851         * doc/posix-functions/vfprintf.texi: Update.
51852         * doc/posix-functions/vprintf.texi: Update.
51853         * doc/posix-functions/vsnprintf.texi: Update.
51854         * doc/posix-functions/vsprintf.texi: Update.
51855         * doc/glibc-functions/obstack_printf.texi: Update.
51856         * doc/glibc-functions/obstack_vprintf.texi: Update.
51857
51858 2009-02-26  Eric Blake  <ebb9@byu.net>
51859
51860         stdlib: favor compiler check of random.h
51861         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
51862         to avoid an ObjC random.h installed by Swarm.
51863
51864 2009-02-26  Bruno Haible  <bruno@clisp.org>
51865
51866         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
51867         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
51868         Reported by Gary V. Vaughan <gary@gnu.org>.
51869
51870 2009-02-26  Bruno Haible  <bruno@clisp.org>
51871
51872         Fix *printf behaviour regarding the %ls directive.
51873         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
51874         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
51875         NEED_PRINTF_DIRECTIVE_LS.
51876         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
51877         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
51878         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51879         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
51880         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
51881         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
51882         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
51883         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51884         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51885         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51886         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51887         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
51888         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51889         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51890         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51891         * doc/posix-functions/fprintf.texi: Update.
51892         * doc/posix-functions/printf.texi: Update.
51893         * doc/posix-functions/snprintf.texi: Update.
51894         * doc/posix-functions/sprintf.texi: Update.
51895         * doc/posix-functions/vfprintf.texi: Update.
51896         * doc/posix-functions/vprintf.texi: Update.
51897         * doc/posix-functions/vsnprintf.texi: Update.
51898         * doc/posix-functions/vsprintf.texi: Update.
51899         * doc/glibc-functions/obstack_printf.texi: Update.
51900         * doc/glibc-functions/obstack_vprintf.texi: Update.
51901         Reported by Eric Blake.
51902
51903 2009-02-25  Bruno Haible  <bruno@clisp.org>
51904
51905         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
51906         with known value.
51907         Reported by Gary V. Vaughan <gary@gnu.org>.
51908
51909 2009-02-25  Bruno Haible  <bruno@clisp.org>
51910
51911         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
51912         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
51913         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
51914         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
51915         Reported by Gary V. Vaughan <gary@gnu.org>.
51916
51917 2009-02-25  Bruno Haible  <bruno@clisp.org>
51918
51919         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
51920         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
51921         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
51922         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
51923         Reported by Gary V. Vaughan <gary@gnu.org>.
51924
51925 2009-02-25  Eric Blake  <ebb9@byu.net>
51926
51927         tests: skip fseek/ftell tests if ungetc is broken
51928         * m4/ungetc.m4: New file.
51929         * modules/fseek-tests: Split test, so ungetc dependency is
51930         separate from rest of test.
51931         * modules/fseeko-tests: Likewise.
51932         * modules/ftell-tests: Likewise.
51933         * modules/ftello-tests: Likewise.
51934         * tests/test-fseek.c (main): Isolate ungetc dependency.
51935         * tests/test-fseeko.c (main): Likewise.
51936         * tests/test-ftell.c (main): Likewise.
51937         * tests/test-ftello.c (main): Likewise.
51938         * tests/test-fseek2.sh: New file.
51939         * tests/test-fseeko2.sh: Likewise.
51940         * tests/test-ftell2.sh: Likewise.
51941         * tests/test-ftello2.sh: Likewise.
51942
51943 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
51944
51945         test-getaddrinfo: fix usage of skip return code 77
51946         * tests/test-gettaddrinfo.c: Return skip code 77 only
51947         for first occurrence of skip (4x77 is not 77)
51948
51949 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
51950
51951         strtod: avoid C99 decl-after-statement
51952         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
51953
51954 2009-02-24  Eric Blake  <ebb9@byu.net>
51955
51956         strtod: detect HP-UX 11.31 bug
51957         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
51958         Reported by Gary V. Vaughan.
51959
51960 2009-02-23  Bruno Haible  <bruno@clisp.org>
51961
51962         Fix invalid read past end of memory block.
51963         * lib/vasnprintf.c (DCHAR_SET): Define.
51964         (local_wcslen): Define only when needed.
51965         (local_strnlen, local_wcsnlen): New functions.
51966         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
51967         directives that involve a conversion ourselves.
51968         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
51969         wcsnlen, mbrtowc, wcrtomb.
51970         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
51971         * tests/test-vasprintf-posix.c (test_function): Likewise.
51972         * tests/test-snprintf-posix.h (test_function): Likewise.
51973         * tests/test-sprintf-posix.h (test_function): Likewise.
51974         Reported by Ben Pfaff <blp@cs.stanford.edu>.
51975
51976 2009-02-22  Bruno Haible  <bruno@clisp.org>
51977
51978         Implement new clarified decomposition of Hangul syllables.
51979         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
51980         of type LTV, return only a pairwise decomposition.
51981         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
51982         Likewise.
51983         * tests/uninorm/test-decomposition.c (main): Updated expected result.
51984         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
51985         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
51986
51987 2009-02-22  Bruno Haible  <bruno@clisp.org>
51988
51989         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
51990         zero-length results and shrink excess allocated memory.
51991         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
51992         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
51993         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
51994         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
51995         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
51996         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
51997         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
51998         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
51999         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
52000         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
52001         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
52002         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
52003
52004 2009-02-21  Bruno Haible  <bruno@clisp.org>
52005
52006         * doc/gnulib.texi: Include safe-alloc.texi earlier.
52007         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
52008         spaces after a period. Put a space between a macro name and its
52009         argument list. Trivial rewordings.
52010         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
52011         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
52012         (main): Return 0 explicitly.
52013
52014 2009-02-21  Bruno Haible  <bruno@clisp.org>
52015
52016         Tests for module 'uninorm/filter'.
52017         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
52018         * modules/uninorm/filter-tests: New file.
52019
52020         New module 'uninorm/filter'.
52021         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
52022         uninorm_filter_flush, uninorm_filter_free): New declarations.
52023         * lib/uninorm/uninorm-filter.c: New file.
52024         * modules/uninorm/filter: New file.
52025
52026 2009-02-21  Bruno Haible  <bruno@clisp.org>
52027
52028         Tests for module 'uninorm/nfkc'.
52029         * tests/uninorm/test-nfkc.c: New file.
52030         * tests/uninorm/test-u8-nfkc.c: New file.
52031         * tests/uninorm/test-u16-nfkc.c: New file.
52032         * tests/uninorm/test-u32-nfkc.c: New file.
52033         * tests/uninorm/test-u32-nfkc-big.sh: New file.
52034         * tests/uninorm/test-u32-nfkc-big.c: New file.
52035         * modules/uninorm/nfkc-tests: New file.
52036
52037         New module 'uninorm/nfkc'.
52038         * lib/uninorm/nfkc.c: New file.
52039         * modules/uninorm/nfkc: New file.
52040
52041         Tests for module 'uninorm/nfkd'.
52042         * tests/uninorm/test-nfkd.c: New file.
52043         * tests/uninorm/test-u8-nfkd.c: New file.
52044         * tests/uninorm/test-u16-nfkd.c: New file.
52045         * tests/uninorm/test-u32-nfkd.c: New file.
52046         * tests/uninorm/test-u32-nfkd-big.sh: New file.
52047         * tests/uninorm/test-u32-nfkd-big.c: New file.
52048         * modules/uninorm/nfkd-tests: New file.
52049
52050         New module 'uninorm/nfkd'.
52051         * lib/uninorm/nfkd.c: New file.
52052         * modules/uninorm/nfkd: New file.
52053
52054         Tests for module 'uninorm/nfc'.
52055         * tests/uninorm/test-nfc.c: New file.
52056         * tests/uninorm/test-u8-nfc.c: New file.
52057         * tests/uninorm/test-u16-nfc.c: New file.
52058         * tests/uninorm/test-u32-nfc.c: New file.
52059         * tests/uninorm/test-u32-nfc-big.sh: New file.
52060         * tests/uninorm/test-u32-nfc-big.c: New file.
52061         * modules/uninorm/nfc-tests: New file.
52062
52063         New module 'uninorm/nfc'.
52064         * lib/uninorm/nfc.c: New file.
52065         * modules/uninorm/nfc: New file.
52066
52067         Tests for module 'uninorm/nfd'.
52068         * tests/uninorm/test-nfd.c: New file.
52069         * tests/uninorm/test-u8-nfd.c: New file.
52070         * tests/uninorm/test-u16-nfd.c: New file.
52071         * tests/uninorm/test-u32-nfd.c: New file.
52072         * tests/uninorm/test-u32-nfd-big.sh: New file.
52073         * tests/uninorm/test-u32-nfd-big.c: New file.
52074         * tests/uninorm/test-u32-normalize-big.h: New file.
52075         * tests/uninorm/test-u32-normalize-big.c: New file.
52076         * tests/uninorm/NormalizationTest.txt: New file, created from
52077         Unicode 5.1.0 NormalizationTest.txt.
52078         * modules/uninorm/nfd-tests: New file.
52079
52080         New module 'uninorm/nfd'.
52081         * lib/uninorm/nfd.c: New file.
52082         * modules/uninorm/nfd: New file.
52083
52084         New module 'uninorm/u32-normalize'.
52085         * lib/uninorm/u32-normalize.c: New file.
52086         * modules/uninorm/u32-normalize: New file.
52087
52088         New module 'uninorm/u16-normalize'.
52089         * lib/uninorm/u16-normalize.c: New file.
52090         * modules/uninorm/u16-normalize: New file.
52091
52092         New module 'uninorm/u8-normalize'.
52093         * lib/uninorm/u8-normalize.c: New file.
52094         * lib/uninorm/normalize-internal.h: New file.
52095         * lib/uninorm/u-normalize-internal.h: New file.
52096         * modules/uninorm/u8-normalize: New file.
52097
52098         New module 'uninorm/decompose-internal'.
52099         * lib/uninorm/decompose-internal.c: New file.
52100         * modules/uninorm/decompose-internal: New file.
52101
52102         Tests for module 'uninorm/composition'.
52103         * tests/uninorm/test-composition.c: New file.
52104         * modules/uninorm/composition-tests: New file.
52105
52106         New module 'uninorm/composition'.
52107         * lib/uninorm/composition.c: New file.
52108         * lib/uninorm/composition-table.gperf: New file, generated by
52109         gen-uni-tables.
52110         * modules/uninorm/composition: New file.
52111
52112         Tests for module 'uninorm/compat-decomposition'.
52113         * tests/uninorm/test-compat-decomposition.c: New file.
52114         * modules/uninorm/compat-decomposition-tests: New file.
52115
52116         New module 'uninorm/compat-decomposition'.
52117         * lib/uninorm/decompose-internal.h: New file.
52118         * lib/uninorm/compat-decomposition.c: New file.
52119         * modules/uninorm/compat-decomposition: New file.
52120
52121         Tests for module 'uninorm/canonical-decomposition'.
52122         * tests/uninorm/test-canonical-decomposition.c: New file.
52123         * modules/uninorm/canonical-decomposition-tests: New file.
52124
52125         New module 'uninorm/canonical-decomposition'.
52126         * lib/uninorm/canonical-decomposition.c: New file.
52127         * modules/uninorm/canonical-decomposition: New file.
52128
52129         Tests for module 'uninorm/decomposition'.
52130         * tests/uninorm/test-decomposition.c: New file.
52131         * modules/uninorm/decomposition-tests: New file.
52132
52133         New module 'uninorm/decomposition'.
52134         * lib/uninorm/decomposition.c: New file.
52135         * modules/uninorm/decomposition: New file.
52136
52137         New module 'uninorm/decomposition-table'.
52138         * lib/uninorm/decomposition-table.h: New file.
52139         * lib/uninorm/decomposition-table.c: New file.
52140         * lib/uninorm/decomposition-table1.h: New file, generated by
52141         gen-uni-tables.
52142         * lib/uninorm/decomposition-table2.h: New file, generated by
52143         gen-uni-tables.
52144         * modules/uninorm/decomposition-table: New file.
52145
52146         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
52147         (UC_DECOMP_*): New enumeration items.
52148         (get_decomposition): New function.
52149         (struct decomp_table): New type.
52150         (output_decomposition, output_decomposition_tables): New functions.
52151         (unicode_composition_exclusions): New variable.
52152         (fill_composition_exclusions, debug_output_composition_tables): New
52153         functions.
52154         (main): Accept one more argument. Invoke fill_composition_exclusions.
52155         Output decomposition and composition tables.
52156
52157         New module 'uninorm/base'.
52158         * lib/uninorm.h: New file.
52159         * lib/unictype.h: Update comment.
52160         * modules/uninorm/base: New file.
52161
52162 2009-02-21  David Lutterkort  <lutter@redhat.com>
52163
52164         Tests for module 'safe-alloc'.
52165         * tests/test-safe-alloc.c: New file.
52166         * modules/safe-alloc-tests: New file.
52167
52168         New module 'safe-alloc'.
52169         * lib/safe-alloc.h: New file.
52170         * lib/safe-alloc.c: New file.
52171         * m4/safe-alloc.m4: New file.
52172         * modules/safe-alloc: New file.
52173         * doc/safe-alloc.texi: New file.
52174         * doc/gnulib.texi: Include it.
52175         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
52176         safe-alloc.
52177
52178 2009-02-18  Bruno Haible  <bruno@clisp.org>
52179
52180         Fix link error on non-glibc systems.
52181         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
52182         variable.
52183         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52184
52185 2009-02-18  Jim Meyering  <meyering@redhat.com>
52186
52187         fts: avoid used-uninitialized error due to recent change
52188         * lib/fts.c (fts_read): Guard uses of the new member,
52189         parent->fts_n_dirs_remaining, since it's not relevant for
52190         the parent of a directory specified on the command-line.
52191
52192 2009-02-17  James Youngman  <jay@gnu.org>
52193             Bruno Haible  <bruno@clisp.org>
52194
52195         * m4/include_next.m4: Reformulate comment.
52196
52197 2009-02-16  Jim Meyering  <meyering@redhat.com>
52198
52199         fts: add #if guards so that the fts_lgpl module still builds
52200         * lib/fts.c: Guard just-added hash-table-using parts with
52201         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
52202         Reported by Simon Josefsson.
52203
52204 2009-02-15  Bruno Haible  <bruno@clisp.org>
52205
52206         * modules/array-mergesort-tests: New file.
52207         * tests/test-array-mergesort.c: New file.
52208
52209         New module 'array-mergesort'.
52210         * modules/array-mergesort: New file.
52211         * lib/array-mergesort.h: New file.
52212
52213 2009-02-15  Bruno Haible  <bruno@clisp.org>
52214
52215         Fix 2009-02-07 commit.
52216         * lib/gen-uni-tables.c (output_predicate, output_category,
52217         output_combclass, output_bidi_category, output_decimal_digit,
52218         output_digit, output_numeric, output_mirror, output_scripts,
52219         output_ident_category, output_simple_mapping): Fix format directives.
52220         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
52221
52222 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
52223
52224         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
52225         fixes are available from IBM.
52226
52227 2009-02-13  Jim Meyering  <meyering@redhat.com>
52228
52229         fts: arrange not to stat non-directories in more cases
52230         This makes GNU find (when it doesn't need to stat each file)
52231         *much* more efficient at traversing reiserfs file systems.
52232         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
52233         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
52234         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
52235         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
52236         (leaf_optimization_applies): New function.
52237         (LCO_hash, LCO_compare): New helper functions.
52238         (link_count_optimize_ok): New function.
52239         (fts_stat): Initialize new member (if dir).
52240         (fts_read): Decrement parent's fts_n_dirs_remaining count if
52241         we've just stat'ed a directory.  Skip the stat call when possible.
52242         ---
52243         Note this AFS-related exchange:
52244         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
52245         and note find's pioctl call in find/fstype.c.
52246         But that is necessary only if you want to enable the
52247         optimization for AFS, and for now, I don't.
52248
52249         fts: move a function definition "up" (no semantic change)
52250         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
52251         "up" to precede upcoming use of a related function.
52252
52253 2009-02-11  Jim Meyering  <meyering@redhat.com>
52254
52255         fts: correct internal computation of nlinks (optimization-related)
52256         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
52257         whether the current entry is a directory, so don't test it.
52258
52259 2009-02-10  Bruno Haible  <bruno@clisp.org>
52260
52261         Tests for module 'uniwbrk/ulc-wordbreaks'.
52262         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
52263         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
52264         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
52265
52266         Tests for module 'uniwbrk/u32-wordbreaks'.
52267         * modules/uniwbrk/u32-wordbreaks-tests: New file.
52268         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
52269
52270         Tests for module 'uniwbrk/u16-wordbreaks'.
52271         * modules/uniwbrk/u16-wordbreaks-tests: New file.
52272         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
52273
52274         Tests for module 'uniwbrk/u8-wordbreaks'.
52275         * modules/uniwbrk/u8-wordbreaks-tests: New file.
52276         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
52277
52278 2009-02-10  Bruno Haible  <bruno@clisp.org>
52279
52280         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
52281         property.
52282         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
52283         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
52284         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
52285
52286 2009-02-10  Simon Josefsson  <simon@josefsson.org>
52287
52288         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
52289         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
52290
52291 2009-02-10  Bruno Haible  <bruno@clisp.org>
52292
52293         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
52294         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
52295         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
52296         * lib/unilbrk/u8-possible-linebreaks.c: Update.
52297         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
52298         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
52299
52300 2009-02-09  Simon Josefsson  <simon@josefsson.org>
52301
52302         * lib/sockets.h (gl_fd_to_handle): New function.
52303
52304         * tests/test-sockets.c: Call gl_fd_to_handle.
52305
52306 2009-02-09  Bruno Haible  <bruno@clisp.org>
52307
52308         * doc/havelib.texi: Document the conventions on bi-arch systems.
52309
52310 2009-02-08  Bruno Haible  <bruno@clisp.org>
52311
52312         Document the AC_LIB_LINKFLAGS macro.
52313         * doc/havelib.texi: New file, mostly written on 2005-05-24.
52314         * doc/gnulib.texi: Include it.
52315
52316 2009-02-08  Bruno Haible  <bruno@clisp.org>
52317
52318         Fix wrong order of sections, compared to TOC.
52319         * doc/gnulib.texi: Include relocatable-maint.texi after the
52320         "Regular expressions" node, not before.
52321
52322 2009-02-08  Bruno Haible  <bruno@clisp.org>
52323
52324         Tests for module 'unicase/totitle'.
52325         * modules/unicase/totitle-tests: New file.
52326
52327         Tests for module 'unicase/tolower'.
52328         * modules/unicase/tolower-tests: New file.
52329
52330         Tests for module 'unicase/toupper'.
52331         * modules/unicase/toupper-tests: New file.
52332         * tests/unicase/test-mapping-part1.h: New file.
52333         * tests/unicase/test-mapping-part2.h: New file.
52334
52335         New module 'unicase/totitle'.
52336         * modules/unicase/totitle: New file.
52337         * lib/unicase/totitle.c: New file.
52338
52339         New module 'unicase/tolower'.
52340         * modules/unicase/tolower: New file.
52341         * lib/unicase/tolower.c: New file.
52342
52343         New module 'unicase/toupper'.
52344         * modules/unicase/toupper: New file.
52345         * lib/unicase/toupper.c: New file.
52346         * lib/unicase/simple-mapping.h: New file.
52347
52348         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
52349         (mapping_table): New structure.
52350         (output_simple_mapping): New function.
52351         (main): Invoke output_simple_mapping_test and output_simple_mapping.
52352         * modules/gen-uni-tables (Description): Update.
52353         * lib/unicase/toupper.h: New file, automatically generated by
52354         gen-uni-tables.
52355         * lib/unicase/tolower.h: New file, automatically generated by
52356         gen-uni-tables.
52357         * lib/unicase/totitle.h: New file, automatically generated by
52358         gen-uni-tables.
52359         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
52360         gen-uni-tables.
52361         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
52362         gen-uni-tables.
52363         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
52364         gen-uni-tables.
52365
52366         New module 'unicase/base'.
52367         * modules/unicase/base: New file.
52368         * lib/unicase.h: New file.
52369
52370 2009-02-08  Bruno Haible  <bruno@clisp.org>
52371
52372         New module 'uniwbrk/ulc-wordbreaks'.
52373         * modules/uniwbrk/ulc-wordbreaks: New file.
52374         * lib/uniwbrk/ulc-wordbreaks.c: New file.
52375
52376         New module 'uniwbrk/u32-wordbreaks'.
52377         * modules/uniwbrk/u32-wordbreaks: New file.
52378         * lib/uniwbrk/u32-wordbreaks.c: New file.
52379
52380         New module 'uniwbrk/u16-wordbreaks'.
52381         * modules/uniwbrk/u16-wordbreaks: New file.
52382         * lib/uniwbrk/u16-wordbreaks.c: New file.
52383
52384         New module 'uniwbrk/u8-wordbreaks'.
52385         * modules/uniwbrk/u8-wordbreaks: New file.
52386         * lib/uniwbrk/u8-wordbreaks.c: New file.
52387         * lib/uniwbrk/u-wordbreaks.h: New file.
52388
52389         New module 'uniwbrk/table'.
52390         * modules/uniwbrk/table: New file.
52391         * lib/uniwbrk/wbrktable.h: New file.
52392         * lib/uniwbrk/wbrktable.c: New file.
52393
52394         New module 'uniwbrk/wordbreak-property'.
52395         * modules/uniwbrk/wordbreak-property: New file.
52396         * lib/uniwbrk/wordbreak-property.c: New file.
52397
52398         * lib/gen-uni-tables.c (WBP_*): New enum items.
52399         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
52400         (unicode_org_wbp): New variable.
52401         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
52402         New functions.
52403         (wbp_table): New structure.
52404         (output_wbp, output_wbrk_tables): New functions.
52405         (main): Accept additional argument. Invoke fill_org_wbp,
52406         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
52407         output_wbrk_tables.
52408         * modules/gen-uni-tables (Description): Update.
52409         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
52410         gen-uni-tables.
52411
52412         New module 'uniwbrk/base'.
52413         * modules/uniwbrk/base: New file.
52414         * lib/uniwbrk.h: New file.
52415
52416 2009-02-08  Bruno Haible  <bruno@clisp.org>
52417
52418         Update to Unicode 5.1.0.
52419         * lib/gen-uni-tables.c (is_property_alphabetic): Include
52420         U+2185..U+2188.
52421         (is_property_default_ignorable_code_point): Don't include characters
52422         of category Cc or Cs and not-a-characters.
52423         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
52424         U+0D79, U+109E, U+109F, U+A60C.
52425         * lib/unictype/bidi_of.h: Regenerated.
52426         * lib/unictype/blocks.h: Regenerated.
52427         * lib/unictype/categ_C.h: Regenerated.
52428         * lib/unictype/categ_Cf.h: Regenerated.
52429         * lib/unictype/categ_Cn.h: Regenerated.
52430         * lib/unictype/categ_L.h: Regenerated.
52431         * lib/unictype/categ_Ll.h: Regenerated.
52432         * lib/unictype/categ_Lm.h: Regenerated.
52433         * lib/unictype/categ_Lo.h: Regenerated.
52434         * lib/unictype/categ_Lu.h: Regenerated.
52435         * lib/unictype/categ_M.h: Regenerated.
52436         * lib/unictype/categ_Mc.h: Regenerated.
52437         * lib/unictype/categ_Me.h: Regenerated.
52438         * lib/unictype/categ_Mn.h: Regenerated.
52439         * lib/unictype/categ_N.h: Regenerated.
52440         * lib/unictype/categ_Nd.h: Regenerated.
52441         * lib/unictype/categ_Nl.h: Regenerated.
52442         * lib/unictype/categ_No.h: Regenerated.
52443         * lib/unictype/categ_P.h: Regenerated.
52444         * lib/unictype/categ_Pd.h: Regenerated.
52445         * lib/unictype/categ_Pe.h: Regenerated.
52446         * lib/unictype/categ_Pf.h: Regenerated.
52447         * lib/unictype/categ_Pi.h: Regenerated.
52448         * lib/unictype/categ_Po.h: Regenerated.
52449         * lib/unictype/categ_Ps.h: Regenerated.
52450         * lib/unictype/categ_S.h: Regenerated.
52451         * lib/unictype/categ_Sk.h: Regenerated.
52452         * lib/unictype/categ_Sm.h: Regenerated.
52453         * lib/unictype/categ_So.h: Regenerated.
52454         * lib/unictype/categ_of.h: Regenerated.
52455         * lib/unictype/combining.h: Regenerated.
52456         * lib/unictype/ctype_alnum.h: Regenerated.
52457         * lib/unictype/ctype_alpha.h: Regenerated.
52458         * lib/unictype/ctype_graph.h: Regenerated.
52459         * lib/unictype/ctype_lower.h: Regenerated.
52460         * lib/unictype/ctype_print.h: Regenerated.
52461         * lib/unictype/ctype_punct.h: Regenerated.
52462         * lib/unictype/ctype_upper.h: Regenerated.
52463         * lib/unictype/decdigit.h: Regenerated.
52464         * lib/unictype/digit.h: Regenerated.
52465         * lib/unictype/mirror.h: Regenerated.
52466         * lib/unictype/numeric.h: Regenerated.
52467         * lib/unictype/pr_alphabetic.h: Regenerated.
52468         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
52469         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
52470         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
52471         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
52472         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
52473         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
52474         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
52475         * lib/unictype/pr_combining.h: Regenerated.
52476         * lib/unictype/pr_dash.h: Regenerated.
52477         * lib/unictype/pr_decimal_digit.h: Regenerated.
52478         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
52479         * lib/unictype/pr_deprecated.h: Regenerated.
52480         * lib/unictype/pr_diacritic.h: Regenerated.
52481         * lib/unictype/pr_extender.h: Regenerated.
52482         * lib/unictype/pr_format_control.h: Regenerated.
52483         * lib/unictype/pr_grapheme_base.h: Regenerated.
52484         * lib/unictype/pr_grapheme_extend.h: Regenerated.
52485         * lib/unictype/pr_grapheme_link.h: Regenerated.
52486         * lib/unictype/pr_id_continue.h: Regenerated.
52487         * lib/unictype/pr_id_start.h: Regenerated.
52488         * lib/unictype/pr_ideographic.h: Regenerated.
52489         * lib/unictype/pr_ignorable_control.h: Regenerated.
52490         * lib/unictype/pr_lowercase.h: Regenerated.
52491         * lib/unictype/pr_math.h: Regenerated.
52492         * lib/unictype/pr_numeric.h: Regenerated.
52493         * lib/unictype/pr_other_alphabetic.h: Regenerated.
52494         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
52495         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
52496         * lib/unictype/pr_other_id_continue.h: Regenerated.
52497         * lib/unictype/pr_other_lowercase.h: Regenerated.
52498         * lib/unictype/pr_other_math.h: Regenerated.
52499         * lib/unictype/pr_punctuation.h: Regenerated.
52500         * lib/unictype/pr_sentence_terminal.h: Regenerated.
52501         * lib/unictype/pr_soft_dotted.h: Regenerated.
52502         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
52503         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
52504         * lib/unictype/pr_unified_ideograph.h: Regenerated.
52505         * lib/unictype/pr_uppercase.h: Regenerated.
52506         * lib/unictype/pr_xid_continue.h: Regenerated.
52507         * lib/unictype/pr_xid_start.h: Regenerated.
52508         * lib/unictype/pr_zero_width.h: Regenerated.
52509         * lib/unictype/scripts.h: Regenerated.
52510         * lib/unictype/scripts_byname.gperf: Regenerated.
52511         * lib/unictype/sy_java_ident.h: Regenerated.
52512         * lib/unilbrk/lbrkprop1.h: Regenerated.
52513         * lib/unilbrk/lbrkprop2.h: Regenerated.
52514         * tests/unictype/test-categ_C.c: Regenerated.
52515         * tests/unictype/test-categ_Cf.c: Regenerated.
52516         * tests/unictype/test-categ_Cn.c: Regenerated.
52517         * tests/unictype/test-categ_L.c: Regenerated.
52518         * tests/unictype/test-categ_Ll.c: Regenerated.
52519         * tests/unictype/test-categ_Lm.c: Regenerated.
52520         * tests/unictype/test-categ_Lo.c: Regenerated.
52521         * tests/unictype/test-categ_Lu.c: Regenerated.
52522         * tests/unictype/test-categ_M.c: Regenerated.
52523         * tests/unictype/test-categ_Mc.c: Regenerated.
52524         * tests/unictype/test-categ_Me.c: Regenerated.
52525         * tests/unictype/test-categ_Mn.c: Regenerated.
52526         * tests/unictype/test-categ_N.c: Regenerated.
52527         * tests/unictype/test-categ_Nd.c: Regenerated.
52528         * tests/unictype/test-categ_Nl.c: Regenerated.
52529         * tests/unictype/test-categ_No.c: Regenerated.
52530         * tests/unictype/test-categ_P.c: Regenerated.
52531         * tests/unictype/test-categ_Pd.c: Regenerated.
52532         * tests/unictype/test-categ_Pe.c: Regenerated.
52533         * tests/unictype/test-categ_Pf.c: Regenerated.
52534         * tests/unictype/test-categ_Pi.c: Regenerated.
52535         * tests/unictype/test-categ_Po.c: Regenerated.
52536         * tests/unictype/test-categ_Ps.c: Regenerated.
52537         * tests/unictype/test-categ_S.c: Regenerated.
52538         * tests/unictype/test-categ_Sk.c: Regenerated.
52539         * tests/unictype/test-categ_Sm.c: Regenerated.
52540         * tests/unictype/test-categ_So.c: Regenerated.
52541         * tests/unictype/test-ctype_alnum.c: Regenerated.
52542         * tests/unictype/test-ctype_alpha.c: Regenerated.
52543         * tests/unictype/test-ctype_graph.c: Regenerated.
52544         * tests/unictype/test-ctype_lower.c: Regenerated.
52545         * tests/unictype/test-ctype_print.c: Regenerated.
52546         * tests/unictype/test-ctype_punct.c: Regenerated.
52547         * tests/unictype/test-ctype_upper.c: Regenerated.
52548         * tests/unictype/test-decdigit.h: Regenerated.
52549         * tests/unictype/test-digit.h: Regenerated.
52550         * tests/unictype/test-numeric.h: Regenerated.
52551         * tests/unictype/test-pr_alphabetic.c: Regenerated.
52552         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
52553         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
52554         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
52555         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
52556         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
52557         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
52558         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
52559         * tests/unictype/test-pr_combining.c: Regenerated.
52560         * tests/unictype/test-pr_dash.c: Regenerated.
52561         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
52562         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
52563         * tests/unictype/test-pr_deprecated.c: Regenerated.
52564         * tests/unictype/test-pr_diacritic.c: Regenerated.
52565         * tests/unictype/test-pr_extender.c: Regenerated.
52566         * tests/unictype/test-pr_format_control.c: Regenerated.
52567         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
52568         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
52569         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
52570         * tests/unictype/test-pr_id_continue.c: Regenerated.
52571         * tests/unictype/test-pr_id_start.c: Regenerated.
52572         * tests/unictype/test-pr_ideographic.c: Regenerated.
52573         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
52574         * tests/unictype/test-pr_lowercase.c: Regenerated.
52575         * tests/unictype/test-pr_math.c: Regenerated.
52576         * tests/unictype/test-pr_numeric.c: Regenerated.
52577         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
52578         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
52579         Regenerated.
52580         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
52581         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
52582         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
52583         * tests/unictype/test-pr_other_math.c: Regenerated.
52584         * tests/unictype/test-pr_punctuation.c: Regenerated.
52585         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
52586         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
52587         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
52588         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
52589         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
52590         * tests/unictype/test-pr_uppercase.c: Regenerated.
52591         * tests/unictype/test-pr_xid_continue.c: Regenerated.
52592         * tests/unictype/test-pr_xid_start.c: Regenerated.
52593         * tests/unictype/test-pr_zero_width.c: Regenerated.
52594
52595         Update to Unicode 5.1.0.
52596         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
52597         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
52598         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
52599         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
52600         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
52601         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
52602         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
52603         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
52604         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
52605         (nonspacing_table_ind): Update.
52606         * tests/uniwidth/test-uc_width2.sh: Update expected result.
52607
52608         Update to Unicode 5.1.0.
52609         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
52610         code transform.
52611         * lib/uniname/uniname.c (unicode_character_name,
52612         unicode_name_character): Add the range 0x1Fxxx to the code transform.
52613         * lib/uniname/uninames.h: Regenerated.
52614         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
52615
52616 2009-02-07  Bruno Haible  <bruno@clisp.org>
52617
52618         Merge gen-ctype and gen-lbrk into a single program.
52619         * lib/gen-uni-tables.c: New file, incorporating
52620         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
52621         Add directory prefixes to the names of the generated files.
52622         * lib/unictype/gen-ctype.c: Remove file.
52623         * lib/unilbrk/gen-lbrk.c: Remove file.
52624         * modules/gen-uni-tables: New file.
52625         * modules/unictype/gen-ctype: Remove file.
52626         * modules/unilbrk/gen-lbrk: Remove file.
52627
52628 2009-02-07  Bruno Haible  <bruno@clisp.org>
52629
52630         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
52631
52632         New module 'unistr/u32-strcoll'.
52633         * modules/unistr/u32-strcoll: New file.
52634         * lib/unistr/u32-strcoll.c: New file.
52635
52636         New module 'unistr/u16-strcoll'.
52637         * modules/unistr/u16-strcoll: New file.
52638         * lib/unistr/u16-strcoll.c: New file.
52639
52640         New module 'unistr/u8-strcoll'.
52641         * modules/unistr/u8-strcoll: New file.
52642         * lib/unistr/u8-strcoll.c: New file.
52643         * lib/unistr/u-strcoll.h: New file.
52644
52645 2009-02-07  Bruno Haible  <bruno@clisp.org>
52646
52647         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
52648         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
52649         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
52650         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
52651         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
52652         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
52653
52654 2009-02-07  Bruno Haible  <bruno@clisp.org>
52655
52656         Make 64-bit clean.
52657         * lib/unictype/gen-ctype.c (output_predicate, output_category,
52658         output_combclass, output_bidi_category, output_decimal_digit,
52659         output_digit, output_numeric, output_mirror, output_scripts,
52660         output_ident_category): Use proper width specifier in format strings.
52661
52662 2009-02-07  Bruno Haible  <bruno@clisp.org>
52663
52664         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
52665         failure behaviour.
52666
52667 2009-02-07  Jim Meyering  <meyering@redhat.com>
52668
52669         regex: avoid compilation failure with upcoming gcc-4.4
52670         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
52671         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
52672         "... error: integer overflow in preprocessor expression".
52673
52674 2009-02-05  Ben Pfaff  <blp@gnu.org>
52675
52676         Fix link errors on Windows when close module is used.
52677         * modules/close: Add $(LIB_CLOSE) to Link section.
52678         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
52679         $(LIB_CLOSE) on Windows.
52680
52681 2009-02-05  Jim Meyering  <meyering@redhat.com>
52682
52683         still avoid unused-parameter warnings, but do it cleanly
52684         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
52685         (get_fs_usage): Cast to void instead.
52686         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
52687         (dev_from_mount_options, read_file_system_list): Cast to void.
52688         Prompted by Bruno Haible.
52689
52690 2009-02-04  Jim Meyering  <meyering@redhat.com>
52691
52692         fsusage.c: correct copyright year
52693         * lib/fsusage.c: Reflect year in which the change is pushed into
52694
52695         avoid misc. warnings
52696         * lib/fsusage.c (UNUSED_PARAM): Define.
52697         (get_fs_usage): Mark parameter "disk" as unused.
52698         * lib/getugroups.c (getgrent): Use "void" in prototype.
52699         * lib/mountlist.c: Mark unused parameters.
52700         (read_file_system_list): Declare a local with "const".
52701         * lib/nanosleep.c (getnow): Declare static.
52702         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
52703
52704         dirfd: set errno upon failure
52705         * lib/dirfd.c: Include <errno.h>.
52706         Set errno to ENOTSUP when returning -1.
52707         * modules/dirfd (Depends-on): Add errno.
52708         Suggested by John Kodis <kodis@comcast.net>.
52709
52710 2009-02-01  Bruno Haible  <bruno@clisp.org>
52711
52712         Don't assume sizeof (long) >= sizeof (void *).
52713         * lib/memcmp.c: Include stdint.h.
52714         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
52715         srcp2 to 'const byte *'.
52716         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
52717         types to uintptr_t.
52718         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
52719         * modules/memcmp (Depends-on): Add stdint.
52720         Reported by Ozkan Sezer <sezeroz@gmail.com>.
52721
52722 2009-01-30  Eric Blake  <ebb9@byu.net>
52723
52724         fix more require-before-expand issues
52725         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
52726         expand, AC_PROG_AWK.
52727         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
52728
52729 2009-01-28  Eric Blake  <ebb9@byu.net>
52730
52731         version-etc: use consistent URL formatting
52732         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
52733         Improve formatting.  Use fputs for string without %.
52734
52735 2009-01-28  Jim Meyering  <meyering@redhat.com>
52736
52737         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
52738         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
52739         "underquoted definition of NAME" from autoconf-2.59.
52740
52741 2009-01-28  Bruno Haible  <bruno@clisp.org>
52742
52743         * doc/gnulib.texi: Add "Obsolete modules" to index.
52744
52745 2009-01-28  Jim Meyering  <meyering@redhat.com>
52746
52747         useless-if-before-free: recognize more variants
52748         * build-aux/useless-if-before-free: Also recognize e.g.,
52749         if (NULL != p) free (p);
52750
52751 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
52752
52753         test-getaddrinfo: skip (don't fail) this test when there's no network
52754         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
52755         on the presumption that it means you lack network access.
52756
52757 2009-01-26  Jim Meyering  <meyering@redhat.com>
52758
52759         fflush: avoid warnings on modern systems
52760         * lib/fflush.c (rpl_fflush): Move declarations of locals,
52761         pos and result, into scopes where they're used.
52762
52763 2009-01-26  Eric Blake  <ebb9@byu.net>
52764
52765         Silence warning reintroduced by recent extensions patch.
52766         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
52767         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
52768         autoconf.
52769
52770         Backport improved autoconf semantics of AC_DEFUN_ONCE.
52771         * m4/00gnulib.m4: New file.
52772         * gnulib-tool (func_get_filelist): Always use it.
52773         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
52774         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
52775
52776 2009-01-25  Bruno Haible  <bruno@clisp.org>
52777
52778         Make test-quotearg work on MacOS X and AIX.
52779         * tests/test-quotearg.sh: New file.
52780         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
52781         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
52782         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
52783         include <libintl.h>.
52784         (fake_locale): Remove variable.
52785         (gettext, dgettext, dcgettext): Remove functions.
52786         (main): Instead of setting a fake locale, set a real locale. Call
52787         textdomain and bindtextdomain.
52788         * modules/quotearg-tests (Files): Add the new files.
52789         (Depends-on): Add gettext, setenv, unsetenv.
52790         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
52791         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
52792         Augment TESTS_ENVIRONMENT.
52793
52794 2009-01-25  Bruno Haible  <bruno@clisp.org>
52795
52796         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
52797         fr_FR.ISO8859-1 locale on MacOS X.
52798         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
52799         ja_JP.eucJP locale on MacOS X.
52800         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
52801         zh_CN.GB18030 locale on MacOS X.
52802
52803 2009-01-25  Bruno Haible  <bruno@clisp.org>
52804
52805         Avoid link errors on MacOS X 10.3.
52806         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
52807         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
52808
52809 2009-01-25  Bruno Haible  <bruno@clisp.org>
52810
52811         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
52812         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
52813         * modules/pipe (Files): Remove m4/posix_spawn.m4.
52814         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
52815         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
52816         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
52817         posix_spawnattr_init, posix_spawnattr_setsigmask,
52818         posix_spawnattr_setflags, posix_spawnattr_destroy.
52819
52820         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
52821         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
52822         * modules/execute (Files): Remove m4/posix_spawn.m4.
52823         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
52824         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
52825         posix_spawnattr_init, posix_spawnattr_setsigmask,
52826         posix_spawnattr_setflags, posix_spawnattr_destroy.
52827
52828 2009-01-25  Bruno Haible  <bruno@clisp.org>
52829
52830         * lib/glthread/threadlib.c: Include <stdlib.h>.
52831
52832 2009-01-25  Bruno Haible  <bruno@clisp.org>
52833
52834         * lib/glthread/threadlib.c (dummy): New declaration.
52835
52836 2009-01-25  Bruno Haible  <bruno@clisp.org>
52837
52838         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
52839         multibyte characters also for the GB18030 encoding. Don't crash when
52840         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
52841
52842 2009-01-25  Bruno Haible  <bruno@clisp.org>
52843
52844         Avoid redefining 'struct random_data' on OSF/1 5.1.
52845         * lib/stdlib.in.h: Include <random.h> if it exists.
52846         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
52847         HAVE_RANDOM_H. Include <random.h> when testing whether
52848         'struct random_data' exists.
52849         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
52850
52851 2009-01-25  Bruno Haible  <bruno@clisp.org>
52852
52853         Don't install charset.alias on MacOS X >= 10.3.
52854         * lib/localcharset.c (DARWIN7): New macro.
52855         (get_charset_aliases): Hardcode the result for Darwin7.
52856         * modules/localcharset (install-exec-local): Don't install
52857         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
52858
52859 2009-01-25  Bruno Haible  <bruno@clisp.org>
52860
52861         Don't install charset.alias on mingw and Cygwin.
52862         * modules/localcharset (install-exec-local): Don't install
52863         charset.alias on mingw and Cygwin, if the file does not yet exist.
52864         The result for these platforms is hardcoded in localcharset.c.
52865
52866 2009-01-25  Bruno Haible  <bruno@clisp.org>
52867
52868         Make it possible again to use AC_GNU_SOURCE together with gnulib.
52869         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
52870         before requiring AC_USE_SYSTEM_EXTENSIONS.
52871
52872 2009-01-25  Jim Meyering  <meyering@redhat.com>
52873
52874         c-strtod: avoid warnings
52875         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
52876         "assignment discards qualifiers from pointer target type" warnings.
52877
52878 2009-01-24  Bruno Haible  <bruno@clisp.org>
52879
52880         Add support for non-UTF-8 locales on MacOS X.
52881         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
52882         canonical encodings. For Darwin 7 and newer, don't map traditional
52883         encodings to UTF-8.
52884         Reported by Vincent Lefevre <vincent@vinc17.org>
52885         at <http://savannah.gnu.org/bugs/?25235>.
52886
52887 2009-01-24  Bruno Haible  <bruno@clisp.org>
52888
52889         * doc/gnulib.texi (Obsolete modules): New section.
52890         Reported by Mike Frysinger <vapier@gentoo.org>.
52891
52892 2009-01-24  Bruno Haible  <bruno@clisp.org>
52893
52894         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
52895         (%.dvi): New rule.
52896
52897 2009-01-24  Bruno Haible  <bruno@clisp.org>
52898
52899         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
52900         Reported by Eric Blake.
52901
52902 2009-01-24  Bruno Haible  <bruno@clisp.org>
52903
52904         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
52905         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
52906         Reported by Gary V. Vaughan <gary@gnu.org>.
52907
52908 2009-01-24  Bruno Haible  <bruno@clisp.org>
52909
52910         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
52911
52912 2009-01-23  Bruno Haible  <bruno@clisp.org>
52913
52914         Make c-strtod, c-strtold usable in libraries.
52915         * lib/c-strtod.c: Include string.h instead of xalloc.h.
52916         (C_STRTOD): Call strdup instead of xstrdup.
52917         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
52918         * modules/c-strtold (Depends-on): Likewise.
52919         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
52920         * NEWS: Mention the change.
52921         Reported by Michael Gold <mgold@ncf.ca>.
52922
52923 2009-01-23  Jim Meyering  <meyering@redhat.com>
52924
52925         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
52926         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
52927         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
52928
52929 2009-01-23  Simon Josefsson  <simon@josefsson.org>
52930
52931         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
52932         GNU CoreUtils.
52933         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
52934         * modules/version-etc (Description): Update.
52935
52936 2009-01-22  Bruno Haible  <bruno@clisp.org>
52937
52938         Cache the C locale object.
52939         * lib/c-strtod.c (c_locale_cache): New variable.
52940         (c_locale): New function.
52941         (C_STRTOD): Use it, and don't call freelocale.
52942         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
52943         Suggested by Paolo Bonzini.
52944
52945 2009-01-21  Bruno Haible  <bruno@clisp.org>
52946
52947         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
52948         conditions other than overflow.
52949
52950 2009-01-21  Bruno Haible  <bruno@clisp.org>
52951
52952         * lib/c-strtod.c: Include errno.h.
52953         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
52954         value from STRTOD_L and STRTOD.
52955
52956 2009-01-21  Bruno Haible  <bruno@clisp.org>
52957         and Jim Meyering  <meyering@redhat.com>
52958
52959         nanosleep: skip configure test (fail it) for apple universal builds
52960         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
52961         universal builds, assume that nanosleep does not work.
52962         * modules/nanosleep (Depends-on): Add multiarch.
52963
52964         mktime: skip configure test (fail it) for apple universal builds
52965         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
52966         universal builds, assume that mktime does not work.
52967         * modules/mktime (Depends-on): Add multiarch.
52968
52969 2009-01-21  Eric Blake  <ebb9@byu.net>
52970
52971         multiarch: avoid expand-before-require warning
52972         * modules/multiarch (configure.ac): Require, rather than expand,
52973         gl_MULTIARCH.
52974         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
52975         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
52976         enforce that all clients require it.  Partial reversion of
52977         2008-12-29 patch.
52978
52979         error: avoid expand-before-require warning
52980         * modules/errno (configure.ac): Require, rather than expand,
52981         gl_HEADER_ERRNO_H.
52982         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
52983         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
52984         enforce that all clients require it.
52985
52986         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
52987         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
52988         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
52989         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
52990
52991 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
52992
52993         Revert:
52994         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
52995
52996         regex: do not depend on obsolete modules.
52997         * modules/regex: Remove memcmp and memmove.
52998
52999 2009-01-20  Bruno Haible  <bruno@clisp.org>
53000
53001         Make the 'link' module link on Windows NT 4.
53002         * lib/link.c (_WIN32_WINNT): Don't define.
53003         (CreateHardLinkFuncType): New type.
53004         (CreateHardLinkFunc, initialized): New variables.
53005         (initialize): New function.
53006         (link): Invoke CreateHardLink indirectly through the function pointer.
53007
53008 2009-01-20  Bruno Haible  <bruno@clisp.org>
53009
53010         Fix compilation failure on mingw.
53011         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
53012
53013 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
53014
53015         * doc/c-strtod.texi: Mention a couple of restrictions.
53016
53017 2009-01-20  Jim Meyering  <meyering@redhat.com>
53018
53019         gettimeofday: move more declarations out of functions
53020         * lib/gettimeofday.c: Move extern declarations of tzset and
53021         gmtime out of containing functions.  Prompted by Bruno Haible.
53022
53023 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
53024
53025         regex: do not depend on obsolete modules.
53026         * modules/regex: Remove memcmp and memmove.
53027
53028 2009-01-19  Bruno Haible  <bruno@clisp.org>
53029
53030         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
53031         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
53032         gl_BIGENDIAN, not AC_C_BIGENDIAN.
53033         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
53034         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
53035
53036 2009-01-19  Bruno Haible  <bruno@clisp.org>
53037
53038         * tests/test-link.c: Include <errno.h>.
53039         (main): Exit with code 77 when a hard link cannot be created due to
53040         the file system.
53041         * tests/test-link.sh: Skip test when a hard link cannot be created due
53042         to the file system.
53043         Suggested by Eric Blake.
53044
53045 2009-01-19  Martin Lambers  <marlam@marlam.de>
53046
53047         * modules/link-tests: New file.
53048         * tests/test-link.sh: New file.
53049         * tests/test-link.c: New file.
53050
53051 2009-01-19  Eric Blake  <ebb9@byu.net>
53052
53053         doc: mention another function added in cygwin 1.7.0
53054         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
53055         Another new function in cygwin 1.7.
53056
53057 2009-01-19  Bruno Haible  <bruno@clisp.org>
53058
53059         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
53060         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
53061         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
53062         gl_BIGENDIAN, not AC_C_BIGENDIAN.
53063         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
53064         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
53065         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
53066         * m4/md4.m4 (gl_MD4): Likewise.
53067         * m4/md5.m4 (gl_MD5): Likewise.
53068         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
53069         * m4/sha1.m4 (gl_SHA1): Likewise.
53070         * m4/sha256.m4 (gl_SHA256): Likewise.
53071         * m4/sha512.m4 (gl_SHA512): Likewise.
53072
53073 2009-01-19  Bruno Haible  <bruno@clisp.org>
53074
53075         * modules/uniname/uniname-tests (Depends-on): Add progname.
53076         * tests/uniname/test-uninames.c: Include progname.h.
53077         (main): Call set_program_name.
53078
53079         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
53080         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
53081         (main): Call set_program_name.
53082
53083         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
53084         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
53085         (main): Call set_program_name.
53086
53087         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
53088         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
53089         (main): Call set_program_name.
53090
53091         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
53092         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
53093         (main): Call set_program_name.
53094
53095         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
53096         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
53097         (main): Call set_program_name.
53098
53099         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
53100         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
53101         (main): Call set_program_name.
53102
53103         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
53104         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
53105         (main): Call set_program_name.
53106
53107         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
53108         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
53109         (main): Call set_program_name.
53110
53111 2009-01-19  Eric Blake  <ebb9@byu.net>
53112
53113         test-unistd: test previous patch
53114         * tests/test-unistd.c: Test *_FILENO macros.
53115
53116         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
53117         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
53118         Guarantee a definition.
53119         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
53120         * modules/unistd-safer (Depends-on): Add dependency on unistd.
53121         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
53122         * lib/dup-safer.c (STDERR_FILENO): Likewise.
53123         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
53124         Likewise.
53125         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
53126         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
53127         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
53128         Likewise.
53129         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
53130         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
53131         (STDERR_FILENO): Likewise.
53132         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
53133         (STDERR_FILENO): Likewise.
53134         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
53135         (STDERR_FILENO): Likewise.
53136         Reported by Elbert Pol.
53137
53138 2009-01-19  Eric Blake  <ebb9@byu.net>
53139
53140         doc: mention more functions added in cygwin 1.7.0
53141         * doc/posix-functions/abort.texi (abort): Update wording related
53142         to cygwin.
53143         * doc/posix-functions/daylight.texi (daylight): Likewise.
53144         * doc/posix-functions/optarg.texi (optarg): Likewise.
53145         * doc/posix-functions/optarg.texi (opterr): Likewise.
53146         * doc/posix-functions/optarg.texi (optind): Likewise.
53147         * doc/posix-functions/optarg.texi (optopt): Likewise.
53148         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
53149         worked in 1.5.x, and was withdrawn in 1.7.
53150         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
53151         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
53152         cygwin versions.
53153         * doc/posix-functions/perror.texi (perror): Likewise.
53154         * doc/posix-functions/printf.texi (printf): Likewise.
53155         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
53156         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
53157         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
53158         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
53159         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
53160         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
53161         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
53162         Likewise.
53163         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
53164         Likewise.
53165         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
53166         this function.
53167         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
53168         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
53169         Likewise.
53170         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
53171         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
53172         * doc/posix-functions/confstr.texi (confstr): Likewise.
53173         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
53174         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
53175         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
53176         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
53177         * doc/posix-functions/fputws.texi (fputws): Likewise.
53178         * doc/posix-functions/fwide.texi (fwide): Likewise.
53179         * doc/posix-functions/getwc.texi (getwc): Likewise.
53180         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
53181         * doc/posix-functions/putwc.texi (putwc): Likewise.
53182         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
53183         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
53184         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
53185         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
53186         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
53187         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
53188         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
53189         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
53190         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
53191         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
53192         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
53193
53194 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
53195
53196         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
53197         * lib/ioctl.c: Include <sys/ioctl.h>.
53198
53199 2009-01-19  Simon Josefsson  <simon@josefsson.org>
53200
53201         * modules/getdate-tests (Depends-on): Add progname.
53202         * tests/test-getdate.c: Use progname module, to avoid link errors
53203         on non-glibc systems.
53204
53205 2009-01-18  Simon Josefsson  <simon@josefsson.org>
53206
53207         * modules/filenamecat-tests (Depends-on): Add progname.
53208         * modules/fstrcmp-tests (Depends-on): Likewise.
53209
53210         * tests/test-filenamecat.c: Use progname module, to avoid link
53211         errors on non-glibc systems.
53212         * tests/test-fstrcmp.c: Likewise.
53213
53214 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
53215
53216         gettimeofday: avoid warning: nested extern declaration of 'localtime'
53217         * lib/gettimeofday.c: Move extern declaration out of function.
53218
53219 2009-01-18  Bruno Haible  <bruno@clisp.org>
53220
53221         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
53222         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
53223         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
53224
53225 2009-01-18  Bruno Haible  <bruno@clisp.org>
53226
53227         * lib/strftime.c (MEMPCPY): Remove unused macro.
53228         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
53229
53230 2009-01-18  Martin Lambers  <marlam@marlam.de>
53231
53232         New module 'link'.
53233         * lib/unistd.in.h (link): New declaration.
53234         * lib/link.c: New file.
53235         * m4/link.m4: New file.
53236         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
53237         HAVE_LINK.
53238         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
53239         * modules/link: New file.
53240         * doc/posix-functions/link.texi: Mention the new module.
53241
53242 2009-01-18  Bruno Haible  <bruno@clisp.org>
53243
53244         * tests/test-avltree_list.c (main): Call set_program_name.
53245         * tests/test-avltree_oset.c (main): Likewise.
53246         * tests/test-obstack-printf.c: Include progname.h.
53247         (main): Call set_program_name.
53248         * tests/test-quotearg.c: Include progname.h.
53249         (main): Call set_program_name.
53250         * tests/test-xmemdup0.c: Include progname.h.
53251         (main): Call set_program_name.
53252
53253 2009-01-18  Bruno Haible  <bruno@clisp.org>
53254
53255         New module 'alphasort'.
53256         * lib/dirent.in.h (alphasort): New declaration.
53257         * lib/alphasort.c: New file, from glibc with modifications.
53258         * m4/alphasort.m4: New file.
53259         * modules/alphasort: New file.
53260         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
53261         HAVE_ALPHASORT.
53262         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
53263         HAVE_ALPHASORT.
53264         * doc/posix-functions/alphasort.texi: Mention the new module and the
53265         portability problems.
53266
53267 2009-01-18  Bruno Haible  <bruno@clisp.org>
53268
53269         New module 'scandir'.
53270         * lib/dirent.in.h (scandir): New declaration.
53271         * lib/scandir.c: New file, from glibc with modifications.
53272         * m4/scandir.m4: New file.
53273         * modules/scandir: New file.
53274         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
53275         HAVE_SCANDIR.
53276         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
53277         HAVE_SCANDIR.
53278         * doc/posix-functions/scandir.texi: Mention the new module and the
53279         portability problems.
53280
53281 2009-01-17  Bruno Haible  <bruno@clisp.org>
53282
53283         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
53284         Update documentation.
53285         (func_remove_suffix): Escape all dots in the suffix. Update
53286         documentation.
53287         (func_filter_filelist): Update documentation.
53288         Reported by Ralf Wildenhues.
53289
53290 2009-01-17  Bruno Haible  <bruno@clisp.org>
53291
53292         * modules/dprintf-posix-tests: New file.
53293         * tests/test-dprintf-posix.sh: New file.
53294         * tests/test-dprintf-posix.c: New file.
53295
53296         New modules 'dprintf', 'dprintf-posix'.
53297         * lib/stdio.in.h (dprintf): New declaration.
53298         * lib/dprintf.c: New file.
53299         * m4/dprintf.m4: New file.
53300         * m4/dprintf-posix.m4: New file.
53301         * modules/dprintf: New file.
53302         * modules/dprintf-posix: New file.
53303         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
53304         HAVE_DPRINTF, REPLACE_DPRINTF.
53305         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
53306         HAVE_DPRINTF, REPLACE_DPRINTF.
53307         * doc/posix-functions/dprintf.texi: Mention the new modules.
53308
53309 2009-01-17  Bruno Haible  <bruno@clisp.org>
53310
53311         * modules/vdprintf-posix-tests: New file.
53312         * tests/test-vdprintf-posix.sh: New file.
53313         * tests/test-vdprintf-posix.c: New file.
53314
53315         New modules 'vdprintf', 'vdprintf-posix'.
53316         * lib/stdio.in.h (vdprintf): New declaration.
53317         * lib/vdprintf.c: New file.
53318         * m4/vdprintf.m4: New file.
53319         * m4/vdprintf-posix.m4: New file.
53320         * modules/vdprintf: New file.
53321         * modules/vdprintf-posix: New file.
53322         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
53323         HAVE_VDPRINTF, REPLACE_VDPRINTF.
53324         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
53325         HAVE_VDPRINTF, REPLACE_VDPRINTF.
53326         * doc/posix-functions/vdprintf.texi: Mention the new modules.
53327
53328 2009-01-17  Bruno Haible  <bruno@clisp.org>
53329
53330         Fix replacement of fopen on mingw.
53331         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
53332         mingw.
53333
53334 2009-01-17  Bruno Haible  <bruno@clisp.org>
53335
53336         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
53337         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
53338
53339 2009-01-17  Bruno Haible  <bruno@clisp.org>
53340
53341         Avoid test-fflush2.sh failure on mingw.
53342         * tests/test-fflush2.c: Include binary-io.h.
53343         (main): Put standard input into binary mode.
53344         * modules/fflush-tests (Depends-on): Add binary-io.
53345
53346 2009-01-17  Bruno Haible  <bruno@clisp.org>
53347
53348         * lib/wchar.in.h: In another particular situation, include only the
53349         system's <wchar.h> file.
53350         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
53351         Reported by Albert Chin-A-Young <china@thewrittenword.com>
53352         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
53353
53354 2009-01-17  Bruno Haible  <bruno@clisp.org>
53355
53356         Support for stripping executables in --enable-relocatable.
53357         * build-aux/install-reloc: Expect one more argument, or an environment
53358         variable RELOC_STRIP_PROG. If set, strip the destination program and
53359         its wrapper.
53360         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
53361         RELOC_STRIP_PROG.
53362         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
53363         to set RELOCATABLE_STRIP.
53364         * NEWS: Mention the new Makefile requirement.
53365
53366 2009-01-17  Bruno Haible  <bruno@clisp.org>
53367
53368         * build-aux/install-reloc: Remove debugging information left over by
53369         C compiler on MacOS X.
53370
53371 2009-01-17  Bruno Haible  <bruno@clisp.org>
53372
53373         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
53374         * lib/progreloc.c (find_executable): Fix type of pointer passed to
53375         _NSGetExecutablePath.
53376
53377 2009-01-16  Jim Meyering  <meyering@redhat.com>
53378
53379         strerror: avoid warnings about discarding "const"
53380         * lib/strerror.c (rpl_strerror): Instead of returning a const
53381         string from each and every "case", use a variable, and add a single
53382         cast after the switch.
53383
53384 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
53385
53386         * lib/arpa_inet.in.h: Add extern "C" block for C++.
53387
53388 2009-01-16  Bruno Haible  <bruno@clisp.org>
53389
53390         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
53391         array initializer syntax that also works in C++ mode.
53392         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53393
53394 2009-01-16  Jim Meyering  <meyering@redhat.com>
53395
53396         poll: suppress a warning
53397         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
53398         to ignore "...unsigned expression < 0 is always false" warnings.
53399
53400 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
53401
53402         poll: remove declarations of unused variables
53403         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
53404         sockbuf and optlen.
53405
53406 2009-01-15  Bruno Haible  <bruno@clisp.org>
53407
53408         Make fflush-after-ungetc POSIX compliant on BSD systems.
53409         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
53410         (clear_ungetc_buffer): Implement also for other systems.
53411         (rpl_fflush): On glibc systems, invoke
53412         clear_ungetc_buffer_preserving_position. Otherwise, invoke
53413         clear_ungetc_buffer after fetching the stream's position, not before.
53414
53415 2009-01-15  Bruno Haible  <bruno@clisp.org>
53416
53417         Make fflush-after-ungetc POSIX compliant on glibc systems.
53418         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
53419         after ungetc.
53420         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
53421         (rpl_fflush): On glibc systems, simply call the system's fflush
53422         function after clearing the ungetc buffer.
53423         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
53424         Instead, lseek only to the end of file, then use the system's fseeko
53425         for the rest. On glibc systems, reset the EOF indicator bit.
53426
53427 2009-01-15  Jim Meyering  <meyering@redhat.com>
53428
53429         openmp.m4: revert quote-adding change, for portability to older autoconf
53430         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
53431         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
53432         Simon Josefsson noticed the problem when using autoconf-2.61.
53433
53434 2009-01-15  Bruno Haible  <bruno@clisp.org>
53435
53436         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
53437         * tests/test-fflush2.c (ASSERT): Always fail.
53438         (main): Add two tests for fflush() after ungetc(), taking into account
53439         the Austin Group's clarification.
53440         Suggested by Eric Blake.
53441
53442 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
53443
53444         mktime.m4: remove K&R-style function prototypes
53445         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
53446         for the Sun C++ compiler.
53447
53448 2009-01-14  Bruno Haible  <bruno@clisp.org>
53449
53450         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
53451         while including <wchar.h>.
53452         * lib/wchar.in.h: In two particular situations on HP-UX, include only
53453         the system's <wchar.h> file.
53454         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53455
53456 2009-01-14  Bruno Haible  <bruno@clisp.org>
53457
53458         * m4/csharp.m4: Don't mention gettext on the serial number line.
53459         * m4/csharpexec.m4: Likewise.
53460         * m4/eaccess.m4: Likewise.
53461         * m4/javaexec.m4: Likewise.
53462         * m4/sig_atomic_t.m4: Likewise.
53463         * m4/tmpdir.m4: Likewise.
53464         * m4/intldir.m4: Bump gettext version.
53465         * m4/lib-ld.m4: Likewise.
53466
53467 2009-01-14  Bruno Haible  <bruno@clisp.org>
53468
53469         * lib/progname.c (set_program_name): Add more comments.
53470         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
53471
53472 2009-01-14  Simon Josefsson  <simon@josefsson.org>
53473
53474         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
53475         were sys/stat.h does not define it.
53476
53477 2009-01-14  Jim Meyering  <meyering@redhat.com>
53478
53479         many *.m4 files: improve m4 quoting
53480         99% of this change was performed by running the following commands:
53481         git ls-files | grep '\.m4$' | xargs perl -pi \
53482           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
53483           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
53484           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
53485           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
53486         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
53487         The remainder were to add Copyright dates, increment serial numbers,
53488         undo some changes in comments, exclude m4/intl.m4, and add quotes
53489         around the "1" in ",1" where the unusual spacing prohibited the
53490         above regexps from doing the job.  For more details, see
53491         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
53492         * m4/acl.m4: Modified.
53493         * m4/afs.m4: Likewise.
53494         * m4/alloca.m4: Likewise.
53495         * m4/argp.m4: Likewise.
53496         * m4/argz.m4: Likewise.
53497         * m4/atexit.m4: Likewise.
53498         * m4/bison-i18n.m4: Likewise.
53499         * m4/bison.m4: Likewise.
53500         * m4/byteswap.m4: Likewise.
53501         * m4/c-stack.m4: Likewise.
53502         * m4/c-strtod.m4: Likewise.
53503         * m4/calloc.m4: Likewise.
53504         * m4/canonicalize-lgpl.m4: Likewise.
53505         * m4/chown.m4: Likewise.
53506         * m4/clock_time.m4: Likewise.
53507         * m4/codeset.m4: Likewise.
53508         * m4/copy-file.m4: Likewise.
53509         * m4/csharp.m4: Likewise.
53510         * m4/csharpcomp.m4: Likewise.
53511         * m4/csharpexec.m4: Likewise.
53512         * m4/d-ino.m4: Likewise.
53513         * m4/d-type.m4: Likewise.
53514         * m4/dirfd.m4: Likewise.
53515         * m4/double-slash-root.m4: Likewise.
53516         * m4/eaccess.m4: Likewise.
53517         * m4/eealloc.m4: Likewise.
53518         * m4/environ.m4: Likewise.
53519         * m4/errno_h.m4: Likewise.
53520         * m4/euidaccess.m4: Likewise.
53521         * m4/execute.m4: Likewise.
53522         * m4/fatal-signal.m4: Likewise.
53523         * m4/fchdir.m4: Likewise.
53524         * m4/fcntl_h.m4: Likewise.
53525         * m4/fileblocks.m4: Likewise.
53526         * m4/filenamecat.m4: Likewise.
53527         * m4/findprog.m4: Likewise.
53528         * m4/flexmember.m4: Likewise.
53529         * m4/fnmatch.m4: Likewise.
53530         * m4/fopen.m4: Likewise.
53531         * m4/fpending.m4: Likewise.
53532         * m4/fprintf-posix.m4: Likewise.
53533         * m4/free.m4: Likewise.
53534         * m4/frexp.m4: Likewise.
53535         * m4/frexpl.m4: Likewise.
53536         * m4/fsusage.m4: Likewise.
53537         * m4/ftruncate.m4: Likewise.
53538         * m4/gc-camellia.m4: Likewise.
53539         * m4/gc-random.m4: Likewise.
53540         * m4/gc.m4: Likewise.
53541         * m4/getaddrinfo.m4: Likewise.
53542         * m4/getcwd-abort-bug.m4: Likewise.
53543         * m4/getcwd-path-max.m4: Likewise.
53544         * m4/getdate.m4: Likewise.
53545         * m4/getdomainname.m4: Likewise.
53546         * m4/getgroups.m4: Likewise.
53547         * m4/gethostname.m4: Likewise.
53548         * m4/gethrxtime.m4: Likewise.
53549         * m4/getline.m4: Likewise.
53550         * m4/getloadavg.m4: Likewise.
53551         * m4/getndelim2.m4: Likewise.
53552         * m4/getpass.m4: Likewise.
53553         * m4/gettext.m4: Likewise.
53554         * m4/gettime.m4: Likewise.
53555         * m4/gettimeofday.m4: Likewise.
53556         * m4/gnulib-common.m4: Likewise.
53557         * m4/group-member.m4: Likewise.
53558         * m4/host-os.m4: Likewise.
53559         * m4/iconv.m4: Likewise.
53560         * m4/iconv_open.m4: Likewise.
53561         * m4/inet_ntop.m4: Likewise.
53562         * m4/inet_pton.m4: Likewise.
53563         * m4/inline.m4: Likewise.
53564         * m4/intldir.m4: Likewise.
53565         * m4/intlmacosx.m4: Likewise.
53566         * m4/intmax.m4: Likewise.
53567         * m4/intmax_t.m4: Likewise.
53568         * m4/inttypes.m4: Likewise.
53569         * m4/inttypes_h.m4: Likewise.
53570         * m4/inttypes-pri.m4: Likewise.
53571         * m4/isapipe.m4: Likewise.
53572         * m4/isnand.m4: Likewise.
53573         * m4/isnanf.m4: Likewise.
53574         * m4/isnanl.m4: Likewise.
53575         * m4/javacomp.m4: Likewise.
53576         * m4/javaexec.m4: Likewise.
53577         * m4/jm-winsz1.m4: Likewise.
53578         * m4/jm-winsz2.m4: Likewise.
53579         * m4/lchown.m4: Likewise.
53580         * m4/lcmessage.m4: Likewise.
53581         * m4/ldexpl.m4: Likewise.
53582         * m4/lib-ld.m4: Likewise.
53583         * m4/lib-link.m4: Likewise.
53584         * m4/libsigsegv.m4: Likewise.
53585         * m4/link-follow.m4: Likewise.
53586         * m4/localcharset.m4: Likewise.
53587         * m4/locale-fr.m4: Likewise.
53588         * m4/locale-ja.m4: Likewise.
53589         * m4/locale-tr.m4: Likewise.
53590         * m4/locale-zh.m4: Likewise.
53591         * m4/lock.m4: Likewise.
53592         * m4/longlong.m4: Likewise.
53593         * m4/ls-mntd-fs.m4: Likewise.
53594         * m4/lstat.m4: Likewise.
53595         * m4/malloc.m4: Likewise.
53596         * m4/mathl.m4: Likewise.
53597         * m4/mbrtowc.m4: Likewise.
53598         * m4/mbstate_t.m4: Likewise.
53599         * m4/mbswidth.m4: Likewise.
53600         * m4/memchr.m4: Likewise.
53601         * m4/memcmp.m4: Likewise.
53602         * m4/memcpy.m4: Likewise.
53603         * m4/memmem.m4: Likewise.
53604         * m4/memmove.m4: Likewise.
53605         * m4/mempcpy.m4: Likewise.
53606         * m4/memrchr.m4: Likewise.
53607         * m4/memset.m4: Likewise.
53608         * m4/minmax.m4: Likewise.
53609         * m4/mkdir-slash.m4: Likewise.
53610         * m4/mkdtemp.m4: Likewise.
53611         * m4/mktime.m4: Likewise.
53612         * m4/mmap-anon.m4: Likewise.
53613         * m4/mountlist.m4: Likewise.
53614         * m4/nanosleep.m4: Likewise.
53615         * m4/nls.m4: Likewise.
53616         * m4/nocrash.m4: Likewise.
53617         * m4/open.m4: Likewise.
53618         * m4/openat.m4: Likewise.
53619         * m4/openmp.m4: Likewise.
53620         * m4/pathmax.m4: Likewise.
53621         * m4/perl.m4: Likewise.
53622         * m4/physmem.m4: Likewise.
53623         * m4/pipe.m4: Likewise.
53624         * m4/po.m4: Likewise.
53625         * m4/poll.m4: Likewise.
53626         * m4/posixtm.m4: Likewise.
53627         * m4/posixver.m4: Likewise.
53628         * m4/printf-frexp.m4: Likewise.
53629         * m4/printf-frexpl.m4: Likewise.
53630         * m4/printf-posix.m4: Likewise.
53631         * m4/printf-posix-rpl.m4: Likewise.
53632         * m4/printf.m4: Likewise.
53633         * m4/progtest.m4: Likewise.
53634         * m4/putenv.m4: Likewise.
53635         * m4/readline.m4: Likewise.
53636         * m4/readlink.m4: Likewise.
53637         * m4/readutmp.m4: Likewise.
53638         * m4/realloc.m4: Likewise.
53639         * m4/regex.m4: Likewise.
53640         * m4/relocatable.m4: Likewise.
53641         * m4/relocatable-lib.m4: Likewise.
53642         * m4/rename-dest-slash.m4: Likewise.
53643         * m4/rename.m4: Likewise.
53644         * m4/rmdir-errno.m4: Likewise.
53645         * m4/rmdir.m4: Likewise.
53646         * m4/roundf.m4: Likewise.
53647         * m4/roundl.m4: Likewise.
53648         * m4/rpmatch.m4: Likewise.
53649         * m4/save-cwd.m4: Likewise.
53650         * m4/selinux-selinux-h.m4: Likewise.
53651         * m4/setenv.m4: Likewise.
53652         * m4/settime.m4: Likewise.
53653         * m4/sig2str.m4: Likewise.
53654         * m4/sig_atomic_t.m4: Likewise.
53655         * m4/signalblocking.m4: Likewise.
53656         * m4/signbit.m4: Likewise.
53657         * m4/sigpipe.m4: Likewise.
53658         * m4/sockets.m4: Likewise.
53659         * m4/sockpfaf.m4: Likewise.
53660         * m4/st_dm_mode.m4: Likewise.
53661         * m4/stat-time.m4: Likewise.
53662         * m4/stdbool.m4: Likewise.
53663         * m4/stdint.m4: Likewise.
53664         * m4/stdint_h.m4: Likewise.
53665         * m4/stpcpy.m4: Likewise.
53666         * m4/stpncpy.m4: Likewise.
53667         * m4/strcase.m4: Likewise.
53668         * m4/strchrnul.m4: Likewise.
53669         * m4/strcspn.m4: Likewise.
53670         * m4/strdup.m4: Likewise.
53671         * m4/strftime.m4: Likewise.
53672         * m4/strndup.m4: Likewise.
53673         * m4/strnlen.m4: Likewise.
53674         * m4/strpbrk.m4: Likewise.
53675         * m4/strptime.m4: Likewise.
53676         * m4/strsep.m4: Likewise.
53677         * m4/strtod.m4: Likewise.
53678         * m4/strtoimax.m4: Likewise.
53679         * m4/strtok_r.m4: Likewise.
53680         * m4/strtol.m4: Likewise.
53681         * m4/strtoll.m4: Likewise.
53682         * m4/strtoul.m4: Likewise.
53683         * m4/strtoull.m4: Likewise.
53684         * m4/strtoumax.m4: Likewise.
53685         * m4/strverscmp.m4: Likewise.
53686         * m4/threadlib.m4: Likewise.
53687         * m4/timegm.m4: Likewise.
53688         * m4/tm_gmtoff.m4: Likewise.
53689         * m4/tmpdir.m4: Likewise.
53690         * m4/tmpfile.m4: Likewise.
53691         * m4/tzset.m4: Likewise.
53692         * m4/uintmax_t.m4: Likewise.
53693         * m4/unlinkdir.m4: Likewise.
53694         * m4/unlocked-io.m4: Likewise.
53695         * m4/uptime.m4: Likewise.
53696         * m4/userspec.m4: Likewise.
53697         * m4/utimbuf.m4: Likewise.
53698         * m4/utime.m4: Likewise.
53699         * m4/utimes-null.m4: Likewise.
53700         * m4/utimes.m4: Likewise.
53701         * m4/vararrays.m4: Likewise.
53702         * m4/vasnprintf.m4: Likewise.
53703         * m4/vfprintf-posix.m4: Likewise.
53704         * m4/vprintf-posix.m4: Likewise.
53705         * m4/wait-process.m4: Likewise.
53706         * m4/wchar_t.m4: Likewise.
53707         * m4/wint_t.m4: Likewise.
53708         * m4/write-any-file.m4: Likewise.
53709         * m4/yield.m4: Likewise.
53710
53711 2009-01-13  Bruno Haible  <bruno@clisp.org>
53712
53713         Avoid test-copy-file.sh failures when ACL support insufficient.
53714         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
53715         TESTS_ENVIRONMENT.
53716         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
53717         Reported by Jim Meyering.
53718
53719 2009-01-13  Bruno Haible  <bruno@clisp.org>
53720
53721         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
53722         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
53723         * modules/unistdio/u8-printf-parse (Files): Likewise.
53724         * modules/unistdio/u32-printf-parse (Files): Likewise.
53725         * modules/unistdio/ulc-printf-parse (Files): Likewise.
53726
53727 2009-01-13  Simon Josefsson  <simon@josefsson.org>
53728
53729         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
53730         and m4/inttypes_h.m4 too.
53731
53732 2009-01-12  Eric Blake  <ebb9@byu.net>
53733
53734         tests: IRIX 6.2 cc can't compile -0.0 into .data
53735         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
53736         rather than at compile-time.
53737         * tests/test-floorl.c (minus_zero): Likewise.
53738         * tests/test-frexpl.c (minus_zero): Likewise.
53739         * tests/test-isnan.c (minus_zerol): Likewise.
53740         * tests/test-isnanl.h (minus_zero): Likewise.
53741         * tests/test-ldexpl.c (minus_zero): Likewise.
53742         * tests/test-roundl.c (minus_zero): Likewise.
53743         * tests/test-signbit.c (minus_zerol): Likewise.
53744         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
53745         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
53746         * tests/test-truncl.c (minus_zero): Likewise.
53747         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
53748         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
53749         Reported by Tom G. Christensen and Nelson H. F. Beebe.
53750
53751 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
53752
53753         regex: fix glibc bug 9697
53754         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
53755         handling.
53756
53757 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
53758
53759         regex: fix glibc bug 697
53760         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
53761         being NULL also if there are no backreferences.
53762
53763 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
53764
53765         regex: merge glibc changes
53766         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
53767         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
53768         re_string_skip_chars, re_string_reconstruct): Likewise.
53769         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
53770
53771 2009-01-07  Jim Meyering  <meyering@redhat.com>
53772
53773         poll: filter through cppi
53774         * lib/poll.c: Indent cpp directives to reflect nesting.
53775
53776 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
53777
53778         poll: don't return uninitialized
53779         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
53780
53781 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
53782
53783         avoid compile failure on AIX 6.1
53784         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
53785         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
53786
53787 2009-01-04  Jim Meyering  <meyering@redhat.com>
53788
53789         remove duplicate inclusion of <stdio.h>
53790         * tests/test-fprintf-posix.c: Likewise.
53791         * tests/test-printf-posix.c: Likewise.
53792         * tests/test-snprintf-posix.c: Likewise.
53793         * tests/test-sprintf-posix.c: Likewise.
53794         * tests/test-vasprintf-posix.c: Likewise.
53795         * tests/test-vfprintf-posix.c: Likewise.
53796         * tests/test-vprintf-posix.c: Likewise.
53797         * tests/test-vsnprintf-posix.c: Likewise.
53798         * tests/test-vsprintf-posix.c: Likewise.
53799
53800 2009-01-03  Jim Meyering  <meyering@redhat.com>
53801
53802         gnulib-tool: fix sed-based filtering
53803         * gnulib-tool (func_filter_filelist): Remove extra backslash
53804         in sed_fff_filter definition.
53805
53806 2009-01-02  Jim Meyering  <meyering@redhat.com>
53807
53808         strftime: avoid compilation failure on Solaris 2.6
53809         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
53810         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
53811         Don't #define mbrlen or mbsinit, since now they're guaranteed to
53812         be available.  Reported by Tom G. Christensen.  Details in
53813         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
53814
53815 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53816             Bruno Haible  <bruno@clisp.org>
53817
53818         Speed up gnulib-tool by doing more string processing through shell
53819         built-ins.
53820         * gnulib-tool (fast_func_append): New variable.
53821         (func_remove_prefix, func_remove_suffix): New functions.
53822         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
53823         (func_filter_filelist): New function.
53824         (func_get_dependencies): Use func_remove_suffix instead of sed.
53825         (func_get_automake_snippet): Use func_filter_filelist instead of a
53826         subshell and sed invocation.
53827
53828 2009-01-01  Bruno Haible  <bruno@clisp.org>
53829
53830         Fix a security bug.
53831         * gnulib-tool (func_import, import, update): Don't allow the characters
53832         '"', '$', '`', '\' in macro arguments that become part of commands that
53833         are evaluated.
53834
53835 2009-01-01  Bruno Haible  <bruno@clisp.org>
53836
53837         * gnulib-tool (func_reset_sigpipe): Add more comments.
53838
53839 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53840
53841         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
53842         func_emit_tests_Makefile_am, func_import): Abort loops early if we
53843         already know the answer.
53844
53845 2009-01-01  Jim Meyering  <meyering@redhat.com>
53846
53847         * lib/version-etc.c (version_etc_va): Update copyright year.
53848
53849 2008-12-30  Bruno Haible  <bruno@clisp.org>
53850
53851         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
53852         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
53853         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
53854
53855 2008-12-29  Eric Blake  <ebb9@byu.net>
53856
53857         multiarch: avoid autoconf AC_REQUIRE bug
53858         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
53859         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
53860         2.63 and older.
53861         Reported by Bruno Haible, and analyzed in
53862         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
53863
53864 2008-12-29  Bruno Haible  <bruno@clisp.org>
53865
53866         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
53867         files in subdirectories correctly.
53868         Reported by Ralf Wildenhues.
53869
53870 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53871
53872         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
53873         rather than 'join FILE -', for Solaris join.
53874
53875 2008-12-29  Bruno Haible  <bruno@clisp.org>
53876
53877         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
53878         quoting.
53879         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
53880         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
53881         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
53882         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
53883         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
53884         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
53885         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
53886         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
53887         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
53888         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
53889         * m4/nls.m4 (AM_NLS): Likewise.
53890         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
53891         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
53892         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
53893         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
53894         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
53895         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
53896         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
53897         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
53898         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
53899         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
53900         * m4/xsize.m4 (gl_XSIZE): Likewise.
53901         Suggested by Jim Meyering.
53902
53903 2008-11-17  Bruce Korb  <bkorb@gnu.org>
53904
53905         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
53906         * lib/parse-duration.c: use a switch instead of cascading if's.
53907
53908 2008-12-29  Eric Blake  <ebb9@byu.net>
53909
53910         wchar.h: supply WEOF on Irix 5.3
53911         * lib/wchar.in.h (wint_t): Also supply WEOF.
53912         * lib/wctype.in.h (wint_t): Likewise.
53913         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
53914         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
53915         Reported by Tom G. Christensen.
53916
53917 2008-12-26  Bruno Haible  <bruno@clisp.org>
53918
53919         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
53920         i486, i586, i686.
53921
53922 2008-12-26  Bruno Haible  <bruno@clisp.org>
53923
53924         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
53925
53926 2008-12-26  Bruno Haible  <bruno@clisp.org>
53927
53928         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
53929         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
53930         not __STDC_CONSTANT_MACROS.
53931         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
53932
53933 2008-12-25  Bruno Haible  <bruno@clisp.org>
53934
53935         Add support for universal builds to vasnprintf.
53936         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
53937         universal builds, guess no.
53938         * modules/vasnprintf-posix (Depends-on): Add multiarch.
53939         * modules/vasprintf-posix (Depends-on): Likewise.
53940         * modules/fprintf-posix (Depends-on): Likewise.
53941         * modules/vfprintf-posix (Depends-on): Likewise.
53942         * modules/snprintf-posix (Depends-on): Likewise.
53943         * modules/vsnprintf-posix (Depends-on): Likewise.
53944         * modules/sprintf-posix (Depends-on): Likewise.
53945         * modules/vsprintf-posix (Depends-on): Likewise.
53946         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
53947         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
53948         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
53949         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
53950         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
53951         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
53952         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
53953
53954         Add support for universal builds to <inttypes.h>.
53955         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
53956         _SCNu64_PREFIX): In Apple
53957         universal builds, define directly, using _LP64.
53958         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
53959         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
53960         * modules/inttypes (Depends-on): Add multiarch.
53961         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
53962
53963         Add support for universal builds to <stdint.h>.
53964         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
53965         universal builds, define directly, using _LP64.
53966         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
53967         Apple universal builds, don't test for the size and suffix of ptrdiff_t
53968         and size_t.
53969         * modules/stdint (Depends-on): Add multiarch.
53970         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
53971
53972         New module 'multiarch'.
53973         * modules/multiarch: New file.
53974         * m4/multiarch.m4: New file.
53975
53976 2008-12-25  Bruno Haible  <bruno@clisp.org>
53977
53978         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
53979
53980 2008-12-25  Bruno Haible  <bruno@clisp.org>
53981
53982         * modules/btowc (License): Relicense under LGPLv2+.
53983         * modules/mbsinit (License): Likewise.
53984         * modules/mbrtowc (License): Likewise.
53985         * modules/wcrtomb (License): Likewise.
53986         * modules/streq (License): Likewise.
53987         Reported by David Lutterkort <lutter@redhat.com>.
53988
53989 2008-12-23  Bruno Haible  <bruno@clisp.org>
53990
53991         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
53992
53993 2008-12-23  Bruno Haible  <bruno@clisp.org>
53994
53995         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
53996         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
53997         GETADDRINFO_LIB, not in LIBS.
53998         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
53999         * modules/canon-host (Link): Likewise.
54000         * NEWS: Mention the change.
54001         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
54002         GETADDRINFO_LIB.
54003
54004 2008-12-22  Bruno Haible  <bruno@clisp.org>
54005
54006         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
54007         * doc/posix-functions/iswalpha_l.texi: Likewise.
54008         * doc/posix-functions/iswblank_l.texi: Likewise.
54009         * doc/posix-functions/iswcntrl_l.texi: Likewise.
54010         * doc/posix-functions/iswctype_l.texi: Likewise.
54011         * doc/posix-functions/iswdigit_l.texi: Likewise.
54012         * doc/posix-functions/iswgraph_l.texi: Likewise.
54013         * doc/posix-functions/iswlower_l.texi: Likewise.
54014         * doc/posix-functions/iswprint_l.texi: Likewise.
54015         * doc/posix-functions/iswpunct_l.texi: Likewise.
54016         * doc/posix-functions/iswspace_l.texi: Likewise.
54017         * doc/posix-functions/iswupper_l.texi: Likewise.
54018         * doc/posix-functions/iswxdigit_l.texi: Likewise.
54019         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
54020         * doc/posix-functions/open_wmemstream.texi: Likewise.
54021         * doc/posix-functions/swscanf.texi: Likewise.
54022         * doc/posix-functions/towctrans_l.texi: Likewise.
54023         * doc/posix-functions/towlower.texi: Likewise.
54024         * doc/posix-functions/towlower_l.texi: Likewise.
54025         * doc/posix-functions/towupper.texi: Likewise.
54026         * doc/posix-functions/towupper_l.texi: Likewise.
54027         * doc/posix-functions/vfwprintf.texi: Likewise.
54028         * doc/posix-functions/vfwscanf.texi: Likewise.
54029         * doc/posix-functions/vswscanf.texi: Likewise.
54030         * doc/posix-functions/vwprintf.texi: Likewise.
54031         * doc/posix-functions/vwscanf.texi: Likewise.
54032         * doc/posix-functions/wcpcpy.texi: Likewise.
54033         * doc/posix-functions/wcpncpy.texi: Likewise.
54034         * doc/posix-functions/wcscasecmp.texi: Likewise.
54035         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
54036         * doc/posix-functions/wcscoll_l.texi: Likewise.
54037         * doc/posix-functions/wcsdup.texi: Likewise.
54038         * doc/posix-functions/wcsncasecmp.texi: Likewise.
54039         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
54040         * doc/posix-functions/wcsnlen.texi: Likewise.
54041         * doc/posix-functions/wcsnrtombs.texi: Likewise.
54042         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
54043         * doc/posix-functions/wctrans_l.texi: Likewise.
54044         * doc/posix-functions/wctype_l.texi: Likewise.
54045         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
54046         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
54047         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
54048         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
54049         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
54050         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
54051         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
54052         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
54053         * doc/glibc-functions/wcschrnul.texi: Likewise.
54054         * doc/glibc-functions/wcsftime_l.texi: Likewise.
54055         * doc/glibc-functions/wcstod_l.texi: Likewise.
54056         * doc/glibc-functions/wcstof_l.texi: Likewise.
54057         * doc/glibc-functions/wcstol_l.texi: Likewise.
54058         * doc/glibc-functions/wcstold_l.texi: Likewise.
54059         * doc/glibc-functions/wcstoll_l.texi: Likewise.
54060         * doc/glibc-functions/wcstoq.texi: Likewise.
54061         * doc/glibc-functions/wcstoul_l.texi: Likewise.
54062         * doc/glibc-functions/wcstoull_l.texi: Likewise.
54063         * doc/glibc-functions/wcstouq.texi: Likewise.
54064         * doc/glibc-functions/wmempcpy.texi: Likewise.
54065
54066 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
54067             Eric Blake  <ebb9@byu.net>
54068             Paolo Bonzini  <bonzini@gnu.org>
54069             Bruno Haible  <bruno@clisp.org>
54070
54071         Make c-stack work on Haiku.
54072         * lib/c-stack.c (SA_ONSTACK): Define fallback.
54073         (c_stack_action): Use SA_ONSTACK flag.
54074
54075 2008-12-22  Bruno Haible  <bruno@clisp.org>
54076
54077         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
54078
54079 2008-12-22  Bruno Haible  <bruno@clisp.org>
54080
54081         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
54082         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
54083         being overridden.
54084         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
54085         New macros.
54086         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
54087         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
54088         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
54089         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
54090
54091 2008-12-22  Bruno Haible  <bruno@clisp.org>
54092
54093         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
54094         from test code.
54095
54096 2008-12-22  Eric Blake  <ebb9@byu.net>
54097
54098         Avoid gcc warnings on cygwin.
54099         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
54100         Avoid unused variable.
54101         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
54102         Likewise.
54103
54104 2008-12-22  Bruno Haible  <bruno@clisp.org>
54105
54106         Remove HAVE_MBRTOWC conditionals.
54107         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
54108         (mbscasecmp): Assume mbrtowc function.
54109         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
54110         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
54111         * lib/mbschr.c: Include mbuiter.h unconditionally.
54112         (mbschr): Assume mbrtowc function.
54113         * lib/mbscspn.c: Include mbuiter.h unconditionally.
54114         (mbscspn): Assume mbrtowc function.
54115         * lib/mbslen.c: Include mbuiter.h unconditionally.
54116         (mbslen): Assume mbrtowc function.
54117         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
54118         (mbsncasecmp): Assume mbrtowc function.
54119         * lib/mbsnlen.c: Include mbiter.h unconditionally.
54120         (mbsnlen): Assume mbrtowc function.
54121         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
54122         (mbspbrk): Assume mbrtowc function.
54123         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
54124         (mbspcasecmp): Assume mbrtowc function.
54125         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
54126         (mbsrchr): Assume mbrtowc function.
54127         * lib/mbssep.c: Include mbuiter.h unconditionally.
54128         (mbssep): Assume mbrtowc function.
54129         * lib/mbsspn.c: Include mbuiter.h unconditionally.
54130         (mbsspn): Assume mbrtowc function.
54131         * lib/mbsstr.c: Include mbuiter.h unconditionally.
54132         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
54133         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
54134         (mbstok_r): Assume mbrtowc function.
54135         * lib/propername.c: Include mbuiter.h unconditionally.
54136         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
54137         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
54138         (trim2): Assume mbrtowc function.
54139         * lib/mbswidth.c (mbsinit): Remove fallback definition.
54140         (mbsnwidth): Assume mbrtowc function.
54141         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
54142         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
54143         fallback definitions.
54144         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
54145
54146 2008-12-22  Bruno Haible  <bruno@clisp.org>
54147
54148         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
54149
54150 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
54151
54152         * modules/regex: Request emulations for the mb*/wc* functions we need.
54153         * m4/regex.m4: Don't look for those functions here.
54154         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
54155
54156 2008-12-22  Bruno Haible  <bruno@clisp.org>
54157
54158         * modules/fnmatch (Depends-on): Remove duplicated dependency.
54159
54160 2008-12-21  Bruno Haible  <bruno@clisp.org>
54161
54162         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
54163         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
54164         (Include): Remove conditionalization.
54165         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
54166         (Include): Remove conditionalization.
54167         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
54168         (Include): Remove conditionalization.
54169         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
54170         * m4/mbfile.m4 (gl_MBFILE): Likewise.
54171         * NEWS: Mention the change.
54172         Reported by Alan Hourihane <alanh@fairlite.co.uk>
54173         via Sergey Poznyakoff <gray@gnu.org.ua>.
54174
54175 2008-12-21  Bruno Haible  <bruno@clisp.org>
54176
54177         * MODULES.html.sh (Extended multibyte and wide character utilities
54178         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
54179         wcrtomb, wcsrtombs.
54180         (Support for systems lacking POSIX:2008): Add accept, bind, close,
54181         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
54182         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
54183         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
54184
54185 2008-12-21  Bruno Haible  <bruno@clisp.org>
54186
54187         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
54188
54189 2008-12-21  Bruno Haible  <bruno@clisp.org>
54190
54191         * modules/wcsnrtombs-tests: New file.
54192         * tests/test-wcsnrtombs1.sh: New file.
54193         * tests/test-wcsnrtombs2.sh: New file.
54194         * tests/test-wcsnrtombs3.sh: New file.
54195         * tests/test-wcsnrtombs4.sh: New file.
54196         * tests/test-wcsnrtombs.c: New file.
54197
54198         New module 'wcsnrtombs'.
54199         * lib/wchar.in.h (wcsnrtombs): New declaration.
54200         * lib/wcsnrtombs.c: New file.
54201         * lib/wcsrtombs-state.c: New file.
54202         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
54203         (internal_state): Remove variable.
54204         * m4/wcsnrtombs.m4: New file.
54205         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
54206         compilation units.
54207         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
54208         HAVE_WCSNRTOMBS.
54209         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
54210         HAVE_WCSNRTOMBS.
54211         * modules/wcsnrtombs: New file.
54212         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
54213         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
54214
54215 2008-12-21  Bruno Haible  <bruno@clisp.org>
54216
54217         * modules/wcsrtombs-tests: New file.
54218         * tests/test-wcsrtombs1.sh: New file.
54219         * tests/test-wcsrtombs2.sh: New file.
54220         * tests/test-wcsrtombs3.sh: New file.
54221         * tests/test-wcsrtombs4.sh: New file.
54222         * tests/test-wcsrtombs.c: New file.
54223
54224         New module 'wcsrtombs'.
54225         * lib/wchar.in.h (wcsrtombs): New declaration.
54226         * lib/wcsrtombs.c: New file.
54227         * m4/wcsrtombs.m4: New file.
54228         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
54229         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
54230         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
54231         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
54232         * modules/wcsrtombs: New file.
54233         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
54234         bugs.
54235
54236 2008-12-21  Bruno Haible  <bruno@clisp.org>
54237
54238         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
54239         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
54240         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
54241         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
54242         if not correct.
54243         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
54244         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
54245         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
54246         m4/locale-zh.m4, m4/codeset.m4.
54247         * doc/posix-functions/wcrtomb.texi: Document the bug.
54248
54249 2008-12-21  Bruno Haible  <bruno@clisp.org>
54250
54251         Work around a btowc() bug on IRIX 6.5.
54252         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
54253         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
54254         REPLACE_WTOBC if not.
54255         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
54256         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
54257         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
54258
54259 2008-12-21  Bruno Haible  <bruno@clisp.org>
54260
54261         * modules/wcrtomb-tests: New file.
54262         * tests/test-wcrtomb.sh: New file.
54263         * tests/test-wcrtomb.c: New file.
54264
54265         New module 'wcrtomb'.
54266         * lib/wchar.in.h (wcrtomb): New declaration.
54267         * lib/wcrtomb.c: New file.
54268         * m4/wcrtomb.m4: New file.
54269         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
54270         HAVE_WCRTOMB.
54271         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
54272         HAVE_WCRTOMB.
54273         * modules/wcrtomb: New file.
54274         * doc/posix-functions/wcrtomb.texi: Mention the new module.
54275
54276 2008-12-21  Bruno Haible  <bruno@clisp.org>
54277
54278         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
54279         * modules/mbsrtowcs (Files): Likewise.
54280         * modules/wctob (Files): Likewise.
54281         * modules/c-strcase-tests (Files): Likewise.
54282         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
54283         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
54284         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
54285         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
54286         * modules/vasnprintf-posix-tests (Files): Likewise.
54287
54288 2008-12-21  William Pursell  <bill.pursell@gmail.com>
54289
54290         gitlog-to-changelog: pass all command-line arguments to git-log
54291         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
54292         it is sometimes convenient to filter the commits in various ways.
54293         gitlog-to-changelog only allows --since to specify a start date,
54294         but git-log itself supports many other filtering mechanisms.
54295         At the moment, I want to filter by branch name.  Rather than
54296         adding a --branch option to gitlog-to-changelog, it seems more
54297         flexible to simply pass all options directly to git-log and let
54298         git do the work.  Notice that this effectively makes --since a
54299         redundant option for gitlog-to-changelog, but removing it would
54300         require current usage to change since calls would then require
54301         an additional '--'.
54302
54303 2008-12-21  Bruno Haible  <bruno@clisp.org>
54304
54305         * modules/mbsnrtowcs-tests: New file.
54306         * tests/test-mbsnrtowcs1.sh: New file.
54307         * tests/test-mbsnrtowcs2.sh: New file.
54308         * tests/test-mbsnrtowcs3.sh: New file.
54309         * tests/test-mbsnrtowcs4.sh: New file.
54310         * tests/test-mbsnrtowcs.c: New file.
54311
54312         New module 'mbsnrtowcs'.
54313         * lib/wchar.in.h (mbsnrtowcs): New declaration.
54314         * lib/mbsnrtowcs.c: New file.
54315         * lib/mbsrtowcs-state.c: New file.
54316         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
54317         (internal_state): Remove variable.
54318         * m4/mbsnrtowcs.m4: New file.
54319         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
54320         compilation units.
54321         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
54322         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
54323         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
54324         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
54325         * modules/mbsnrtowcs: New file.
54326         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
54327         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
54328         portability problem.
54329
54330 2008-12-21  Bruno Haible  <bruno@clisp.org>
54331
54332         Work around mbsrtowcs bug.
54333         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
54334         (gl_FUNC_MBSRTOWCS): Invoke it.
54335         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
54336         m4/locale-zh.m4.
54337         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
54338
54339 2008-12-21  Bruno Haible  <bruno@clisp.org>
54340
54341         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
54342
54343 2008-12-21  Bruno Haible  <bruno@clisp.org>
54344
54345         Update doc for AIX.
54346         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
54347         16-bit wchar_t type.
54348         * doc/posix-functions/btowc.texi: Likewise.
54349         * doc/posix-functions/fgetwc.texi: Likewise.
54350         * doc/posix-functions/fgetws.texi: Likewise.
54351         * doc/posix-functions/fputwc.texi: Likewise.
54352         * doc/posix-functions/fputws.texi: Likewise.
54353         * doc/posix-functions/fwide.texi: Likewise.
54354         * doc/posix-functions/fwprintf.texi: Likewise.
54355         * doc/posix-functions/fwscanf.texi: Likewise.
54356         * doc/posix-functions/getwchar.texi: Likewise.
54357         * doc/posix-functions/getwc.texi: Likewise.
54358         * doc/posix-functions/iswalnum.texi: Likewise.
54359         * doc/posix-functions/iswalpha.texi: Likewise.
54360         * doc/posix-functions/iswblank.texi: Likewise.
54361         * doc/posix-functions/iswcntrl.texi: Likewise.
54362         * doc/posix-functions/iswctype.texi: Likewise.
54363         * doc/posix-functions/iswdigit.texi: Likewise.
54364         * doc/posix-functions/iswgraph.texi: Likewise.
54365         * doc/posix-functions/iswlower.texi: Likewise.
54366         * doc/posix-functions/iswprint.texi: Likewise.
54367         * doc/posix-functions/iswpunct.texi: Likewise.
54368         * doc/posix-functions/iswspace.texi: Likewise.
54369         * doc/posix-functions/iswupper.texi: Likewise.
54370         * doc/posix-functions/iswxdigit.texi: Likewise.
54371         * doc/posix-functions/mbrtowc.texi: Likewise.
54372         * doc/posix-functions/mbsrtowcs.texi: Likewise.
54373         * doc/posix-functions/mbstowcs.texi: Likewise.
54374         * doc/posix-functions/mbtowc.texi: Likewise.
54375         * doc/posix-functions/putwchar.texi: Likewise.
54376         * doc/posix-functions/putwc.texi: Likewise.
54377         * doc/posix-functions/swprintf.texi: Likewise.
54378         * doc/posix-functions/tolower.texi: Likewise.
54379         * doc/posix-functions/toupper.texi: Likewise.
54380         * doc/posix-functions/towctrans.texi: Likewise.
54381         * doc/posix-functions/ungetwc.texi: Likewise.
54382         * doc/posix-functions/vswprintf.texi: Likewise.
54383         * doc/posix-functions/wcrtomb.texi: Likewise.
54384         * doc/posix-functions/wcscat.texi: Likewise.
54385         * doc/posix-functions/wcschr.texi: Likewise.
54386         * doc/posix-functions/wcscmp.texi: Likewise.
54387         * doc/posix-functions/wcscoll.texi: Likewise.
54388         * doc/posix-functions/wcscpy.texi: Likewise.
54389         * doc/posix-functions/wcscspn.texi: Likewise.
54390         * doc/posix-functions/wcsftime.texi: Likewise.
54391         * doc/posix-functions/wcslen.texi: Likewise.
54392         * doc/posix-functions/wcsncat.texi: Likewise.
54393         * doc/posix-functions/wcsncmp.texi: Likewise.
54394         * doc/posix-functions/wcsncpy.texi: Likewise.
54395         * doc/posix-functions/wcspbrk.texi: Likewise.
54396         * doc/posix-functions/wcsrchr.texi: Likewise.
54397         * doc/posix-functions/wcsrtombs.texi: Likewise.
54398         * doc/posix-functions/wcsspn.texi: Likewise.
54399         * doc/posix-functions/wcsstr.texi: Likewise.
54400         * doc/posix-functions/wcstod.texi: Likewise.
54401         * doc/posix-functions/wcstof.texi: Likewise.
54402         * doc/posix-functions/wcstoimax.texi: Likewise.
54403         * doc/posix-functions/wcstok.texi: Likewise.
54404         * doc/posix-functions/wcstold.texi: Likewise.
54405         * doc/posix-functions/wcstoll.texi: Likewise.
54406         * doc/posix-functions/wcstol.texi: Likewise.
54407         * doc/posix-functions/wcstombs.texi: Likewise.
54408         * doc/posix-functions/wcstoull.texi: Likewise.
54409         * doc/posix-functions/wcstoul.texi: Likewise.
54410         * doc/posix-functions/wcstoumax.texi: Likewise.
54411         * doc/posix-functions/wcswidth.texi: Likewise.
54412         * doc/posix-functions/wcsxfrm.texi: Likewise.
54413         * doc/posix-functions/wctob.texi: Likewise.
54414         * doc/posix-functions/wctomb.texi: Likewise.
54415         * doc/posix-functions/wctrans.texi: Likewise.
54416         * doc/posix-functions/wctype.texi: Likewise.
54417         * doc/posix-functions/wcwidth.texi: Likewise.
54418         * doc/posix-functions/wmemchr.texi: Likewise.
54419         * doc/posix-functions/wmemcmp.texi: Likewise.
54420         * doc/posix-functions/wmemcpy.texi: Likewise.
54421         * doc/posix-functions/wmemmove.texi: Likewise.
54422         * doc/posix-functions/wmemset.texi: Likewise.
54423         * doc/posix-functions/wprintf.texi: Likewise.
54424         * doc/posix-functions/wscanf.texi: Likewise.
54425
54426 2008-12-21  Bruno Haible  <bruno@clisp.org>
54427
54428         Update doc for HP-UX 11.11.
54429         * doc/posix-functions/btowc.texi: Clarify that the function is missing
54430         in HP-UX version 11.00, not in all versions of HP-UX 11.
54431         * doc/posix-functions/fwide.texi: Likewise.
54432         * doc/posix-functions/fwprintf.texi: Likewise.
54433         * doc/posix-functions/fwscanf.texi: Likewise.
54434         * doc/posix-functions/inet_ntop.texi: Likewise.
54435         * doc/posix-functions/inet_pton.texi: Likewise.
54436         * doc/posix-functions/mbrlen.texi: Likewise.
54437         * doc/posix-functions/mbrtowc.texi: Likewise.
54438         * doc/posix-functions/mbsinit.texi: Likewise.
54439         * doc/posix-functions/mbsrtowcs.texi: Likewise.
54440         * doc/posix-functions/swprintf.texi: Likewise.
54441         * doc/posix-functions/swscanf.texi: Likewise.
54442         * doc/posix-functions/towctrans.texi: Likewise.
54443         * doc/posix-functions/vfwprintf.texi: Likewise.
54444         * doc/posix-functions/vswprintf.texi: Likewise.
54445         * doc/posix-functions/vwprintf.texi: Likewise.
54446         * doc/posix-functions/wcrtomb.texi: Likewise.
54447         * doc/posix-functions/wcsrtombs.texi: Likewise.
54448         * doc/posix-functions/wcsstr.texi: Likewise.
54449         * doc/posix-functions/wctob.texi: Likewise.
54450         * doc/posix-functions/wctrans.texi: Likewise.
54451         * doc/posix-functions/wmemchr.texi: Likewise.
54452         * doc/posix-functions/wmemcmp.texi: Likewise.
54453         * doc/posix-functions/wmemcpy.texi: Likewise.
54454         * doc/posix-functions/wmemmove.texi: Likewise.
54455         * doc/posix-functions/wmemset.texi: Likewise.
54456         * doc/posix-functions/wprintf.texi: Likewise.
54457         * doc/posix-functions/wscanf.texi: Likewise.
54458
54459 2008-12-21  Bruno Haible  <bruno@clisp.org>
54460
54461         Work around a portability problem.
54462         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
54463         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
54464
54465 2008-12-20  Bruno Haible  <bruno@clisp.org>
54466
54467         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
54468         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
54469         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
54470         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
54471         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
54472
54473         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
54474         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
54475         set.
54476         (GNULIB_defined_mbstate_t): New macro.
54477         (mbsinit): Redefine if REPLACE_MBSINIT is set.
54478         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
54479         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
54480         reuses the system's mbrtowc function but works around the bugs.
54481         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
54482         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
54483         macros.
54484         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
54485         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
54486         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
54487         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
54488         REPLACE_MBSINIT if mbsinit needs to be overridden.
54489         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
54490         REPLACE_MBSINIT, REPLACE_MBRTOWC.
54491         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
54492         REPLACE_MBSINIT, REPLACE_MBRTOWC.
54493         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
54494         m4/locale-zh.m4.
54495         (Depends): Add mbsinit.
54496         * modules/mbsinit (Depends): Add mbrtowc.
54497         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
54498
54499 2008-12-20  Bruno Haible  <bruno@clisp.org>
54500
54501         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
54502         so that there are no conversion errors on AIX.
54503         * tests/test-mbsrtowcs.c (main): LIkewise.
54504
54505 2008-12-20  Bruno Haible  <bruno@clisp.org>
54506
54507         Work around wctob bug on Solaris <= 9.
54508         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
54509         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
54510         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
54511         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
54512         * modules/wctob (Files): Add m4/locale-fr.m4.
54513         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
54514
54515 2008-12-20  Bruno Haible  <bruno@clisp.org>
54516
54517         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
54518         /dev/null.
54519         * tests/test-select-in.sh: Likewise.
54520         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
54521
54522 2008-12-20  Bruno Haible  <bruno@clisp.org>
54523
54524         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
54525         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
54526         Cygwin 1.5.x.
54527
54528 2008-12-20  Bruno Haible  <bruno@clisp.org>
54529
54530         Ensure mbstate_t is defined on HP-UX 11.11.
54531         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
54532         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
54533         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
54534         AC_USE_SYSTEM_EXTENSIONS.
54535         * modules/fnmatch (Depends-on): Add extensions.
54536         * modules/mbrlen (Depends-on): Likewise.
54537         * modules/mbrtowc (Depends-on): Likewise.
54538         * modules/mbsinit (Depends-on): Likewise.
54539         * modules/mbsrtowcs (Depends-on): Likewise.
54540         * modules/mbswidth (Depends-on): Likewise.
54541         * modules/quotearg (Depends-on): Likewise.
54542         * modules/strftime (Depends-on): Likewise.
54543
54544 2008-12-20  Bruno Haible  <bruno@clisp.org>
54545
54546         Ensure wctob is declared on IRIX 6.5.
54547         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
54548         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
54549         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
54550         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
54551         of HAVE_WCTOB.
54552         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
54553         HAVE_WCTOB.
54554         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
54555
54556 2008-12-19  Bruno Haible  <bruno@clisp.org>
54557
54558         * modules/mbsrtowcs-tests: New file.
54559         * tests/test-mbsrtowcs1.sh: New file.
54560         * tests/test-mbsrtowcs2.sh: New file.
54561         * tests/test-mbsrtowcs3.sh: New file.
54562         * tests/test-mbsrtowcs4.sh: New file.
54563         * tests/test-mbsrtowcs.c: New file.
54564
54565         New module 'mbsrtowcs'.
54566         * lib/wchar.in.h (mbsrtowcs): New declaration.
54567         * lib/mbsrtowcs.c: New file.
54568         * m4/mbsrtowcs.m4: New file.
54569         * modules/mbsrtowcs: New file.
54570         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
54571         HAVE_MBSRTOWCS.
54572         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
54573         HAVE_MBSRTOWCS.
54574         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
54575
54576 2008-12-19  Bruno Haible  <bruno@clisp.org>
54577
54578         New module 'mbrlen'.
54579         * lib/wchar.in.h (mbrlen): New declaration.
54580         * lib/mbrlen.c: New file.
54581         * m4/mbrlen.m4: New file.
54582         * modules/mbrlen: New file.
54583         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
54584         HAVE_MBRLEN.
54585         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
54586         HAVE_MBRLEN.
54587         * doc/posix-functions/mbrlen.texi: Document the new module.
54588
54589 2008-12-19  Bruno Haible  <bruno@clisp.org>
54590
54591         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
54592         * modules/mbrtowc (Depends-on): Add verify.
54593         Suggested by Paul Eggert.
54594
54595 2008-12-18  Bruno Haible  <bruno@clisp.org>
54596
54597         * modules/mbsinit-tests: New file.
54598         * tests/test-mbsinit.sh: New file.
54599         * tests/test-mbsinit.c: New file.
54600
54601 2008-12-18  Bruno Haible  <bruno@clisp.org>
54602
54603         * modules/mbrtowc-tests: New file.
54604         * tests/test-mbrtowc1.sh: New file.
54605         * tests/test-mbrtowc2.sh: New file.
54606         * tests/test-mbrtowc3.sh: New file.
54607         * tests/test-mbrtowc4.sh: New file.
54608         * tests/test-mbrtowc.c: New file.
54609
54610         New module 'mbrtowc'.
54611         * lib/wchar.in.h (mbstate_t): Override when the system does not have
54612         mbsinit and mbrtowc.
54613         (mbrtowc): New declaration.
54614         * lib/mbrtowc.c: New file.
54615         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
54616         * modules/mbrtowc: New file.
54617         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
54618         HAVE_MBRTOWC.
54619         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
54620         HAVE_MBRTOWC.
54621         * doc/posix-functions/mbrtowc.texi: Document the new module.
54622
54623 2008-12-18  Bruno Haible  <bruno@clisp.org>
54624
54625         New module 'wctob'.
54626         * lib/wchar.in.h (wctob): New declaration.
54627         * lib/wctob.c: New file.
54628         * m4/wctob.m4: New file.
54629         * modules/wctob: New file.
54630         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
54631         HAVE_WCTOB.
54632         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
54633         * doc/posix-functions/wctob.texi: Document the new module.
54634
54635 2008-12-18  Bruno Haible  <bruno@clisp.org>
54636
54637         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
54638         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
54639
54640 2008-12-18  Simon Josefsson  <simon@josefsson.org>
54641
54642         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
54643         G. Christensen" <tgc@jupiterrise.com>.
54644
54645         * lib/flock.c: Need to include errno.h.  Reported by "Tom
54646         G. Christensen" <tgc@jupiterrise.com>.
54647
54648         * lib/flock.c: Need to include string.h.  Reported by "Tom
54649         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
54650         <ebb9@byu.net>.
54651
54652 2008-12-18  Bruno Haible  <bruno@clisp.org>
54653
54654         * m4/locale-ja.m4: New file, from GNU gettext.
54655
54656 2008-12-17  Bruno Haible  <bruno@clisp.org>
54657
54658         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
54659         Suggested by Eric Blake.
54660
54661 2008-12-17  Bruno Haible  <bruno@clisp.org>
54662
54663         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
54664
54665 2008-12-17  Bruno Haible  <bruno@clisp.org>
54666
54667         * lib/mbsinit.c: Include verify.h. Verify an assumption.
54668         * modules/mbsinit (Depends-on): Add verify.
54669         Suggested by Paul Eggert.
54670
54671 2008-12-17  Bruno Haible  <bruno@clisp.org>
54672
54673         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
54674         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
54675         gl_FUNC_MBRTOWC.
54676         * m4/mbiter.m4 (gl_MBITER): LIkewise.
54677         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
54678         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
54679         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
54680         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
54681         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
54682         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
54683         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
54684         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
54685         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
54686         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
54687         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
54688         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
54689         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
54690         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
54691         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
54692         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
54693         * modules/trim (configure.ac): Likewise.
54694
54695 2008-12-17  Bruno Haible  <bruno@clisp.org>
54696
54697         * modules/btowc-tests: New file.
54698         * tests/test-btowc1.sh: New file.
54699         * tests/test-btowc2.sh: New file.
54700         * tests/test-btowc.c: New file.
54701
54702         New module 'btowc'.
54703         * lib/wchar.in.h (btowc): New declaration.
54704         * lib/btowc.c: New file.
54705         * m4/btowc.m4: New file.
54706         * modules/btowc: New file.
54707         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
54708         HAVE_BTOWC.
54709         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
54710         * doc/posix-functions/btowc.texi: Document the new module.
54711
54712 2008-12-17  Bruno Haible  <bruno@clisp.org>
54713
54714         New module 'mbsinit'.
54715         * lib/wchar.in.h (mbsinit): New declaration.
54716         * lib/mbsinit.c: New file.
54717         * m4/mbsinit.m4: New file.
54718         * modules/mbsinit: New file.
54719         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
54720         HAVE_MBSINIT.
54721         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
54722         HAVE_MBSINIT.
54723         * doc/posix-functions/mbsinit.texi: Document the new module.
54724
54725 2008-12-16  Bruno Haible  <bruno@clisp.org>
54726
54727         * lib/unistd.in.h: Add comment.
54728         * tests/test-environ.c: Don't include <stdlib.h>.
54729
54730 2008-12-16  Bruno Haible  <bruno@clisp.org>
54731
54732         * lib/parse-duration.h (parse_duration): Document return value
54733         convention.
54734         * lib/parse-duration.c: Include specification header first. Add
54735         comments.
54736         (_): Remove macro.
54737         (parse_year_month_day, parse_hour_minute_second): Move side effects
54738         outside of strchr call.
54739         (parse_non_iso8601): Move side effects outside of isspace call.
54740         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
54741         call.
54742
54743 2008-12-16  Bruno Haible  <bruno@clisp.org>
54744
54745         * tests/test-parse-duration.sh: Produce no output when the test
54746         succeeds.
54747
54748 2008-12-16  Bruno Haible  <bruno@clisp.org>
54749
54750         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
54751         expressions.
54752
54753 2008-12-15  Bruno Haible  <bruno@clisp.org>
54754
54755         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
54756         * doc/glibc-functions/flistxattr.texi: Likewise.
54757         * doc/glibc-functions/fopencookie.texi: Likewise.
54758         * doc/glibc-functions/fremovexattr.texi: Likewise.
54759         * doc/glibc-functions/fsetxattr.texi: Likewise.
54760         * doc/glibc-functions/getxattr.texi: Likewise.
54761         * doc/glibc-functions/lgetxattr.texi: Likewise.
54762         * doc/glibc-functions/listxattr.texi: Likewise.
54763         * doc/glibc-functions/llistxattr.texi: Likewise.
54764         * doc/glibc-functions/lremovexattr.texi: Likewise.
54765         * doc/glibc-functions/lsetxattr.texi: Likewise.
54766         * doc/glibc-functions/removexattr.texi: Likewise.
54767         * doc/glibc-functions/setxattr.texi: Likewise.
54768         * doc/posix-functions/open_memstream.texi: Likewise.
54769
54770 2008-12-15  Eric Blake  <ebb9@byu.net>
54771
54772         Update doc for cygwin 1.7.
54773         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
54774         functions.
54775         * doc/posix-functions/fchmodat.texi: Likewise.
54776         * doc/posix-functions/fchownat.texi: Likewise.
54777         * doc/posix-functions/fdopendir.texi: Likewise.
54778         * doc/posix-functions/fmemopen.texi: Likewise.
54779         * doc/posix-functions/freeaddrinfo.texi: Likewise.
54780         * doc/posix-functions/fstatat.texi: Likewise.
54781         * doc/posix-functions/futimens.texi: Likewise.
54782         * doc/posix-functions/gai_strerror.texi: Likewise.
54783         * doc/posix-functions/getaddrinfo.texi: Likewise.
54784         * doc/posix-functions/getnameinfo.texi: Likewise.
54785         * doc/posix-functions/if_freenameindex.texi: Likewise.
54786         * doc/posix-functions/if_indextoname.texi: Likewise.
54787         * doc/posix-functions/if_nameindex.texi: Likewise.
54788         * doc/posix-functions/if_nametoindex.texi: Likewise.
54789         * doc/posix-functions/insque.texi: Likewise.
54790         * doc/posix-functions/linkat.texi: Likewise.
54791         * doc/posix-functions/llrint.texi: Likewise.
54792         * doc/posix-functions/llrintf.texi: Likewise.
54793         * doc/posix-functions/llrintl.texi: Likewise.
54794         * doc/posix-functions/lockf.texi: Likewise.
54795         * doc/posix-functions/lrintl.texi: Likewise.
54796         * doc/posix-functions/mkdirat.texi: Likewise.
54797         * doc/posix-functions/mkfifoat.texi: Likewise.
54798         * doc/posix-functions/mknodat.texi: Likewise.
54799         * doc/posix-functions/mq_close.texi: Likewise.
54800         * doc/posix-functions/mq_getattr.texi: Likewise.
54801         * doc/posix-functions/mq_notify.texi: Likewise.
54802         * doc/posix-functions/mq_open.texi: Likewise.
54803         * doc/posix-functions/mq_receive.texi: Likewise.
54804         * doc/posix-functions/mq_send.texi: Likewise.
54805         * doc/posix-functions/mq_setattr.texi: Likewise.
54806         * doc/posix-functions/mq_timedreceive.texi: Likewise.
54807         * doc/posix-functions/mq_timedsend.texi: Likewise.
54808         * doc/posix-functions/mq_unlink.texi: Likewise.
54809         * doc/posix-functions/open_memstream.texi: Likewise.
54810         * doc/posix-functions/openat.texi: Likewise.
54811         * doc/posix-functions/posix_fadvise.texi: Likewise.
54812         * doc/posix-functions/posix_fallocate.texi: Likewise.
54813         * doc/posix-functions/posix_madvise.texi: Likewise.
54814         * doc/posix-functions/posix_memalign.texi: Likewise.
54815         * doc/posix-functions/posix_openpt.texi: Likewise.
54816         * doc/posix-functions/readlinkat.texi: Likewise.
54817         * doc/posix-functions/remque.texi: Likewise.
54818         * doc/posix-functions/renameat.texi: Likewise.
54819         * doc/posix-functions/rintl.texi: Likewise.
54820         * doc/posix-functions/sem_unlink.texi: Likewise.
54821         * doc/posix-functions/shm_open.texi: Likewise.
54822         * doc/posix-functions/shm_unlink.texi: Likewise.
54823         * doc/posix-functions/signgam.texi: Likewise.
54824         * doc/posix-functions/sigset.texi: Likewise.
54825         * doc/posix-functions/stpcpy.texi: Likewise.
54826         * doc/posix-functions/stpncpy.texi: Likewise.
54827         * doc/posix-functions/strerror.texi: Likewise.
54828         * doc/posix-functions/strtod.texi: Likewise.
54829         * doc/posix-functions/symlinkat.texi: Likewise.
54830         * doc/posix-functions/unlinkat.texi: Likewise.
54831         * doc/posix-functions/utimensat.texi: Likewise.
54832         * doc/glibc-functions/bindresvport.texi: Likewise.
54833         * doc/glibc-functions/dn_expand.texi: Likewise.
54834         * doc/glibc-functions/exp10.texi: Likewise.
54835         * doc/glibc-functions/exp10f.texi: Likewise.
54836         * doc/glibc-functions/fgetxattr.texi: Likewise.
54837         * doc/glibc-functions/flistxattr.texi: Likewise.
54838         * doc/glibc-functions/fopencookie.texi: Likewise.
54839         * doc/glibc-functions/freeifaddrs.texi: Likewise.
54840         * doc/glibc-functions/fremovexattr.texi: Likewise.
54841         * doc/glibc-functions/fsetxattr.texi: Likewise.
54842         * doc/glibc-functions/getifaddrs.texi: Likewise.
54843         * doc/glibc-functions/getxattr.texi: Likewise.
54844         * doc/glibc-functions/lgetxattr.texi: Likewise.
54845         * doc/glibc-functions/listxattr.texi: Likewise.
54846         * doc/glibc-functions/llistxattr.texi: Likewise.
54847         * doc/glibc-functions/lremovexattr.texi: Likewise.
54848         * doc/glibc-functions/lsetxattr.texi: Likewise.
54849         * doc/glibc-functions/pow10.texi: Likewise.
54850         * doc/glibc-functions/pow10f.texi: Likewise.
54851         * doc/glibc-functions/rcmd_af.texi: Likewise.
54852         * doc/glibc-functions/removexattr.texi: Likewise.
54853         * doc/glibc-functions/res_init.texi: Likewise.
54854         * doc/glibc-functions/res_mkquery.texi: Likewise.
54855         * doc/glibc-functions/res_query.texi: Likewise.
54856         * doc/glibc-functions/res_querydomain.texi: Likewise.
54857         * doc/glibc-functions/res_send.texi: Likewise.
54858         * doc/glibc-functions/rresvport_af.texi: Likewise.
54859         * doc/glibc-functions/setxattr.texi: Likewise.
54860         * doc/glibc-functions/strcasestr.texi: Likewise.
54861
54862 2008-12-15  Bruno Haible  <bruno@clisp.org>
54863
54864         Fix compilation error on OSF/1 4.0.
54865         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
54866         <sys/time.h>, simply delegate to the system header.
54867         Reported by Daniel Richard G. <oss@teragram.com>.
54868
54869 2008-12-15  Bruno Haible  <bruno@clisp.org>
54870
54871         * doc/posix-functions/openat.texi: Mention the 'openat' module.
54872         * doc/posix-functions/fchmodat.texi: Likewise.
54873         * doc/posix-functions/fchownat.texi: Likewise.
54874         * doc/posix-functions/fdopendir.texi: Likewise.
54875         * doc/posix-functions/fstatat.texi: Likewise.
54876         * doc/posix-functions/mkdirat.texi: Likewise.
54877         * doc/posix-functions/unlinkat.texi: Likewise.
54878
54879 2008-12-14  Bruno Haible  <bruno@clisp.org>
54880
54881         Update doc for POSIX:2008.
54882         * doc/posix-functions/faccessat.texi: New file.
54883         * doc/posix-functions/fchmodat.texi: New file.
54884         * doc/posix-functions/fchownat.texi: New file.
54885         * doc/posix-functions/fdopendir.texi: New file.
54886         * doc/posix-functions/fstatat.texi: New file.
54887         * doc/posix-functions/futimens.texi: New file.
54888         * doc/posix-functions/linkat.texi: New file.
54889         * doc/posix-functions/mkdirat.texi: New file.
54890         * doc/posix-functions/mkfifoat.texi: New file.
54891         * doc/posix-functions/mknodat.texi: New file.
54892         * doc/posix-functions/open_wmemstream.texi: New file.
54893         * doc/posix-functions/openat.texi: New file.
54894         * doc/posix-functions/psiginfo.texi: New file.
54895         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
54896         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
54897         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
54898         * doc/posix-functions/readlinkat.texi: New file.
54899         * doc/posix-functions/renameat.texi: New file.
54900         * doc/posix-functions/strerror_l.texi: New file.
54901         * doc/posix-functions/symlinkat.texi: New file.
54902         * doc/posix-functions/unlinkat.texi: New file.
54903         * doc/posix-functions/utimensat.texi: New file.
54904         * doc/gnulib.texi (Function Substitutes): Add these subsections.
54905
54906 2008-12-14  Bruno Haible  <bruno@clisp.org>
54907
54908         Update doc for POSIX:2008.
54909         * doc/posix-functions/alphasort.texi: Renamed from
54910         doc/glibc-functions/alphasort.texi.
54911         * doc/posix-functions/dirfd.texi: Renamed from
54912         doc/glibc-functions/dirfd.texi.
54913         * doc/posix-functions/dprintf.texi: Renamed from
54914         doc/glibc-functions/dprintf.texi.
54915         * doc/posix-functions/duplocale.texi: Renamed from
54916         doc/glibc-functions/duplocale.texi.
54917         * doc/posix-functions/fexecve.texi: Renamed from
54918         doc/glibc-functions/fexecve.texi.
54919         * doc/posix-functions/fmemopen.texi: Renamed from
54920         doc/glibc-functions/fmemopen.texi.
54921         * doc/posix-functions/freelocale.texi: Renamed from
54922         doc/glibc-functions/freelocale.texi.
54923         * doc/posix-functions/getdate_err.texi: Renamed from
54924         doc/glibc-functions/getdate_err.texi.
54925         * doc/posix-functions/isalnum_l.texi: Renamed from
54926         doc/glibc-functions/isalnum_l.texi.
54927         * doc/posix-functions/isalpha_l.texi: Renamed from
54928         doc/glibc-functions/isalpha_l.texi.
54929         * doc/posix-functions/isblank_l.texi: Renamed from
54930         doc/glibc-functions/isblank_l.texi.
54931         * doc/posix-functions/iscntrl_l.texi: Renamed from
54932         doc/glibc-functions/iscntrl_l.texi.
54933         * doc/posix-functions/isdigit_l.texi: Renamed from
54934         doc/glibc-functions/isdigit_l.texi.
54935         * doc/posix-functions/isgraph_l.texi: Renamed from
54936         doc/glibc-functions/isgraph_l.texi.
54937         * doc/posix-functions/islower_l.texi: Renamed from
54938         doc/glibc-functions/islower_l.texi.
54939         * doc/posix-functions/isprint_l.texi: Renamed from
54940         doc/glibc-functions/isprint_l.texi.
54941         * doc/posix-functions/ispunct_l.texi: Renamed from
54942         doc/glibc-functions/ispunct_l.texi.
54943         * doc/posix-functions/isspace_l.texi: Renamed from
54944         doc/glibc-functions/isspace_l.texi.
54945         * doc/posix-functions/isupper_l.texi: Renamed from
54946         doc/glibc-functions/isupper_l.texi.
54947         * doc/posix-functions/iswalnum_l.texi: Renamed from
54948         doc/glibc-functions/iswalnum_l.texi.
54949         * doc/posix-functions/iswalpha_l.texi: Renamed from
54950         doc/glibc-functions/iswalpha_l.texi.
54951         * doc/posix-functions/iswblank_l.texi: Renamed from
54952         doc/glibc-functions/iswblank_l.texi.
54953         * doc/posix-functions/iswcntrl_l.texi: Renamed from
54954         doc/glibc-functions/iswcntrl_l.texi.
54955         * doc/posix-functions/iswctype_l.texi: Renamed from
54956         doc/glibc-functions/iswctype_l.texi.
54957         * doc/posix-functions/iswdigit_l.texi: Renamed from
54958         doc/glibc-functions/iswdigit_l.texi.
54959         * doc/posix-functions/iswgraph_l.texi: Renamed from
54960         doc/glibc-functions/iswgraph_l.texi.
54961         * doc/posix-functions/iswlower_l.texi: Renamed from
54962         doc/glibc-functions/iswlower_l.texi.
54963         * doc/posix-functions/iswprint_l.texi: Renamed from
54964         doc/glibc-functions/iswprint_l.texi.
54965         * doc/posix-functions/iswpunct_l.texi: Renamed from
54966         doc/glibc-functions/iswpunct_l.texi.
54967         * doc/posix-functions/iswspace_l.texi: Renamed from
54968         doc/glibc-functions/iswspace_l.texi.
54969         * doc/posix-functions/iswupper_l.texi: Renamed from
54970         doc/glibc-functions/iswupper_l.texi.
54971         * doc/posix-functions/iswxdigit_l.texi: Renamed from
54972         doc/glibc-functions/iswxdigit_l.texi.
54973         * doc/posix-functions/isxdigit_l.texi: Renamed from
54974         doc/glibc-functions/isxdigit_l.texi.
54975         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
54976         doc/glibc-functions/mbsnrtowcs.texi.
54977         * doc/posix-functions/mkdtemp.texi: Renamed from
54978         doc/glibc-functions/mkdtemp.texi.
54979         * doc/posix-functions/newlocale.texi: Renamed from
54980         doc/glibc-functions/newlocale.texi.
54981         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
54982         doc/glibc-functions/nl_langinfo_l.texi.
54983         * doc/posix-functions/open_memstream.texi: Renamed from
54984         doc/glibc-functions/open_memstream.texi.
54985         * doc/posix-functions/opterr.texi: Renamed from
54986         doc/glibc-functions/opterr.texi.
54987         * doc/posix-functions/optind.texi: Renamed from
54988         doc/glibc-functions/optind.texi.
54989         * doc/posix-functions/optopt.texi: Renamed from
54990         doc/glibc-functions/optopt.texi.
54991         * doc/posix-functions/psignal.texi: Renamed from
54992         doc/glibc-functions/psignal.texi.
54993         * doc/posix-functions/scandir.texi: Renamed from
54994         doc/glibc-functions/scandir.texi.
54995         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
54996         doc/glibc-functions/sched_get_priority_min.texi.
54997         * doc/posix-functions/signgam.texi: Renamed from
54998         doc/glibc-functions/signgam.texi.
54999         * doc/posix-functions/stpcpy.texi: Renamed from
55000         doc/glibc-functions/stpcpy.texi.
55001         * doc/posix-functions/stpncpy.texi: Renamed from
55002         doc/glibc-functions/stpncpy.texi.
55003         * doc/posix-functions/strcasecmp_l.texi: Renamed from
55004         doc/glibc-functions/strcasecmp_l.texi.
55005         * doc/posix-functions/strcoll_l.texi: Renamed from
55006         doc/glibc-functions/strcoll_l.texi.
55007         * doc/posix-functions/strfmon_l.texi: Renamed from
55008         doc/glibc-functions/strfmon_l.texi.
55009         * doc/posix-functions/strftime_l.texi: Renamed from
55010         doc/glibc-functions/strftime_l.texi.
55011         * doc/posix-functions/strncasecmp_l.texi: Renamed from
55012         doc/glibc-functions/strncasecmp_l.texi.
55013         * doc/posix-functions/strndup.texi: Renamed from
55014         doc/glibc-functions/strndup.texi.
55015         * doc/posix-functions/strnlen.texi: Renamed from
55016         doc/glibc-functions/strnlen.texi.
55017         * doc/posix-functions/strsignal.texi: Renamed from
55018         doc/glibc-functions/strsignal.texi.
55019         * doc/posix-functions/strxfrm_l.texi: Renamed from
55020         doc/glibc-functions/strxfrm_l.texi.
55021         * doc/posix-functions/timer_gettime.texi: Renamed from
55022         doc/glibc-functions/timer_gettime.texi.
55023         * doc/posix-functions/tolower_l.texi: Renamed from
55024         doc/glibc-functions/tolower_l.texi.
55025         * doc/posix-functions/toupper_l.texi: Renamed from
55026         doc/glibc-functions/toupper_l.texi.
55027         * doc/posix-functions/towctrans_l.texi: Renamed from
55028         doc/glibc-functions/towctrans_l.texi.
55029         * doc/posix-functions/towlower_l.texi: Renamed from
55030         doc/glibc-functions/towlower_l.texi.
55031         * doc/posix-functions/towupper_l.texi: Renamed from
55032         doc/glibc-functions/towupper_l.texi.
55033         * doc/posix-functions/uselocale.texi: Renamed from
55034         doc/glibc-functions/uselocale.texi.
55035         * doc/posix-functions/vdprintf.texi: Renamed from
55036         doc/glibc-functions/vdprintf.texi.
55037         * doc/posix-functions/wcpcpy.texi:
55038         Renamed from doc/glibc-functions/wcpcpy.texi.
55039         * doc/posix-functions/wcpncpy.texi: Renamed from
55040         doc/glibc-functions/wcpncpy.texi.
55041         * doc/posix-functions/wcscasecmp.texi: Renamed from
55042         doc/glibc-functions/wcscasecmp.texi.
55043         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
55044         doc/glibc-functions/wcscasecmp_l.texi.
55045         * doc/posix-functions/wcscoll_l.texi: Renamed from
55046         doc/glibc-functions/wcscoll_l.texi.
55047         * doc/posix-functions/wcsdup.texi: Renamed from
55048         doc/glibc-functions/wcsdup.texi.
55049         * doc/posix-functions/wcsncasecmp.texi: Renamed from
55050         doc/glibc-functions/wcsncasecmp.texi.
55051         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
55052         doc/glibc-functions/wcsncasecmp_l.texi.
55053         * doc/posix-functions/wcsnlen.texi: Renamed from
55054         doc/glibc-functions/wcsnlen.texi.
55055         * doc/posix-functions/wcsnrtombs.texi: Renamed from
55056         doc/glibc-functions/wcsnrtombs.texi.
55057         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
55058         doc/glibc-functions/wcsxfrm_l.texi.
55059         * doc/posix-functions/wctrans_l.texi: Renamed from
55060         doc/glibc-functions/wctrans_l.texi.
55061         * doc/posix-functions/wctype_l.texi: Renamed from
55062         doc/glibc-functions/wctype_l.texi.
55063         * doc/gnulib.texi (Function Substitutes): Add these subsections.
55064         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
55065         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
55066         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
55067         these subsections.
55068         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
55069         Remove sections.
55070
55071 2008-12-14  Bruno Haible  <bruno@clisp.org>
55072
55073         Update doc for POSIX:2008.
55074         * doc/posix-functions/*.texi: Update URL of POSIX specification.
55075
55076 2008-12-14  Bruno Haible  <bruno@clisp.org>
55077
55078         Update doc for POSIX:2008.
55079         * doc/pastposix-functions/bcmp.texi: Renamed from
55080         doc/posix-functions/bcmp.texi.
55081         * doc/pastposix-functions/bcopy.texi: Renamed from
55082         doc/posix-functions/bcopy.texi.
55083         * doc/pastposix-functions/bsd_signal.texi: Renamed from
55084         doc/posix-functions/bsd_signal.texi.
55085         * doc/pastposix-functions/bzero.texi: Renamed from
55086         doc/posix-functions/bzero.texi.
55087         * doc/pastposix-functions/ecvt.texi: Renamed from
55088         doc/posix-functions/ecvt.texi.
55089         * doc/pastposix-functions/fcvt.texi: Renamed from
55090         doc/posix-functions/fcvt.texi.
55091         * doc/pastposix-functions/ftime.texi: Renamed from
55092         doc/posix-functions/ftime.texi.
55093         * doc/pastposix-functions/gcvt.texi: Renamed from
55094         doc/posix-functions/gcvt.texi.
55095         * doc/pastposix-functions/getcontext.texi: Renamed from
55096         doc/posix-functions/getcontext.texi.
55097         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
55098         doc/posix-functions/gethostbyaddr.texi.
55099         * doc/pastposix-functions/gethostbyname.texi: Renamed from
55100         doc/posix-functions/gethostbyname.texi.
55101         * doc/pastposix-functions/getwd.texi: Renamed from
55102         doc/posix-functions/getwd.texi.
55103         * doc/pastposix-functions/h_errno.texi: Renamed from
55104         doc/posix-functions/h_errno.texi.
55105         * doc/pastposix-functions/index.texi: Renamed from
55106         doc/posix-functions/index.texi.
55107         * doc/pastposix-functions/makecontext.texi: Renamed from
55108         doc/posix-functions/makecontext.texi.
55109         * doc/pastposix-functions/mktemp.texi: Renamed from
55110         doc/posix-functions/mktemp.texi.
55111         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
55112         doc/posix-functions/pthread_attr_getstackaddr.texi.
55113         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
55114         doc/posix-functions/pthread_attr_setstackaddr.texi.
55115         * doc/pastposix-functions/rindex.texi: Renamed from
55116         doc/posix-functions/rindex.texi.
55117         * doc/pastposix-functions/scalb.texi: Renamed from
55118         doc/posix-functions/scalb.texi.
55119         * doc/pastposix-functions/setcontext.texi: Renamed from
55120         doc/posix-functions/setcontext.texi.
55121         * doc/pastposix-functions/swapcontext.texi: Renamed from
55122         doc/posix-functions/swapcontext.texi.
55123         * doc/pastposix-functions/ualarm.texi: Renamed from
55124         doc/posix-functions/ualarm.texi.
55125         * doc/pastposix-functions/usleep.texi: Renamed from
55126         doc/posix-functions/usleep.texi.
55127         * doc/pastposix-functions/vfork.texi: Renamed from
55128         doc/posix-functions/vfork.texi.
55129         * doc/pastposix-functions/wcswcs.texi: Renamed from
55130         doc/posix-functions/wcswcs.texi.
55131         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
55132         (Function Substitutes): Update.
55133
55134 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55135
55136         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
55137         m4/strerror.m4.
55138
55139 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55140             Bruno Haible  <bruno@clisp.org>
55141
55142         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
55143
55144 2008-12-13  Bruno Haible  <bruno@clisp.org>
55145
55146         * modules/strtoull (Depends-on): Remove unistd.
55147
55148 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55149
55150         * modules/strtoull (Depends-on): Add stdlib.
55151
55152 2008-12-11  Simon Josefsson  <simon@josefsson.org>
55153
55154         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
55155
55156 2008-12-10  Jim Meyering  <meyering@redhat.com>
55157
55158         gl_ASSERT: don't say assertions are disabled when they're not
55159         * m4/assert.m4 (gl_ASSERT): Do not make configure report
55160         "checking whether to enable assertions... no", when they are in
55161         fact enabled.  This is solely a bug in the output of configure.
55162         In spite of saying "no", NDEBUG was not defined in that case.
55163         Also, as noted by Eric Blake, leave assertions enabled upon
55164         --enable-assert=INVALID.
55165
55166 2008-12-10  Bruno Haible  <bruno@clisp.org>
55167
55168         Change MODULES.html to refer to POSIX:2008 where possible.
55169         * MODULES.html.sh (POSIX2008_URL): New variable.
55170         (posix_headers): Remove sys/timeb, ucontext.
55171         (posix2001_headers): New variable.
55172         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
55173         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
55174         index, makecontext, mktemp, pthread_attr_getstackaddr,
55175         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
55176         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
55177         (posix2001_functions): New variable.
55178         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
55179         otherwise.
55180
55181 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55182
55183         add missing include to parse-duration.c
55184         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
55185         * modules/parse-duration (Depends-on): Add xalloc.
55186
55187         fix sed script reading maint.mk
55188         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
55189         (syntax-check-rules): Use it.
55190
55191 2008-12-09  Bruno Haible  <bruno@clisp.org>
55192
55193         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
55194         MacOS X 10.4/PowerPC.
55195         Reported by Simon Josefsson.
55196
55197 2008-12-08  Jim Meyering  <meyering@redhat.com>
55198
55199         work around mingw's lack of some S_IF definitions
55200         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
55201         Reported by Simon Josefsson.
55202
55203 2008-12-08  Bruno Haible  <bruno@clisp.org>
55204
55205         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
55206         applied to variables. Needed on MacOS X 10.4/PowerPC.
55207         Reported by Simon Josefsson.
55208
55209 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
55210         and Eric Blake  <ebb9@byu.net>
55211
55212         assert: honor --enable-assert
55213         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
55214         order to honor --enable-assert, rather than treating it as a
55215         synonym for --disable-assert.
55216
55217 2008-12-08  Jim Meyering  <meyering@redhat.com>
55218
55219         * lib/posixtm.c: Remove now-useless declaration of mktime.
55220
55221         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
55222
55223 2008-12-07  Bruno Haible  <bruno@clisp.org>
55224
55225         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
55226         test_once): Mark functions as static.
55227         * tests/test-tls.c (test_tls): Likewise.
55228
55229 2008-12-07  Bruno Haible  <bruno@clisp.org>
55230
55231         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
55232         iconv_register_autodetect.
55233
55234 2008-12-07  Jim Meyering  <meyering@redhat.com>
55235
55236         posixtm.c: avoid a warning
55237         * lib/posixtm.c (posixtime): Don't initialize tm0.
55238         It's no longer needed to placate gcc4's -Wuninitialized,
55239         and the attempt to placate would elicit a new warning.
55240
55241         unicodeio.c: mark unused parameters
55242         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
55243         (fallback_failure_callback): Likewise.
55244
55245 2008-12-07  Bruno Haible  <bruno@clisp.org>
55246
55247         * gnulib-tool (func_create_testdir): When building the tests
55248         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
55249         Reported by Simon Josefsson.
55250
55251 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55252
55253         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
55254
55255 2008-12-06  Bruno Haible  <bruno@clisp.org>
55256
55257         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
55258         Suggested by Eric Blake.
55259
55260 2008-12-06  Bruno Haible  <bruno@clisp.org>
55261
55262         Fix a c-stack test failure on MacOS X.
55263         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
55264         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
55265         handler for SIGBUS as well.
55266         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
55267         install a signal handler for SIGBUS as well.
55268         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
55269
55270 2008-12-06  Bruno Haible  <bruno@clisp.org>
55271
55272         Advocacy documentation.
55273         * doc/gnulib-intro.texi (Benefits): New section.
55274         * doc/gnulib.texi: Update.
55275
55276 2008-12-06  Bruno Haible  <bruno@clisp.org>
55277
55278         Document the 'manywarnings' module.
55279         * doc/manywarnings.texi: New file.
55280         * doc/gnulib.texi: Include it.
55281
55282 2008-12-05  Eric Blake  <ebb9@byu.net>
55283
55284         tests: silence some gcc warnings
55285         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
55286         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
55287         type mismatches.
55288
55289 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55290             Bruno Haible  <bruno@clisp.org>
55291
55292         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
55293
55294 2008-11-29  Jim Meyering  <meyering@redhat.com>
55295
55296         unicodeio.c: mark unused parameters
55297         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
55298         (fallback_failure_callback): Likewise.
55299
55300         fts: fix a thinko
55301         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
55302         (set_stat_type): Return S_IF*-valued "type" directly.
55303         Prompted by James Youngman's spotting a related bug.
55304         Confirmed by further testing through find.
55305
55306         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
55307         * lib/fts.c (D_TYPE): Define.
55308         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
55309         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
55310         (s_ifmt_shift_bits): New function.
55311         (set_stat_type): New function.
55312         (fts_build): When not calling fts_stat, call set_stat_type
55313         to propagate dirent.d_type info to fts_read caller.
55314         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
55315         fts_statp->st_mode type information may be valid.
55316
55317 2008-11-28  Simon Josefsson  <simon@josefsson.org>
55318
55319         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
55320         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
55321         <sds@gnu.org>.
55322
55323 2008-11-20  Bruno Haible  <bruno@clisp.org>
55324
55325         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
55326         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
55327         INCLUDE_NEXT.
55328         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
55329         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
55330         * modules/math (Makefile.am): Substitute
55331         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
55332         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
55333
55334 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
55335             Bruno Haible  <bruno@clisp.org>
55336
55337         * lib/stdint.in.h: Define all type macros so that their expansion is
55338         a single typedef'ed token. Fixes a compilation failure in Boost which
55339         does "using ::int8_t;".
55340
55341 2008-11-18  Simon Josefsson  <simon@josefsson.org>
55342
55343         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
55344         gl_MANYWARN_ALL_GCC.
55345         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
55346         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
55347         * modules/manywarnings: New file.
55348         * MODULES.html.sh: Mention manywarnings module.
55349
55350 2008-11-18  Bruno Haible  <bruno@clisp.org>
55351
55352         * doc/gnulib-tool.texi (Unit tests): New section.
55353
55354 2008-11-18  Simon Josefsson  <simon@josefsson.org>
55355
55356         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
55357         paths like 'lib/po/foo.po'.
55358
55359 2008-11-17  Simon Josefsson  <simon@josefsson.org>
55360
55361         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
55362         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
55363
55364 2008-11-17  Simon Josefsson  <simon@josefsson.org>
55365
55366         * m4/warnings.m4: Use CPPFLAGS to really check whether the
55367         parameter works.
55368
55369 2008-11-17  Simon Josefsson  <simon@josefsson.org>
55370
55371         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
55372
55373 2008-11-17  Bruce Korb  <bkorb@gnu.org>
55374
55375         * modules/parse-duration-tests: New file.
55376         * tests/test-parse-duration.sh: New file.
55377         * tests/test-parse-duration.c: New file.
55378
55379         New module 'parse-duration'.
55380         * lib/parse-duration.h: New file.
55381         * lib/parse-duration.c: New file.
55382         * modules/parse-duration: New file.
55383
55384 2008-11-17  Bruno Haible  <bruno@clisp.org>
55385
55386         * tests/test-select-out.sh: Comment out the first pipe test.
55387         Reported by Simon Josefsson.
55388
55389 2008-11-17  Bruno Haible  <bruno@clisp.org>
55390
55391         * modules/getaddrinfo (Depends-on): Add servent, hostent.
55392         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
55393         gl_HOSTENT.
55394
55395 2008-11-17  Bruno Haible  <bruno@clisp.org>
55396
55397         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
55398         -lnetwork and -lnet. Needed for Haiku and BeOS.
55399
55400 2008-11-16  Bruno Haible  <bruno@clisp.org>
55401
55402         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
55403
55404 2008-11-16  Bruno Haible  <bruno@clisp.org>
55405
55406         Avoid test failure on Haiku.
55407         * tests/test-fsync.c: Include <errno.h>.
55408         (main): Don't require that fsync (0) fails.
55409
55410 2008-11-15  Bruno Haible  <bruno@clisp.org>
55411
55412         New module 'hostent'.
55413         * modules/hostent: New file.
55414         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
55415
55416 2008-11-15  Bruno Haible  <bruno@clisp.org>
55417
55418         New module 'servent'.
55419         * modules/servent: New file.
55420         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
55421
55422 2008-11-15  Bruno Haible  <bruno@clisp.org>
55423
55424         Avoid generating same test program with two different rules.
55425         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
55426         test-frexp to test-frexp-nolibm.
55427         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
55428         test-frexpl to test-frexpl-nolibm.
55429
55430 2008-11-15  Bruno Haible  <bruno@clisp.org>
55431
55432         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
55433         $(FREXPL_LIBM).
55434
55435 2008-11-15  Bruno Haible  <bruno@clisp.org>
55436
55437         * lib/netdb.in.h: Activate the definitions also when the system's
55438         <netdb.h> has 'struct addrinfo'.
55439         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
55440         EAI_OVERFLOW or AI_NUMERICSERV.
55441         * doc/posix-headers/netdb.texi: Document the problem.
55442
55443 2008-11-15  Bruno Haible  <bruno@clisp.org>
55444
55445         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
55446
55447         Make the 'sched' module work on platforms where <sched.h> exists but
55448         is incomplete (such as Haiku).
55449         * lib/sched.in.h; Include the system's <sched.h> if it exists.
55450         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
55451         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
55452         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
55453         HAVE_STRUCT_SCHED_PARAM.
55454         * modules/sched (Depends-on): Add include_next.
55455         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
55456         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
55457         * doc/posix-headers/sched.texi: Document the issue.
55458
55459 2008-11-13  Jim Meyering  <meyering@redhat.com>
55460
55461         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
55462         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
55463         test would fail due to the difference in the Report bugs to ...
55464         line.  The expected address is empty, "<>", while the actual
55465         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
55466
55467 2008-11-12  Bruno Haible  <bruno@clisp.org>
55468
55469         lstat: don't compile lstat.c on systems lacking lstat
55470         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
55471         which don't have lstat; this is handled by lib/sys_stat.in.h already.
55472         Reported by Daniel P. Berrange via Jim Meyering.
55473
55474 2008-11-12  Jim Meyering  <meyering@redhat.com>
55475
55476         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
55477
55478 2008-11-12  Simon Josefsson  <simon@josefsson.org>
55479
55480         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
55481         instead.
55482
55483 2008-11-12  Bruno Haible  <bruno@clisp.org>
55484
55485         * lib/unicodeio.c: Include unistr.h.
55486         (utf8_wctomb): Remove function.
55487         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
55488
55489 2008-11-12  Simon Josefsson  <simon@josefsson.org>
55490
55491         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
55492         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
55493         <bruno@clisp.org>.
55494         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
55495
55496 2008-11-12  Simon Josefsson  <simon@josefsson.org>
55497
55498         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
55499         * doc/gnulib.texi: Add section for warnings.
55500
55501 2008-11-11  Bruno Haible  <bruno@clisp.org>
55502
55503         * lib/sockets.h: Add a comment.
55504
55505 2008-11-11  Karl Berry  <karl@gnu.org>
55506
55507         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
55508
55509 2008-11-11  Eric Blake  <ebb9@byu.net>
55510
55511         fdl.texi: avoid git symlinks
55512         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
55513
55514 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
55515
55516         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
55517
55518 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
55519
55520         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
55521         (gl_WARN_ADD): Substitute $2 if literal.
55522
55523 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
55524
55525         * m4/warning.m4: Remove.
55526
55527 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
55528
55529         * m4/warnings.m4: Almost complete rewrite. :-)
55530
55531 2008-11-10  Simon Josefsson  <simon@josefsson.org>
55532
55533         * modules/warnings: New module.
55534         * m4/warnings.m4: New file.
55535         * MODULES.html.sh: Mention warnings module.
55536         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
55537         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55538
55539 2008-11-10  Eric Blake  <ebb9@byu.net>
55540
55541         fdl.texi: make a symlink to the latest version
55542         * doc/standards.texi: Revert today's earlier change.
55543         * doc/fdl-1.2.texi: Rename from old fdl.texi...
55544         * doc/fdl.texi: ...and replace this with a symlink to the newer
55545         fdl-1.3.texi.
55546
55547 2008-11-10  Bruno Haible  <bruno@clisp.org>
55548
55549         * tests/test-select-fd.c (main): Accept the result file name as fourth
55550         argument.
55551         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
55552         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
55553
55554 2008-11-10  Bruno Haible  <bruno@clisp.org>
55555
55556         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
55557         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
55558         as autoconf-substituted macros.
55559         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
55560         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
55561         gl_NETDB_H_DEFAULTS. Set these variables.
55562         * modules/netdb (Makefile.am): Substitute these variables.
55563
55564 2008-11-10  Eric Blake  <ebb9@byu.net>
55565
55566         standards.texi: include correct file for FDL 1.3
55567         * doc/standards.texi (GNU Free Documentation License): Change
55568         include file to pull in FDL 1.3, not 1.2.
55569
55570         fdl.texi: revert accidental change to license
55571         * doc/fdl.texi: This is FDL 1.2, not 1.3.
55572
55573 2008-11-10  Bruno Haible  <bruno@clisp.org>
55574
55575         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
55576         cross-compiling guesses also when the native compile gives no result.
55577
55578 2008-11-10  Bruno Haible  <bruno@clisp.org>
55579
55580         * lib/spawni.c (__spawni): Force variable into the stack.
55581
55582 2008-11-10  Bruno Haible  <bruno@clisp.org>
55583
55584         Add support for Haiku.
55585         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
55586         glibc and BeOS, but also on Haiku.
55587         * lib/fpurge.c (fpurge): Likewise.
55588         * lib/freadable.c (freadable): Likewise.
55589         * lib/freadahead.c (freadahead): Likewise.
55590         * lib/freading.c (freading): Likewise.
55591         * lib/freadptr.c (freadptr): Likewise.
55592         * lib/freadseek.c (freadptrinc): Likewise.
55593         * lib/fseeko.c (rpl_fseeko): Likewise.
55594         * lib/fseterr.c (fseterr): Likewise.
55595         * lib/fwritable.c (fwritable): Likewise.
55596         * lib/fwriting.c (fwriting): Likewise.
55597         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
55598
55599 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
55600
55601         * lib/config.charset: Treat Haiku like BeOS.
55602
55603 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
55604
55605         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
55606         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
55607
55608 2008-11-08  Bruno Haible  <bruno@clisp.org>
55609
55610         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
55611         AC_CACHE_CHECK.
55612
55613 2008-11-08  Bruno Haible  <bruno@clisp.org>
55614
55615         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
55616
55617 2008-11-08  Bruno Haible  <bruno@clisp.org>
55618
55619         * tests/test-select-fd.c: New file.
55620         * tests/test-select-in.sh: New file.
55621         * tests/test-select-out.sh: New file.
55622         * tests/test-select-stdin.c: New file.
55623         * modules/select-tests (Files): Add the new files.
55624         (Depends-on): Add gettimeofday.
55625         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
55626         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
55627         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
55628
55629 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
55630             Bruno Haible  <bruno@clisp.org>
55631
55632         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
55633
55634 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
55635
55636         * build-aux/pmccabe2html: Added support for C++ source files.
55637
55638 2008-11-05  Ben Pfaff  <blp@gnu.org>
55639
55640         Fix lib/close.c build on Windows.
55641         * modules/close (Files): Add lib/w32sock.h.
55642
55643 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
55644
55645         Accept Bison's NEWS format.
55646         * build-aux/announce-gen (print_news_deltas): Tweak
55647         $re_prefix.
55648
55649 2008-11-04  Bruno Haible  <bruno@clisp.org>
55650
55651         * modules/random_r (Maintainer): Add glibc.
55652
55653 2008-11-04  Simon Josefsson  <simon@josefsson.org>
55654
55655         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
55656         by karl@freefriends.org (Karl Berry).
55657         * doc/alloca.texi: Likewise.
55658         * doc/c-ctype.texi: Likewise.
55659         * doc/c-strcase.texi: Likewise.
55660         * doc/c-strcaseeq.texi: Likewise.
55661         * doc/c-strcasestr.texi: Likewise.
55662         * doc/c-strstr.texi: Likewise.
55663         * doc/c-strtod.texi: Likewise.
55664         * doc/c-strtold.texi: Likewise.
55665         * doc/ctime.texi: Likewise.
55666         * doc/error.texi: Likewise.
55667         * doc/fdl.texi: Likewise.
55668         * doc/gcd.texi: Likewise.
55669         * doc/getdate.texi: Likewise.
55670         * doc/gnulib-intro.texi: Likewise.
55671         * doc/gnulib-tool.texi: Likewise.
55672         * doc/gnulib.texi: Likewise.
55673         * doc/inet_ntoa.texi: Likewise.
55674         * doc/maintain.texi: Likewise.
55675         * doc/make-stds.texi: Likewise.
55676         * doc/quote.texi: Likewise.
55677         * doc/regexprops-generic.texi: Likewise.
55678         * doc/standards.texi: Likewise.
55679         * doc/verify.texi: Likewise.
55680         * doc/visibility.texi: Likewise.
55681         * doc/gnulib.texi (GNU Free Documentation License): Include
55682         fdl-1.3.texi instead of fdl.texi.
55683
55684 2008-11-04  Simon Josefsson  <simon@josefsson.org>
55685
55686         * doc/fdl-1.3.texi: New file, from
55687         <http://www.gnu.org/licenses/fdl-1.3.texi>.
55688         * modules/fdl-1.3: Add.
55689         * MODULES.html.sh: Add fdl-1.3.
55690
55691 2008-11-03  Bruno Haible  <bruno@clisp.org>
55692
55693         Make determination of absolute name of header file work with AIX xlc.
55694         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
55695         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
55696         preprocessing.
55697         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
55698         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
55699
55700 2008-11-03  Simon Josefsson  <simon@josefsson.org>
55701
55702         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
55703         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
55704         <ludo@gnu.org>.
55705
55706 2008-11-02  Bruno Haible  <bruno@clisp.org>
55707
55708         Mark 'strpbrk' obsolete.
55709         * modules/strpbrk (Status, Notice): New sections.
55710         * modules/strtok_r (Depends-on): Add strpbrk.
55711
55712 2008-11-02  Bruno Haible  <bruno@clisp.org>
55713
55714         Mark 'strdup' obsolete.
55715         * modules/strdup (Status, Notice): New sections.
55716         * modules/findprog (Depends-on): Add strdup.
55717         * modules/getaddrinfo (Depends-on): Likewise.
55718         * modules/localename (Depends-on): Likewise.
55719         * modules/relocatable-lib (Depends-on): Likewise.
55720         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
55721         * modules/relocatable-prog (Depends-on): Likewise.
55722         * modules/trim (Depends-on): Likewise.
55723         * modules/unictype/gen-ctype (Depends-on): Likewise.
55724         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
55725
55726 2008-11-02  Bruno Haible  <bruno@clisp.org>
55727
55728         Mark 'strcspn' obsolete.
55729         * modules/strcspn (Status, Notice): New sections.
55730
55731 2008-11-02  Bruno Haible  <bruno@clisp.org>
55732
55733         Mark 'rmdir' obsolete.
55734         * modules/rmdir (Status, Notice): New sections.
55735         * modules/clean-temp (Depends-on): Add rmdir.
55736         * modules/openat (Depends-on): Likewise.
55737
55738 2008-11-02  Bruno Haible  <bruno@clisp.org>
55739
55740         Mark 'raise' obsolete.
55741         * modules/raise (Status, Notice): New sections.
55742         (Include): Specify <signal.h>.
55743         * modules/stdio (Depends-on): Add raise.
55744         * modules/write (Depends-on): Likewise.
55745
55746 2008-11-02  Bruno Haible  <bruno@clisp.org>
55747
55748         Mark 'memset' obsolete.
55749         * modules/memset (Status, Notice): New sections.
55750
55751 2008-11-02  Bruno Haible  <bruno@clisp.org>
55752
55753         Mark 'memmove' obsolete.
55754         * modules/memmove (Status, Notice): New sections.
55755         * modules/argp (Depends-on): Add memmove.
55756         * modules/argz (Depends-on): Likewise.
55757         * modules/canonicalize (Depends-on): Likewise.
55758         * modules/canonicalize-lgpl (Depends-on): Likewise.
55759         * modules/fts (Depends-on): Likewise.
55760         * modules/getcwd (Depends-on): Likewise.
55761         * modules/human (Depends-on): Likewise.
55762         * modules/regex (Depends-on): Likewise.
55763         * modules/striconveh (Depends-on): Likewise.
55764         * modules/trim (Depends-on): Likewise.
55765         * modules/unistr/u8-move (Depends-on): Likewise.
55766         * modules/unistr/u16-move (Depends-on): Likewise.
55767         * modules/unistr/u32-move (Depends-on): Likewise.
55768
55769 2008-11-02  Bruno Haible  <bruno@clisp.org>
55770
55771         Mark 'memcpy' obsolete.
55772         * modules/memcpy (Status, Notice): New sections.
55773
55774 2008-11-02  Bruno Haible  <bruno@clisp.org>
55775
55776         Mark 'memcmp' obsolete.
55777         * modules/memcmp (Status, Notice): New sections.
55778         * modules/argmatch (Depends-on): Add memchr.
55779         * modules/backupfile (Depends-on): Likewise.
55780         * modules/c-strcasestr (Depends-on): Likewise.
55781         * modules/crypto/des (Depends-on): Likewise.
55782         * modules/csharpcomp (Depends-on): Likewise.
55783         * modules/fnmatch (Depends-on): Likewise.
55784         * modules/git-merge-changelog (Depends-on): Likewise.
55785         * modules/isnand (Depends-on): Likewise.
55786         * modules/isnand-nolibm (Depends-on): Likewise.
55787         * modules/isnanf (Depends-on): Likewise.
55788         * modules/isnanf-nolibm (Depends-on): Likewise.
55789         * modules/isnanl (Depends-on): Likewise.
55790         * modules/isnanl-nolibm (Depends-on): Likewise.
55791         * modules/mbchar (Depends-on): Likewise.
55792         * modules/memcoll (Depends-on): Likewise.
55793         * modules/quotearg (Depends-on): Likewise.
55794         * modules/regex (Depends-on): Likewise.
55795         * modules/relocatable-prog (Depends-on): Likewise.
55796         * modules/same (Depends-on): Likewise.
55797         * modules/signbit (Depends-on): Likewise.
55798         * modules/strcasestr-simple (Depends-on): Likewise.
55799         * modules/unictype/gen-ctype (Depends-on): Likewise.
55800         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
55801         * modules/uniname/uniname (Depends-on): Likewise.
55802         * modules/unistr/u8-cmp (Depends-on): Likewise.
55803
55804 2008-11-02  Bruno Haible  <bruno@clisp.org>
55805
55806         Mark 'memchr' obsolete.
55807         * modules/memchr (Status, Notice): New sections.
55808         * modules/argp (Depends-on): Add memchr.
55809         * modules/base64 (Depends-on): Likewise.
55810         * modules/c-strcasestr (Depends-on): Likewise.
55811         * modules/chdir-long (Depends-on): Likewise.
55812         * modules/fnmatch (Depends-on): Likewise.
55813         * modules/getsubopt (Depends-on): Likewise.
55814         * modules/git-merge-changelog (Depends-on): Likewise.
55815         * modules/glob (Depends-on): Likewise.
55816         * modules/strcasestr-simple (Depends-on): Likewise.
55817         * modules/strnlen (Depends-on): Likewise.
55818
55819 2008-11-02  Bruno Haible  <bruno@clisp.org>
55820
55821         Mark 'atexit' obsolete.
55822         * modules/atexit (Status, Notice): New sections.
55823         * modules/chdir-long (Depends-on): Add atexit.
55824         * modules/wait-process (Depends-on): Likewise.
55825
55826 2008-11-02  Bruno Haible  <bruno@clisp.org>
55827
55828         * gnulib-tool: New option --with-obsolete.
55829         (func_usage): Document it.
55830         (func_modules_transitive_closure): Drop obsolete dependencies if
55831         incobsolete is not true.
55832         (func_import): Read and save the incobsolete variable to the cache.
55833
55834 2008-11-02  Bruno Haible  <bruno@clisp.org>
55835
55836         * modules/TEMPLATE-EXTENDED: New field 'Status'.
55837         * gnulib-tool: New option --extract-status.
55838         (func_usage): Document it.
55839         (sed_extract_prog): Recognize it.
55840         (func_get_status): New function.
55841
55842 2008-10-30  Simon Josefsson  <simon@josefsson.org>
55843
55844         * modules/sockets (License): Change from LGPL to LGPLv2+.
55845
55846 2008-10-28  Simon Josefsson  <simon@josefsson.org>
55847
55848         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
55849
55850 2008-10-28  Simon Josefsson  <simon@josefsson.org>
55851
55852         * MODULES.html.sh (Support for systems lacking POSIX:2001):
55853         Mention times and sys_times.
55854         * modules/sys_times, modules/sys_times-tests: New modules.
55855         * modules/times, modules/times-tests: Likewise
55856         * m4/sys_times_h.m4: New file.
55857         * lib/sys_times.in.h: Likewise
55858         * lib/times.c: Likewise.
55859         * tests/test-sys_times.c: Likewise.
55860         * tests/test-times.c: Likewise.
55861         * doc/posix-headers/sys_times.texi: Update.
55862         * doc/posix-functions/times.texi: Update.
55863
55864 2008-10-28  Jim Meyering  <meyering@redhat.com>
55865
55866         * modules/tempname (Depends-on): Add lstat.
55867
55868         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
55869
55870 2008-10-28  Simon Josefsson  <simon@josefsson.org>
55871
55872         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
55873         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
55874         using idiom used elsewhere in gnulib.
55875
55876 2008-10-27  Jim Meyering  <meyering@redhat.com>
55877
55878         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
55879
55880 2008-10-27  Simon Josefsson  <simon@josefsson.org>
55881
55882         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
55883         TESTS_ENVIRONMENT, for shell scripts that needs to call built
55884         programs.
55885         * tests/test-argp-2.sh: Use $EXEEXT when needed.
55886
55887 2008-10-27  Simon Josefsson  <simon@josefsson.org>
55888
55889         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
55890
55891 2008-10-27  Bruno Haible  <bruno@clisp.org>
55892
55893         * tests/test-lstat.c: Include <stdio.h>.
55894
55895 2008-10-27  Simon Josefsson  <simon@josefsson.org>
55896
55897         * modules/lstat-tests: New module.
55898         * tests/test-lstat.c: New file.
55899
55900 2008-10-26  Jim Meyering  <meyering@redhat.com>
55901
55902         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
55903
55904 2008-10-26  Simon Josefsson  <simon@josefsson.org>
55905             Bruno Haible  <bruno@clisp.org>
55906
55907         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
55908         * modules/configmake (Include): Add a note that the include must come
55909         after all system headers.
55910         * lib/javaversion.c: Include configmake.h after all other includes.
55911
55912 2008-10-26  Bruno Haible  <bruno@clisp.org>
55913
55914         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
55915         HAVE_STRUCT_RANDOM_DATA to 1.
55916         (gl_STDLIB_H): Simplify.
55917
55918 2008-10-26  Simon Josefsson  <simon@josefsson.org>
55919
55920         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
55921         substitute HAVE_STRUCT_RANDOM_DATA.
55922         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
55923         random_data.
55924         * modules/stdlib (Makefile.am): Substitute
55925         HAVE_STRUCT_RANDOM_DATA.
55926
55927 2008-10-26  Simon Josefsson  <simon@josefsson.org>
55928
55929         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
55930         * doc/gnulib-intro.texi (Copyright): Likewise.
55931
55932 2008-10-26  Simon Josefsson  <simon@josefsson.org>
55933
55934         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
55935         findings.
55936
55937 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
55938             Bruno Haible  <bruno@clisp.org>
55939
55940         * lib/unistd.in.h: Include <winsock2.h>.
55941         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
55942         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
55943         Provide dummy declarations.
55944         (gethostname): Override.
55945         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
55946         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
55947         gl_PREREQ_SYS_H_WINSOCK2.
55948         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
55949         * doc/posix-functions/gethostname.texi: More details.
55950
55951 2008-10-25  Bruno Haible  <bruno@clisp.org>
55952
55953         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
55954         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
55955         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
55956
55957         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
55958         here ...
55959         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
55960         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
55961         gl_UNISTD_H_DEFAULTS.
55962
55963 2008-10-25  Eric Blake  <ebb9@byu.net>
55964
55965         signbit: avoid spurious compiler failure
55966         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
55967         declarations inside function.
55968
55969 2008-10-24  Simon Josefsson  <simon@josefsson.org>
55970             Bruno Haible  <bruno@clisp.org>
55971
55972         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
55973         * modules/random_r (Depends-on): Add stdint.
55974
55975 2008-10-24  Bruno Haible  <bruno@clisp.org>
55976
55977         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
55978         Eggert.
55979         * modules/strerror (License): Likewise.
55980
55981 2008-10-24  Jim Meyering  <meyering@redhat.com>
55982
55983         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
55984         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
55985
55986 2008-10-24  Eric Blake  <ebb9@byu.net>
55987
55988         getgroups: fix compilation when getgroups is available
55989         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
55990         but with <config.h> override of getgroups disabled.
55991
55992 2008-10-24  Simon Josefsson  <simon@josefsson.org>
55993
55994         * doc/gnulib.texi (Header files): Add note about C++ problems.
55995         Explained by Bruno Haible <bruno@clisp.org>.
55996
55997 2008-10-23  Bruno Haible  <bruno@clisp.org>
55998
55999         Define a dummy SA_NODEFER macro on Interix.
56000         * lib/signal.in.h (SA_NODEFER): Define fallback.
56001         Reported by Aleksey Cheusov <cheusov@tut.by> via
56002         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
56003
56004 2008-10-23  Bruno Haible  <bruno@clisp.org>
56005
56006         * modules/freadahead (License): Change to LGPLv2+.
56007         Suggested by Simon Josefsson.
56008
56009 2008-10-23  Jim Meyering  <meyering@redhat.com>
56010
56011         random_r: new module
56012         * modules/random_r: New file.
56013         * m4/random_r.m4: New file.
56014         * lib/random_r.c: New file, from glibc.
56015         * modules/random_r-tests: New file.
56016         * tests/test-random_r.c: New file.
56017         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
56018          Declare.
56019         (RAND_MAX): Define.
56020         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
56021         * modules/stdlib: Substitute them, too.
56022         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
56023         * doc/glibc-functions/initstate_r.texi: Mention the new module.
56024         * doc/glibc-functions/random_r.texi: Likewise.
56025         * doc/glibc-functions/setstate_r.texi: Likewise.
56026         * doc/glibc-functions/srandom_r.texi: Likewise.
56027         * config/srclist.txt: Mention it.
56028
56029 2008-10-23  David Lutterkort  <lutter@redhat.com>
56030
56031         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
56032         link requirement
56033
56034 2008-10-23  Jim Meyering  <meyering@redhat.com>
56035
56036         selinux-h: mark parameters of stub functions as intentionally unused
56037         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
56038         * lib/se-context.in.h: Likewise.
56039
56040 2008-10-22  Simon Josefsson  <simon@josefsson.org>
56041
56042         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
56043
56044 2008-10-22  Simon Josefsson  <simon@josefsson.org>
56045
56046         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
56047
56048 2008-10-22  Eric Blake  <ebb9@byu.net>
56049
56050         glthread/thread: avoid compiler warning
56051         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
56052         Add unreachable abort to silence compiler.
56053
56054 2008-10-22  Eric Blake  <ebb9@byu.net>
56055
56056         netdb: also supply struct addrinfo for cygwin 1.5.x
56057         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
56058         older cygwin.
56059         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
56060         cygwin.
56061         * doc/posix-headers/netdb.texi (netdb.h): Document this.
56062
56063 2008-10-22  Bruno Haible  <bruno@clisp.org>
56064
56065         * users.txt: Update entry about pspp.
56066
56067 2008-10-21  Bruno Haible  <bruno@clisp.org>
56068
56069         Simplification.
56070         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
56071         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
56072
56073         Simplification.
56074         * lib/ioctl.c (ioctl): Don't undefine.
56075         * lib/socket.c (socket): Don't undefine.
56076
56077         Remove unused module indicator macros.
56078         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
56079         GNULIB_$1 as a C macro.
56080
56081         * doc/posix-functions/close.texi: Undo last change.
56082         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
56083         Windows platforms.
56084
56085 2008-10-21  Bruno Haible  <bruno@clisp.org>
56086
56087         Add gethostname() declaration to <unistd.h>.
56088         * lib/unistd.in.h (gethostname): New declaration.
56089         * lib/gethostname.c: Include <unistd.h>.
56090         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
56091         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
56092         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
56093         and HAVE_GETHOSTNAME.
56094         * modules/gethostname (Depends-on): Add unistd.
56095         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56096         (Include): Specify <unistd.h>.
56097         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
56098         HAVE_GETHOSTNAME.
56099         * tests/test-gethostname.c: Include <unistd.h> first.
56100
56101 2008-10-21  Bruno Haible  <bruno@clisp.org>
56102
56103         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
56104         * modules/select-tests (Depends-on): Likewise.
56105         Reported by Simon Josefsson.
56106
56107 2008-10-21  Simon Josefsson  <simon@josefsson.org>
56108
56109         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
56110         * lib/accept.c: New file, based on winsock.c.
56111         * lib/bind.c: New file, based on winsock.c.
56112         * lib/connect.c: New file, based on winsock.c.
56113         * lib/getpeername.c: New file, based on winsock.c.
56114         * lib/getsockname.c: New file, based on winsock.c.
56115         * lib/getsockopt.c: New file, based on winsock.c.
56116         * lib/ioctl.c: New file, based on winsock.c.
56117         * lib/listen.c: New file, based on winsock.c.
56118         * lib/recv.c: New file, based on winsock.c.
56119         * lib/recvfrom.c: New file, based on winsock.c.
56120         * lib/send.c: New file, based on winsock.c.
56121         * lib/sendto.c: New file, based on winsock.c.
56122         * lib/setsockopt.c: New file, based on winsock.c.
56123         * lib/shutdown.c: New file, based on winsock.c.
56124         * lib/socket.c: New file, based on winsock.c.
56125         * lib/w32sock.h: New file, based on winsock.c.
56126         * lib/winsock.c: Remove file.
56127         * modules/accept: Likewise.
56128         * modules/bind: Likewise.
56129         * modules/connect: Likewise.
56130         * modules/getpeername: Likewise.
56131         * modules/getsockname: Likewise.
56132         * modules/getsockopt: Likewise.
56133         * modules/ioctl: Likewise.
56134         * modules/listen: Likewise.
56135         * modules/recv: Likewise.
56136         * modules/recvfrom: Likewise.
56137         * modules/send: Likewise.
56138         * modules/sendto: Likewise.
56139         * modules/setsockopt: Likewise.
56140         * modules/shutdown: Likewise.
56141         * modules/socket: Use socket.c instead of winsock.c.
56142         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
56143         * doc/posix-functions/accept.texi: Doc fix.
56144         * doc/posix-functions/bind.texi: Doc fix.
56145         * doc/posix-functions/close.texi: Doc fix.
56146         * doc/posix-functions/connect.texi: Doc fix.
56147         * doc/posix-functions/getpeername.texi: Doc fix.
56148         * doc/posix-functions/getsockname.texi: Doc fix.
56149         * doc/posix-functions/getsockopt.texi: Doc fix.
56150         * doc/posix-functions/ioctl.texi: Doc fix.
56151         * doc/posix-functions/listen.texi: Doc fix.
56152         * doc/posix-functions/recv.texi: Doc fix.
56153         * doc/posix-functions/recvfrom.texi: Doc fix.
56154         * doc/posix-functions/send.texi: Doc fix.
56155         * doc/posix-functions/sendto.texi: Doc fix.
56156         * doc/posix-functions/setsockopt.texi: Doc fix.
56157         * doc/posix-functions/shutdown.texi: Doc fix.
56158         * doc/posix-functions/socket.texi: Doc fix.
56159
56160 2008-10-20  Bruno Haible  <bruno@clisp.org>
56161
56162         Take into account the role of SIGABRT_COMPAT on Windows 2008.
56163         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
56164         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
56165         as an alias for SIGABRT.
56166         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
56167         (sigaction): Map it to SIGABRT.
56168         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
56169
56170 2008-10-20  Bruno Haible  <bruno@clisp.org>
56171
56172         * lib/fts.c: Don't include lstat.h.
56173         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
56174
56175         Move the lstat() declaration to <sys/stat.h>.
56176         * lib/lstat.h: Remove file.
56177         * lib/sys_stat.in.h: Add special invocation convention.
56178         (lstat): New declaration.
56179         * lib/lstat.c (orig_lstat): New function.
56180         (rpl_lstat): Use orig_lstat instead of lstat.
56181         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
56182         AC_C_INLINE. Set REPLACE_LSTAT.
56183         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
56184         and REPLACE_LSTAT.
56185         * modules/lstat (Files): Remove lib/lstat.h.
56186         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
56187         (Include): Specify <sys/stat.h> instead of lstat.h.
56188         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
56189         REPLACE_LSTAT.
56190         * NEWS: Mention the change.
56191
56192 2008-10-20  Bruno Haible  <bruno@clisp.org>
56193
56194         * modules/posix_spawn-tests: New file.
56195         * tests/test-posix_spawn3.c: New file.
56196
56197 2008-10-20  Bruno Haible  <bruno@clisp.org>
56198
56199         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
56200         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
56201         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
56202         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
56203         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
56204
56205 2008-10-20  Bruno Haible  <bruno@clisp.org>
56206
56207         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
56208         of posix_spawn on AIX 5.3.
56209
56210 2008-10-20  Bruno Haible  <bruno@clisp.org>
56211
56212         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
56213
56214 2008-10-20  Bruno Haible  <bruno@clisp.org>
56215
56216         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
56217         of AC_LANG_PROGRAM.
56218
56219 2008-10-20  Simon Josefsson  <simon@josefsson.org>
56220
56221         * lib/netdb.in.h: Don't define GNU specific constants until they
56222         are supported or needed.  Reported by Bruno Haible
56223         <bruno@clisp.org>.
56224
56225 2008-10-20  Simon Josefsson  <simon@josefsson.org>
56226
56227         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
56228
56229 2008-10-20  Simon Josefsson  <simon@josefsson.org>
56230
56231         * lib/getaddrinfo.h: Remove file.
56232         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
56233         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
56234         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
56235         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
56236         * modules/netdb: Substitute GNULIB_GETADDRINFO.
56237         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
56238         * tests/test-getaddrinfo.c: Likewise.
56239         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
56240         * NEWS: Mention change.
56241
56242 2008-10-19  Bruno Haible  <bruno@clisp.org>
56243
56244         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
56245
56246 2008-10-19  Bruno Haible  <bruno@clisp.org>
56247
56248         * lib/wait-process.c: Include simply <sys/wait.h>.
56249         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
56250         WIFSTOPPED): Remove fallback definitions.
56251         * modules/wait-process (Depends-on): Add sys_wait.
56252
56253         New module 'sys_wait'.
56254         * modules/sys_wait: New file.
56255         * lib/sys_wait.in.h: New file, partially copied from
56256         lib/wait-process.c.
56257         * m4/sys_wait_h.m4: New file.
56258         * doc/posix-headers/sys_wait.texi: Mention the new module.
56259
56260 2008-10-19  Bruno Haible  <bruno@clisp.org>
56261
56262         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
56263
56264 2008-10-19  Bruno Haible  <bruno@clisp.org>
56265
56266         Assume that waitpid() fills an 'int' status, not a 'union wait'.
56267         * lib/wait-process.c (WAIT_T): Remove type.
56268         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
56269         (wait_subprocess): Update.
56270
56271 2008-10-19  Bruno Haible  <bruno@clisp.org>
56272
56273         New module 'atoll'.
56274         * modules/atoll: New file.
56275         * lib/stdlib.in.h (atoll): New declaration.
56276         * lib/atoll.c: New file, from glibc with modifications.
56277         * m4/atoll.m4: New file.
56278         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
56279         HAVE_ATOLL.
56280         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
56281         * doc/posix-functions/atoll.texi: Mention the new module.
56282
56283 2008-10-19  Bruno Haible  <bruno@clisp.org>
56284
56285         Add strtoull() declaration to <stdlib.h>.
56286         * lib/stdlib.in.h (strtoull): New declaration.
56287         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
56288         Set HAVE_STRTOULL.
56289         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
56290         HAVE_STRTOULL.
56291         * modules/strtoull (Depends-on): Add stdlib.
56292         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
56293         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
56294         HAVE_STRTOULL.
56295
56296 2008-10-19  Bruno Haible  <bruno@clisp.org>
56297
56298         Add strtoll() declaration to <stdlib.h>.
56299         * lib/stdlib.in.h (strtoll): New declaration.
56300         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
56301         Set HAVE_STRTOLL.
56302         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
56303         HAVE_STRTOLL.
56304         * modules/strtoll (Depends-on): Add stdlib.
56305         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
56306         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
56307
56308 2008-10-19  Bruno Haible  <bruno@clisp.org>
56309
56310         * modules/bcopy (Depends-on): Add strings.
56311         (Include): Specify <strings.h>.
56312
56313 2008-10-19  Bruno Haible  <bruno@clisp.org>
56314
56315         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
56316
56317 2008-10-19  Bruno Haible  <bruno@clisp.org>
56318
56319         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
56320         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
56321         mingw.
56322
56323 2008-10-19  Bruno Haible  <bruno@clisp.org>
56324
56325         * lib/atanl.c: Don't include isnanl.h.
56326         * lib/cosl.c: Likewise.
56327         * lib/ldexpl.c: Likewise.
56328         * lib/logl.c: Likewise.
56329         * lib/sinl.c: Likewise.
56330         * lib/sqrtl.c: Likewise.
56331         * lib/tanl.c: Likewise.
56332
56333         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
56334         * lib/isnanf.h: Remove file.
56335         * lib/isnand.h: Remove file.
56336         * lib/isnanl.h: Remove file.
56337         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
56338         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
56339         macros.
56340         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
56341         HAVE_ISNANF, don't define it as a C macro.
56342         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
56343         HAVE_ISNAND, don't define it as a C macro.
56344         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
56345         HAVE_ISNANL, don't define it as a C macro.
56346         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
56347         HAVE_ISNAN[FDL].
56348         * modules/isnanf (Files): Remove lib/isnanf.h.
56349         (Depends-on): Add math.
56350         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
56351         (Include): Specify <math.h> instead of isnanf.h.
56352         * modules/isnand (Files): Remove lib/isnand.h.
56353         (Depends-on): Add math.
56354         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
56355         (Include): Specify <math.h> instead of isnand.h.
56356         * modules/isnanl (Files): Remove lib/isnanl.h.
56357         (Depends-on): Add math.
56358         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
56359         (Include): Specify <math.h> instead of isnanl.h.
56360         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
56361         HAVE_ISNAN[FDL].
56362         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
56363         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
56364         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
56365         * NEWS: Mention the change.
56366
56367 2008-10-18  Bruno Haible  <bruno@clisp.org>
56368
56369         Add getusershell(), setusershell(), endusershell() declarations to
56370         <unistd.h>.
56371         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
56372         declarations.
56373         * lib/getusershell.c: Include unistd.h.
56374         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
56375         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
56376         HAVE_GETUSERSHELL.
56377         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
56378         and HAVE_GETUSERSHELL.
56379         * modules/getusershell (Depends-on): Add unistd, extensions.
56380         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56381         (Include): Specify <unistd.h>.
56382         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
56383         HAVE_GETUSERSHELL.
56384
56385 2008-10-18  Bruno Haible  <bruno@clisp.org>
56386
56387         Add a getloadavg() declaration to <stdlib.h>.
56388         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
56389         getloadavg declaration.
56390         (getloadavg): New declaration.
56391         * lib/getloadavg.c: Include <stdlib.h> first.
56392         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
56393         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
56394         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
56395         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
56396         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
56397         * modules/getloadavg (Depends-on): Add stdlib, extensions.
56398         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
56399         (Include): Specify <stdlib.h>.
56400         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
56401         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
56402
56403 2008-10-18  Bruno Haible  <bruno@clisp.org>
56404
56405         * lib/dirchownmod.c: Don't include lchmod.h.
56406
56407         Move the lchmod() declaration to <sys/stat.h>.
56408         * lib/lchmod.h: Remove file.
56409         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
56410         (lchmod): New declaration, moved here from lib/lchown.h.
56411         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
56412         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
56413         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
56414         and HAVE_LCHMOD.
56415         * modules/lchmod (Files): Remove lib/lchmod.h.
56416         (Depends-on): Add sys_stat, extensions.
56417         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
56418         (Include): Specify <sys/stat.h> instead of lchmod.h.
56419         * modules/sys_stat (Depends-on): Add link-warning.
56420         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
56421         definition of GL_LINK_WARNING.
56422         * NEWS: Mention the change.
56423
56424 2008-10-18  Bruno Haible  <bruno@clisp.org>
56425
56426         * lib/fchdir.c: Don't include dirfd.h.
56427         * lib/fts.c: Likewise.
56428         * lib/getcwd.c: Likewise.
56429         * lib/glob.c: Likewise.
56430
56431         Move the dirfd() declaration to <dirent.h>.
56432         * lib/dirfd.h: Remove file.
56433         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
56434         (dirfd): New declaration.
56435         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
56436         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
56437         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
56438         HAVE_DECL_DIRFD.
56439         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
56440         HAVE_DECL_DIRFD.
56441         * modules/dirfd (Files): Remove lib/dirfd.h.
56442         (Depends-on): Add dirent, extensions.
56443         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
56444         (Include): Specify <dirent.h> instead of dirfd.h.
56445         * modules/dirent (Depends-on): Add link-warning.
56446         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
56447         definition of GL_LINK_WARNING.
56448         * NEWS: Mention the change.
56449
56450 2008-10-18  Bruno Haible  <bruno@clisp.org>
56451
56452         Move the euidaccess() declaration to <unistd.h>.
56453         * lib/euidaccess.h: Remove file.
56454         * lib/unistd.in.h (euidaccess): New declaration.
56455         * lib/euidaccess.c: Don't include euidaccess.h.
56456         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
56457         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
56458         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
56459         and HAVE_EUIDACCESS.
56460         * modules/euidaccess (Files): Remove lib/euidaccess.h.
56461         (Depends-on): Add unistd.
56462         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56463         (Include): Specify <unistd.h> instead of euidaccess.h.
56464         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
56465         HAVE_EUIDACCESS.
56466         * NEWS: Mention the change.
56467
56468 2008-10-18  Bruno Haible  <bruno@clisp.org>
56469
56470         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
56471
56472         Move the getdomainname() declaration to <unistd.h>.
56473         * lib/getdomainname.h: Remove file.
56474         * lib/unistd.in.h (getdomainname): New declaration.
56475         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
56476         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
56477         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
56478         HAVE_GETDOMAINNAME.
56479         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
56480         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
56481         * modules/getdomainname (Files): Remove lib/getdomainname.h.
56482         (Depends-on): Add unistd, extensions.
56483         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56484         (Includes): Specify <unistd.h> instead of getdomainname.h.
56485         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
56486         HAVE_GETDOMAINNAME.
56487         * NEWS: Mention the change.
56488
56489 2008-10-18  Bruno Haible  <bruno@clisp.org>
56490
56491         * modules/dirent: New file.
56492         * m4/dirent_h.m4: New file.
56493         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
56494         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
56495         * modules/fchdir (Files): Remove lib/dirent.in.h.
56496         (Depends-on): Add dirent.
56497         (Makefile.am): Move rules to modules/dirent.
56498         * doc/posix-headers/dirent.texi: Mention the new module.
56499
56500 2008-10-18  Bruno Haible  <bruno@clisp.org>
56501
56502         Avoid -Wunused-parameter warnings in public gnulib header files.
56503         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
56504         macro.
56505         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
56506
56507 2008-10-18  Bruno Haible  <bruno@clisp.org>
56508
56509         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
56510         * doc/glibc-functions/error.texi: Mention the module 'error'.
56511         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
56512         * doc/glibc-functions/getdomainname.texi: Mention the module
56513         'getdomainname'.
56514         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
56515         * doc/glibc-functions/getpagesize.texi: Mention the module
56516         'getpagesize'.
56517         * doc/glibc-functions/getusershell.texi: Mention the module
56518         'getusershell'.
56519         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
56520         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
56521         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
56522         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
56523         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
56524         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
56525         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
56526         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
56527         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
56528         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
56529         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
56530         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
56531         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
56532         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
56533
56534 2008-10-17  Bruno Haible  <bruno@clisp.org>
56535
56536         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
56537         HP-UX and IRIX, use -0.0L.
56538         * tests/test-ceill.c (minus_zero): Likewise.
56539         * tests/test-floorl.c (minus_zero): Likewise.
56540         * tests/test-frexpl.c (minus_zero): Likewise.
56541         * tests/test-isnan.c (minus_zerol): Likewise.
56542         * tests/test-isnanl.h (minus_zero): Likewise.
56543         * tests/test-ldexpl.c (minus_zero): Likewise.
56544         * tests/test-roundl.c (minus_zero): Likewise.
56545         * tests/test-signbit.c (minus_zerol): Likewise.
56546         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
56547         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
56548         * tests/test-truncl.c (minus_zero): Likewise.
56549         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
56550         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
56551         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
56552         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
56553
56554 2008-10-17  Bruno Haible  <bruno@clisp.org>
56555
56556         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
56557         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
56558         that it gets activated only for gcc >= 3.0.
56559         * lib/dirent.in.h: Likewise.
56560         * lib/errno.in.h: Likewise.
56561         * lib/fcntl.in.h: Likewise.
56562         * lib/float.in.h: Likewise.
56563         * lib/iconv.in.h: Likewise.
56564         * lib/inttypes.in.h: Likewise.
56565         * lib/locale.in.h: Likewise.
56566         * lib/math.in.h: Likewise.
56567         * lib/netdb.in.h: Likewise.
56568         * lib/netinet_in.in.h: Likewise.
56569         * lib/search.in.h: Likewise.
56570         * lib/signal.in.h: Likewise.
56571         * lib/spawn.in.h: Likewise.
56572         * lib/stdarg.in.h: Likewise.
56573         * lib/stdint.in.h: Likewise.
56574         * lib/stdio.in.h: Likewise.
56575         * lib/stdlib.in.h: Likewise.
56576         * lib/string.in.h: Likewise.
56577         * lib/strings.in.h: Likewise.
56578         * lib/sys_file.in.h: Likewise.
56579         * lib/sys_ioctl.in.h: Likewise.
56580         * lib/sys_select.in.h: Likewise.
56581         * lib/sys_socket.in.h: Likewise.
56582         * lib/sys_stat.in.h: Likewise.
56583         * lib/sys_time.in.h: Likewise.
56584         * lib/sysexits.in.h: Likewise.
56585         * lib/time.in.h: Likewise.
56586         * lib/unistd.in.h: Likewise.
56587         * lib/wchar.in.h: Likewise.
56588         * lib/wctype.in.h: Likewise.
56589         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
56590
56591 2008-10-17  Jim Meyering  <meyering@redhat.com>
56592
56593         ignore-value: don't depend on inline module
56594         * modules/ignore-value (Depends-on): Remove 'inline'.
56595         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
56596         Suggestion from Bruno Haible.
56597
56598 2008-10-17  Bruno Haible  <bruno@clisp.org>
56599
56600         New implementation of condition variables for Win32.
56601         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
56602         (gl_linked_waitqueue_t): New type.
56603         (gl_cond_t): Use it.
56604         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
56605         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
56606         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
56607         (glthread_cond_init_func, glthread_cond_wait_func,
56608         glthread_cond_timedwait_func, glthread_cond_signal_func,
56609         glthread_cond_broadcast_func, glthread_cond_destroy_func):
56610         Reimplemented on the basis of gl_linked_waitqueue_t.
56611         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
56612         gl_waitqueue_t.
56613         (gl_rwlock_t): Update.
56614         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
56615
56616 2008-10-17  Simon Josefsson  <simon@josefsson.org>
56617
56618         * modules/recvfrom (Depends-on): Add dependency on getpeername.
56619         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
56620
56621 2008-10-17  Jim Meyering  <meyering@redhat.com>
56622
56623         ignore-value: new module
56624         * modules/ignore-value: New file.
56625         * lib/ignore-value.h: New file.
56626         * MODULES.html.sh (Compiler warning management): New section,
56627         just for this module.  More to come.
56628
56629 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
56630
56631         open-safer.c: avoid 'signed and unsigned in conditional...' warning
56632         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
56633         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
56634
56635 2008-10-16  Jim Meyering  <meyering@redhat.com>
56636
56637         openat-die.c: avoid 'no previous prototype' warning
56638         * lib/openat-die.c: Include "openat.h".
56639         Reported by Reuben Thomas <rrt@sc3d.org>.
56640
56641 2008-10-16  Simon Josefsson  <simon@josefsson.org>
56642
56643         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
56644         * lib/netdb.in.h: Fix typo.
56645         Reported by Bruno Haible  <bruno@clisp.org>
56646
56647         * lib/netdb.in.h: Include sys/socket.h for platforms without
56648         netdb.h, to get structures like hostent on MinGW.
56649         * modules/netdb (Depends-on): Add sys_socket.
56650
56651 2008-10-15  Simon Josefsson  <simon@josefsson.org>
56652
56653         * modules/netdb, modules/netdb-tests: New file.
56654         * m4/netdb_h.m4: New file.
56655         * lib/netdb.in.h: Add, currently just an empty file pending
56656         definitions.
56657         * tests/test-netdb.c: New file.
56658         * doc/posix-headers/netdb.texi: Mention that we replace it if
56659         needed.
56660         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
56661         netdb.
56662
56663 2008-10-15  Simon Josefsson  <simon@josefsson.org>
56664
56665         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
56666         with code.
56667
56668 2008-10-13  Bruno Haible  <bruno@clisp.org>
56669
56670         * lib/glthread/cond.c (glthread_cond_wait_func,
56671         glthread_cond_timedwait_func): Add a comment.
56672
56673 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
56674
56675         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
56676         * tests/test-select.c: Likewise,
56677
56678 2008-10-13  Bruno Haible  <bruno@clisp.org>
56679
56680         * lib/glthread/cond.c (glthread_cond_wait_func,
56681         glthread_cond_timedwait_func): Fix variable name.
56682         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
56683
56684 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
56685
56686         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
56687         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
56688         struct sockaddr.sa_len.
56689         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
56690
56691 2008-10-13  Simon Josefsson  <simon@josefsson.org>
56692
56693         * build-aux/pmccabe2html: Add css and css_url parameters.
56694
56695 2008-10-12  Bruno Haible  <bruno@clisp.org>
56696
56697         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
56698         calling aclx_get.
56699         Reported by Rainer Tammer <tammer@tammer.net>.
56700
56701 2008-10-12  Bruno Haible  <bruno@clisp.org>
56702
56703         Use msvcrt aware primitives for creation/termination of Win32 threads.
56704         * lib/glthread/thread.c: Include <process.h>.
56705         (glthread_create_func): Use _beginthreadex instead of CreateThread.
56706         (wrapper_func): Update signature.
56707         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
56708
56709 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
56710             Bruno Haible  <bruno@clisp.org>
56711
56712         Provide a Win32 implementation of the 'cond' module.
56713         * lib/glthread/cond.h [USE_WIN32]: New implementation.
56714         * lib/glthread/cond.c (glthread_cond_init_func,
56715         glthread_cond_wait_func, glthread_cond_timedwait_func,
56716         glthread_cond_signal_func, glthread_cond_broadcast_func,
56717         glthread_cond_destroy_func) [USE_WIN32]: New functions.
56718         * modules/cond (Dependencies): Add gettimeofday.
56719
56720 2008-10-11  Bruno Haible  <bruno@clisp.org>
56721
56722         Make sleep work on older versions of mingw.
56723         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
56724         only whether it exists.
56725         * doc/posix-functions/sleep.texi: Mention the problem with older
56726         versions of mingw.
56727
56728 2008-10-11  Bruno Haible  <bruno@clisp.org>
56729
56730         New module 'shutdown'.
56731         * modules/shutdown: New file.
56732         * lib/sys_socket.in.h (shutdown): New declaration.
56733         * lib/winsock.c (shutdown): New function.
56734         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
56735         GNULIB_SHUTDOWN.
56736         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
56737         * doc/posix-functions/shutdown.texi: Document the new module.
56738
56739 2008-10-11  Jim Meyering  <meyering@redhat.com>
56740
56741         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
56742
56743 2008-10-11  Bruno Haible  <bruno@clisp.org>
56744
56745         New module 'fclose'.
56746         * modules/fclose: New file.
56747         * lib/stdio.in.h (fclose): New declaration.
56748         * lib/fclose.c: New file.
56749         * m4/fclose.m4: New file.
56750         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
56751         REPLACE_FCLOSE.
56752         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
56753         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
56754         REPLACE_FCLOSE.
56755         * modules/close (Depends-on): fclose.
56756         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
56757
56758 2008-10-11  Bruno Haible  <bruno@clisp.org>
56759
56760         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
56761         set errno and don't call _close.
56762
56763 2008-10-10  Bruno Haible  <bruno@clisp.org>
56764
56765         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
56766         ACL, not afterwards. Fixes test failure on Cygwin.
56767
56768 2008-10-09  Ben Pfaff  <blp@gnu.org>
56769
56770         * build-aux/announce-gen: Fix gnulib version related part of usage
56771         message.  Die with a useful error message if no tarballs are
56772         found.
56773
56774 2008-10-10  Jim Meyering  <meyering@redhat.com>
56775
56776         bootstrap: use git's --depth=N option only if it's supported
56777         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
56778         recognize the --depth option.  Reported by Pádraig Brady.
56779
56780 2008-10-09  Bruno Haible  <bruno@clisp.org>
56781
56782         New module 'ioctl'.
56783         * modules/ioctl: New file.
56784         * lib/sys_socket.in.h (ioctl): Remove declaration.
56785         * lib/winsock.c: Include <sys/ioctl.h>.
56786         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
56787         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
56788         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
56789         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
56790         * doc/posix-functions/ioctl.texi: Mention the new module.
56791
56792 2008-10-09  Bruno Haible  <bruno@clisp.org>
56793
56794         New module 'sys_ioctl'.
56795         * lib/sys_ioctl.in.h: New file.
56796         * m4/sys_ioctl_h.m4: New file.
56797         * modules/sys_ioctl: New file.
56798         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
56799
56800 2008-10-09  Bruno Haible  <bruno@clisp.org>
56801
56802         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
56803         * lib/winsock.c: Include <stdarg.h>.
56804         (rpl_ioctl): Change to second argument 'int' and then varargs.
56805
56806 2008-10-09  Bruno Haible  <bruno@clisp.org>
56807
56808         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
56809         when the sys_socket module is present and the system has <winsock2.h>.
56810
56811 2008-10-09  Bruno Haible  <bruno@clisp.org>
56812
56813         * doc/posix-functions/close.texi: Mention module 'close' instead of
56814         module 'sys_socket'.
56815
56816 2008-10-09  Bruno Haible  <bruno@clisp.org>
56817
56818         * doc/glibc-headers/sys_ioctl.texi: New file.
56819         * doc/gnulib.texi: Include it.
56820
56821 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
56822             Bruno Haible  <bruno@clisp.org>
56823
56824         Combine the two replacements of 'close'.
56825         * lib/sys_socket.in.h (close): Define to a reminder to include
56826         <unistd.h>.
56827         (_gl_close_fd_maybe_socket): New declaration.
56828         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
56829         * lib/winsock.c (close): Remove undefinition.
56830         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
56831         needed for the gnulib module 'close'.
56832         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
56833         define to an error symbol or to a warning, if suitable.
56834         * lib/close.c: Include <sys/socket.h>.
56835         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
56836         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
56837         UNISTD_H_HAVE_WINSOCK2_H.
56838         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
56839         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
56840         UNISTD_H_HAVE_WINSOCK2_H.
56841         * modules/sys_socket (Files): Add m4/unistd_h.m4.
56842         (configure.ac): Set a module indicator.
56843         (Makefile.am): Substitute GNULIB_CLOSE.
56844         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
56845         * modules/poll-tests (Depends-on): Add close.
56846         * modules/select-tests (Depends-on): Likewise.
56847
56848 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
56849             Bruno Haible  <bruno@clisp.org>
56850
56851         New module 'close'.
56852         * modules/close: New file.
56853         * lib/unistd.in.h (close): Move declaration out of the
56854         FCHDIR_REPLACEMENT scope.
56855         (_gl_unregister_fd): New declaration.
56856         * lib/close.c: New file.
56857         * lib/fchdir.c (rpl_close): Remove function.
56858         * m4/close.m4: New file.
56859         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
56860         close.
56861         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
56862         REPLACE_CLOSE.
56863         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
56864         REPLACE_CLOSE.
56865         * modules/fchdir (Depends-on): Add close.
56866
56867 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
56868             Bruno Haible  <bruno@clisp.org>
56869
56870         * lib/fcntl.in.h (open): Simplify conditionals.
56871         (_gl_register_fd): New declaration.
56872         * lib/fchdir.c (rpl_open): Remove function.
56873         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
56874         also.
56875         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
56876         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
56877         open.
56878
56879 2008-10-09  Jim Meyering  <meyering@redhat.com>
56880
56881         GNUmakefile: use the more name-space-friendly "_version"
56882         * top/GNUmakefile (_dummy): Update.
56883         (_version): Rename from "version".
56884
56885 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
56886             Bruno Haible  <bruno@clisp.org>
56887
56888         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
56889         rpl_close.
56890         (_gl_register_fd): New function, extracted from rpl_open.
56891         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
56892         (rpl_open, rpl_opendir): Use _gl_register_fd.
56893
56894 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
56895
56896         Fix organization of 'open' replacement.
56897         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
56898         (gl_FUNC_OPEN): Use it.
56899         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
56900
56901 2008-10-08  Bruno Haible  <bruno@clisp.org>
56902
56903         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
56904
56905 2008-10-08  Simon Josefsson  <simon@josefsson.org>
56906
56907         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
56908         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
56909         listen).
56910
56911 2008-10-08  Eric Blake  <ebb9@byu.net>
56912
56913         GNUmakefile: add 'make version' target
56914         * top/GNUmakefile (_curr-ver): Split version update rules...
56915         (version): ...into a target.
56916
56917 2008-10-07  Bruno Haible  <bruno@clisp.org>
56918
56919         Use a more portable replacement expression for -0.0L.
56920         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
56921         instead of -0.0L. Fix m4 quotation.
56922
56923         * tests/test-signbit.c: Include <float.h>.
56924         (minus_zero): New variable.
56925         (test_signbitl): Use minus_zero instead of -zero.
56926         * modules/signbit-tests (Depends-on): Add float.
56927
56928         * tests/test-ceill.c: Include <float.h>.
56929         (zero): Remove variable.
56930         (minus_zero): New variable.
56931         (main): Use minus_zero instead of -zero.
56932         * modules/ceill-tests (Depends-on): Add float.
56933
56934         * tests/test-floorl.c: Include <float.h>.
56935         (zero): Remove variable.
56936         (minus_zero): New variable.
56937         (main): Use minus_zero instead of -zero.
56938         * modules/floorl-tests (Depends-on): Add float.
56939
56940         * tests/test-roundl.c: Include <float.h>.
56941         (zero): Remove variable.
56942         (minus_zero): New variable.
56943         (main): Use minus_zero instead of -zero.
56944         * modules/roundl-tests (Depends-on): Add float.
56945
56946         * tests/test-truncl.c: Include <float.h>.
56947         (zero): Remove variable.
56948         (minus_zero): New variable.
56949         (main): Use minus_zero instead of -zero.
56950         * modules/truncl-tests (Depends-on): Add float.
56951
56952         * tests/test-frexpl.c (zero): Remove variable.
56953         (minus_zero): New variable.
56954         (main): Use minus_zero instead of -zero.
56955         * modules/frexpl-tests (Depends-on): Add float.
56956
56957         * tests/test-isnan.c (zerol): Remove variable.
56958         (minus_zerol): New variable.
56959         (test_long_double): Use minus_zerol instead of -zerol.
56960         * modules/isnan-tests (Depends-on): Add float.
56961
56962         * tests/test-isnanl.h (zero): Remove variable.
56963         (minus_zero): New variable.
56964         (main): Use minus_zero instead of -zero.
56965         * modules/isnanl-nolibm-tests (Depends-on): Add float.
56966         * modules/isnanl-tests (Depends-on): Add float.
56967
56968         * tests/test-ldexpl.c (zero): Remove variable.
56969         (minus_zero): New variable.
56970         (main): Use minus_zero instead of -zero.
56971         * modules/ldexpl-tests (Depends-on): Add float.
56972
56973         * tests/test-snprintf-posix.h (zerol): Remove variable.
56974         (minus_zerol): New variable.
56975         (test_function): Use minus_zerol instead of -zerol.
56976         * modules/snprintf-posix-tests (Depends-on): Add float.
56977         * modules/vsnprintf-posix-tests (Depends-on): Add float.
56978
56979         * tests/test-sprintf-posix.h (zerol): Remove variable.
56980         (minus_zerol): New variable.
56981         (test_function): Use minus_zerol instead of -zerol.
56982         * modules/sprintf-posix-tests (Depends-on): Add float.
56983         * modules/vsprintf-posix-tests (Depends-on): Add float.
56984
56985         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
56986         (minus_zerol): New variable.
56987         (test_function): Use minus_zerol instead of -zerol.
56988         * modules/vasnprintf-posix-tests (Depends-on): Add float.
56989
56990         * tests/test-vasprintf-posix.c (zerol): Remove variable.
56991         (minus_zerol): New variable.
56992         (test_function): Use minus_zerol instead of -zerol.
56993         * modules/vasprintf-posix-tests (Depends-on): Add float.
56994
56995 2008-10-07  Simon Josefsson  <simon@josefsson.org>
56996
56997         * MODULES.html.sh (Support for building documentation): Mention
56998         pmccabe2html.  Sort entries.
56999
57000         Add pmccabe2html module, from gnupdf.
57001         * build-aux/pmccabe.css: New file.
57002         * build-aux/pmccabe2html: New file.
57003         * m4/pmccabe2html.m4: New file.
57004         * modules/pmccabe2html: New file.
57005
57006 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
57007
57008         flock: new module
57009         * MODULES.html.sh: Add to list of modules.
57010         * lib/flock.c: flock implementation for Windows and Unix systems
57011         which have fcntl.
57012         * doc/glibc-functions/flock.texi: Update documentation.
57013         * lib/sys_file.in.h: <sys/file.h> header file.
57014         * m4/flock.m4: M4 macros.
57015         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
57016         * modules/flock: flock module.
57017         * modules/flock-tests: flock tests module.
57018         * modules/sys_file: sys/file.h module.
57019         * tests/test-flock.c: test suite for flock.
57020
57021 2008-10-06  Jim Meyering  <meyering@redhat.com>
57022
57023         bootstrap: check for LT_INIT more portably still ;-)
57024         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
57025         Spotted by Bruno Haible.
57026
57027 2008-10-06  Eric Blake  <ebb9@byu.net>
57028
57029         test-signbit: avoid tripping Irix cc bug on -0.0L
57030         * tests/test-signbit.c (minus_zerol): Delete, and replace with
57031         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
57032         entire testsuite consistent and avoids an Irix 6.2 bug.
57033
57034 2008-10-05  Bruno Haible  <bruno@clisp.org>
57035             Jim Meyering  <jim@meyering.net>
57036
57037         Add an option for ignoring EPIPE during close_stdout.
57038         * lib/closeout.h: Include <stdbool.h>.
57039         (close_stdout_set_ignore_EPIPE): New declaration.
57040         * lib/closeout.c: Include <stdbool.h>.
57041         (ignore_EPIPE): New variable.
57042         (close_stdout_set_ignore_EPIPE): New function.
57043         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
57044         * lib/close-stream.c (close_stream): Mention the possible EPIPE
57045         failure.
57046         * modules/closeout (Depends-on): Add stdbool.
57047
57048 2008-10-05  Bruno Haible  <bruno@clisp.org>
57049
57050         * modules/accept: New file.
57051         * modules/bind: New file.
57052         * modules/connect: New file.
57053         * modules/getpeername: New file.
57054         * modules/getsockname: New file.
57055         * modules/getsockopt: New file.
57056         * modules/listen: New file.
57057         * modules/recv: New file.
57058         * modules/recvfrom: New file.
57059         * modules/send: New file.
57060         * modules/sendto: New file.
57061         * modules/setsockopt: New file.
57062         * modules/socket: New file.
57063         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
57064         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
57065         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
57066         the particular module is requested. Add a link warning when the
57067         particular module is not requested.
57068         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
57069         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
57070         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
57071         the particular module is requested.
57072         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
57073         gl_SYS_SOCKET_H_DEFAULTS): New macros.
57074         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
57075         * modules/sys_socket (Depends-on): Add link-warning.
57076         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
57077         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
57078         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
57079         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
57080         GL_LINK_WARNING.
57081         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
57082         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
57083         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
57084         * doc/posix-functions/getpeername.texi: Mention the new module
57085         'getpeername'.
57086         * doc/posix-functions/getsockname.texi: Mention the new module
57087         'getsockname'.
57088         * doc/posix-functions/getsockopt.texi: Mention the new module
57089         'getsockopt'.
57090         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
57091         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
57092         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
57093         * doc/posix-functions/send.texi: Mention the new module 'send'.
57094         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
57095         * doc/posix-functions/setsockopt.texi: Mention the new module
57096         'setsockopt'.
57097         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
57098         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
57099         listen, connect, accept.
57100         * modules/select-tests (Depends-on): Likewise.
57101
57102 2008-10-05  Bruno Haible  <bruno@clisp.org>
57103
57104         * lib/winsock.c (strerror): Remove unused #undef.
57105         (rpl_close): Remove unused local variable.
57106
57107         * modules/sys_socket (Depends-on); Add errno.
57108
57109 2008-10-05  Bruno Haible  <bruno@clisp.org>
57110
57111         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
57112         (select): Add a link warning when the 'select' module is not used.
57113         * modules/sys_select (Depends-on): Add link-warning.
57114         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
57115         Suggested by Paolo Bonzini.
57116
57117 2008-10-05  Jim Meyering  <meyering@redhat.com>
57118
57119         bootstrap: check for LT_INIT more portably
57120         * build-aux/bootstrap: Avoid using grep -E, since it's not
57121         portable enough.  Suggestion from Bruno Haible.
57122
57123 2008-10-05  Bruno Haible  <bruno@clisp.org>
57124
57125         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
57126         as being fixed by gnulib.
57127
57128 2008-10-05  Bruno Haible  <bruno@clisp.org>
57129
57130         * modules/select-tests: New file, mostly copied from
57131         modules/sys_select-tests.
57132         * tests/test-select.c: New file, mostly copied from
57133         tests/test-sys_select.c.
57134         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
57135         * modules/sys_select-tests (Depends-on): Remove all dependencies.
57136         (Makefile.am): Remove test_sys_select_LDADD.
57137
57138         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
57139         to an undefined symbol, for an error message.
57140         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
57141         (gl_SYS_SELECT_H_DEFAULTS): New macro.
57142         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
57143         winsock-select.c here.
57144         * modules/sys_select (Files): Remove lib/winsock-select.c.
57145         (Depends-on): Remove alloca.
57146         (Makefile.am): Substitute GNULIB_SELECT.
57147         * modules/select: New file.
57148         * doc/posix-functions/select.texi: Update.
57149
57150 2008-10-05  Bruno Haible  <bruno@clisp.org>
57151
57152         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
57153         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
57154         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
57155         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
57156         getdtablesize.
57157         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
57158         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
57159
57160 2008-10-05  Bruno Haible  <bruno@clisp.org>
57161
57162         * modules/getdtablesize-tests: New file.
57163         * tests/test-getdtablesize.c: New file.
57164
57165         New module 'getdtablesize'.
57166         * lib/unistd.in.h (getdtablesize): New declaration.
57167         * lib/getdtablesize.c: New file.
57168         * m4/getdtablesize.m4: New file.
57169         * modules/getdtablesize: New file.
57170         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
57171         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
57172         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
57173         HAVE_GETDTABLESIZE.
57174         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
57175
57176 2008-10-05  Bruno Haible  <bruno@clisp.org>
57177
57178         * modules/sched (Makefile.am): Fix typo.
57179         Reported by Simon Josefsson.
57180
57181 2008-10-05  Jim Meyering  <meyering@redhat.com>
57182
57183         bootstrap: check for LT_INIT, too
57184         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
57185         are deprecated.  Suggestion from Ralf Wildenhues.
57186
57187 2008-10-05  Bruno Haible  <bruno@clisp.org>
57188
57189         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
57190         overriding them by ours.
57191         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
57192
57193 2008-10-05  Jim Meyering  <meyering@redhat.com>
57194
57195         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
57196         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
57197         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
57198
57199 2008-10-04  Bruno Haible  <bruno@clisp.org>
57200
57201         * modules/dup2 (License): Change to LGPLv2+.
57202         * modules/sleep (License): Likewise.
57203         * modules/perror (License): Likewise.
57204         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
57205         Blake.
57206         * modules/signal (License): Likewise.
57207         * modules/sigprocmask (License): Likewise.
57208         * modules/raise (License): Change to LGPLv2+, with approval by Jim
57209         Meyering.
57210
57211 2008-10-04  Bruno Haible  <bruno@clisp.org>
57212
57213         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
57214         Reported by Rainer Tammer <tammer@tammer.net>.
57215
57216 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
57217             Bruno Haible  <bruno@clisp.org>
57218
57219         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
57220         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
57221         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
57222
57223 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
57224
57225         filevercmp: new module
57226         * lib/filevercmp.h: New function filevercmp comparing version strings.
57227         * lib/filevercmp.c: Implementation of filevercmp function.
57228         * modules/filevercmp: Module metadata.
57229         * tests/test-filevercmp.c: Unit test for new module.
57230         * modules/filevercmp-tests: Unit test metadata.
57231         * MODULES.html.sh: Add filevercmp module.
57232
57233 2008-10-03  Bruno Haible  <bruno@clisp.org>
57234
57235         * lib/c-ctype.h: Add comment.
57236         Reported by Jim Meyering.
57237
57238 2008-10-02  Bruno Haible  <bruno@clisp.org>
57239
57240         * modules/posix_spawn-internal (Depends-on): Add 'open'.
57241
57242 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
57243
57244         * build-aux/bootstrap: Allow renaming bootstrap, and change the
57245         name of bootstrap.conf accordingly.
57246
57247 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
57248
57249         * build-aux/bootstrap: Install git-merge-changelog configuration
57250         items into .gitconfig if needed.
57251
57252 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
57253
57254         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
57255         git repository, and initialize/update it accordingly.
57256
57257 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
57258
57259         * modules/fsync-tests: New file.
57260         * tests/test-fsync.c: New file.
57261
57262         New module 'fsync'.
57263         * lib/fsync.c: New file.
57264         * m4/fsync.m4: New file.
57265         * modules/fsync: New file.
57266         * lib/unistd.in.h (fsync): New declaration.
57267         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
57268         GNULIB_FSYNC and HAVE_FSYNC.
57269         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
57270         * MODULES.html.sh (posix_functions): Add fsync.
57271         * doc/posix-functions/fsync.texi: Mention the new module.
57272
57273 2008-10-02  Jim Meyering  <meyering@redhat.com>
57274
57275         fts.c: sync with similar code from coreutils' remove.c
57276         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
57277         Guard also with "#if defined __linux__", since for now at least,
57278         this code is Linux-kernel-specific.
57279
57280 2008-10-02  Jim Meyering  <meyering@redhat.com>
57281
57282         fts: bug fixes
57283         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
57284         Include <sys/vfs.h>, not <sys/statfs.h>.
57285
57286         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
57287         Include <sys/vfs.h>, not <sys/statfs.h>.
57288
57289 2008-10-01  Bruno Haible  <bruno@clisp.org>
57290
57291         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
57292         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
57293         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
57294         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
57295         * doc/posix-functions/posix_spawnp.texi: Likewise.
57296         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
57297         whether posix_spawn actually works.
57298         * m4/pipe.m4 (gl_PIPE): Likewise.
57299         * modules/execute (Files): Add m4/posix_spawn.m4.
57300         * modules/pipe (Files): Add m4/posix_spawn.m4.
57301         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
57302
57303 2008-10-01  Jim Meyering  <meyering@redhat.com>
57304
57305         remove trailing spaces
57306         * NEWS: Likewise.
57307         * lib/poll.c (poll): Likewise.
57308         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
57309         * lib/winsock.c (rpl_close): Likewise.
57310         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
57311         * modules/yield: Likewise.
57312         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
57313         * tests/test-sys_select.c (connect_to_socket): Likewise.
57314
57315         fts.c: adjust a new interface to be more generally useful
57316         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
57317         (fts_build): Adjust caller.
57318
57319 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57320
57321         * modules/cond-tests: New file.
57322         * tests/test-cond.c: New file.
57323
57324 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57325             Bruno Haible  <bruno@clisp.org>
57326
57327         * modules/cond (Dependencies): Add errno, time.
57328         * lib/glthread/cond.h: Include <time.h>.
57329         (gl_cond_define, gl_cond_define_initialized): Use the same definition
57330         across platforms.
57331
57332 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57333             Bruno Haible  <bruno@clisp.org>
57334
57335         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
57336
57337 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57338             Bruno Haible  <bruno@clisp.org>
57339
57340         * modules/tls-tests (Depends-on): Add thread, yield.
57341         (configure.ac): Remove all checks.
57342         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
57343         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
57344         gl_thread_self): Remove definitions. Include glthread/thread.h and
57345         glthread/yield.h instead.
57346         (test_tls): Pass an additional NULL argument to gl_thread_join.
57347
57348 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57349             Bruno Haible  <bruno@clisp.org>
57350
57351         * modules/lock-tests (Depends-on): Add thread, yield.
57352         (configure.ac): Remove all checks.
57353         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
57354         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
57355         gl_thread_self): Remove definitions. Include glthread/thread.h and
57356         glthread/yield.h instead.
57357         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
57358         additional NULL argument to gl_thread_join.
57359
57360 2008-09-30  Bruno Haible  <bruno@clisp.org>
57361
57362         Fix the Win32 implementation of the 'thread' module.
57363         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
57364         pointer type.
57365         (gl_thread_self): Invoke gl_thread_self_func.
57366         (gl_thread_self_func): New declaration.
57367         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
57368         (do_init_self_key, init_self_key): New functions.
57369         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
57370         Remove some fields.
57371         (running_threads, running_lock): Remove variables.
57372         (get_current_thread_handle): New function.
57373         (gl_thread_self_func, wrapper_func, glthread_create_func,
57374         glthread_join_func, gl_thread_exit_func): Largely rewritten and
57375         simplified.
57376
57377 2008-09-30  Bruno Haible  <bruno@clisp.org>
57378
57379         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
57380         files.
57381
57382 2008-09-30  Jim Meyering  <meyering@redhat.com>
57383
57384         fts.m4: correct the test for statfs.f_type
57385         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
57386         when checking for statfs.f_type.
57387
57388 2008-09-15  Simon Josefsson  <simon@josefsson.org>
57389
57390         tests: avoid some compiler warnings
57391         * tests/test-memchr.c (main): Pass NULL indirectly.
57392         * tests/test-getdate.c (main): Remove unused variable 'ret'.
57393
57394 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
57395
57396         getdate.y: disallow countable dayshifts like "4 yesterday ago"
57397         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
57398         exactly specified dayshifts.
57399         (dayshift): New rule.
57400         (rel): Add dayshift.
57401         (relative_time_table) [tomorrow, yesterday, today, now]:
57402         Use tDAY_SHIFT in place of tDAY_UNIT.
57403         * tests/test-getdate.c: Add tests for now-disallowed countable
57404         dayshifts, e.g., "4 yesterday ago".
57405
57406 2008-09-29  Bruno Haible  <bruno@clisp.org>
57407
57408         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
57409         * tests/test-posix_spawn1.in.sh: Renamed from
57410         tests/test-posix_spawn.in.sh.
57411         * tests/test-posix_spawn2.c: New file.
57412         * tests/test-posix_spawn2.in.sh: New file.
57413         * modules/posix_spawnp-tests (Files): Update.
57414         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
57415
57416 2008-09-29  Bruno Haible  <bruno@clisp.org>
57417
57418         Propagate effects of putenv/setenv/unsetenv to child processes.
57419         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
57420         * lib/pipe.c (create_pipe): Likewise.
57421
57422 2008-09-29  Bruno Haible  <bruno@clisp.org>
57423
57424         Enable use of shell scripts as executables in mingw.
57425         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
57426         run the program as a shell script.
57427         * lib/pipe.c (create_pipe): Likewise.
57428         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
57429         resulting array.
57430
57431 2008-09-29  Eric Blake  <ebb9@byu.net>
57432
57433         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
57434
57435 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
57436
57437         * doc/posix-functions/accept.texi: Update mingw problems.
57438         * doc/posix-functions/bind.texi: Update mingw problems.
57439         * doc/posix-functions/close.texi: Update mingw problems.
57440         * doc/posix-functions/connect.texi: Update mingw problems.
57441         * doc/posix-functions/getpeername.texi: Update mingw problems.
57442         * doc/posix-functions/getsockname.texi: Update mingw problems.
57443         * doc/posix-functions/getsockopt.texi: Update mingw problems.
57444         * doc/posix-functions/ioctl.texi: Update mingw problems.
57445         * doc/posix-functions/listen.texi: Update mingw problems.
57446         * doc/posix-functions/recv.texi: Update mingw problems.
57447         * doc/posix-functions/recvfrom.texi: Update mingw problems.
57448         * doc/posix-functions/select.texi: Update mingw problems.
57449         * doc/posix-functions/send.texi: Update mingw problems.
57450         * doc/posix-functions/sendto.texi: Update mingw problems.
57451         * doc/posix-functions/setsockopt.texi: Update mingw problems.
57452         * doc/posix-functions/socket.texi: Update mingw problems.
57453
57454 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
57455             Bruno Haible  <bruno@clisp.org>
57456
57457         * lib/sys_select.in.h: Include sys/time.h.
57458         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
57459         * modules/sys_select: Depend on sys_time.
57460         * tests/test-sys_select.c: Test that sys/select.h defines struct
57461         timeval fully.
57462
57463 2008-09-29  Bruno Haible  <bruno@clisp.org>
57464
57465         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
57466         * lib/sys_select.in.h: Likewise.
57467
57468 2008-09-29  Bruno Haible  <bruno@clisp.org>
57469
57470         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
57471
57472 2008-09-29  Bruno Haible  <bruno@clisp.org>
57473
57474         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
57475         Set LIBSOCKET instead of augmenting LIBS.
57476         * modules/sockets (Link): New section.
57477         * modules/sockets-tests (test_sockets_LDADD): New variable.
57478         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
57479         * modules/poll-tests (test_poll_LDADD): New variable.
57480         * NEWS: Document the change.
57481
57482 2008-09-29  Bruno Haible  <bruno@clisp.org>
57483
57484         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
57485         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
57486         ARPA_INET_H directly.
57487         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
57488
57489 2008-09-28  Bruno Haible  <bruno@clisp.org>
57490
57491         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
57492         from gl_HEADER_SYS_SOCKET.
57493         (gl_HEADER_SYS_SOCKET): Invoke it.
57494         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
57495
57496 2008-09-28  Bruno Haible  <bruno@clisp.org>
57497
57498         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
57499         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
57500         Needed on OSF/1 4.0.
57501
57502 2008-09-28  Bruno Haible  <bruno@clisp.org>
57503
57504         Override open more carefully.
57505         * lib/open.c (orig_open): New function.
57506         (rpl_open): Use orig_open instead of open.
57507         * lib/fcntl.in.h: Add special invocation convention.
57508         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
57509         (gl_FUNC_OPEN): Invoke it.
57510
57511         Override freopen more carefully.
57512         * lib/freopen.c (orig_freopen): New function.
57513         (rpl_freopen): Use orig_freopen instead of freopen.
57514         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
57515         (gl_FUNC_FREOPEN): Invoke it.
57516
57517         Override fopen more carefully.
57518         * lib/fopen.c (orig_fopen): New function.
57519         (rpl_fopen): Use orig_fopen instead of fopen.
57520         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
57521         (gl_FUNC_FOPEN): Invoke it.
57522         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
57523
57524 2008-09-28  Bruno Haible  <bruno@clisp.org>
57525
57526         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
57527         SIGPIPE.
57528
57529 2008-09-28  Bruno Haible  <bruno@clisp.org>
57530
57531         * tests/test-sigaction.c (handler, main): Disable the check whether
57532         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
57533         glibc systems with LinuxThreads.
57534
57535 2008-09-28  Bruno Haible  <bruno@clisp.org>
57536
57537         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
57538
57539         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
57540         with AIX xlc.
57541         * lib/fcntl.in.h (open): Likewise.
57542         Reported by Rainer Tammer <tammer@tammer.net>.
57543
57544 2008-09-28  Bruno Haible  <bruno@clisp.org>
57545
57546         * modules/posix_spawnp-tests: New file.
57547         * tests/test-posix_spawn.c: New file.
57548         * tests/test-posix_spawn.in.sh: New file.
57549
57550         New module 'posix_spawnp'.
57551         * modules/posix_spawnp: New file.
57552         * lib/spawnp.c: New file, from GNU libc with modifications.
57553         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
57554
57555         New module 'posix_spawn'.
57556         * modules/posix_spawn: New file.
57557         * lib/spawn.c: New file, from GNU libc with modifications.
57558         * doc/posix-functions/posix_spawn.texi: Mention the new module.
57559
57560         New module 'posix_spawnattr_destroy'.
57561         * modules/posix_spawnattr_destroy: New file.
57562         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
57563         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
57564         module.
57565
57566         New module 'posix_spawnattr_setsigmask'.
57567         * modules/posix_spawnattr_setsigmask: New file.
57568         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
57569         modifications.
57570         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
57571         new module.
57572
57573         New module 'posix_spawnattr_getsigmask'.
57574         * modules/posix_spawnattr_getsigmask: New file.
57575         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
57576         modifications.
57577         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
57578         new module.
57579
57580         New module 'posix_spawnattr_setsigdefault'.
57581         * modules/posix_spawnattr_setsigdefault: New file.
57582         * lib/spawnattr_setdefault.c: New file, from GNU libc with
57583         modifications.
57584         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
57585         new module.
57586
57587         New module 'posix_spawnattr_getsigdefault'.
57588         * modules/posix_spawnattr_getsigdefault: New file.
57589         * lib/spawnattr_getdefault.c: New file, from GNU libc with
57590         modifications.
57591         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
57592         new module.
57593
57594         New module 'posix_spawnattr_setschedpolicy'.
57595         * modules/posix_spawnattr_setschedpolicy: New file.
57596         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
57597         modifications.
57598         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
57599         new module.
57600
57601         New module 'posix_spawnattr_getschedpolicy'.
57602         * modules/posix_spawnattr_getschedpolicy: New file.
57603         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
57604         modifications.
57605         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
57606         new module.
57607
57608         New module 'posix_spawnattr_setschedparam'.
57609         * modules/posix_spawnattr_setschedparam: New file.
57610         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
57611         modifications.
57612         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
57613         new module.
57614
57615         New module 'posix_spawnattr_getschedparam'.
57616         * modules/posix_spawnattr_getschedparam: New file.
57617         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
57618         modifications.
57619         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
57620         new module.
57621
57622         New module 'posix_spawnattr_setpgroup'.
57623         * modules/posix_spawnattr_setpgroup: New file.
57624         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
57625         modifications.
57626         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
57627         module.
57628
57629         New module 'posix_spawnattr_getpgroup'.
57630         * modules/posix_spawnattr_getpgroup: New file.
57631         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
57632         modifications.
57633         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
57634         module.
57635
57636         New module 'posix_spawnattr_setflags'.
57637         * modules/posix_spawnattr_setflags: New file.
57638         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
57639         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
57640         module.
57641
57642         New module 'posix_spawnattr_getflags'.
57643         * modules/posix_spawnattr_getflags: New file.
57644         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
57645         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
57646         module.
57647
57648         New module 'posix_spawnattr_init'.
57649         * modules/posix_spawnattr_init: New file.
57650         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
57651         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
57652         module.
57653
57654         New module 'posix_spawn_file_actions_destroy'.
57655         * modules/posix_spawn_file_actions_destroy: New file.
57656         * lib/spawn_faction_destroy.c: New file, from GNU libc with
57657         modifications.
57658         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
57659         the new module.
57660
57661         New module 'posix_spawn_file_actions_addopen'.
57662         * modules/posix_spawn_file_actions_addopen: New file.
57663         * lib/spawn_faction_addopen.c: New file, from GNU libc with
57664         modifications.
57665         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
57666         the new module.
57667
57668         New module 'posix_spawn_file_actions_adddup2'.
57669         * modules/posix_spawn_file_actions_adddup2: New file.
57670         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
57671         modifications.
57672         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
57673         the new module.
57674
57675         New module 'posix_spawn_file_actions_addclose'.
57676         * modules/posix_spawn_file_actions_addclose: New file.
57677         * lib/spawn_faction_addclose.c: New file, from GNU libc with
57678         modifications.
57679         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
57680         the new module.
57681
57682         New module 'posix_spawn_file_actions_init'.
57683         * modules/posix_spawn_file_actions_init: New file.
57684         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
57685         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
57686         new module.
57687
57688         New module 'posix_spawn-internal'.
57689         * modules/posix_spawn-internal: New file.
57690         * lib/spawn_int.h: New file, from GNU libc with modifications.
57691         * lib/spawni.c: New file, from GNU libc with modifications.
57692         * m4/posix_spawn.m4: New file.
57693
57694         New module 'spawn'.
57695         * modules/spawn: New file.
57696         * lib/spawn.in.h: New file, from GNU libc with modifications.
57697         * m4/spawn_h.m4: New file.
57698         * doc/posix-headers/spawn.texi: Mention the new module.
57699
57700 2008-09-28  Bruno Haible  <bruno@clisp.org>
57701
57702         * modules/sched-tests: New file.
57703         * tests/test-sched.c: New file.
57704
57705         New module 'sched'.
57706         * modules/sched: New file.
57707         * lib/sched.in.h: New file.
57708         * m4/sched_h.m4: New file.
57709         * doc/posix-headers/sched.texi: Mention the new module.
57710
57711 2008-09-27  Eric Blake  <ebb9@byu.net>
57712
57713         Fix previous patch, and tweak references to $0.
57714         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
57715         (func_version, func_gnulib_dir): Don't call this program
57716         gnulib-tool.
57717         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
57718         with using $0 in function.
57719         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
57720         (func_fatal_error): Reuse the name the user invoked us with.
57721
57722 2008-09-27  Bruno Haible  <bruno@clisp.org>
57723
57724         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
57725         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
57726         (gl_ICONV_H): Not here.
57727         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
57728         instead of assigning ICONV_H directly.
57729
57730         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
57731         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
57732         WCHAR_H directly.
57733
57734 2008-09-27  Bruno Haible  <bruno@clisp.org>
57735
57736         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
57737         * modules/arpa_inet (Depends-on): Add link-warning.
57738         (Makefile.am): Insert the definition of GL_LINK-WARNING.
57739         * modules/unistd (Makefile.am): Likewise.
57740
57741 2008-09-26  Bruno Haible  <bruno@clisp.org>
57742
57743         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
57744         variables.
57745         (func_version): Essentially copied from gnulib-tool.
57746         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
57747         func_readlink): Copied from gnulib-tool.
57748
57749 2008-09-26  Bruno Haible  <bruno@clisp.org>
57750
57751         * gnulib-tool (func_version): Change directory to $gnulib_dir before
57752         invoking git-version-gen.
57753
57754 2008-09-26  Bruno Haible  <bruno@clisp.org>
57755
57756         * posix-modules: Update to directory names changed on 2008-01-19.
57757         Remove commas in output before splitting into words. No more need to
57758         avoid 'ftruncate' since 2007-02-19.
57759
57760 2008-09-26  Bruno Haible  <bruno@clisp.org>
57761
57762         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
57763
57764 2008-09-26  Bruno Haible  <bruno@clisp.org>
57765
57766         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
57767         * modules/fwriteerror (Depends-on): Add errno.
57768
57769 2008-09-26  Bruno Haible  <bruno@clisp.org>
57770
57771         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
57772         * tests/test-vc-list-files-cvs.sh: Likewise.
57773
57774 2008-09-26  Bruno Haible  <bruno@clisp.org>
57775
57776         * doc/posix-headers/sys_resource.texi: Reorder items.
57777
57778 2008-09-26  Jim Meyering  <meyering@redhat.com>
57779
57780         fts: tweak inode comparison function
57781         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
57782         inode numbers, as documented.
57783
57784         fts: sort dirent entries on inode number before traversing
57785         This avoids a quadratic, seek-related performance penalty when
57786         operating on a directory containing many entries (measurable at 10k;
57787         3.5 hours at 2 million entries with a cold cache) on certain types
57788         of file systems, including ext3 and ext4, but not tmpfs.
57789         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
57790         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
57791         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
57792         (fs_handles_readdir_ordered_dirents_efficiently): New function.
57793         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
57794         (fts_build): Set the stat.st_ino member from D_INO.
57795         If it is likely to be useful, sort dirent entries on inode number.
57796
57797         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
57798         and the struct statfs.f_type member.
57799         * modules/fts (Depends-on): Add d-ino.
57800
57801 2008-09-26  Bruno Haible  <bruno@clisp.org>
57802
57803         * modules/sigpipe-die (Depends-on): Add sigpipe.
57804
57805         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
57806         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
57807         and GNULIB_STDIO_H_SIGPIPE are set.
57808         * lib/stdio-write.c: New file.
57809         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
57810         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
57811         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
57812         REPLACE_STDIO_WRITE_FUNCS.
57813         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
57814         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
57815         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
57816         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
57817         * modules/stdio (Files): Add lib/stdio-write.c.
57818         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
57819         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
57820         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
57821         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
57822         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
57823         REPLACE_FPRINTF_POSIX.
57824         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
57825         REPLACE_PRINTF_POSIX.
57826         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
57827         REPLACE_VFPRINTF_POSIX.
57828         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
57829         REPLACE_VPRINTF_POSIX.
57830         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
57831         SIGPIPE issue.
57832         * doc/posix-functions/fputc.texi: Likewise.
57833         * doc/posix-functions/fputs.texi: Likewise.
57834         * doc/posix-functions/fwrite.texi: Likewise.
57835         * doc/posix-functions/printf.texi: Likewise.
57836         * doc/posix-functions/putc.texi: Likewise.
57837         * doc/posix-functions/putchar.texi: Likewise.
57838         * doc/posix-functions/puts.texi: Likewise.
57839         * doc/posix-functions/vfprintf.texi: Likewise.
57840         * doc/posix-functions/vprintf.texi: Likewise.
57841
57842         * modules/safe-write (Depends-on): Add write.
57843
57844         * modules/sigpipe-tests: New file.
57845         * tests/test-sigpipe.c: New file.
57846         * tests/test-sigpipe.sh: New file.
57847
57848         * modules/write: New file.
57849         * lib/unistd.in.h: Include <sys/types.h>.
57850         (write): New declaration.
57851         * lib/write.c: New file.
57852         * m4/write.m4: New file.
57853         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
57854         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
57855         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
57856         GNULIB_WRITE, REPLACE_WRITE.
57857         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
57858         and the SIGPIPE issue.
57859
57860         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
57861         (raise): New declaration.
57862         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
57863         (ext_signal): New function.
57864         (rpl_raise): New function.
57865         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
57866         GNULIB_SIGNAL_H_SIGPIPE.
57867         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
57868         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
57869
57870         * modules/sigpipe: New file.
57871         * m4/sigpipe.m4: New file.
57872
57873 2008-09-25  Derek Price  <derek@ximbiot.com>
57874             Bruno Haible  <bruno@clisp.org>
57875
57876         * gnulib-tool (func_import): Report all license incompatibilities, not
57877         just the first one.
57878
57879 2008-09-25  Bruno Haible  <bruno@clisp.org>
57880
57881         * gnulib-tool (func_import): When computing the edits, consider not
57882         only the Makefile.ams that exist but also those that will be generated.
57883
57884 2008-09-25  Simon Josefsson  <simon@josefsson.org>
57885
57886         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
57887         fixes gnulib-tool --test warning about duplicate dependency.
57888
57889 2008-09-25  Bruno Haible  <bruno@clisp.org>
57890
57891         * gnulib-tool: Don't ask the user to perform edits in the generated
57892         Makefile.ams.
57893         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
57894         apply to the Makefile.am being generated.
57895         (func_emit_tests_Makefile_am): Execute edits that apply to the
57896         Makefile.am being generated.
57897         (func_import): Setup list of Makefile.am edits before emitting the
57898         Makefile.ams, not at the end.
57899         (func_create_testdir): Update.
57900         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
57901
57902 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57903
57904         * gnulib-tool (func_import): Store the --tests-base option in the
57905         comment in gnulib-cache.m4.
57906
57907 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
57908
57909         * NEWS: Document increased portability that sys_select now provides.
57910
57911         * lib/sys_select.in.h: Install select wrapper.
57912         * lib/sys_socket.in.h: Use more descriptive name when there is no
57913         select wrapper.
57914         * lib/winsock-select.c: New.
57915         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
57916         Require gl_HEADER_SYS_SOCKET.
57917         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
57918         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
57919         * tests/test-sys_select.c: Add functional tests.
57920
57921 2008-09-24  Eric Blake  <ebb9@byu.net>
57922
57923         open, fopen: close fd leak in last patch
57924         * lib/open.c (rpl_open): Close fd before returning error.
57925         * lib/fopen.c (rpl_fopen): Close fd before returning error.
57926         * doc/posix-functions/open.texi (open): Document that Irix also
57927         has the bug.
57928         * doc/posix-functions/fopen.texi (fopen): Likewise.
57929         Reported by Paolo Bonzini.
57930
57931 2008-09-24  Bruno Haible  <bruno@clisp.org>
57932
57933         Ensure that a filename ending in a slash cannot be used to access a
57934         non-directory.
57935         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
57936         to check whether it's really a directory.
57937         * lib/fopen.c: Include fcntl.h, unistd.h.
57938         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
57939         and fdopen().
57940         * modules/fopen (Depends-on): Add unistd.
57941         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
57942         * tests/test-fopen.c (main): Likewise.
57943         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
57944         * doc/posix-functions/fopen.texi: Likewise.
57945         Reported by Eric Blake.
57946
57947 2008-09-23  Eric Blake  <ebb9@byu.net>
57948
57949         c-stack: avoid compiler optimizations when provoking overflow
57950         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
57951         recursion harder to optimize, to ensure a stack overflow occurs.
57952         * tests/test-c-stack.c (recurse): Likewise.
57953         Borrowed from libsigsegv.
57954
57955         c-stack: work around Irix sigaltstack bug
57956         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
57957         whether sigaltstack uses wrong end of stack_t (copied in part from
57958         libsigsegv).
57959         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
57960         Irix bug, without requiring an over-allocation.
57961         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
57962         bug.
57963
57964         fopen: document mingw bug on directories
57965         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
57966         not allowing a stream visiting a directory, even though reading
57967         from such a stream is not portable.
57968
57969 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
57970
57971         * lib/poll.c: Rewrite.
57972         * modules/poll: Depend on alloca.
57973
57974 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
57975
57976         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
57977         instead define prototypes for a full set of wrappers.  Ensure
57978         that Cygwin does not use the compatibility code, which is only
57979         for MinGW.
57980         * lib/winsock.c: New.
57981         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
57982         * modules/sys_socket: Add lib/winsock.c.
57983
57984         * modules/poll-tests: Add errno and perror.
57985         * tests/test-poll.c: Use ioctl, not ioctlsocket.
57986
57987 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
57988
57989         * tests/test-poll.c: Downgrade minimum needed Winsock version.
57990
57991 2008-09-23  Bruno Haible  <bruno@clisp.org>
57992
57993         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
57994         * doc/glibc-functions/*: Likewise.
57995
57996 2008-09-23  Simon Josefsson  <simon@josefsson.org>
57997
57998         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
57999         success.
58000
58001 2008-09-22  Eric Blake  <ebb9@byu.net>
58002             Bruno Haible  <bruno@clisp.org>
58003
58004         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
58005         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
58006         supply %A but mishandle pseudo-NaN.
58007         Reported by Simon Josefsson.
58008
58009 2008-09-21  Bruno Haible  <bruno@clisp.org>
58010
58011         * tests/test-lock.c (main): Tweak skip message.
58012         * tests/test-tls.c (main): Likewise.
58013
58014 2008-09-21  Bruno Haible  <bruno@clisp.org>
58015
58016         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
58017         whether 'struct sigaction' has sa_sigaction here...
58018         (gl_PREREQ_SIG_HANDLER_H): ... not here.
58019         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
58020
58021 2008-09-21  Bruno Haible  <bruno@clisp.org>
58022
58023         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
58024         section.
58025         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
58026         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
58027         the new section.
58028         (Support for obsolete systems lacking POSIX:2001): New section.
58029         (String handling <string.h>): Move strdup to the new section.
58030         Suggested by Simon Josefsson and Paolo Bonzini.
58031
58032 2008-09-21  Bruno Haible  <bruno@clisp.org>
58033
58034         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
58035         exponents in %e and %g results on 'long double'. Needed for mingw's
58036         improved *printf functions.
58037         * tests/test-vasprintf-posix.c (test_function): Likewise.
58038         * tests/test-snprintf-posix.h (test_function): Likewise.
58039         * tests/test-sprintf-posix.h (test_function): Likewise.
58040         Reported by Eric Blake.
58041
58042 2008-09-21  Bruno Haible  <bruno@clisp.org>
58043
58044         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
58045         * tests/test-sprintf-posix.h (test_function): Likewise.
58046
58047 2008-09-21  Bruno Haible  <bruno@clisp.org>
58048
58049         * modules/getpass (Depends-on): Add strdup-posix.
58050
58051         New module 'strdup-posix'.
58052         * modules/strdup-posix: New file.
58053         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
58054         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
58055         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
58056         REPLACE_STRDUP.
58057         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
58058         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
58059         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
58060         strdup-posix.
58061
58062         * modules/strdup (Depends-on): Remove malloc-posix.
58063
58064 2008-09-20  Bruno Haible  <bruno@clisp.org>
58065
58066         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
58067         Wildenhues.
58068
58069 2008-09-20  Bruno Haible  <bruno@clisp.org>
58070
58071         Ensure that wint_t gets defined on IRIX 5.3.
58072         * lib/wchar.in.h (wint_t): Define if not defined by the system.
58073         * lib/wctype.in.h (wint_t): Likewise.
58074         (__wctype_wint_t): Remove type.
58075         (isw*): Use wint_t instead of __wctype_wint_t.
58076         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
58077         * modules/wchar (Files): Add m4/wint_t.m4.
58078         (Makefile.am): Substitute HAVE_WINT_T.
58079         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
58080         * tests/test-wctype.c: Check that wint_t is defined.
58081         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
58082         * doc/posix-headers/wctype.texi: Likewise.
58083         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
58084
58085 2008-09-18  Bruno Haible  <bruno@clisp.org>
58086
58087         * gnulib-tool (func_exit): Update comment.
58088
58089 2008-09-18  Simon Josefsson  <simon@josefsson.org>
58090
58091         * modules/getaddrinfo (Depends-on): Remove strdup, this module
58092         assumes strdup exists and does not depend on strdup to return
58093         ENOMEM on out of memory conditions.
58094
58095 2008-09-18  Bruno Haible  <bruno@clisp.org>
58096
58097         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
58098         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
58099         digits for the exponent.
58100
58101 2008-09-18  Jim Meyering  <meyering@redhat.com>
58102             Bruno Haible  <bruno@clisp.org>
58103
58104         * lib/vasnprintf.c (decimal_point_char): Define also if
58105         NEED_PRINTF_INFINITE_LONG_DOUBLE.
58106
58107 2008-09-16  Bruno Haible  <bruno@clisp.org>
58108         and Eric Blake  <ebb9@byu.net>
58109
58110         vasnprintf: support Irix 5.3
58111         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
58112         that mishandle long double infinity.
58113         Reported by Tom G. Christensen.
58114
58115 2008-09-16  Bruno Haible  <bruno@clisp.org>
58116
58117         * doc/glibc-functions/scandir.texi: Mention the function is missing on
58118         Solaris 9.
58119         * doc/glibc-functions/alphasort.texi: Likewise.
58120         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
58121
58122 2008-09-16  Jim Meyering  <meyering@redhat.com>
58123
58124         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
58125         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
58126         a umask modification leak out of a subshell.  Otherwise, the
58127         opensolaris /bin/sh would be accepted and thus cause unwarranted
58128         failures in the coreutils test suite.
58129
58130 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
58131
58132         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
58133         to succeed.
58134
58135 2008-09-16  Jim Meyering  <meyering@redhat.com>
58136
58137         avoid spurious test failure when library is built without ACL support
58138         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
58139         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
58140         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
58141         * tests/test-copy-acl.sh: Likewise.
58142
58143 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58144
58145         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
58146         based on character occurrence counts.
58147
58148 2008-09-15  Eric Blake  <ebb9@byu.net>
58149
58150         tests: avoid some compiler warnings
58151         * tests/test-memchr.c (main): Pass NULL indirectly.
58152         * tests/test-closein.c (main): Avoid unused variable.
58153
58154 2008-09-15  Bruno Haible  <bruno@clisp.org>
58155
58156         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
58157         are missing on OpenBSD 4.0 individually.
58158         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
58159
58160 2008-09-15  Bruno Haible  <bruno@clisp.org>
58161
58162         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
58163         * doc/posix-functions/strerror.texi: Mention also Cygwin.
58164         * doc/posix-functions/perror.texi: Likewise.
58165         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
58166         is missing.
58167         Reported by Eric Blake.
58168
58169         * lib/errno.in.h: Use replacement values >= 2000.
58170         Reported by Eric Blake.
58171
58172 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58173
58174         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
58175         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
58176         limit.
58177         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
58178         compareseq was aborted.
58179
58180 2008-09-14  Bruno Haible  <bruno@clisp.org>
58181
58182         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
58183         yvec_edit_count.
58184         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
58185         (fstrcmp_bounded): Simplify result computation accordingly.
58186
58187 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58188
58189         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
58190         (fstrcmp): Define in terms of fstrcmp_bounded.
58191         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
58192         lower_bound argument.
58193         Return quickly if the result is certainly < lower_bound.
58194         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
58195
58196 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58197
58198         * lib/diffseq.h (EARLY_ABORT): New macro.
58199         (compareseq): Change return type to bool. Return true when EARLY_ABORT
58200         evaluates to true.
58201
58202 2008-09-14  Bruno Haible  <bruno@clisp.org>
58203
58204         * modules/perror-tests: New file.
58205         * tests/test-perror.sh: New file.
58206         * tests/test-perror.c: New file.
58207
58208         New module 'perror'.
58209         * lib/stdio.in.h (perror): New declaration.
58210         * lib/perror.c: New file.
58211         * m4/perror.m4: New file.
58212         * modules/perror: New file.
58213         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
58214         * doc/posix-functions/perror.texi: Mention the perror module.
58215         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
58216         REPLACE_PERROR.
58217         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
58218         REPLACE_PERROR.
58219
58220 2008-09-14  Bruno Haible  <bruno@clisp.org>
58221
58222         * modules/stdio (Makefile.am): Reorder to match the order in
58223         lib/stdio.in.h.
58224         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
58225
58226 2008-09-13  Bruno Haible  <bruno@clisp.org>
58227
58228         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
58229
58230 2008-09-13  Bruno Haible  <bruno@clisp.org>
58231
58232         Extend strerror to cover the added errno values.
58233         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
58234         (rpl_strerror): Provide error messages for the added errno values and
58235         for the WSA* values.
58236         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
58237         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
58238         strerror.
58239         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
58240         * modules/strerror (Depends-on): Add errno.
58241         * doc/posix-functions/strerror.texi: Document the change.
58242         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
58243         and EOVERFLOW.
58244
58245 2008-09-13  Bruno Haible  <bruno@clisp.org>
58246
58247         * modules/EOVERFLOW: Remove file.
58248         * m4/eoverflow.m4: Remove file.
58249         * modules/EOVERFLOW-tests: Remove file.
58250         * tests/test-EOVERFLOW.c: Remove file.
58251         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
58252         * modules/ftell (Depends-on): Likewise.
58253         * modules/getdelim (Depends-on): Likewise.
58254         * modules/getugroups (Depends-on): Likewise.
58255         * modules/poll (Depends-on): Likewise.
58256         * modules/snprintf (Depends-on): Likewise.
58257         * modules/sprintf-posix (Depends-on): Likewise.
58258         * modules/vasnprintf (Depends-on): Likewise.
58259         * modules/vasprintf (Depends-on): Likewise.
58260         * modules/vfprintf-posix (Depends-on): Likewise.
58261         * modules/vsnprintf (Depends-on): Likewise.
58262         * modules/vsprintf-posix (Depends-on): Likewise.
58263         * modules/xvasprintf (Depends-on): Likewise.
58264         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
58265         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
58266         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
58267         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
58268         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
58269         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
58270         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
58271         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
58272         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
58273         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
58274         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
58275         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
58276         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
58277         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
58278         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
58279         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
58280         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
58281         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
58282         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
58283         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
58284         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
58285         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
58286         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
58287         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
58288         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
58289         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
58290         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
58291         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
58292         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
58293         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
58294         * MODULES.html.sh: Remove EOVERFLOW.
58295         * NEWS: Mention the change.
58296
58297 2008-09-13  Bruno Haible  <bruno@clisp.org>
58298
58299         * modules/errno-tests: New file.
58300         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
58301
58302         * lib/errno.in.h: New file.
58303         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
58304         * modules/errno: New file.
58305         * doc/posix-headers/errno.texi: Update documentation.
58306         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
58307
58308 2008-09-13  Bruno Haible  <bruno@clisp.org>
58309
58310         * tests/test-poll.c: Use #if for native Windows, rather than testing
58311         __MSVCRT__.
58312
58313 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58314             Bruno Haible  <bruno@clisp.org>
58315
58316         * lib/glob.c: Don't include <pwd.h> on native Windows.
58317         (WINDOWS32): New macro.
58318         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
58319
58320 2008-09-13  Bruno Haible  <bruno@clisp.org>
58321
58322         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
58323         (ETIMEDOUT): Remove macro.
58324         (glthread_cond_timedwait_multithreaded): New declaration.
58325         (glthread_cond_timedwait): Use it.
58326         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
58327         (glthread_cond_timedwait_multithreaded): New function.
58328
58329 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
58330
58331         * modules/poll-tests: Do not check for io.h.
58332         * tests/test-poll.c: Check for __MSVCRT__ instead.
58333
58334 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
58335
58336         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
58337         * modules/poll-tests: Add inet_pton, stdbool, sockets.
58338         * tests/test-poll.c: Use them.  Use _pipe on Windows.
58339
58340 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
58341
58342         * modules/poll-tests: New.
58343         * tests/test-poll.c: New.
58344
58345 2008-09-12  Eric Blake  <ebb9@byu.net>
58346
58347         frexp: test for NetBSD failure on -0.0
58348         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
58349         not all, bugs from NetBSD 3.0 have been fixed.
58350         * doc/posix-functions/frexp.texi (frexp): Document bug.
58351         Reported by Thomas Klausner.
58352
58353         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
58354         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
58355         literal -0.0.
58356         Reported by Jonathan C. Patschke <jp@centtech.com>.
58357
58358 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58359
58360         * lib/glthread/cond.h: Use dummy implementation also if
58361         USE_WIN32_THREADS.
58362
58363 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58364
58365         * modules/fnmatch-posix (License): Change to LGPLv2+.
58366         * modules/fnmatch-gnu (License): Likewise.
58367
58368 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58369
58370         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
58371
58372 2008-09-11  Jim Meyering  <meyering@redhat.com>
58373
58374         * users.txt: Add gtk-vnc.
58375
58376 2008-09-08  Simon Josefsson  <simon@josefsson.org>
58377
58378         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
58379         rotate amounts.
58380
58381         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
58382         required for 16-bit and 8-bit rotates.
58383         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
58384         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
58385         UINT8_MAX instead of hard-coded constants.
58386         Suggested by Paul Eggert.
58387
58388 2008-09-07  Bruno Haible  <bruno@clisp.org>
58389
58390         * tests/test-striconveh.c (main): Check behaviour when converting from
58391         UTF-7.
58392
58393         Make striconveh work better with stateful encodings.
58394         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
58395         that iconv does not increment the inptr when returning -1/EINVAL.
58396
58397 2008-09-07  Bruno Haible  <bruno@clisp.org>
58398
58399         * build-aux/config.rpath: Update according to libtool-2.2.6.
58400         * build-aux/config.libpath: Likewise.
58401
58402 2008-09-06  Bruno Haible  <bruno@clisp.org>
58403
58404         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
58405         * lib/freadptr.c (freadptr): Likewise.
58406         * lib/freadseek.c (freadptrinc): Likewise.
58407         Reported by Simon Josefsson.
58408
58409 2008-09-06  Bruno Haible  <bruno@clisp.org>
58410
58411         * modules/freadptr (License): Change to LGPLv2+.
58412         * modules/freadseek (License): Likewise.
58413         Suggested by Eric Blake.
58414
58415         * modules/memchr2 (License): Change to LGPLv2+.
58416         Approved by Eric Blake.
58417
58418 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58419             Bruno Haible  <bruno@clisp.org>
58420
58421         Make gnulib-tool work with native 'sed' on AIX.
58422         * gnulib-tool (sed_noop): New variable.
58423         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
58424         func_add_or_update, func_create_testdir): Use it to initialize sed
58425         script variables.
58426         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
58427
58428 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
58429             Bruno Haible  <bruno@clisp.org>
58430
58431         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
58432         also works after #include directives.
58433
58434 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
58435
58436         getdate.y: reject an out-of-range timezone value
58437         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
58438         the range [-24...+24].  When specified with only one or two digits,
58439         * tests/test-getdate.c: Tests for the fix.
58440         * doc/getdate.texi: Document this change.
58441
58442 2008-09-03  Bruno Haible  <bruno@clisp.org>
58443
58444         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
58445
58446 2008-09-02  Simon Josefsson  <simon@josefsson.org>
58447
58448         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
58449         <bruce.korb@gmail.com> with ideas from Ben Pfaff
58450         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
58451         Blake <ebb9@byu.net>.
58452
58453         * tests/test-bitrotate.c: Add more test vectors.
58454
58455 2008-09-02  Eric Blake  <ebb9@byu.net>
58456
58457         vasnprintf-posix: handle large precision via %.*d
58458         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
58459         when handling it ourselves.
58460         * tests/test-vasnprintf-posix.c (test_function): Add test.
58461         * tests/test-snprintf-posix.h (test_function): Likewise.
58462         * tests/test-sprintf-posix.h (test_function): Likewise.
58463         * tests/test-vasprintf-posix.c (test_function): Likewise.
58464         Reported by Alain Guibert.
58465
58466 2008-09-01  Eric Blake  <ebb9@byu.net>
58467
58468         c-stack: make configure-time check more robust
58469         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
58470         successful sigaction call.
58471         Reported by Tom G. Christensen.
58472
58473 2008-09-01  Bruno Haible  <bruno@clisp.org>
58474
58475         New module 'findprog-lgpl'.
58476         * modules/findprog-lgpl: New file.
58477         * lib/findprog-lgpl.c: New file.
58478         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
58479         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
58480         to decide whether to use strdup or xstrdup, concatenated_filename or
58481         xconcatenated_filename.
58482
58483 2008-09-01  Bruno Haible  <bruno@clisp.org>
58484
58485         Split module 'concat-filename' into 'concat-filename' (LGPL) and
58486         'xconcat-filename' (GPL).
58487         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
58488         (License): Change to LGPLv2+.
58489         * modules/xconcat-filename: New file.
58490         * lib/concat-filename.h (concatenated_filename): Change specification.
58491         (xconcatenated_filename): New declaration.
58492         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
58493         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
58494         memory situations.
58495         * lib/xconcat-filename.c: New file.
58496         * NEWS: Mention the change.
58497         * lib/findprog.c: Include concat-filename.h, not filename.h.
58498         (find_in_path): Use xconcatenated_filename instead of
58499         concatenated_filename.
58500         * lib/javacomp.c: Include concat-filename.h, not filename.h.
58501         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
58502         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
58503         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
58504         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
58505         instead of concatenated_filename.
58506         * lib/javaexec.c: Include concat-filename.h, not filename.h.
58507         (execute_java_class): Use xconcatenated_filename instead of
58508         concatenated_filename.
58509         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
58510         * modules/javacomp (Depends-on): Likewise.
58511         * modules/javaexec (Depends-on): Likewise.
58512
58513 2008-09-01  Bruno Haible  <bruno@clisp.org>
58514
58515         Split module 'filename' into 'filename' and 'concat-filename'.
58516         * modules/filename: Keep only lib/filename.h.
58517         (License): Change to LGPLv2+.
58518         * modules/concat-filename: New file, extracted from modules/filename.
58519         * lib/filename.h (concatenated_filename): Remove declaration.
58520         * lib/concat-filename.h: New file, extracted from lib/filename.h.
58521         * lib/concat-filename.c: Include concat-filename.h.
58522         * NEWS: Mention the change.
58523
58524 2008-09-01  Simon Josefsson  <simon@josefsson.org>
58525
58526         * lib/bitrotate.h (rotl8, rotr8): Add.
58527
58528         * modules/bitrotate (configure.ac): Need
58529         AC_REQUIRE([AC_C_INLINE]).
58530         (Description): Mention stdint.h.  Reported by Bruno Haible
58531         <bruno@clisp.org>.
58532
58533         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
58534         Paolo Bonzini <bonzini@gnu.org>.
58535
58536 2008-08-31  Bruno Haible  <bruno@clisp.org>
58537
58538         Assume Solaris specific bi-arch conventions on Solaris systems.
58539         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
58540         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
58541         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
58542         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
58543         like acl_libdirstem.
58544         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
58545         acl_libdirstem.
58546         * NEWS: Mention the change.
58547         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
58548
58549 2008-08-31  Jim Meyering  <meyering@redhat.com>
58550
58551         * lib/strftime.h: Add comments describing the two added arguments.
58552
58553         remove duplicate #include directives
58554         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
58555         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
58556
58557 2008-08-31  Bruno Haible  <bruno@clisp.org>
58558
58559         New module 'sigpipe-die'.
58560         * modules/sigpipe-die: New file.
58561         * lib/sigpipe-die.h: New file.
58562         * lib/sigpipe-die.c: New file.
58563         * MODULES.html.sh (Signal handling): Add sigpipe-die.
58564
58565 2008-08-31  Bruno Haible  <bruno@clisp.org>
58566
58567         Don't override previously installed signal handlers.
58568         * lib/fatal-signal.c (saved_sigactions): New variable.
58569         (uninstall_handlers): Reset the signal to the saved handler, not
58570         to SIG_DFL (except when ignored).
58571         (install_handlers): Save the previous handlers.
58572
58573 2008-08-30  Bruno Haible  <bruno@clisp.org>
58574
58575         * gnulib-tool (func_reset_sigpipe): New function.
58576         (func_get_automake_snippet, func_modules_transitive_closure,
58577         func_import): Invoke it before a join command that reads from stdin,
58578         to avoid "echo: write error: Broken pipe" error messages on stderr.
58579         Reported by Sam Steingold <sds@gnu.org>.
58580
58581 2008-08-30  Bruno Haible  <bruno@clisp.org>
58582
58583         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
58584         Code copied from m4/open.m4.
58585         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
58586         access and the filename ends in a slash. Code copied from lib/open.c.
58587         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
58588         * tests/test-fopen.c (main): Check against bug with trailing slash.
58589
58590 2008-08-29  Bruno Haible  <bruno@clisp.org>
58591
58592         Avoid some "gcc -pedantic" warnings.
58593         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
58594         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
58595         * lib/dirent.in.h: Likewise.
58596         * lib/fcntl.in.h: Likewise.
58597         * lib/float.in.h: Likewise.
58598         * lib/iconv.in.h: Likewise.
58599         * lib/inttypes.in.h: Likewise.
58600         * lib/locale.in.h: Likewise.
58601         * lib/math.in.h: Likewise.
58602         * lib/netinet_in.in.h: Likewise.
58603         * lib/search.in.h: Likewise.
58604         * lib/signal.in.h: Likewise.
58605         * lib/stdarg.in.h: Likewise.
58606         * lib/stdint.in.h: Likewise.
58607         * lib/stdio.in.h: Likewise.
58608         * lib/stdlib.in.h: Likewise.
58609         * lib/string.in.h: Likewise.
58610         * lib/strings.in.h: Likewise.
58611         * lib/sys_select.in.h: Likewise.
58612         * lib/sys_socket.in.h: Likewise.
58613         * lib/sys_stat.in.h: Likewise.
58614         * lib/sys_time.in.h: Likewise.
58615         * lib/sysexits.in.h: Likewise.
58616         * lib/time.in.h: Likewise.
58617         * lib/unistd.in.h: Likewise.
58618         * lib/wchar.in.h: Likewise.
58619         * lib/wctype.in.h: Likewise.
58620         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
58621         * modules/fchdir (Makefile.am): Likewise.
58622         * modules/fcntl (Makefile.am): Likewise.
58623         * modules/float (Makefile.am): Likewise.
58624         * modules/iconv_open (Makefile.am): Likewise.
58625         * modules/inttypes (Makefile.am): Likewise.
58626         * modules/locale (Makefile.am): Likewise.
58627         * modules/math (Makefile.am): Likewise.
58628         * modules/netinet_in (Makefile.am): Likewise.
58629         * modules/search (Makefile.am): Likewise.
58630         * modules/signal (Makefile.am): Likewise.
58631         * modules/stdarg (Makefile.am): Likewise.
58632         * modules/stdint (Makefile.am): Likewise.
58633         * modules/stdio (Makefile.am): Likewise.
58634         * modules/stdlib (Makefile.am): Likewise.
58635         * modules/string (Makefile.am): Likewise.
58636         * modules/strings (Makefile.am): Likewise.
58637         * modules/sys_select (Makefile.am): Likewise.
58638         * modules/sys_socket (Makefile.am): Likewise.
58639         * modules/sys_stat (Makefile.am): Likewise.
58640         * modules/sys_time (Makefile.am): Likewise.
58641         * modules/sysexits (Makefile.am): Likewise.
58642         * modules/time (Makefile.am): Likewise.
58643         * modules/unistd (Makefile.am): Likewise.
58644         * modules/wchar (Makefile.am): Likewise.
58645         * modules/wctype (Makefile.am): Likewise.
58646         Reported by Reuben Thomas <rrt@sc3d.org>.
58647
58648 2008-08-29  Bruno Haible  <bruno@clisp.org>
58649
58650         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
58651         any more.
58652
58653 2008-08-29  Simon Josefsson  <simon@josefsson.org>
58654
58655         * MODULES.html.sh (Misc): Add bitrotate.
58656
58657         * modules/bitrotate: New file.
58658
58659         * lib/bitrotate.h: New file.
58660
58661         * modules/bitrotate-tests: New file.
58662
58663         * tests/test-bitrotate.c: New file.
58664
58665         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
58666         on the bitrotate module.
58667
58668         * lib/arctwo.c: Use new bitrotate module.
58669
58670 2008-08-29  Jim Meyering  <meyering@redhat.com>
58671
58672         bootstrap: merge changes from coreutils
58673         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
58674         of copied files.  Remove a kludge, now that this is fixed.
58675         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
58676         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
58677         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
58678
58679 2008-08-29  Bruno Haible  <bruno@clisp.org>
58680
58681         * MODULES.html.sh: Remove --cvs-urls option.
58682
58683 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
58684
58685         maint.mk: adjust to file name change
58686         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
58687
58688 2008-08-28  Jim Meyering  <meyering@redhat.com>
58689
58690         * modules/getndelim2 (License): Relicense to LGPLv2+.
58691         Approved by Richard Stallman for the version of 1995, and by
58692         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
58693
58694 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
58695
58696         * lib/getdelim.c (flockfile, funlockfile): Make all of them
58697         dummy if one is not available.  Do not touch them if
58698         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
58699         (getc_maybe_unlocked): New.
58700         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
58701
58702 2008-08-26  Eric Blake  <ebb9@byu.net>
58703
58704         doc/INSTALL: resync from autoconf
58705         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
58706         (INSTALL_PRELUDE): Delete; this is done more efficiently by
58707         moving...
58708         * install.texi [!autoconf]: ...here.  Resync from autoconf.
58709         * INSTALL: Regenerate.
58710         * INSTALL.ISO: New file.
58711         * INSTALL.UTF-8: Likewise.
58712
58713 2008-08-26  Jim Meyering  <meyering@redhat.com>
58714
58715         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
58716         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
58717         these definitions conditional, so that they may be overridden, too.
58718
58719 2008-08-26  Bruno Haible  <bruno@clisp.org>
58720
58721         Generate INSTALL file variants with prettier quotes.
58722         * doc/Makefile (INSTALL_PRELUDE): New macro.
58723         (INSTALL): Use it.
58724         (INSTALL.ISO, INSTALL.UTF-8): New rules.
58725
58726 2008-08-26  Bruno Haible  <bruno@clisp.org>
58727
58728         Run makeinfo in an English locale.
58729         * doc/Makefile (MAKEINFO): New variable.
58730
58731 2008-08-26  Bruno Haible  <bruno@clisp.org>
58732
58733         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
58734         Suggested by Eric Blake.
58735
58736 2008-08-25  Bruno Haible  <bruno@clisp.org>
58737
58738         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
58739
58740 2008-08-25  Eric Blake  <ebb9@byu.net>
58741
58742         c-stack: test that stack overflow can be caught
58743         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
58744         that platform allows handling stack overflow; at least OS/2 EMX
58745         has sigaltstack, but crashes before transferring control to
58746         handler on stack overflow.
58747         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
58748         check for HAVE_STACK_OVERFLOW_HANDLING.
58749         Reported by Elbert Pol.
58750
58751 2008-08-25  Bruno Haible  <bruno@clisp.org>
58752
58753         * doc/posix-functions/strftime.texi: Fix description of strftime
58754         module.
58755
58756 2008-08-24  Bruno Haible  <bruno@clisp.org>
58757
58758         * tests/uniwidth/test-uc_width2.c: New file.
58759         * tests/uniwidth/test-uc_width2.sh: New file.
58760         * modules/uniwidth/width-tests (Files): Add the new files.
58761         (TESTS): Add uniwidth/test-uc_width2.sh.
58762         (TESTS_ENVIRONMENT): New variable.
58763         (check_PROGRAMS): Add test-uc_width2.
58764         (test_uc_width2_SOURCES): New variable.
58765
58766         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
58767         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
58768         not 0x00AB.
58769         Reported by Alexander V. Lukyanov <lav@netis.ru>.
58770
58771 2008-08-22  Eric Blake  <ebb9@byu.net>
58772
58773         test-lock, test-tls: mention why a test is skipped
58774         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
58775         skipped.
58776         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
58777
58778         count-one-bits: relax license
58779         * modules/count-one-bits (License): Relicense to LGPLv2+.
58780         Suggested by Ludovic Courtès, approved by Ben Pfaff.
58781
58782 2008-08-22  Andreas Schwab  <schwab@suse.de>
58783
58784         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
58785         Remove spurious space in assignment.
58786
58787 2008-08-21  Simon Josefsson  <simon@josefsson.org>
58788
58789         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
58790         Paul Eggert <eggert@CS.UCLA.EDU>.
58791
58792 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
58793
58794         * modules/gettext: Add m4/threadlib.m4.
58795
58796 2008-08-19  Eric Blake  <ebb9@byu.net>
58797
58798         test-c-stack: fix compilation failure on FreeBSD 5.0
58799         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
58800         headers before <sys/resource.h>.
58801         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
58802         the bug.
58803         Reported by Nelson H. F. Beebe.
58804
58805         strverscmp: migrate from "strverscmp.h" to <string.h>
58806         * modules/string (Makefile.am): Add new hooks.
58807         * modules/strverscmp (Files): Remove strverscmp.h.
58808         (Depends-on): Add string.
58809         (configure.ac): Add indicator.
58810         (Include): Mention new header.
58811         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
58812         defaults.
58813         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
58814         results.
58815         * lib/strverscmp.h: Delete.
58816         * lib/string.in.h (strverscmp): Provide declaration, when needed.
58817         * tests/test-strverscmp.c (includes): Adjust client.
58818         * lib/check-version.c (includes): Likewise.
58819         * NEWS: Document the change.
58820
58821         strverscmp: add unit test
58822         * modules/strverscmp-tests: New file.
58823         * tests/test-strverscmp.c: Likewise.
58824
58825 2008-08-19  Simon Josefsson  <simon@josefsson.org>
58826
58827         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
58828         regarding Windows crypto stuff, from Mono.
58829
58830 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
58831
58832         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
58833         if present, for intel RND.  Return error on failures.
58834
58835 2008-08-18  Ben Pfaff  <blp@gnu.org>
58836
58837         gitlog-to-changelog: give better diagnostic for failed pipe-open
58838         * build-aux/gitlog-to-changelog: Improve error message: suggest
58839         that the version of Git may be too old.
58840
58841 2008-08-18  Simon Josefsson  <simon@josefsson.org>
58842
58843         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
58844         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
58845
58846 2008-08-18  Bruno Haible  <bruno@clisp.org>
58847
58848         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
58849         pthread_in_use().
58850
58851 2008-08-18  Bruno Haible  <bruno@clisp.org>
58852
58853         * lib/glthread/threadlib.c: Include <pthread.h>.
58854
58855 2008-08-18  Bruno Haible  <bruno@clisp.org>
58856
58857         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
58858         glthread_recursive_lock_* macros.
58859         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
58860         Fix syntax error.
58861
58862 2008-08-18  Bruno Haible  <bruno@clisp.org>
58863
58864         * lib/glthread/thread.c: Avoid forcing a context switch right after
58865         thread creation.
58866
58867 2008-08-17  Bruno Haible  <bruno@clisp.org>
58868
58869         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
58870         * lib/glthread/thread.h: Provide Win32 specific implementation.
58871         * modules/thread (Files): Add lib/glthread/thread.c.
58872         (Depends-on): Add lock.
58873         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
58874
58875 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58876
58877         New module 'yield'.
58878         * modules/yield: New file.
58879         * lib/glthread/yield.h: New file.
58880         * m4/yield.m4: New file.
58881         * MODULES.html.sh (Multithreading): Add yield.
58882
58883 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58884
58885         New module 'thread'.
58886         * modules/thread: New file.
58887         * lib/glthread/thread.h: New file.
58888         * m4/thread.m4: New file.
58889         * MODULES.html.sh (Multithreading): Add thread.
58890
58891 2008-08-17  Bruno Haible  <bruno@clisp.org>
58892
58893         * lib/glthread/lock.h: Include <stdlib.h> always.
58894         * lib/glthread/tls.h: Likewise.
58895         * lib/glthread/cond.h: Likewise.
58896
58897 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58898
58899         New module 'cond'.
58900         * modules/cond: New file.
58901         * lib/glthread/cond.h: New file.
58902         * lib/glthread/cond.c: New file.
58903         * m4/cond.m4: New file.
58904         * MODULES.html.sh (Multithreading): Add cond.
58905
58906 2008-08-16  Eric Blake  <ebb9@byu.net>
58907
58908         c-stack: fix regression on Irix 5.3 from 2008-06-21
58909         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
58910         sa_sigaction...
58911         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
58912         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
58913         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
58914         * modules/signal (Makefile.am): Use the value.
58915         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
58916         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
58917         * doc/posix-headers/signal.texi (signal.h): Document this
58918         portability issue.
58919         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
58920         Reported by Tom G. Christensen.
58921
58922 2008-08-17  Bruno Haible  <bruno@clisp.org>
58923
58924         New module 'threadlib'.
58925         * modules/threadlib: New file.
58926         * lib/glthread/threadlib.c: New file, extracted from
58927         lib/glthread/lock.c.
58928         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
58929         functions.
58930         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
58931         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
58932         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
58933         macros.
58934         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
58935         (gl_DISABLE_THREADS): Remove macro.
58936         * modules/lock (Files): Remove build-aux/config.rpath.
58937         (Depends-on): Remove havelib. Add threadlib.
58938         (configure.ac-early): Remove section.
58939         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
58940         * modules/tls (Depends-on): Remove lock. Add threadlib.
58941         (Link): New section, copied from threadlib.
58942         * MODULES.html.sh (Multithreading): Add threadlib.
58943
58944 2008-08-14  Bruno Haible  <bruno@clisp.org>
58945
58946         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
58947         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
58948         glthread_rwlock_unlock, glthread_rwlock_destroy,
58949         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
58950         glthread_recursive_lock_destroy): Define as macros always.
58951         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
58952         glthread_lock_lock.
58953         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
58954         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
58955         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
58956         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
58957         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
58958         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
58959         (glthread_recursive_lock_lock_func): Renamed from
58960         glthread_recursive_lock_lock.
58961         (glthread_recursive_lock_unlock_func): Renamed from
58962         glthread_recursive_lock_unlock.
58963         (glthread_recursive_lock_destroy_func): Renamed from
58964         glthread_recursive_lock_destroy.
58965
58966 2008-08-14  Bruno Haible  <bruno@clisp.org>
58967
58968         * lib/glthread/lock.h: Renamed from lib/lock.h.
58969         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
58970         * lib/glthread/tls.h: Renamed from lib/tls.h.
58971         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
58972         * lib/fstrcmp.c: Update includes.
58973         * lib/strsignal.c: Update includes.
58974         * modules/lock (Files, Makefile.am): Update.
58975         (Include): Change to "glthread/lock.h".
58976         * modules/tls (Files, Makefile.am): Update.
58977         (Include): Change to "glthread/tls.h".
58978         * tests/test-lock.c: Update includes.
58979         * tests/test-tls.c: Update includes.
58980         * NEWS: Mention the renamed header files.
58981
58982 2008-08-11  Jim Meyering  <meyering@redhat.com>
58983
58984         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
58985
58986 2008-08-11  Eric Blake  <ebb9@byu.net>
58987
58988         test-c-stack: avoid C99-ism
58989         * tests/test-c-stack.c (main): Fix whitespace, move declaration
58990         before statement.
58991         Reported by Alain Guibert.
58992
58993 2008-08-10  Jim Meyering  <meyering@redhat.com>
58994
58995         ensure that return value of uinttostr et al are not ignored
58996         * lib/inttostr.h (__GNUC_PREREQ): Define.
58997         (__attribute_warn_unused_result__): Define.
58998         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
58999
59000 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
59001
59002         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
59003         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
59004
59005 2008-08-07  Jim Meyering  <meyering@redhat.com>
59006
59007         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
59008
59009         * modules/mkstemp (License): Relicense under LGPLv2+.
59010         * modules/tempname (License): Likewise.
59011
59012 2008-08-06  Bruno Haible  <bruno@clisp.org>
59013
59014         * lib/poll.c (poll): Further micro-optimization.
59015
59016 2008-08-06  Jim Meyering  <meyering@redhat.com>
59017
59018         inet_pton.c: use locale-independent tolower
59019         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
59020         (inet_pton6): Use c_tolower rather than tolower.
59021         * modules/inet_pton (Depends-on): Add c-ctype.
59022
59023 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
59024
59025         * lib/poll.c (poll): Avoid division when timeout is 0, cache
59026         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
59027
59028 2008-08-06  Jim Meyering  <meyering@redhat.com>
59029
59030         * modules/inet_pton (License): Relicense under LGPLv2+.
59031
59032 2008-08-03  Bruno Haible  <bruno@clisp.org>
59033
59034         Additional non-aborting API for lock and tls.
59035         * lib/lock.h: Include <errno.h>.
59036         (glthread_lock_init): New macro/function.
59037         (gl_lock_init): Define as wrapper around glthread_lock_init.
59038         (glthread_lock_lock): New macro/function.
59039         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
59040         (glthread_lock_unlock): New macro/function.
59041         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
59042         (glthread_lock_destroy): New macro/function.
59043         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
59044         (glthread_rwlock_init): New macro/function.
59045         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
59046         (glthread_rwlock_rdlock): New macro/function.
59047         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
59048         (glthread_rwlock_wrlock): New macro/function.
59049         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
59050         (glthread_rwlock_unlock): New macro/function.
59051         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
59052         (glthread_rwlock_destroy): New macro/function.
59053         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
59054         (glthread_recursive_lock_init): New macro/function.
59055         (gl_recursive_lock_init): Define as wrapper around
59056         glthread_recursive_lock_init.
59057         (glthread_recursive_lock_lock): New macro/function.
59058         (gl_recursive_lock_lock): Define as wrapper around
59059         glthread_recursive_lock_lock.
59060         (glthread_recursive_lock_unlock): New macro/function.
59061         (gl_recursive_lock_unlock): Define as wrapper around
59062         glthread_recursive_lock_unlock.
59063         (glthread_recursive_lock_destroy): New macro/function.
59064         (gl_recursive_lock_destroy): Define as wrapper around
59065         glthread_recursive_lock_destroy.
59066         (glthread_once): New macro/function.
59067         (gl_once): Define as wrapper around glthread_once.
59068         Update function declarations.
59069         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
59070         glthread_rwlock_init. Return error code.
59071         (glthread_rwlock_rdlock_multithreaded): Renamed from
59072         glthread_rwlock_rdlock. Return error code.
59073         (glthread_rwlock_wrlock_multithreaded): Renamed from
59074         glthread_rwlock_wrlock. Return error code.
59075         (glthread_rwlock_unlock_multithreaded): Renamed from
59076         glthread_rwlock_unlock. Return error code.
59077         (glthread_rwlock_destroy_multithreaded): Renamed from
59078         glthread_rwlock_destroy. Return error code.
59079         (glthread_recursive_lock_init_multithreaded): Renamed from
59080         glthread_recursive_lock_init. Return error code.
59081         (glthread_recursive_lock_lock_multithreaded): Renamed from
59082         glthread_recursive_lock_lock. Return error code.
59083         (glthread_recursive_lock_unlock_multithreaded): Renamed from
59084         glthread_recursive_lock_unlock. Return error code.
59085         (glthread_recursive_lock_destroy_multithreaded): Renamed from
59086         glthread_recursive_lock_destroy. Return error code.
59087         (glthread_once_call): Make static.
59088         (glthread_once_multithreaded): Renamed from glthread_once.
59089         * lib/tls.h: Include <errno.h>.
59090         (glthread_tls_key_init): New macro/function.
59091         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
59092         (glthread_tls_set): New macro/function.
59093         (gl_tls_set): Define as wrapper around glthread_tls_set.
59094         (glthread_tls_key_destroy): New macro/function.
59095         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
59096         Update function declarations.
59097         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
59098         glthread_tls_get.
59099         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
59100
59101 2008-08-04  Eric Blake  <ebb9@byu.net>
59102
59103         gnumakefile: use space, not TAB, outside of targets
59104         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
59105
59106 2008-08-02  Jim Meyering  <meyering@redhat.com>
59107
59108         getdate.y: avoid locale-dependent date parsing failure
59109         In Turkish locales, getdate would fail to recognize keywords
59110         containing a lowercase "i".  The solution is not to rely on
59111         locale-sensitive case-conversion.
59112         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
59113         (lookup_word): Use c_toupper in place of toupper.
59114         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
59115         Reported by Vefa Bicakci <bicave@superonline.com> in
59116         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
59117         * modules/getdate (Depends-on): Add c-ctype.
59118
59119 2008-08-02  Bruno Haible  <bruno@clisp.org>
59120
59121         * gnulib-tool (func_import): When updating or creating a .gitignore
59122         file, prepend each added line with a slash, and ignore leading slashes
59123         from the existing lines.
59124         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
59125
59126 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59127
59128         Portability fix for GNU make 3.79.1.
59129         * top/GNUmakefile: Avoid 'else COND', which older GNU make
59130         versions do not understand.
59131
59132 2008-08-01  Bruno Haible  <bruno@clisp.org>
59133
59134         Work around bug of HP-UX 10.20 cc with -0.0 literal.
59135         * tests/test-isnanf.h (zero): New variable.
59136         (main): Avoid literal -0.0f.
59137         * tests/test-isnand.h (zero): New variable.
59138         (main): Avoid literal -0.0.
59139         * tests/test-isnanl.h (zero): New variable.
59140         (main): Avoid literal -0.0L.
59141         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
59142         (test_float, test_double, test_long_double): Avoid literals -0.0f,
59143         -0.0, -0.0L.
59144         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
59145         (test_signbitd): Avoid literal -0.0.
59146         (test_signbitl): Avoid literal -0.0L.
59147         * tests/test-ceilf1.c (zero): New variable.
59148         (main): Avoid literal -0.0f.
59149         * tests/test-ceill.c (zero): New variable.
59150         (main): Avoid literal -0.0L.
59151         * tests/test-floorf1.c (zero): New variable.
59152         (main): Avoid literal -0.0f.
59153         * tests/test-floorl.c (zero): New variable.
59154         (main): Avoid literal -0.0L.
59155         * tests/test-roundf1.c (zero): New variable.
59156         (main): Avoid literal -0.0f.
59157         * tests/test-round1.c (zero): New variable.
59158         (main): Avoid literal -0.0.
59159         * tests/test-roundl.c (zero): New variable.
59160         (main): Avoid literal -0.0L.
59161         * tests/test-truncf1.c (zero): New variable.
59162         (main): Avoid literal -0.0f.
59163         * tests/test-trunc1.c (zero): New variable.
59164         (main): Avoid literal -0.0.
59165         * tests/test-truncl.c (zero): New variable.
59166         (main): Avoid literal -0.0L.
59167         * tests/test-frexp.c (zero): New variable.
59168         (main): Avoid literal -0.0.
59169         * tests/test-frexpl.c (zero): New variable.
59170         (main): Avoid literal -0.0L.
59171         * tests/test-ldexpl.c (zero): New variable.
59172         (main): Avoid literal -0.0L.
59173         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
59174         (zerod, zerol): New variables.
59175         (test_function): Avoid literals -0.0, -0.0L.
59176         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
59177         (zerod, zerol): New variables.
59178         (test_function): Avoid literals -0.0, -0.0L.
59179         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
59180         (zerod, zerol): New variables.
59181         (test_function): Avoid literals -0.0, -0.0L.
59182         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
59183         (zerod, zerol): New variables.
59184         (test_function): Avoid literals -0.0, -0.0L.
59185         * tests/test-strtod.c (zero): New variable.
59186         (main): Avoid literal -0.0.
59187         Reported by Jonathan C. Patschke <jp@centtech.com>.
59188
59189 2008-07-31  Jim Meyering  <meyering@redhat.com>
59190
59191         sha256.h: correct definition of SHA224_DIGEST_SIZE
59192         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
59193         Reported by Paulie Pena IV <paulie4@gmail.com>.
59194         Define as 224 / 8, rather than as a literal.
59195         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
59196         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
59197         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
59198
59199 2008-07-31  Bruno Haible  <bruno@clisp.org>
59200
59201         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
59202         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
59203         Reported by Jonathan Patschke <jp@centtech.com>.
59204
59205 2008-07-31  Bruno Haible  <bruno@clisp.org>
59206
59207         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
59208         Reported by Paolo Bonzini <bonzini@gnu.org>.
59209
59210 2008-07-30  Eric Blake  <ebb9@byu.net>
59211
59212         test-strtod: allow compilation without -lm
59213         * tests/test-strtod.c (main): Avoid link dependence on fabs.
59214         Reported by Dennis Clarke <blastwave@gmail.com>.
59215
59216 2008-07-28  Jim Meyering  <meyering@redhat.com>
59217
59218         bootstrap: work also when there are no .po files in po/
59219         * build-aux/bootstrap (update_po_files): Complete the change
59220         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
59221
59222 2008-07-27  Jim Meyering  <meyering@redhat.com>
59223
59224         * users.txt: Add zile.
59225
59226 2008-07-26  Ben Pfaff  <blp@gnu.org>
59227
59228         Add missing dependencies on new m4/exponent[fdl].m4 files.
59229         * modules/isnanf-nolibm: Add m4/exponentf.m4.
59230         * modules/isnand-nolibm: Add m4/exponentd.m4.
59231         * modules/isnanl-nolibm: Add m4/exponentl.m4.
59232         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
59233         m4/isnan[fdl].m4, because the macros actually used moved.
59234         Reported by Jim Meyering.
59235
59236 2008-07-14  Ben Pfaff  <blp@gnu.org>
59237
59238         Add isinf module.
59239         * lib/isinf.c: New file.
59240         * lib/math.in.h: Define isinf macro if we have decided to replace
59241         it.
59242         * m4/isinf.m4: New file.
59243         * m4/math_h.m4: Initialize and substitute variables for isinf
59244         module.
59245         * modules/isinf: New file.
59246         * modules/isinf-tests: New file.
59247         * modules/math: Add substitutions for new module.
59248         * tests/test-isinf.c: New file.
59249         * doc/posix-functions/isinf.texi: Mention new module.
59250         * MODULES.html.sh: Mention new module.
59251
59252 2008-07-14  Ben Pfaff  <blp@gnu.org>
59253
59254         Factor out some macros for use by additional modules.
59255         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
59256         exponentf.m4.
59257         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
59258         exponentd.m4.
59259         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
59260         file exponentl.m4.
59261         * m4/exponentf.m4: New file.
59262         * m4/exponentd.m4: New file.
59263         * m4/exponentl.m4: New file.
59264         * modules/isnanf: Use new file m4/exponentf.m4.
59265         * modules/isnand: Use new file m4/exponentd.m4.
59266         * modules/isnanl: Use new file m4/exponentl.m4.
59267
59268 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
59269
59270         mktime.c: normalize tp->tm_isdst value to -1/0/1.
59271         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
59272         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
59273         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
59274
59275         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
59276         readlink on platforms without PATH_MAX.
59277
59278 2008-07-21  Eric Blake  <ebb9@byu.net>
59279
59280         Warn, not fail, on stale version.
59281         * top/GNUmakefile (_curr-ver): Tone down previous patch.
59282
59283         Don't allow installation with stale devel version number.
59284         * top/GNUmakefile (_is-install-target): New macro.
59285         (_curr-ver): Forbid installation with stale version number.
59286
59287 2008-07-20  Bruno Haible  <bruno@clisp.org>
59288
59289         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
59290         TESTS_ENVIRONMENT.
59291         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
59292
59293 2008-07-20  Bruno Haible  <bruno@clisp.org>
59294
59295         * lib/c-stack.h (c_stack_action): Add documentation.
59296         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
59297
59298 2008-07-20  Bruno Haible  <bruno@clisp.org>
59299
59300         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
59301         * modules/readlink (License): Likewise.
59302
59303 2008-07-17  Eric Blake  <ebb9@byu.net>
59304
59305         * modules/c-stack (Link): Fix typo.
59306
59307         Make c-stack use libsigsegv, when available.
59308         * modules/c-stack (Depends-on): Add libsigsegv.
59309         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
59310         needed.
59311         * lib/c-stack.c (SIGSTKSZ): Define fallback.
59312         (segv_handler, overflow_handler, c_stack_action)
59313         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
59314         implementation when libsigsegv is available, but only when using
59315         the library is necessary.
59316         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
59317         comment, explaining why XSI check fails on Linux.
59318         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
59319         * tests/test-c-stack2.sh: Tweak skip message.
59320         * NEWS: Document new link-time requirements.
59321
59322 2008-07-16  Eric Blake  <ebb9@byu.net>
59323
59324         c-stack: Expose false positives when not using libsigsegv.
59325         * modules/c-stack-tests (Files): Expand test.
59326         * tests/test-c-stack.c (main): Add means to conditionally trigger
59327         non-overflow SIGSEGV.
59328         * tests/test-c-stack2.sh: New file.
59329
59330 2008-07-14  Bruno Haible  <bruno@clisp.org>
59331
59332         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
59333         Reported by Eric Blake.
59334
59335 2008-07-14  Sam Steingold  <sds@gnu.org>
59336             Bruno Haible  <bruno@clisp.org>
59337
59338         New module libsigsegv.
59339         * modules/libsigsegv: New file.
59340         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
59341         modifications.
59342         * MODULES.html.sh (Signal handling): New section.
59343
59344 2008-07-14  Bruno Haible  <bruno@clisp.org>
59345
59346         * modules/unictype/ctype-* (Description): Add the word "function".
59347         Improves the resulting doc in MODULES.html.
59348
59349 2008-07-12  Ben Pfaff  <blp@gnu.org>
59350
59351         Add longlong module.
59352         * modules/longlong: New file.
59353
59354 2008-07-12  Bruno Haible  <bruno@clisp.org>
59355
59356         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
59357         to empty.
59358
59359 2008-07-10  Ben Pfaff  <blp@gnu.org>
59360
59361         Add isnan module.
59362         * doc/posix-functions/isnan.texi: Mention new module.
59363         * lib/math.in.h: Define isnan macro if we have decided to replace
59364         it.
59365         * m4/isnan.m4: New file.
59366         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
59367         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
59368         also.
59369         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
59370         redundancy.
59371         * m4/math_h.m4: Initialize and substitute variables for isnan
59372         module.
59373         * modules/isnan: New file.
59374         * modules/isnan-tests: New file.
59375         * modules/math: Add substitutions for new module.
59376         * tests/test-isnan.c: New file.
59377         * MODULES.html.sh: Mention new module.
59378
59379 2008-07-10  Ben Pfaff  <blp@gnu.org>
59380
59381         Add isnanf module.
59382         * lib/isnanf.m4: New file.
59383         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
59384         (gl_HAVE_ISNANF_IN_LIBM): New macro.
59385         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
59386         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
59387         * modules/isnanf: New file.
59388         * modules/isnanf-tests: New file.
59389         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
59390         files.
59391         * tests/test-isnanf-nolibm.c: factored most of its contents into
59392         new file tests/test-isnanf.h.
59393         * tests/test-isnanf.h: New file.
59394         * tests/test-isnanf.c: New file.
59395         * MODULES.html.sh: Mention new module.
59396         * doc/glibc-functions/isnanf.texi: Mention new module.
59397
59398 2008-07-10  Ben Pfaff  <blp@gnu.org>
59399
59400         Add isnand module.
59401         * lib/isnand.h: New file.
59402         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
59403         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
59404         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
59405         functionality also.
59406         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
59407         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
59408         (gl_HAVE_ISNAND_IN_LIBM): New macro.
59409         * modules/isnand: New file.
59410         * modules/isnand-tests: New file.
59411         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
59412         files.
59413         * tests/test-isnand-nolibm.c: factored most of its contents into
59414         new file tests/test-isnand.h.
59415         * tests/test-isnand.h: New file.
59416         * tests/test-isnand.c: New file.
59417         * MODULES.html.sh: Mention new module.
59418
59419 2008-07-10  Ben Pfaff  <blp@gnu.org>
59420
59421         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
59422         * lib/isnand.h: Rename lib/isnand-nolibm.h.
59423         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
59424         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
59425         * modules/isnanf-nolibm: Update references to renamed files.
59426         * modules/isnand-nolibm: Likewise.
59427         * modules/isnanf-nolibm-tests: Likewise.
59428         * modules/isnand-nolibm-tests: Likewise.
59429         * lib/frexp.c: Likewise.
59430         * lib/isfinite.c: Likewise.
59431         * lib/signbitd.c: Likewise.
59432         * lib/signbitf.c: Likewise.
59433         * lib/vasnprintf.c: Likewise.
59434         * tests/test-ceilf1.c: Likewise.
59435         * tests/test-ceilf2.c: Likewise.
59436         * tests/test-floorf1.c: Likewise.
59437         * tests/test-floorf2.c: Likewise.
59438         * tests/test-frexp.c: Likewise.
59439         * tests/test-round1.c: Likewise.
59440         * tests/test-round2.c: Likewise.
59441         * tests/test-roundf1.c: Likewise.
59442         * tests/test-strtod.c: Likewise.
59443         * tests/test-trunc1.c: Likewise.
59444         * tests/test-trunc2.c: Likewise.
59445         * tests/test-truncf1.c: Likewise.
59446         * tests/test-truncf2.c: Likewise.
59447         * NEWS: Mention the renamed header files.
59448
59449 2008-07-11  Jim Meyering  <meyering@redhat.com>
59450
59451         vc-list-files: make the last-resort awk code more portable
59452         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
59453         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
59454         does not support it.
59455
59456 2008-07-10  Eric Blake  <ebb9@byu.net>
59457
59458         Work with tar's bootstrap.
59459         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
59460         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
59461         an m4 comment.
59462
59463 2008-07-09  Jim Meyering  <meyering@redhat.com>
59464
59465         posix-shell.m4: fix typo that made this test malfunction
59466         * m4/posix-shell.m4: Remove capitalization in variable name.
59467
59468 2008-07-08  Bruno Haible  <bruno@clisp.org>
59469
59470         * m4/onceonly.m4: Update comments.
59471         Reported by Ben Pfaff <blp@cs.stanford.edu>.
59472
59473 2008-07-04  Jim Meyering  <meyering@redhat.com>
59474
59475         * users.txt: Add vc-dwim.
59476         (bison, coreutils): Use the gitweb URL.
59477
59478 2008-07-03  Jim Meyering  <meyering@redhat.com>
59479
59480         * users.txt: Add libffcall.  From Sam Steingold.
59481
59482 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
59483
59484         getdate.y: do not ignore TZ with relative day, month or year offset
59485         * lib/getdate.y (get_date): Move the tz-handling block to follow the
59486         relative-date-handling, since otherwise, the latter would clobber the
59487         sole output (an updated Start value) of the tz-handling block.
59488         * tests/test-getdate.c: Tests for the fix
59489
59490 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59491
59492         Recognize 'foo_LIBRARIES += libgnu.a'.
59493         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
59494         makefile snippet has already specified an installation location,
59495         also using '+='.
59496
59497 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
59498
59499         getdate.y: factor out common actions
59500         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
59501         Use them in place of open-coded actions.
59502
59503 2008-07-01  Simon Josefsson  <simon@josefsson.org>
59504
59505         Add self-test for getdate module.
59506         * modules/getdate-tests: New file.
59507         * tests/test-getdate.c: New file.
59508
59509 2008-06-29  Bruno Haible  <bruno@clisp.org>
59510
59511         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
59512         .gitignore.
59513         Reported by Sylvain Beucler <beuc@beuc.net>.
59514
59515 2008-06-29  Bruno Haible  <bruno@clisp.org>
59516
59517         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
59518         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
59519
59520 2008-06-29  Bruno Haible  <bruno@clisp.org>
59521
59522         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
59523         EXTRA_DIST.
59524         Reported by Sylvain Beucler <beuc@beuc.net>.
59525
59526 2008-06-26  Jim Meyering  <meyering@redhat.com>
59527
59528         make several modules depend on the "open" module
59529         This provides slightly increased consistency when opening-for-write
59530         the name of a non-directory spelled with a trailing slash.
59531         * modules/chdir-safer: Likewise.
59532         * modules/chown: Likewise.
59533         * modules/clean-temp: Likewise.
59534         * modules/copy-file: Likewise.
59535         * modules/fchdir: Likewise.
59536         * modules/fcntl-safer: Likewise.
59537         * modules/pipe: Likewise.
59538         * modules/utime: Likewise.
59539         Prompted by Eric Blake and Bruno Haible.
59540
59541 2008-06-24  Andreas Schwab  <schwab@suse.de>
59542
59543         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
59544         literals can be used as initializers for global variables.
59545
59546 2008-06-23  Eric Blake  <ebb9@byu.net>
59547
59548         Make gnulib-cache.m4 easier to diff.
59549         * gnulib-tool (func_import): Allow newlines when reading cached
59550         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
59551
59552 2008-06-23  Bruno Haible  <bruno@clisp.org>
59553
59554         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
59555         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
59556         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
59557         m4/signalblocking.m4.
59558         (gl_PREREQ_SIGACTION): Don't invoke it.
59559         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
59560         gl_PREREQ_SIG_HANDLER_H.
59561         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
59562         Don't check for sigaction here.
59563
59564 2008-06-23  Bruno Haible  <bruno@clisp.org>
59565
59566         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
59567         (install_handlers): Don't set the SA_RESETHAND flag.
59568
59569 2008-06-23  Bruno Haible  <bruno@clisp.org>
59570
59571         * m4/sigaction.m4: Comment fixes.
59572         * lib/signal.in.h: Likewise.
59573
59574 2008-06-23  Eric Blake  <ebb9@byu.net>
59575
59576         Fix typo.
59577         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
59578
59579         Avoid SA_ namespace.
59580         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
59581         Reported by Ralf Wildenhues.
59582
59583         Avoid test failure due to SA_RESTORER.
59584         * tests/test-sigaction.c (SA_MASK): New macro.
59585         (main): Avoid failing due to extension flags being set.
59586         Reported by Jim Meyering.
59587
59588         Revert use of sig-handler.h in sigprocmask.c.
59589         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
59590         it requires the existence of struct sigaction.
59591         * lib/sigprocmask.c (handler_t): Restore typedef.
59592         (rpl_signal, old_handlers): Use local type.
59593
59594 2008-06-22  Bruno Haible  <bruno@clisp.org>
59595
59596         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
59597         conditionally.
59598         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
59599
59600 2008-06-22  Bruno Haible  <bruno@clisp.org>
59601
59602         * doc/posix-functions/siginterrupt.texi: Move note.
59603
59604         * lib/signal.in.h (SA_RESTART): New macro.
59605         * lib/sigaction.c: Update comment.
59606
59607         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
59608
59609         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
59610         (gl_PREREQ_SIGPROCMASK): Invoke it.
59611         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
59612
59613         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
59614
59615         * lib/sigprocmask.c: Update a comment.
59616
59617 2008-06-21  Eric Blake  <ebb9@byu.net>
59618
59619         Use sigaction module rather than signal().
59620         * modules/c-stack (Depends-on): Add sigaction.
59621         * modules/fatal-signal (Depends-on): Likewise.
59622         * modules/nanosleep (Depends-on): Likewise.
59623         * modules/sigprocmask (Files): Add sig-handler.h.
59624         * modules/sigaction (Files): Likewise.
59625         * lib/sig-handler.h (get_handler): New file, suggested by Paul
59626         Eggert.
59627         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
59628         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
59629         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
59630         (init_fatal_signals): Likewise.
59631         * lib/nanosleep.c (rpl_nanosleep): Likewise.
59632         (siginterrupt): Delete fallback.
59633         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
59634         instead.
59635         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
59636         siginterrupt.
59637
59638         New module sigaction, for mingw.
59639         * modules/sigaction: New module...
59640         * modules/sigaction-tests: ...and its test.
59641         * m4/sigaction.m4: New file.
59642         * lib/sigaction.c: Likewise.
59643         * tests/test-sigaction.c: Likewise.
59644         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
59645         * modules/signal (Makefile.am): Likewise.
59646         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
59647         needed.
59648         * doc/posix-headers/signal.texi (signal.h): Mention provided
59649         types.
59650         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
59651         that sigaction is preferable.
59652         * doc/posix-functions/sigaction.texi (sigaction): Mention new
59653         module.
59654         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
59655         sigaction.
59656
59657         Improve robustness of sigprocmask by overriding signal.
59658         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
59659         is in use.
59660         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
59661         (SIGKILL, SIGSTOP): Provide fallbacks.
59662         (rpl_signal): Implement.
59663         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
59664         signal can be called inside handlers.
59665
59666         Fix nanosleep module on mingw.
59667         * modules/nanosleep (Depends-on): Add sys_select.
59668         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
59669
59670         Fix licensing of sigprocmask.
59671         * modules/raise (License): Relicense as LGPL.
59672
59673 2008-06-21  Bruno Haible  <bruno@clisp.org>
59674
59675         * lib/propername.c (proper_name_utf8): Don't use the transliterated
59676         result if it contains question marks.
59677         Reported by Michael Geng <linux@michaelgeng.de>.
59678
59679 2008-06-19  Bruno Haible  <bruno@clisp.org>
59680
59681         Fix CVS-ism.
59682         * doc/gnulib.texi: Include updated-stamp.texi.
59683         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
59684         (updated-stamp.texi): New rule.
59685         (gnulib.info): Depend on it.
59686         * doc/.gitignore: Add updated-stamp.texi.
59687         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
59688
59689 2008-06-19  Bruno Haible  <bruno@clisp.org>
59690
59691         * doc/Makefile (gnulib.info): Update and simplify dependencies.
59692         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
59693
59694 2008-06-19  Eric Blake  <ebb9@byu.net>
59695
59696         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
59697         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
59698         Reported by Stepan Kasal.
59699
59700 2008-06-18  Bruno Haible  <bruno@clisp.org>
59701
59702         * lib/fatal-signal.c (init_fatal_signals): Add comment.
59703         Reported by Eric Blake.
59704
59705 2008-06-18  Eric Blake  <ebb9@byu.net>
59706
59707         Work around cygwin 1.5.25 strsignal bug.
59708         * tests/test-strsignal.c: Allow for const char *.
59709         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
59710
59711 2008-06-18  Simon Josefsson  <simon@josefsson.org>
59712
59713         * users.txt: Update URL to article and add author/date
59714         information.
59715
59716 2008-06-17  Bruno Haible  <bruno@clisp.org>
59717
59718         New macro gl_DISABLE_THREADS.
59719         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
59720         if the user did not pass --enable-threads or --disable-threads option.
59721         (gl_DISABLE_THREADS): New macro.
59722         Reported by Eric Blake <ebb9@byu.net>.
59723
59724 2008-06-17  Bruno Haible  <bruno@clisp.org>
59725
59726         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
59727         when the macro ignores it.
59728         Based on a patch by Eric Blake <ebb9@byu.net>.
59729
59730 2008-06-17  Bruno Haible  <bruno@clisp.org>
59731
59732         * modules/tls (License): Change to LGPLv2+.
59733         Reported by Eric Blake.
59734
59735 2008-06-17  Eric Blake  <ebb9@byu.net>
59736
59737         Simplify c-stack prerequisites.
59738         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
59739         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
59740         no longer requires <ucontext.h> to exist.  Optimize setrlimit
59741         check.
59742         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
59743         <sys/resource.h>.
59744
59745         Move c-stack test into testsuite.
59746         * modules/c-stack-tests: New file.
59747         * lib/c-stack.c [DEBUG]: Move test program...
59748         * tests/test-c-stack.c: ...into this new file.  Skip rather than
59749         fail test if sigaltstack is lacking.
59750         * tests/test-c-stack.sh: New driver file.
59751
59752 2008-06-16  Eric Blake  <ebb9@byu.net>
59753
59754         Use raise module consistently.
59755         * modules/fatal-signal (Depends-on): Add raise.
59756         * modules/sigprocmask (Depends-on): Likewise.
59757         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
59758         * lib/sigprocmask.c (sigprocmask): Likewise.
59759         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
59760         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
59761
59762         Fix compliance bug in sigpending.
59763         * lib/sigprocmask.c (sigpending): Return pending array via
59764         parameter, not return value.
59765
59766 2008-06-14  Eric Blake  <ebb9@byu.net>
59767
59768         Improve obstack-printf test code.
59769         * tests/test-obstack-printf.c (test_function): Fix comment, and
59770         simplify usage of obstack_* in macros.  Add a test for coverage.
59771         Reported by Bruno Haible.
59772
59773 2008-06-14  Bruno Haible  <bruno@clisp.org>
59774
59775         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
59776         array size as a constant, not as a const variable.
59777         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
59778         AC_USE_SYSTEM_EXTENSIONS.
59779         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
59780         Test whether the obstack_printf function actually exists.
59781         * modules/obstack-printf (Depends-on): Add extensions.
59782         (Include): Remove obstack.h.
59783         * modules/obstack-printf-posix (Depends-on): Add extensions.
59784         (Include): Remove obstack.h.
59785
59786 2008-06-13  Eric Blake  <ebb9@byu.net>
59787
59788         Add obstack-printf and obstack-printf-posix modules.
59789         * modules/obstack-printf: New file.
59790         * modules/obstack-printf-posix: Likewise.
59791         * MODULES.html.sh (Misc): Mention them.
59792         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
59793         Likewise.
59794         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
59795         Likewise.
59796         * modules/stdio (Makefile.am): Accomodate new modules.
59797         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
59798         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
59799         Declare.
59800         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
59801         functions.
59802         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
59803         (gl_REPLACE_OBSTACK_PRINTF): New macros
59804         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
59805         * tests/test-obstack-printf.c: New file.
59806         * modules/obstack-printf-tests: Likewise.
59807         * modules/obstack-printf-posix-tests: Likewise.
59808
59809 2008-06-11  Bruno Haible  <bruno@clisp.org>
59810
59811         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
59812         * lib/open.c: Include errno.h.
59813         (open): Fail when attempting to write to a file that has a trailing
59814         slash.
59815         * tests/test-open.c (main): Test against trailing slash bug.
59816         * doc/posix-functions/open.texi: Mention the trailing slash bug.
59817
59818 2008-06-10  Bruno Haible  <bruno@clisp.org>
59819
59820         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
59821         for $? to work inside the trap command, with various /bin/sh-s.
59822         * tests/test-vc-list-files-cvs.sh: Likewise.
59823
59824 2008-06-10  Bruno Haible  <bruno@clisp.org>
59825
59826         * lib/acl-internal.h: Don't include gettext.h here.
59827         * lib/set-mode-acl.c: Include gettext.h here.
59828         * lib/copy-acl.c: Likewise.
59829
59830 2008-06-10  Bruno Haible  <bruno@clisp.org>
59831
59832         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
59833         * lib/wait-process.c (wait_subprocess): Likewise.
59834         * lib/execute.h (execute): Add termsigp argument.
59835         * lib/execute.c (execute): Likewise.
59836         * lib/csharpcomp.c (compile_csharp_using_pnet,
59837         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
59838         * lib/csharpexec.c (execute_csharp_using_pnet,
59839         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
59840         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
59841         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
59842         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
59843         is_jikes_present): Update.
59844         * lib/javaexec.c (execute_java_class): Update.
59845         * lib/javaversion.c (execute_and_read_line): Update.
59846         * NEWS: Document the changes.
59847         Reported by Eric Blake.
59848
59849 2008-06-10  Eric Blake  <ebb9@byu.net>
59850
59851         Add missing include.
59852         * tests/test-strstr.c (includes): Add <signal.h>.
59853         * tests/test-strcasestr.c (includes): Likewise.
59854         * tests/test-memmem.c (includes): Likewise.
59855
59856 2008-06-10  Bruno Haible  <bruno@clisp.org>
59857
59858         * lib/wait-process.c (wait_subprocess): Add an assertion.
59859
59860 2008-06-10  Bruno Haible  <bruno@clisp.org>
59861
59862         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
59863
59864 2008-06-10  Bruno Haible  <bruno@clisp.org>
59865
59866         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
59867         using alarm().
59868         * tests/test-strcasestr.c (main): Likewise.
59869         * tests/test-strstr.c (main): Likewise.
59870
59871 2008-06-09  Bruno Haible  <bruno@clisp.org>
59872
59873         Work around the Solaris 10 ACE ACLs ABI change.
59874         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
59875         declare if ACL_NO_TRIVIAL is present.
59876         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
59877         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
59878         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
59879         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
59880         define if ACL_NO_TRIVIAL is present.
59881         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
59882         and use the current ABI.
59883         (file_has_acl): Use same #if condition as elsewhere.
59884         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
59885         in use, and use the current ABI.
59886         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
59887         Reported by Jim Meyering.
59888
59889 2008-06-09  Eric Blake  <ebb9@byu.net>
59890
59891         Work around environments that (stupidly) ignore SIGALRM.
59892         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
59893         before using alarm().
59894         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
59895         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
59896         Reported by Ian Beckwith <ianb@erislabs.net>.
59897
59898         Produce autobuild blurb earlier in log.
59899         * modules/autobuild (configure.ac-early): Move AB_INIT here.
59900
59901 2008-06-09  Jim Meyering  <meyering@redhat.com>
59902         and Ondřej Vašík  <ovasik@redhat.com>
59903
59904         utimens.c: correct kernel bug work-around
59905         Ondřej Vašík found that the invalid return value of 280 indicates
59906         failure, not success, and the kernel bug we're trying to work
59907         around affects not just the utimensat call, but also the fallback
59908         futimens call.
59909         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
59910         not success.
59911         [HAVE_FUTIMENS]: Use the same work-around, here.
59912
59913 2008-06-09  Jim Meyering  <meyering@redhat.com>
59914
59915         add more guards around definition of ACE_-related code
59916         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
59917         ALLOW and ACE_OWNER are also defined.
59918
59919 2008-06-08  Bruno Haible  <bruno@clisp.org>
59920
59921         * lib/acl-internal.h: Add me as co-author.
59922         * lib/file-has-acl.c: Likewise.
59923         * lib/set-mode-acl.c: Likewise.
59924         * lib/copy-acl.c: Likewise.
59925
59926 2008-06-08  Bruno Haible  <bruno@clisp.org>
59927
59928         Add support for AIX ACLs.
59929         * lib/acl-internal.h (acl_nontrivial): New declaration.
59930         * lib/file-has-acl.c (acl_nontrivial): New function.
59931         (file_has_acl): Add implementation using AIX 4 ACL API.
59932         * lib/set-mode-acl.c (qset_acl): Likewise.
59933         * lib/copy-acl.c (qcopy_acl): Likewise.
59934
59935 2008-06-08  Bruno Haible  <bruno@clisp.org>
59936
59937         Add support for HP-UX ACLs.
59938         * lib/acl-internal.h (acl_nontrivial): New declaration.
59939         * lib/file-has-acl.c (acl_nontrivial): New function.
59940         (file_has_acl): Add implementation using HP-UX 11 ACL API.
59941         * lib/set-mode-acl.c (qset_acl): Likewise.
59942         * lib/copy-acl.c (qcopy_acl): Likewise.
59943
59944 2008-06-08  Bruno Haible  <bruno@clisp.org>
59945
59946         Add support for Cygwin ACLs.
59947         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
59948         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
59949         the chmod_or_fchmod call.
59950         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
59951
59952 2008-06-08  Bruno Haible  <bruno@clisp.org>
59953
59954         Fix bug with setuid modes in Solaris 10+ code.
59955         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
59956         succeeded, when the mode contains some special bits.
59957
59958 2008-06-08  Bruno Haible  <bruno@clisp.org>
59959
59960         Add support for Solaris 7..10 ACLs.
59961         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
59962         declarations.
59963         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
59964         functions.
59965         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
59966         * lib/set-mode-acl.c (qset_acl): Likewise.
59967         * lib/copy-acl.c (qcopy_acl): Likewise.
59968
59969 2008-06-08  Bruno Haible  <bruno@clisp.org>
59970
59971         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
59972         declaration.
59973         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
59974         (acl_access_nontrivial): Remove MacOS X case.
59975         (file_has_acl): Use acl_extended_nontrivial.
59976         * lib/copy-acl.c (qcopy_acl): Likewise.
59977
59978 2008-06-08  Bruno Haible  <bruno@clisp.org>
59979
59980         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
59981
59982 2008-06-08  Jim Meyering  <meyering@redhat.com>
59983
59984         * modules/acl (Maintainer): Add Bruno Haible.
59985
59986 2008-06-07  Bruno Haible  <bruno@clisp.org>
59987
59988         Improve support for Tru64 ACLs.
59989         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
59990         ACL on OSF/1.
59991
59992 2008-06-07  Bruno Haible  <bruno@clisp.org>
59993
59994         Add support for MacOS X ACLs.
59995         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
59996         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
59997         * lib/set-mode-acl.c (qset_acl): Likewise.
59998         * lib/copy-acl.c (qcopy_acl): Likewise.
59999
60000 2008-06-07  Bruno Haible  <bruno@clisp.org>
60001
60002         Fix memory leak introduced on 2008-05-22.
60003         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
60004         use.
60005
60006 2008-06-07  Bruno Haible  <bruno@clisp.org>
60007
60008         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
60009         to construct an empty ACL.
60010
60011 2008-06-07  Bruno Haible  <bruno@clisp.org>
60012
60013         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
60014         precisely.
60015         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
60016
60017 2008-06-07  Bruno Haible  <bruno@clisp.org>
60018
60019         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
60020         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
60021
60022 2008-06-07  Bruno Haible  <bruno@clisp.org>
60023
60024         * doc/posix-functions/_setjmp.texi: Explain the use of this function
60025         regardless of POSIX.
60026         * doc/posix-functions/_longjmp.texi: Likewise.
60027         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
60028         SystemV platform in this case.
60029
60030 2008-06-06  Eric Blake  <ebb9@byu.net>
60031
60032         Document abort() bugs.
60033         * doc/posix-functions/abort.texi (abort): Mention anomalies.
60034
60035         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
60036         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
60037         sigsetjmp.
60038         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
60039         siglongjmp, but only as a macro.
60040         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
60041         is obsolete.
60042         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
60043
60044         Tweak documentation to cover cygwin argz bugs.
60045         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
60046         argz bug fix; no code change needed since no cygwin releases
60047         occurred between the last fix and the bug being tested.
60048         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
60049         module and recently fixed cygwin bugs.
60050         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
60051         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
60052         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
60053         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
60054         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
60055         Likewise.
60056         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
60057         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
60058         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
60059         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
60060         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
60061         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
60062         Likewise.
60063
60064         Avoid gcc warning on cygwin.
60065         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
60066         !ACL_NO_TRIVIAL]: Avoid unused variable.
60067
60068 2008-06-05  Eric Blake  <ebb9@byu.net>
60069
60070         Be tolerant of UNKNOWN version in gnulib-tool test dir.
60071         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
60072         git-version-gen fails to come up with a version.
60073         Reported by Simon Josefsson.
60074
60075 2008-06-05  Jim Meyering  <meyering@redhat.com>
60076             Paul Eggert  <eggert@cs.ucla.edu>
60077
60078         utimens.c: work around a probable Linux kernel bug
60079         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
60080         appears to be a kernel bug that causes utimensat to return 280
60081         instead of 0, indicating success.
60082
60083 2008-06-04  Bruno Haible  <bruno@clisp.org>
60084
60085         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
60086         2008-06-01 commit.
60087
60088 2008-06-04  Bruno Haible  <bruno@clisp.org>
60089
60090         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
60091         * lib/file-has-acl.c (acl_access_nontrivial): New function.
60092         (file_has_acl): Use it. Save errno afterwards.
60093         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
60094
60095 2008-06-03  Bruno Haible  <bruno@clisp.org>
60096
60097         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
60098         draft code. Simplify #ifs.
60099         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
60100         Put Solaris code after POSIX-draft code. Fix comments regarding
60101         Solaris 10, HP-UX. Mention Cygwin.
60102         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
60103
60104 2008-06-03  Eric Blake  <ebb9@byu.net>
60105
60106         Provide fallback for older kernels.
60107         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
60108         Provide runtime fallback if kernel lacks support.
60109         Reported by Mike Frysinger.
60110
60111 2008-06-02  Bruno Haible  <bruno@clisp.org>
60112
60113         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
60114         it exists.
60115
60116 2008-06-02  Bruno Haible  <bruno@clisp.org>
60117
60118         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
60119         * lib/copy-acl.c (qcopy_acl): Update comment.
60120
60121 2008-06-02  Bruno Haible  <bruno@clisp.org>
60122
60123         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
60124         like ACL APIs.
60125
60126 2008-06-02  Bruno Haible  <bruno@clisp.org>
60127
60128         * tests/test-file-has-acl.sh: Use different code for Cygwin.
60129         * tests/test-set-mode-acl.sh: Likewise.
60130         * tests/test-copy-acl.sh: Likewise.
60131         * tests/test-copy-file.sh: Likewise.
60132
60133 2008-06-02  Bruno Haible  <bruno@clisp.org>
60134
60135         * tests/test-file-has-acl.sh: Remove unused code.
60136
60137 2008-06-01  Bruno Haible  <bruno@clisp.org>
60138
60139         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
60140         (copy_acl): Just a wrapper around qcopy_acl that emits the error
60141         messages.
60142         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
60143
60144 2008-06-01  Bruno Haible  <bruno@clisp.org>
60145
60146         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
60147         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
60148         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
60149         APIs.
60150         * modules/acl-tests (configure.ac): Remove tests now contained in
60151         m4/acl.m4.
60152
60153 2008-06-02  Jim Meyering  <meyering@redhat.com>
60154
60155         announce-gen: use a better key-server host name
60156         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
60157         it may be more consistently reliable.  Suggested by Werner Koch
60158         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
60159
60160 2008-06-01  Bruno Haible  <bruno@clisp.org>
60161
60162         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
60163         Reported by Voroskoi Andras <voroskoi@gmail.com>.
60164
60165 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
60166
60167         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
60168
60169 2008-06-01  Bruno Haible  <bruno@clisp.org>
60170
60171         New ACL tests.
60172         * tests/test-file-has-acl.sh: New file.
60173         * tests/test-file-has-acl.c: New file.
60174         * tests/test-set-mode-acl.sh: New file.
60175         * tests/test-set-mode-acl.c: New file.
60176         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
60177         * tests/test-copy-acl.c: New file.
60178         * modules/acl-tests: New file, based on modules/copy-file-tests.
60179         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
60180         (Depends-on): Add acl-tests.
60181         (configure.ac): Remove checks.
60182         (Makefile.am): Don't create test-sameacls program here any more.
60183
60184 2008-06-01  Bruno Haible  <bruno@clisp.org>
60185
60186         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
60187         * tests/test-sameacls.c: Include progname.h.
60188         (main): Invoke set_program_name. Portability fixes for MacOS X,
60189         Solaris, HP-UX.
60190
60191 2008-06-01  Bruno Haible  <bruno@clisp.org>
60192
60193         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
60194         function.
60195         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
60196
60197 2008-06-01  Bruno Haible  <bruno@clisp.org>
60198
60199         * modules/rpmatch (Depends-on): Add strdup.
60200
60201 2008-06-01  Bruno Haible  <bruno@clisp.org>
60202
60203         * lib/pipe.c: Include unistd-safer.h.
60204         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
60205         * modules/pipe (Depends-on): Add unistd-safer.
60206
60207 2008-05-30  Simon Josefsson  <simon@josefsson.org>
60208
60209         * modules/autobuild (configure.ac): Call AB_INIT.
60210
60211 2008-05-30  Simon Josefsson  <simon@josefsson.org>
60212
60213         * tests/test-getaddrinfo.c: Don't print debug messages by default.
60214         Suggested by Bruno Haible <bruno@clisp.org>.
60215
60216 2008-05-30  Simon Josefsson  <simon@josefsson.org>
60217
60218         * tests/test-base64.c: Cast size_t to unsigned long when invoking
60219         printf.  Use %lu instead of %d.  Reported by Bruno Haible
60220         <bruno@clisp.org>.
60221
60222 2008-05-29  Eric Blake  <ebb9@byu.net>
60223
60224         Prefer new POSIX 200x interfaces over futimesat.
60225         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
60226         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
60227         when available.
60228         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
60229
60230 2008-05-28  Bruno Haible  <bruno@clisp.org>
60231
60232         * modules/stpcpy (License): Change to LGPLv2+.
60233         Requested by David Lutterkort <dlutter@redhat.com>.
60234
60235 2008-05-27  Bruno Haible  <bruno@clisp.org>
60236
60237         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
60238         current mingw.
60239         Reported by Jose E. Marchesi <jemarch@gnu.org>.
60240
60241 2008-05-27  Bruno Haible  <bruno@clisp.org>
60242
60243         * modules/iconv_open (Link): New section, from module 'iconv'.
60244         * modules/striconv (Link): Likewise.
60245         * modules/striconveh (Link): Likewise.
60246         * modules/xstriconv (Link): Likewise.
60247         * modules/unicodeio (Link): Likewise.
60248         * modules/propername (Link): Likewise.
60249         Reported by Jim Meyering.
60250
60251 2008-05-26  Jim Meyering  <meyering@redhat.com>
60252
60253         sha256: do not artificially restrict buffer length to be < 2^32
60254         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
60255         uint32_t to size_t.
60256         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
60257         to match.
60258
60259         avoid unaligned access errors, e.g., on sparc
60260         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
60261         direct access through a possibly-unaligned uint64* pointer.
60262         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
60263         direct access through a possibly-unaligned uint32* pointer.
60264         Prompted by this patch from Tom "spot" Callaway:
60265         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
60266
60267         sha512.c: fix typo in comment
60268         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
60269
60270 2008-05-25  Bruno Haible  <bruno@clisp.org>
60271
60272         * lib/set-mode-acl.c: Renamed from lib/acl.c.
60273         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
60274         (Makefile.am): Update lib_SOURCES.
60275
60276 2008-05-25  Bruno Haible  <bruno@clisp.org>
60277
60278         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
60279
60280 2008-05-25  Jim Meyering  <meyering@redhat.com>
60281
60282         useless-if-before-free: freed expr may have white-space differences
60283         * build-aux/useless-if-before-free: Recognize cases in which the
60284         freed expression differs from the tested one in embedded white
60285         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
60286         $1 was used, so we can't make any regexp shy.  Improved tests now
60287         detect this.
60288
60289         useless-if-before-free: accept white space in the expression.
60290         * build-aux/useless-if-before-free: For now, any white space
60291         in the expression must be identical in the free argument.
60292
60293         useless-if-before-free: efficiency tweak
60294         * build-aux/useless-if-before-free: Make the expression-matching
60295         regexp "shy".
60296         Make the *outer* regexp shy, not the expr-matching one.
60297
60298         update code-in-comment to accept cast of free arg
60299         * build-aux/useless-if-before-free: Update regexp.
60300
60301 2008-05-25  Bruno Haible  <bruno@clisp.org>
60302
60303         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
60304         * modules/copy-file-tests (Files, Makefile.am): Update.
60305         * tests/test-copy-file.c (func_test_copy): Update.
60306
60307 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
60308
60309         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
60310
60311 2008-05-23  Bruno Haible  <bruno@clisp.org>
60312
60313         Improve support for ACLs on OSF/1.
60314         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
60315         Remove fallback for unknown flavors of ACLs.
60316
60317 2008-05-22  Bruno Haible  <bruno@clisp.org>
60318
60319         Add support for ACLs on OSF/1.
60320         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
60321         replacements.
60322         (acl_free_text): New macro fallback.
60323         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
60324         acl_free.
60325         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
60326         acl_free_text function. Require AC_C_INLINE.
60327
60328 2008-05-22  Bruno Haible  <bruno@clisp.org>
60329
60330         Make copy_acl work on MacOS X 10.5.
60331         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
60332         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
60333         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
60334         If MODE_INSIDE_ACL, don't assume that every system has the same text
60335         representation for ACLs as FreeBSD.
60336         * lib/copy-acl.c (copy_acl): Add support for platforms with
60337         !MODE_INSIDE_ACL.
60338         * lib/file-has-acl.c (file_has_acl): Likewise.
60339         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
60340         FreeBSD, MacOS X, or IRIX, respectively.
60341
60342 2008-05-22  Bruno Haible  <bruno@clisp.org>
60343
60344         * lib/acl.h: Don't include <sys/acl.h>.
60345         (GETACLCNT): Move fallback to lib/acl-internal.h.
60346         * lib/acl-internal.h: Include <sys/acl.h> here.
60347         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
60348
60349 2008-05-22  Bruno Haible  <bruno@clisp.org>
60350
60351         Split off copy_acl function to separate file.
60352         * lib/copy-acl.c: New file, extracted from lib/acl.c.
60353         * lib/acl.c (copy_acl): Moved function to separate file.
60354         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
60355         * modules/acl (Files): Add lib/copy-acl.c.
60356         (Makefiles.am): Augment lib_SOURCES.
60357
60358 2008-05-22  Bruno Haible  <bruno@clisp.org>
60359
60360         * modules/copy-file-tests: New file.
60361         * tests/test-copy-file.sh: New file.
60362         * tests/test-copy-file.c: New file.
60363         * tests/test-copy-file-sameacls.c: New file.
60364
60365 2008-05-22  Eric Blake  <ebb9@byu.net>
60366
60367         Avoid gcc warning.
60368         * tests/test-memcmp.c (main): Pass NULL indirectly.
60369
60370 2008-05-21  Bruno Haible  <bruno@clisp.org>
60371
60372         Add reference doc about ACLs.
60373         * doc/acl-resources.txt: New file.
60374         * doc/acl-cygwin.txt: New file.
60375
60376 2008-05-21  Bruno Haible  <bruno@clisp.org>
60377
60378         Avoid one more warning from gcc.
60379         * lib/vasnprintf.c (IF_LINT): Update comments.
60380         (VASNPRINTF): Use it also for the 'prefix' array initializer.
60381
60382 2008-05-21  Jim Meyering  <meyering@redhat.com>
60383
60384         avoid a warning from gcc
60385         * lib/vasnprintf.c (IF_LINT): Define.
60386         (scale10_round_decimal_long_double):
60387         Use it to avoid a "may be used uninitialized" warning.
60388         (scale10_round_decimal_double): Likewise.
60389
60390 2008-05-21  Simon Josefsson  <simon@josefsson.org>
60391
60392         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
60393         declared.
60394
60395 2008-05-20  Bruno Haible  <bruno@clisp.org>
60396
60397         * tests/test-memcmp.c (main): Test also the sign of the result. Test
60398         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
60399
60400 2008-05-20  Simon Josefsson  <simon@josefsson.org>
60401
60402         * modules/memcmp-tests: New file.
60403         * tests/test-memcmp.c: New file.
60404
60405 2008-05-19  Bruno Haible  <bruno@clisp.org>
60406
60407         * modules/propername (Notice, configure.ac): Put quoted "..." into
60408         --keyword option.
60409         * lib/propername.h: Update comments accordingly.
60410         Reported by Eric Blake.
60411
60412 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
60413
60414         * modules/getpass-gnu (Depends-on): Add fseeko.
60415
60416 2008-05-19  Simon Josefsson  <simon@josefsson.org>
60417
60418         * modules/base64-tests: New file.
60419
60420 2008-05-19  Bo Borgerson <gigabo@gmail.com>
60421
60422         * lib/base64.c (base64_decode_ctx): If a decode context structure
60423         was passed in use it to ignore newlines.  If a context structure
60424         was _not_ passed in, continue to treat newlines as garbage (this
60425         is the historical behavior).  Formerly base64_decode.
60426         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
60427         takes a decode context structure.
60428         * lib/base64.h (base64_decode): Macro for four-argument calls.
60429         (base64_decode_alloc): Likewise.
60430         * lib/base64.c (base64_decode_ctx): If a decode context structure
60431         was passed in use it to ignore newlines.  If a context structure
60432         was _not_ passed in, continue to treat newlines as garbage (this
60433         is the historical behavior).  Formerly base64_decode.
60434         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
60435         takes a decode context structure.
60436         * lib/base64.h (base64_decode): Macro for four-argument calls.
60437         (base64_decode_alloc): Likewise.
60438
60439 2008-05-19  Jim Meyering  <meyering@redhat.com>
60440
60441         avoid a warning from gcc
60442         * lib/trim.c (IF_LINT): Define.
60443         (trim2): Use it to avoid a "may be used uninitialized" warning.
60444
60445         Fix doc typo.
60446         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
60447
60448 2008-05-19  Bruno Haible  <bruno@clisp.org>
60449
60450         * doc/glibc-functions/getpass.texi: Document limits of other
60451         implementations.
60452
60453 2008-05-19  Simon Josefsson  <simon@josefsson.org>
60454             Bruno Haible <bruno@clisp.org>
60455
60456         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
60457
60458 2008-05-18  Bruno Haible  <bruno@clisp.org>
60459
60460         * modules/propername: New file, from GNU gettext.
60461         * lib/propername.h: New file, from GNU gettext.
60462         * lib/propername.c: New file, from GNU gettext.
60463         * MODULES.html.sh (Internationalization functions): Add propername.
60464
60465 2008-05-16  Jim Meyering  <meyering@redhat.com>
60466             Bruno Haible  <bruno@clisp.org>
60467
60468         Avoid some warnings from "gcc -Wshadow".
60469         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
60470
60471 2008-05-15  Eric Blake  <ebb9@byu.net>
60472
60473         Extend previous patch to cygwin 1.7.0.
60474         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
60475         fast implementation in cygwin >= 1.7.0.
60476         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
60477         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
60478
60479 2008-05-15  Bruno Haible  <bruno@clisp.org>
60480
60481         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
60482         implementation in glibc >= 2.9.
60483         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
60484         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
60485
60486 2008-05-15  Bruno Haible  <bruno@clisp.org>
60487
60488         * MODULES.html.sh (Internationalization functions): Remove linebreak.
60489         (Unicode string functions): Add unilbrk/*.
60490         Reported by Karl Berry.
60491
60492 2008-05-15  Eric Blake  <ebb9@byu.net>
60493
60494         Fix violation of <stdbool.h> replacement in regex.
60495         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
60496         * lib/regexec.c (re_search_internal): Likewise.
60497         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
60498
60499 2008-05-15  Jim Meyering  <meyering@redhat.com>
60500
60501         avoid distracting test output when git or cvs is not found
60502         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
60503         * tests/test-vc-list-files-git.sh: Likewise.
60504
60505 2008-05-15  Eric Blake  <ebb9@byu.net>
60506
60507         Glibc finally accepted the memmem speedup code, bugzilla #5514.
60508         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
60509         glibc version.
60510         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
60511         * doc/posix-functions/strstr.texi (strstr): Likewise.
60512         * lib/str-two-way.h (MAX): Sychronize with glibc.
60513
60514 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
60515
60516         * lib/regcomp.c (optimize_utf8): Add a note on why we test
60517         opr.ctx_type.
60518         (calc_first): Initialize constraint field.
60519         (duplicate_node_closure): Use it instead of special casing ANCHORS.
60520         Fix grammar.
60521         (duplicate_node): Merge constraint field for all node types.
60522         (calc_eclosure_iter): Look at constraint field for all node types.
60523         * lib/regex_internal.c (create_cd_newstate): Don't look at
60524         opr.ctx_type.
60525
60526 2008-05-14  Bruno Haible  <bruno@clisp.org>
60527
60528         Help GCC to do better code generation.
60529         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
60530         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
60531         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
60532         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
60533         Declare with attribute 'malloc' if supported.
60534
60535 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
60536
60537         use "echo STR|wc -c" rather than unportable "expr length STR"
60538         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
60539         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
60540
60541 2008-05-14  Jim Meyering  <meyering@redhat.com>
60542
60543         use dd ibs=$n count=1 ... rather than less-portable head -c$n
60544         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
60545         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
60546         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
60547         via Collin Lasse.
60548
60549 2008-05-14  Eric Blake  <ebb9@byu.net>
60550
60551         Avoid quadratic growth in gl_LIBSOURCES.
60552         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
60553         Suggested by Bruno Haible.
60554
60555         Test xmemdup0.
60556         * modules/xmemdup0-tests: New file.
60557         * tests/test-xmemdup0.c: Likewise.
60558
60559 2008-05-13  Eric Blake  <ebb9@byu.net>
60560
60561         Split xmemdup0 into its own module.
60562         * modules/xmemdup0: New file.
60563         * lib/xmemdup0.h: Likewise.
60564         * lib/xmemdup0.c: Likewise.
60565         * MODULES.html.sh (Memory management functions): Add xmemdup0.
60566         * lib/xalloc.h (xmemdup0): Remove.
60567         * lib/xmalloc.c (xmemdup0): Likewise.
60568
60569 2008-05-13  Eric Blake  <ebb9@byu.net>
60570             Bruno Haible  <bruno@clisp.org>
60571
60572         Reduce number of forks required during autoconf.
60573         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
60574         and gl_LIBSOURCES_DIR.
60575         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
60576         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
60577         m4_syscmd per file.
60578         <m4_foreach_w>: Move...
60579         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
60580
60581 2008-05-13  Eric Blake  <ebb9@byu.net>
60582
60583         * gnulib-tool: Fix various comment typos.
60584
60585 2008-05-12  Bruno Haible  <bruno@clisp.org>
60586
60587         Tailor the linebreaking algorithm.
60588         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
60589
60590 2008-05-12  Bruno Haible  <bruno@clisp.org>
60591
60592         Update to Unicode 5.0.0.
60593         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
60594         LBP_JV, LBP_JT. Redistribute values.
60595         (unilbrk_table): Change size.
60596         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
60597         Unicode TR#14 rev. 22.
60598         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
60599         LBP_JV, LBP_JT. Redistribute values.
60600         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
60601         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
60602         Update.
60603         * lib/unilbrk/lbrkprop1.h: Regenerated.
60604         * lib/unilbrk/lbrkprop2.h: Regenerated.
60605         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
60606         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
60607         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
60608         Likewise.
60609         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
60610         Likewise.
60611         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
60612         result.
60613         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
60614         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
60615         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
60616         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
60617         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
60618         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
60619
60620 2008-05-11  Bruno Haible  <bruno@clisp.org>
60621
60622         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
60623
60624 2008-05-11  Bruno Haible  <bruno@clisp.org>
60625
60626         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
60627         * modules/unilbrk/gen-lbrk: New file.
60628
60629 2008-05-11  Bruno Haible  <bruno@clisp.org>
60630
60631         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
60632         * m4/sha512.m4 (gl_SHA512): Likewise.
60633
60634 2008-05-11  Jim Meyering  <meyering@redhat.com>
60635
60636         New modules: crypto/sha256, crypto/sha512 (from coreutils)
60637         * modules/crypto/sha256: New file.
60638         * modules/crypto/sha512: Likewise.
60639         * lib/sha256.c: Likewise.
60640         * lib/sha256.h: Likewise.
60641         * lib/sha512.c: Likewise.
60642         * lib/sha512.h: Likewise.
60643         * lib/u64.h: Likewise.
60644         * m4/sha256.m4: Likewise.
60645         * m4/sha512.m4: Likewise.
60646         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
60647
60648 2008-05-10  Bruno Haible  <bruno@clisp.org>
60649
60650         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
60651         (Input/Output <stdio.h>): Add xprintf.
60652         (Signal handling <signal.h>): Add strsignal.
60653         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
60654         (Core language properties): Add func.
60655         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
60656         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
60657         strings.
60658         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
60659         (Input/output): New section.
60660         (File system functions): Add openat-die, stat-macros.
60661         (Networking functions): Add sockets.
60662         (Unicode string functions): Add unictype/*.
60663         (Support for building libraries and executables): Add gperf.
60664         (Support for building documentation): Add agpl-3.0.
60665         (Misc): Add nocrash.
60666
60667 2008-05-10  Bruno Haible  <bruno@clisp.org>
60668
60669         * modules/unictype/gen-ctype: New file.
60670
60671 2008-05-10  Jim Meyering  <meyering@redhat.com>
60672
60673         Make chdir-safer.c more efficient on a system with no symlinks.
60674         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
60675         also if ELOOP is zero.  Suggested by Bruno Haible.
60676
60677         Make chdir-safer.c slightly safer.
60678         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
60679         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
60680
60681         Avoid compile failure on systems without ELOOP (like mingw).
60682         * lib/chdir-safer.c (ELOOP): Define if not already defined.
60683         Reported by Bruno Haible.
60684
60685 2008-05-10  Bruno Haible  <bruno@clisp.org>
60686
60687         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
60688         (is_utf8_encoding): Use a case-insensitive comparison.
60689         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
60690         streq.
60691
60692 2008-05-10  Bruno Haible  <bruno@clisp.org>
60693
60694         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
60695         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
60696         * lib/unilbrk/ulc-common.h (iconv_string_length,
60697         iconv_string_keeping_offsets): Remove declarations.
60698         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
60699         Don't include <iconv.h>, streq.h, xsize.h.
60700         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
60701         conversion.
60702         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
60703         <iconv.h>, streq.h, xsize.h.
60704         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
60705         conversion.
60706         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
60707         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
60708         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
60709         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
60710
60711 2008-05-10  Bruno Haible  <bruno@clisp.org>
60712
60713         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
60714         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
60715
60716         * modules/unilbrk/u32-width-linebreaks-tests: New file.
60717         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
60718
60719         * modules/unilbrk/u16-width-linebreaks-tests: New file.
60720         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
60721
60722         * modules/unilbrk/u8-width-linebreaks-tests: New file.
60723         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
60724
60725         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
60726         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
60727
60728         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
60729         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
60730
60731         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
60732         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
60733
60734         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
60735         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
60736
60737 2008-05-10  Bruno Haible  <bruno@clisp.org>
60738
60739         Split up 'linebreak' module.
60740         * lib/unilbrk.h: New file, based on lib/linebreak.h.
60741         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
60742         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
60743         modifications.
60744         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
60745         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
60746         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
60747         lib/linebreak.c.
60748         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
60749         lib/linebreak.c.
60750         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
60751         lib/linebreak.c.
60752         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
60753         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
60754         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
60755         lib/linebreak.c.
60756         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
60757         lib/linebreak.c.
60758         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
60759         lib/linebreak.c.
60760         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
60761         lib/linebreak.c.
60762         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
60763         lib/linebreak.c.
60764         * modules/unilbrk/base: New file.
60765         * modules/unilbrk/tables: New file.
60766         * modules/unilbrk/u8-possible-linebreaks: New file.
60767         * modules/unilbrk/u16-possible-linebreaks: New file.
60768         * modules/unilbrk/u32-possible-linebreaks: New file.
60769         * modules/unilbrk/ulc-common: New file.
60770         * modules/unilbrk/ulc-possible-linebreaks: New file.
60771         * modules/unilbrk/u8-width-linebreaks: New file.
60772         * modules/unilbrk/u16-width-linebreaks: New file.
60773         * modules/unilbrk/u32-width-linebreaks: New file.
60774         * modules/unilbrk/ulc-width-linebreaks: New file.
60775         * lib/linebreak.h: Remove file.
60776         * lib/linebreak.c: Remove file.
60777         * m4/linebreak.m4: Remove file.
60778         * modules/linebreak: Remove file.
60779         * NEWS: Mention the changes.
60780
60781 2008-05-09  Eric Blake  <ebb9@byu.net>
60782
60783         Add xmemdup0.
60784         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
60785         implementation.
60786         * lib/xmalloc.c (xmemdup0): New C implementation.
60787
60788 2008-05-08  Bruno Haible  <bruno@clisp.org>
60789
60790         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
60791
60792 2008-05-07  Eric Blake  <ebb9@byu.net>
60793
60794         Support cross-compilation of <wctype.h>.
60795         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
60796         AC_CACHE_CHECK.
60797
60798 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
60799
60800         * build-aux/vc-list-files: Add support for bzr.
60801
60802 2008-05-03  Jim Meyering  <meyering@redhat.com>
60803
60804         avoid failed assertion with tight malloc
60805         * tests/test-getndelim2.c: Correct an off-by-one assertion.
60806
60807 2008-05-03  Simon Josefsson  <simon@josefsson.org>
60808
60809         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
60810         are needed from arpa/inet.h.
60811         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
60812         Reported by Bruno Haible.
60813
60814 2008-05-02  Jim Meyering  <meyering@redhat.com>
60815
60816         avoid compilation error on FreeBSD 6
60817         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
60818
60819 2008-05-01  Jim Meyering  <meyering@redhat.com>
60820
60821         useless-if-before-free: correct --help's exit status description
60822         * build-aux/useless-if-before-free (usage): Like grep, exit 0
60823         for one or more matches, etc.  Reported by Bruno Haible.
60824
60825         vc-list-files: make the stand-alone gnulib test work
60826         * modules/vc-list-files-tests (configure.ac):
60827         Define and AC_SUBST abs_aux_dir.
60828         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
60829         $(abs_top_srcdir) to each script and having each of them
60830         duplicate the work of setting PATH, set PATH here, using
60831         the new variable, abs_aux_dir instead.
60832         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
60833         * tests/test-vc-list-files-git.sh: Likewise.
60834         Reported by Bruno Haible.
60835
60836 2008-05-01  Bruno Haible  <bruno@clisp.org>
60837
60838         * lib/getndelim2.c (getndelim2): Fix newsize computation during
60839         reallocation. Rename 'done' to 'found_delimiter'.
60840
60841 2008-05-01  Jim Meyering  <meyering@redhat.com>
60842
60843         vc-list-files: accommodate /bin/sh like the one from Solaris 10
60844         * build-aux/vc-list-files: Use `...`, not $(...).
60845
60846 2008-04-30  Jim Meyering  <meyering@redhat.com>
60847
60848         add tests for vc-list-files
60849         * modules/vc-list-files-tests: New module.
60850         * tests/test-vc-list-files-cvs.sh: New file.
60851         * tests/test-vc-list-files-git.sh: New file.
60852
60853         avoid a warning from gcc
60854         * lib/getndelim2.c (IF_LINT): Define.
60855         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
60856
60857         vc-list-files: work properly with build-aux/cvsu, too
60858         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
60859         to all cvs-based clauses.
60860
60861         vc-list-files: work properly in the CVS+awk case, too
60862         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
60863
60864         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
60865         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
60866         take more than one file argument, so .  Add quotes, just in case $dir
60867         ever contains a shell meta-character.  Prompted by Soren Hansen in
60868         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
60869
60870 2008-04-29  Eric Blake  <ebb9@byu.net>
60871
60872         Optimize getndelim2 to use block operations when possible.
60873         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
60874         freadseek, and memchr2.
60875         * lib/getndelim2.c (getndelim2): Use them for block reads.
60876
60877 2008-04-29  Bruno Haible  <bruno@clisp.org>
60878
60879         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
60880         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
60881         * modules/inet_ntop (Depends-on): Add extensions.
60882         * modules/inet_pton (Depends-on): Likewise.
60883         Reported by Simon Josefsson.
60884
60885 2008-04-29  Jim Meyering  <meyering@redhat.com>
60886
60887         When the is more than one match in a block, match all of them.
60888         * build-aux/useless-if-before-free: Iterate through each block
60889         until there are no more matches.
60890
60891         Fix broken useless-if-before-free script.
60892         * build-aux/useless-if-before-free: Fix typo: missing "?" after
60893         the expression to match cast of argument to free-like function.
60894
60895 2008-04-29  Eric Blake  <ebb9@byu.net>
60896
60897         Use new header.
60898         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
60899
60900 2008-04-29  Jim Meyering  <meyering@redhat.com>
60901
60902         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
60903         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
60904         by gnulib to exist and to declare e.g., inet_ntop.
60905         Don't include "inet_ntop.h", now removed.
60906
60907         * m4/arpa_inet_h.m4: Remove trailing blanks.
60908
60909 2008-04-29  Eric Blake  <ebb9@byu.net>
60910
60911         Silence valgrind on safe reads beyond potential array bounds.
60912         * lib/rawmemchr.valgrind: New file.
60913         * lib/strchrnul.valgrind: Likewise.
60914         * modules/rawmemchr (Files): Distribute new file.
60915         * modules/strchrnul (Files): Likewise.
60916         Suggested by Bruno Haible.
60917
60918 2008-04-29  Bruno Haible  <bruno@clisp.org>
60919
60920         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
60921         (inet_ntop, inet_pton): Change portability warning's wording.
60922         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
60923         Invoke gl_CHECK_NEXT_HEADERS.
60924         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
60925         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
60926         set ARPA_INET_H.
60927         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
60928         * modules/arpa_inet (Description): No longer only for systems that
60929         lack it.
60930         (Depends-on): Add include_next.
60931         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
60932         HAVE_ARPA_INET_H.
60933
60934 2008-04-29  Jim Meyering  <meyering@redhat.com>
60935
60936         * modules/mkdir (License): Re-license as LGPLv2+.
60937
60938 2008-04-29  Bruno Haible  <bruno@clisp.org>
60939
60940         * modules/rawmemchr (Maintainer): Set to Eric.
60941         * modules/strchrnul (Maintainer): Likewise.
60942
60943 2008-04-29  Simon Josefsson  <simon@josefsson.org>
60944
60945         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
60946         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
60947
60948         * modules/arpa_inet (arpa/inet.h): Use them.
60949
60950 2008-04-28  Eric Blake  <ebb9@byu.net>
60951
60952         Test getndelim2.
60953         * modules/getndelim2-tests: New file.
60954         * tests/test-getndelim2.c: Likewise.
60955         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
60956         stream.
60957         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
60958
60959         * MODULES.html.sh: Document new module.
60960
60961 2008-04-20  Bruno Haible  <bruno@clisp.org>
60962
60963         * lib/c-stack.c (die): Use raise.
60964         * modules/c-stack (Depends-on): Add raise.
60965
60966 2008-04-28  Bruno Haible  <bruno@clisp.org>
60967
60968         Expect rpmatch to be declared.
60969         * lib/yesno.c (rpmatch): Remove declaration.
60970
60971         Declare rpmatch.
60972         * lib/stdlib.in.h (rpmatch): New declaration.
60973         * lib/rpmatch.c: Include <stdlib.h> first.
60974         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
60975         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
60976         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
60977         HAVE_RPMATCH.
60978         * modules/rpmatch (Depends-on): Add stdlib, extensions.
60979         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
60980         (Include): Set to <stdlib.h>.
60981         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
60982         HAVE_RPMATCH.
60983         * NEWS: Document the change.
60984
60985 2008-04-28  Bruno Haible  <bruno@clisp.org>
60986
60987         Change rpmatch to use nl_langinfo when appropriate.
60988         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
60989         (N_): New macro.
60990         (localized_pattern): New function/macro.
60991         (try): Remove match, nomatch arguments. Copy the pattern into safe
60992         memory before caching it.
60993         (rpmatch): Use localized_pattern. Add translator comments.
60994         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
60995         Suggested by Eric Blake.
60996         * modules/rpmatch (Depends-on): Add stdbool.
60997
60998 2008-04-28  Eric Blake  <ebb9@byu.net>
60999
61000         Add rawmemchr module, matching glibc.
61001         * modules/string (Makefile.am): New indicator.
61002         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
61003         * lib/string.in.h (rawmemchr): Declare when appropriate.
61004         * modules/rawmemchr: New file.
61005         * m4/rawmemchr.m4: Likewise.
61006         * lib/rawmemchr.c: Likewise.
61007         * modules/rawmemchr-tests: Likewise.
61008         * tests/test-rawmemchr.c: Likewise.
61009         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
61010         module.
61011         * modules/strchrnul (Depends-on): Add rawmemchr.
61012         * lib/strchrnul.c (strchrnul): Optimize a corner case.
61013
61014         Whitespace cleanup.
61015         * tests/test-strchrnul.c: Reindent.
61016         * lib/strchrnul.c: Likewise.
61017
61018         Optimize and test strchrnul.
61019         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
61020         * modules/strchrnul-tests: New file.
61021         * tests/test-strchrnul.c: Likewise.
61022
61023         Remove intprops dependency.
61024         * modules/memchr (Depends-on): Remove intprops.
61025         * modules/memrchr (Depends-on): Likewise.
61026         * modules/memchr2 (Depends-on): Likewise.
61027         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
61028         * lib/memrchr.c (__memrchr): Likewise.
61029         * lib/memrchr2.c (memchr2): Likewise.
61030         Reported by Simon Josefsson.
61031
61032 2008-04-28  Simon Josefsson  <simon@josefsson.org>
61033
61034         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
61035         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61036
61037 2008-04-28  Simon Josefsson  <simon@josefsson.org>
61038
61039         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
61040
61041         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
61042
61043         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
61044
61045         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
61046         declarations.
61047         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
61048
61049         * m4/inet_pton.m4: Don't check for header files.
61050
61051         * m4/inet_ntop.m4: Don't check for header files.
61052
61053 2008-04-28  Simon Josefsson  <simon@josefsson.org>
61054
61055         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
61056         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
61057         trigger for cygwin).
61058         Reported by Bruno Haible  <bruno@clisp.org>.
61059
61060 2008-04-28  Bruno Haible  <bruno@clisp.org>
61061
61062         * doc/posix-functions/strdup.texi: Mention mingw problem.
61063
61064 2008-04-27  Bruno Haible  <bruno@clisp.org>
61065
61066         * modules/stat-time-tests (Depends-on): Add sleep.
61067         * tests/test-stat-time.c (force_unlink): New function.
61068         (cleanup): Use it.
61069         (test_mtime): Remove the ctime related tests.
61070         (test_ctime): New function, containing the ctime related tests.
61071         (main): Call test_ctime, except on native Windows platforms.
61072
61073 2008-04-27  Bruno Haible  <bruno@clisp.org>
61074
61075         * lib/rpmatch.c (rpmatch): Add some comments.
61076         Reported by James Youngman <jay@gnu.org>.
61077
61078 2008-04-27  Bruno Haible  <bruno@clisp.org>
61079
61080         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
61081         quiet NaNs.
61082
61083 2008-04-27  Bruno Haible  <bruno@clisp.org>
61084
61085         Make test-yesno.sh work on mingw.
61086         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
61087         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
61088         (main): Set stdin to binary mode.
61089         * modules/yesno-tests (Depends-on): Add binary-io.
61090
61091 2008-04-27  Bruno Haible  <bruno@clisp.org>
61092
61093         Fix 'isfinite' on x86, x86_64, ia64 platforms.
61094         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
61095         argument that lie outside the IEEE 854 domain.
61096         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
61097         (gl_ISFINITE): Use it.
61098         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
61099
61100 2008-04-27  Bruno Haible  <bruno@clisp.org>
61101
61102         Allow local renaming in config.h.
61103         * lib/memrchr.c (memrchr): Don't undefine outside libc.
61104
61105 2008-04-27  Bruno Haible  <bruno@clisp.org>
61106
61107         * lib/memchr.c (__memchr): Change type of 'i'.
61108         * lib/memchr2.c (memchr2): Likewise.
61109
61110 2008-04-26  Eric Blake  <ebb9@byu.net>
61111         and Bruno Haible  <bruno@clisp.org>
61112
61113         Optimize and test memrchr.
61114         * modules/memrchr (Depends-on): Add intprops.
61115         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
61116         * modules/memrchr-tests: New file.
61117         * tests/test-memrchr.c: New file.
61118
61119 2008-04-26  Bruno Haible  <bruno@clisp.org>
61120
61121         Add tentative support for DragonFly BSD.
61122         * lib/stdio-impl.h: Add macros for DragonFly BSD.
61123         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
61124         fp.
61125         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
61126         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
61127         * lib/fpurge.c (fpurge): Likewise.
61128         * lib/freadable.c (freaadable): Likewise.
61129         * lib/freadahead.c (freadahead): Likewise.
61130         * lib/freading.c (freading): Likewise.
61131         * lib/freadptr.c (freadptr): Likewise.
61132         * lib/freadseek.c (freadptrinc): Likewise.
61133         * lib/fseeko.c (fseeko): Likewise.
61134         * lib/fseterr.c (fseterr): Likewise.
61135         * lib/fwritable.c (fwritable): Likewise.
61136         * lib/fwriting.c (fwriting): Likewise.
61137
61138 2008-04-26  Bruno Haible  <bruno@clisp.org>
61139
61140         * lib/stdio-impl.h: New file.
61141         * lib/fbufmode.c: Include stdio-impl.h.
61142         (fbufmode): Use fp_, remove redundant #defines.
61143         * lib/fflush.c: Include stdio-impl.h.
61144         (clear_ungetc_buffer): Remove redundant #defines.
61145         * lib/fpurge.c: Include stdio-impl.h.
61146         (fpurge): Remove redundant #defines.
61147         * lib/freadable.c: Include stdio-impl.h.
61148         (freadable): Remove redundant #defines.
61149         * lib/freadahead.c: Include stdio-impl.h.
61150         (freadahead): Remove redundant #defines.
61151         * lib/freading.c: Include stdio-impl.h.
61152         (freading): Remove redundant #defines.
61153         * lib/freadptr.c: Include stdio-impl.h.
61154         (freadptr): Remove redundant #defines.
61155         * lib/freadseek.c: Include stdio-impl.h.
61156         (freadptrinc): Remove redundant #defines.
61157         * lib/fseeko.c: Include stdio-impl.h.
61158         (rpl_fseeko): Remove redundant #defines.
61159         * lib/fseterr.c: Include stdio-impl.h.
61160         (fseterr): Remove redundant #defines.
61161         * lib/fwritable.c: Include stdio-impl.h.
61162         (fwritable: Remove redundant #defines.
61163         * lib/fwriting.c: Include stdio-impl.h.
61164         (fwriting): Remove redundant #defines.
61165         * modules/fbufmode (Files): Add lib/stdio-impl.h.
61166         * modules/fflush (Files): Likewise.
61167         * modules/fpurge (Files): Likewise.
61168         * modules/freadable (Files): Likewise.
61169         * modules/freadahead (Files): Likewise.
61170         * modules/freading (Files): Likewise.
61171         * modules/freadptr (Files): Likewise.
61172         * modules/freadseek (Files): Likewise.
61173         * modules/fseeko (Files): Likewise.
61174         * modules/fseterr (Files): Likewise.
61175         * modules/fwritable (Files): Likewise.
61176         * modules/fwriting (Files): Likewise.
61177
61178 2008-04-26  Bruno Haible  <bruno@clisp.org>
61179
61180         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
61181         restore_seek_optimization, update_fpos_cache): New functions, extracted
61182         from rpl_fflush.
61183         (rpl_fflush): Use them.
61184         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
61185         (gl_REPLACE_FFLUSH): Use it.
61186
61187 2008-04-26  Bruno Haible  <bruno@clisp.org>
61188
61189         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
61190         on Solaris.
61191         * tests/test-xstrtoimax.sh: Likewise.
61192         * tests/test-xstrtoumax.sh: Likewise.
61193         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61194
61195 2008-04-26  Bruno Haible  <bruno@clisp.org>
61196
61197         * modules/memchr-tests: New file.
61198         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
61199
61200 2008-04-26  Eric Blake  <ebb9@byu.net>
61201             Bruno Haible  <bruno@clisp.org>
61202
61203         * lib/memchr.c: Include intprops.h.
61204         (__memchr): Optimize parallel detection of matching bytes. Rename local
61205         variables. Add explanatory comments.
61206
61207 2008-04-26  Bruno Haible  <bruno@clisp.org>
61208
61209         Fix module 'memchr', broken since 2000-10-28.
61210         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
61211
61212 2008-04-26  Bruno Haible  <bruno@clisp.org>
61213
61214         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
61215         comments.
61216
61217 2008-04-25  Eric Blake  <ebb9@byu.net>
61218
61219         Use native fstatat on cygwin 1.7.0.
61220         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
61221         first.
61222
61223 2008-04-23  Eric Blake  <ebb9@byu.net>
61224
61225         Improve memchr2 performance.
61226         * lib/memchr2.c (memchr2): Further optimize parallel detection of
61227         NUL bytes.
61228         * modules/memchr2 (Depends-on): Use intprops.h.
61229
61230 2008-04-23  Simon Josefsson  <simon@josefsson.org>
61231
61232         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
61233         an inline function instead of a CPP macro.  Patch by Ben Pfaff
61234         <blp@cs.stanford.edu>.
61235
61236 2008-04-23  Simon Josefsson  <simon@josefsson.org>
61237
61238         * lib/arpa_inet.in.h: New file.
61239
61240         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
61241         (Makefile.am): Sed in substitute header file.
61242
61243         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
61244         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
61245
61246         * modules/inet_ntop (configure.ac): Use
61247         gl_ARPA_INET_MODULE_INDICATOR.
61248
61249         * modules/inet_pton (configure.ac): Use
61250         gl_ARPA_INET_MODULE_INDICATOR.
61251
61252 2008-04-22  Jim Meyering  <meyering@redhat.com>
61253
61254         * modules/verify (License): Re-license as LGPLv2+.
61255
61256 2008-04-22  Simon Josefsson  <simon@josefsson.org>
61257
61258         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
61259         parameter to void* as per POSIX standard (MinGW uses char*).
61260
61261 2008-04-21  Bruno Haible  <bruno@clisp.org>
61262
61263         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
61264         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
61265         Define to replacements if REPLACE_ISWCNTRL is 1.
61266         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
61267         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
61268         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
61269         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
61270         what it fixes.
61271         * doc/posix-functions/iswalpha.texi: Likewise.
61272         * doc/posix-functions/iswblank.texi: Likewise.
61273         * doc/posix-functions/iswcntrl.texi: Likewise.
61274         * doc/posix-functions/iswdigit.texi: Likewise.
61275         * doc/posix-functions/iswgraph.texi: Likewise.
61276         * doc/posix-functions/iswlower.texi: Likewise.
61277         * doc/posix-functions/iswprint.texi: Likewise.
61278         * doc/posix-functions/iswpunct.texi: Likewise.
61279         * doc/posix-functions/iswspace.texi: Likewise.
61280         * doc/posix-functions/iswupper.texi: Likewise.
61281         * doc/posix-functions/iswxdigit.texi: Likewise.
61282         Reported by Alain Guibert.
61283
61284 2008-04-21  Bruno Haible  <bruno@clisp.org>
61285
61286         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
61287         Patch by Alain Guibert.
61288
61289 2008-04-21  Bruno Haible  <bruno@clisp.org>
61290
61291         Fix test failures on mingw.
61292         * tests/test-xstrtol.c (print_no_progname): New function.
61293         (main): Install it in error_print_progname hook.
61294         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
61295         * tests/test-xstrtoimax.sh: Likewise.
61296         * tests/test-xstrtoumax.sh: Likewise.
61297
61298 2008-04-21  Bruno Haible  <bruno@clisp.org>
61299
61300         Fix test failure on mingw.
61301         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
61302
61303 2008-04-21  Bruno Haible  <bruno@clisp.org>
61304
61305         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
61306         Actually assign a value.
61307
61308 2008-04-20  Bruno Haible  <bruno@clisp.org>
61309
61310         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
61311         take 2.
61312         * lib/canonicalize.c (canonicalize_file_name): Elide if the
61313         'canonicalize-lgpl' module is also used.
61314         * lib/canonicalize-lgpl.c: Undo last change.
61315         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
61316
61317 2008-04-20  Bruno Haible  <bruno@clisp.org>
61318
61319         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
61320         config.h. Provide _mkdir based fallback for mingw.
61321         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
61322         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
61323         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
61324         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
61325         rather than defining mkdir in config.h.
61326         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
61327         (gl_SYS_STAT_H_DEFAULTS): New macro.
61328         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
61329         HAVE_IO_H any more.
61330         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
61331         HAVE_DECL_MKDIR and HAVE_IO_H.
61332
61333 2008-04-20  Bruno Haible  <bruno@clisp.org>
61334
61335         * lib/isapipe.c: Port to native Windows platforms.
61336
61337 2008-04-20  Bruno Haible  <bruno@clisp.org>
61338
61339         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
61340
61341 2008-04-21  Eric Blake  <ebb9@byu.net>
61342
61343         Work around preprocessors that don't handle UINTMAX_MAX.
61344         * lib/memchr2.c (memchr2): Avoid embedded #if.
61345         Reported by Alain Guibert, fix suggested by Bruno Haible.
61346
61347 2008-04-21  Simon Josefsson  <simon@josefsson.org>
61348
61349         * doc/posix-functions/strftime.texi (strftime): Explain better
61350         Windows incompatibility.  Suggested by Micah Cowan
61351         <micah@cowan.name>.
61352
61353 2008-04-20  Bruno Haible  <bruno@clisp.org>
61354
61355         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
61356         unistr/u8-mblen.
61357
61358 2008-04-20  Bruno Haible  <bruno@clisp.org>
61359
61360         Fix test failure on platforms with non-GNU iconv.
61361         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
61362         (U_TO_U8): Use it, rather than u16_to_u8.
61363         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
61364         units at the end of the input string.
61365         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
61366
61367 2008-04-20  Bruno Haible  <bruno@clisp.org>
61368
61369         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
61370         when the resulting length is 0.
61371         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
61372
61373 2008-04-20  Bruno Haible  <bruno@clisp.org>
61374
61375         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
61376         works.
61377         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
61378
61379 2008-04-20  Bruno Haible  <bruno@clisp.org>
61380
61381         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
61382         * modules/tsearch-tests (configure.ac): Test for initstate function.
61383
61384 2008-04-20  Bruno Haible  <bruno@clisp.org>
61385
61386         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
61387         for nlink_t if missing.
61388         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
61389
61390 2008-04-19  Bruno Haible  <bruno@clisp.org>
61391
61392         Work around snprintf bug on Linux libc5.
61393         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
61394         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
61395         gl_SNPRINTF_SIZE1.
61396         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61397         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
61398         that test failed.
61399         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
61400         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
61401         * modules/snprintf (Files): Add m4/printf.m4.
61402         * modules/vsnprintf (Files): Likewise.
61403         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
61404         * doc/posix-functions/vsnprintf.texi: Likewise.
61405
61406 2008-04-19  Bruno Haible  <bruno@clisp.org>
61407
61408         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
61409         from 0.0058 to less than 10^-7.
61410
61411 2008-04-19  Bruno Haible  <bruno@clisp.org>
61412
61413         Fix rounding when a precision is given.
61414         * lib/vasnprintf.c (is_borderline): New function.
61415         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
61416         9...9x.
61417         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
61418         %e, %g.
61419         * tests/test-vasprintf-posix.c (test_function): Likewise.
61420         * tests/test-snprintf-posix.h (test_function): Likewise.
61421         * tests/test-sprintf-posix.h (test_function): Likewise.
61422         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
61423         * tests/test-printf-posix.h (test_function): Likewise.
61424         * tests/test-printf-posix.output: Update.
61425         Reported by John Darrington <john@darrington.wattle.id.au> via
61426         Ben Pfaff <blp@cs.stanford.edu>.
61427
61428 2008-04-18  Simon Josefsson  <simon@josefsson.org>
61429
61430         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
61431         Suggested by Bruno Haible <bruno@clisp.org>.
61432
61433 2008-04-17  Bruno Haible  <bruno@clisp.org>
61434
61435         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
61436         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
61437         implementation.
61438         Patch by Bruce Merry <bmerry@gmail.com>.
61439
61440 2008-04-17  Simon Josefsson  <simon@josefsson.org>
61441
61442         * doc/posix-functions/strftime.texi (strftime): Mention that %e
61443         doesn't work under Windows.
61444
61445 2008-04-16  Bruno Haible  <bruno@clisp.org>
61446
61447         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
61448         New macros.
61449         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
61450         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
61451         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
61452         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
61453         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
61454         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
61455         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
61456         macros.
61457         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
61458         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
61459         Northern Sotho, Uighur.
61460
61461 2008-04-16  Bruno Haible  <bruno@clisp.org>
61462
61463         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
61464         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
61465         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
61466         Reported by Daniel Bergström <daniel@octocode.com>.
61467
61468 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
61469             Bruno Haible  <bruno@clisp.org>
61470
61471         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
61472         function.
61473         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
61474         New functions, mostly extracted from gl_locale_name_default.
61475         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
61476
61477 2008-04-16  Eric Blake  <ebb9@byu.net>
61478
61479         Adjust strtod detection to catch glibc 2.7 bug.
61480         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
61481         Reported by John Gatewood Ham.
61482
61483 2008-04-16  Bruno Haible  <bruno@clisp.org>
61484
61485         Add tentative support for Linux libc5.
61486         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
61487         * lib/fpurge.c (fpurge): Likewise.
61488         * lib/freadable.c (freadable): Likewise.
61489         * lib/freadahead.c (freadahead): Likewise.
61490         * lib/freading.c (freading): Likewise.
61491         * lib/freadptr.c (freadptr): Likewise.
61492         * lib/freadseek.c (freadptrinc): Likewise.
61493         * lib/fseeko.c (rpl_fseeko): Likewise.
61494         * lib/fseterr.c (fseterr): Likewise.
61495         * lib/fwritable.c (fwritable): Likewise.
61496         * lib/fwriting.c (fwriting): Likewise.
61497         Reported by Alain Guibert <alguibert+bts@free.fr>.
61498
61499 2008-04-15  Bruno Haible  <bruno@clisp.org>
61500
61501         * modules/mathl (configure.ac): Define module indicator.
61502
61503 2008-04-15  Bruno Haible  <bruno@clisp.org>
61504
61505         * lib/logl.c (logl): Remove unused variables.
61506
61507 2008-04-15  Bruno Haible  <bruno@clisp.org>
61508
61509         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
61510         fails.
61511
61512 2008-04-15  Bruno Haible  <bruno@clisp.org>
61513
61514         * lib/trim.c (trim2): Fix argument of isspace() macro.
61515
61516 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
61517
61518         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
61519         to 0.
61520         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
61521
61522 2008-04-14  Bruno Haible  <bruno@clisp.org>
61523
61524         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
61525         AC_LANG_PROGRAM argument.
61526         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
61527         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
61528         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
61529         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
61530         * m4/math_h.m4 (gl_MATH_H): Likewise.
61531         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
61532         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
61533         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
61534         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
61535         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
61536         * m4/regex.m4 (gl_REGEX): Likewise.
61537         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
61538         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
61539         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
61540         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
61541         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
61542         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
61543         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
61544         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
61545
61546 2008-04-14  Jim Meyering  <meyering@redhat.com>
61547
61548         test-strtod: fix typos: s/abs/fabs/
61549         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
61550
61551 2008-04-13  Bruno Haible  <bruno@clisp.org>
61552
61553         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
61554         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
61555         module is also used and while not building the reloc-wrapper.
61556
61557 2008-04-13  Bruno Haible  <bruno@clisp.org>
61558
61559         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
61560
61561 2008-04-13  Bruno Haible  <bruno@clisp.org>
61562
61563         Fix AIX compilation failure introduced on 2008-04-02.
61564         * tests/test-frexp.c (exp): Undefine before redefining.
61565         * tests/test-frexpl.c (exp): Likewise.
61566
61567 2008-04-13  Bruno Haible  <bruno@clisp.org>
61568
61569         Work around a HP-UX stdio bug.
61570         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
61571         * tests/test-ftello.c (main): Likewise.
61572         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
61573         * doc/posix-functions/ftello.texi: Likewise.
61574
61575 2008-04-13  Bruno Haible  <bruno@clisp.org>
61576
61577         Make test-signbit pass on HP-UX/hppa.
61578         * tests/test-signbit.c (minus_zerol): New variable.
61579         (test_signbitl): Use it.
61580
61581 2008-04-13  Bruno Haible  <bruno@clisp.org>
61582
61583         Make truncl work on OSF/1 4.0.
61584         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
61585         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
61586         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
61587         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
61588         HAVE_DECL_TRUNCL.
61589         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
61590         HAVE_DECL_TRUNCL.
61591         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
61592
61593 2008-04-13  Bruno Haible  <bruno@clisp.org>
61594
61595         * lib/unictype.h: Remove trailing comma from enumeration definitions.
61596
61597 2008-04-13  Bruno Haible  <bruno@clisp.org>
61598
61599         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
61600         expression, so as to avoid HP-UX 11 cc compiler bug.
61601
61602 2008-04-13  Bruno Haible  <bruno@clisp.org>
61603
61604         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
61605
61606 2008-04-13  Bruno Haible  <bruno@clisp.org>
61607
61608         * lib/git-merge-changelog.c: Remove empty declaration outside of
61609         functions.
61610
61611 2008-04-13  Bruno Haible  <bruno@clisp.org>
61612
61613         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
61614
61615 2008-04-13  Bruno Haible  <bruno@clisp.org>
61616
61617         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
61618         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
61619         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
61620         also if it exists but lacks definitions of the SHUT_* macros.
61621         * modules/sys_socket (Description): Update.
61622         Reported by Elbert Pol <e.pol@chello.nl>.
61623
61624 2008-04-13  Bruno Haible  <bruno@clisp.org>
61625
61626         * lib/localcharset.c (OS2): Don't redefine if already defined.
61627         Reported by Elbert Pol <e.pol@chello.nl>.
61628
61629 2008-04-13  Bruno Haible  <bruno@clisp.org>
61630
61631         * lib/binary-io.h [__EMX__]: Include <io.h>.
61632         Reported by Elbert Pol <e.pol@chello.nl>.
61633
61634 2008-04-12  Bruno Haible  <bruno@clisp.org>
61635
61636         * lib/fpucw.h: Enable the definitions also for x86_64.
61637         Needed for NetBSD/x86_64.
61638         Reported by Thomas Klausner <tk@giga.or.at>.
61639
61640 2008-04-12  Bruno Haible  <bruno@clisp.org>
61641
61642         * tests/test-strtod.c: Include isnand.h.
61643         (main): Use isnand instead of isnan.
61644         Reported by Jim Meyering.
61645
61646 2008-04-12  Bruno Haible  <bruno@clisp.org>
61647
61648         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
61649         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
61650
61651 2008-04-12  Jim Meyering  <meyering@redhat.com>
61652
61653         * m4/math_h.m4 (gl_MATH_H): Fix typos.
61654
61655 2008-04-12  Bruno Haible  <bruno@clisp.org>
61656
61657         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
61658         Reported by Elbert Pol <e.pol@chello.nl>.
61659
61660 2008-04-12  Eric Blake  <ebb9@byu.net>
61661
61662         Work around Solaris 10 math.h bug.
61663         * m4/math_h.m4 (gl_MATH_H): Check for bug.
61664         (gl_MATH_H_DEFAULTS): Set up default.
61665         * modules/math (Makefile.am): Replace new indicators.
61666         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
61667         * tests/test-math.c (main): Test this.
61668         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
61669         * doc/posix-headers/math.texi (math.h): Mention bug.
61670         Reported by Nelson H. F. Beebe and Jim Meyering.
61671
61672 2008-04-11  Bruno Haible  <bruno@clisp.org>
61673
61674         Adapt to future versions of Apple GCC.
61675         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
61676         Reported by Peter O'Gorman <peter@pogma.com>.
61677
61678 2008-04-11  Bruno Haible  <bruno@clisp.org>
61679
61680         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
61681
61682 2008-04-11  Bruno Haible  <bruno@clisp.org>
61683
61684         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
61685
61686         * modules/getaddrinfo-tests (Makefile.am): Define
61687         test_getaddrinfo_LDADD.
61688
61689 2008-04-11  Bruno Haible  <bruno@clisp.org>
61690
61691         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
61692         (init): Fix syntax error.
61693         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
61694         is declared.
61695
61696 2008-04-11  Bruno Haible  <bruno@clisp.org>
61697
61698         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
61699         * modules/glob (Depends-on): Add stdbool.
61700
61701 2008-04-11  Bruno Haible  <bruno@clisp.org>
61702
61703         * lib/trim.c: Include <string.h>.
61704
61705 2008-04-11  Eric Blake  <ebb9@byu.net>
61706
61707         Avoid compile failure on OS/2.
61708         * lib/regex_internal.h (internal_function): Disable optimization
61709         on OS/2 (__EMX__), where it caused compiler error.
61710         Reported by Elbert Pol.
61711
61712 2008-04-11  Bruno Haible  <bruno@clisp.org>
61713
61714         Flush the standard error stream before aborting. Needed on mingw.
61715         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
61716         * tests/test-array_list.c (ASSERT): Likewise.
61717         * tests/test-array_oset.c (ASSERT): Likewise.
61718         * tests/test-avltree_list.c (ASSERT): Likewise.
61719         * tests/test-avltree_oset.c (ASSERT): Likewise.
61720         * tests/test-avltreehash_list.c (ASSERT): Likewise.
61721         * tests/test-binary-io.c (ASSERT): Likewise.
61722         * tests/test-byteswap.c (ASSERT): Likewise.
61723         * tests/test-c-ctype.c (ASSERT): Likewise.
61724         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
61725         * tests/test-c-strcasestr.c (ASSERT): Likewise.
61726         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
61727         * tests/test-c-strstr.c (ASSERT): Likewise.
61728         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
61729         * tests/test-canonicalize.c (ASSERT): Likewise.
61730         * tests/test-carray_list.c (ASSERT): Likewise.
61731         * tests/test-ceilf1.c (ASSERT): Likewise.
61732         * tests/test-ceilf2.c (ASSERT): Likewise.
61733         * tests/test-ceill.c (ASSERT): Likewise.
61734         * tests/test-count-one-bits.c (ASSERT): Likewise.
61735         * tests/test-fbufmode.c (ASSERT): Likewise.
61736         * tests/test-fflush2.c (ASSERT): Likewise.
61737         * tests/test-floorf1.c (ASSERT): Likewise.
61738         * tests/test-floorf2.c (ASSERT): Likewise.
61739         * tests/test-floorl.c (ASSERT): Likewise.
61740         * tests/test-fopen.c (ASSERT): Likewise.
61741         * tests/test-fpending.c (ASSERT): Likewise.
61742         * tests/test-fprintf-posix.c (ASSERT): Likewise.
61743         * tests/test-fpurge.c (ASSERT): Likewise.
61744         * tests/test-freadable.c (ASSERT): Likewise.
61745         * tests/test-freadahead.c (ASSERT): Likewise.
61746         * tests/test-freading.c (ASSERT): Likewise.
61747         * tests/test-freadptr.c (ASSERT): Likewise.
61748         * tests/test-freadptr2.c (ASSERT): Likewise.
61749         * tests/test-freadseek.c (ASSERT): Likewise.
61750         * tests/test-freopen.c (ASSERT): Likewise.
61751         * tests/test-frexp.c (ASSERT): Likewise.
61752         * tests/test-frexpl.c (ASSERT): Likewise.
61753         * tests/test-fseek.c (ASSERT): Likewise.
61754         * tests/test-fseeko.c (ASSERT): Likewise.
61755         * tests/test-fstrcmp.c (ASSERT): Likewise.
61756         * tests/test-ftell.c (ASSERT): Likewise.
61757         * tests/test-ftello.c (ASSERT): Likewise.
61758         * tests/test-func.c (ASSERT): Likewise.
61759         * tests/test-fwritable.c (ASSERT): Likewise.
61760         * tests/test-fwriting.c (ASSERT): Likewise.
61761         * tests/test-getdelim.c (ASSERT): Likewise.
61762         * tests/test-getline.c (ASSERT): Likewise.
61763         * tests/test-i-ring.c (ASSERT): Likewise.
61764         * tests/test-iconv-utf.c (ASSERT): Likewise.
61765         * tests/test-iconv.c (ASSERT): Likewise.
61766         * tests/test-isfinite.c (ASSERT): Likewise.
61767         * tests/test-isnand.c (ASSERT): Likewise.
61768         * tests/test-isnanf.c (ASSERT): Likewise.
61769         * tests/test-isnanl.h (ASSERT): Likewise.
61770         * tests/test-ldexpl.c (ASSERT): Likewise.
61771         * tests/test-linked_list.c (ASSERT): Likewise.
61772         * tests/test-linkedhash_list.c (ASSERT): Likewise.
61773         * tests/test-localename.c (ASSERT): Likewise.
61774         * tests/test-lseek.c (ASSERT): Likewise.
61775         * tests/test-mbscasecmp.c (ASSERT): Likewise.
61776         * tests/test-mbscasestr1.c (ASSERT): Likewise.
61777         * tests/test-mbscasestr2.c (ASSERT): Likewise.
61778         * tests/test-mbscasestr3.c (ASSERT): Likewise.
61779         * tests/test-mbscasestr4.c (ASSERT): Likewise.
61780         * tests/test-mbschr.c (ASSERT): Likewise.
61781         * tests/test-mbscspn.c (ASSERT): Likewise.
61782         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
61783         * tests/test-mbspbrk.c (ASSERT): Likewise.
61784         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
61785         * tests/test-mbsrchr.c (ASSERT): Likewise.
61786         * tests/test-mbsspn.c (ASSERT): Likewise.
61787         * tests/test-mbsstr1.c (ASSERT): Likewise.
61788         * tests/test-mbsstr2.c (ASSERT): Likewise.
61789         * tests/test-mbsstr3.c (ASSERT): Likewise.
61790         * tests/test-memchr2.c (ASSERT): Likewise.
61791         * tests/test-memmem.c (ASSERT): Likewise.
61792         * tests/test-open.c (ASSERT): Likewise.
61793         * tests/test-printf-frexp.c (ASSERT): Likewise.
61794         * tests/test-printf-frexpl.c (ASSERT): Likewise.
61795         * tests/test-printf-posix.c (ASSERT): Likewise.
61796         * tests/test-quotearg.c (ASSERT): Likewise.
61797         * tests/test-rbtree_list.c (ASSERT): Likewise.
61798         * tests/test-rbtree_oset.c (ASSERT): Likewise.
61799         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
61800         * tests/test-round1.c (ASSERT): Likewise.
61801         * tests/test-roundf1.c (ASSERT): Likewise.
61802         * tests/test-roundl.c (ASSERT): Likewise.
61803         * tests/test-signbit.c (ASSERT): Likewise.
61804         * tests/test-sleep.c (ASSERT): Likewise.
61805         * tests/test-snprintf-posix.c (ASSERT): Likewise.
61806         * tests/test-snprintf.c (ASSERT): Likewise.
61807         * tests/test-sprintf-posix.c (ASSERT): Likewise.
61808         * tests/test-stat-time.c (ASSERT): Likewise.
61809         * tests/test-strcasestr.c (ASSERT): Likewise.
61810         * tests/test-strerror.c (ASSERT): Likewise.
61811         * tests/test-striconv.c (ASSERT): Likewise.
61812         * tests/test-striconveh.c (ASSERT): Likewise.
61813         * tests/test-striconveha.c (ASSERT): Likewise.
61814         * tests/test-strsignal.c (ASSERT): Likewise.
61815         * tests/test-strstr.c (ASSERT): Likewise.
61816         * tests/test-strtod.c (ASSERT): Likewise.
61817         * tests/test-trunc1.c (ASSERT): Likewise.
61818         * tests/test-trunc2.c (ASSERT): Likewise.
61819         * tests/test-truncf1.c (ASSERT): Likewise.
61820         * tests/test-truncf2.c (ASSERT): Likewise.
61821         * tests/test-truncl.c (ASSERT): Likewise.
61822         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
61823         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
61824         * tests/test-vasnprintf.c (ASSERT): Likewise.
61825         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
61826         * tests/test-vasprintf.c (ASSERT): Likewise.
61827         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
61828         * tests/test-vprintf-posix.c (ASSERT): Likewise.
61829         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
61830         * tests/test-vsnprintf.c (ASSERT): Likewise.
61831         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
61832         * tests/test-wcwidth.c (ASSERT): Likewise.
61833         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
61834         * tests/test-xprintf-posix.c (ASSERT): Likewise.
61835         * tests/test-xvasprintf.c (ASSERT): Likewise.
61836         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
61837         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
61838         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
61839         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
61840         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
61841         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
61842         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
61843         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
61844         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
61845         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
61846         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
61847         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
61848         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
61849         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
61850         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
61851         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
61852         * tests/unictype/test-block_list.c (ASSERT): Likewise.
61853         * tests/unictype/test-block_of.c (ASSERT): Likewise.
61854         * tests/unictype/test-block_test.c (ASSERT): Likewise.
61855         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
61856         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
61857         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
61858         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
61859         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
61860         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
61861         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
61862         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
61863         * tests/unictype/test-combining.c (ASSERT): Likewise.
61864         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
61865         * tests/unictype/test-digit.c (ASSERT): Likewise.
61866         * tests/unictype/test-mirror.c (ASSERT): Likewise.
61867         * tests/unictype/test-numeric.c (ASSERT): Likewise.
61868         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
61869         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
61870         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
61871         * tests/unictype/test-scripts.c (ASSERT): Likewise.
61872         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
61873         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
61874         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
61875         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
61876         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
61877         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
61878         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
61879         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
61880         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
61881         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
61882         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
61883         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
61884         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
61885         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
61886         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
61887         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
61888         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
61889         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
61890         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
61891         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
61892         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
61893         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
61894         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
61895         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
61896         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
61897         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
61898         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
61899         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
61900         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
61901         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
61902         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
61903         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
61904         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
61905         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
61906         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
61907         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
61908         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
61909         Reported by Eric Blake.
61910
61911 2008-04-11  Bruno Haible  <bruno@clisp.org>
61912
61913         * lib/wchar.in.h: Tweak comment.
61914
61915 2008-04-11  Bruno Haible  <bruno@clisp.org>
61916
61917         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
61918         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
61919         gl_COMMON.
61920         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
61921
61922 2008-04-11  Bruno Haible  <bruno@clisp.org>
61923
61924         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
61925
61926 2008-04-11  Simon Josefsson  <simon@josefsson.org>
61927
61928         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
61929         of attempting to use non-existing /dev/*random.  Based on patch
61930         from Adam Strzelecki <ono@java.pl> in
61931         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
61932
61933 2008-04-08  Bruno Haible  <bruno@clisp.org>
61934
61935         Add tentative support for emx+gcc.
61936         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
61937         * lib/fpurge.c (fpurge): Likewise.
61938         * lib/freadable.c (freadable): Likewise.
61939         * lib/freadahead.c (freadahead): Likewise.
61940         * lib/freading.c (freading): Likewise.
61941         * lib/freadptr.c (freadptr): Likewise.
61942         * lib/freadseek.c (freadptrinc): Likewise.
61943         * lib/fseeko.c (rpl_fseeko): Likewise.
61944         * lib/fseterr.c (fseterr): Likewise.
61945         * lib/fwritable.c (fwritable): Likewise.
61946         * lib/fwriting.c (fwriting): Likewise.
61947         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
61948
61949 2008-04-09  Eric Blake  <ebb9@byu.net>
61950
61951         Avoid some autoconf warnings.
61952         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
61953         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
61954         * m4/afs.m4 (gl_AFS): Likewise.
61955         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
61956         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
61957         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
61958         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
61959         (gl_INTEGER_TYPE_SUFFIX): Likewise.
61960         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
61961         (AC_CHECK_DECLS_ONCE): Likewise.
61962         Rename file...
61963         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
61964         gnulib-tool requires autoconf 2.59 or better.
61965         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
61966
61967 2008-04-08  Eric Blake  <ebb9@byu.net>
61968
61969         Use 'git describe --match' if present (added in git 1.5.5).
61970         * build-aux/git-version-gen: Limit result to tags that match 'v*'
61971         if possible.
61972
61973 2008-04-08  Bruno Haible  <bruno@clisp.org>
61974
61975         Add tentative support for OpenServer.
61976         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
61977         _ptr, _cnt.
61978         * lib/fpurge.c (fpurge): Likewise.
61979         * lib/freadable.c (freadable): Likewise.
61980         * lib/freadahead.c (freadahead): Likewise.
61981         * lib/freading.c (freading): Likewise.
61982         * lib/freadptr.c (freadptr): Likewise.
61983         * lib/freadseek.c (freadptrinc): Likewise.
61984         * lib/fseeko.c (rpl_fseeko): Likewise.
61985         * lib/fseterr.c (fseterr): Likewise.
61986         * lib/fwritable.c (fwritable): Likewise.
61987         * lib/fwriting.c (fwriting): Likewise.
61988         Reported by Roger Cornelius <rac@tenzing.org> and
61989         Brian K. White <brian@aljex.com>.
61990
61991 2008-04-06  Jim Meyering  <meyering@redhat.com>
61992
61993         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
61994
61995 2008-04-06  Bruno Haible  <bruno@clisp.org>
61996
61997         Avoid possible error with non-ASCII bytes in UTF-8 locales.
61998         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
61999         * tests/test-printf-posix.sh: Likewise.
62000         * tests/test-vfprintf-posix.sh: Likewise.
62001         * tests/test-vprintf-posix.sh: Likewise.
62002         * tests/test-xprintf-posix.sh: Likewise.
62003
62004 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62005
62006         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
62007         hide error from 'ls', needed on OS/2.
62008         Report by Elbert Pol <elbert.pol@gmail.com>.
62009
62010 2008-04-04  Eric Blake  <ebb9@byu.net>
62011
62012         Make test-fseeko.c failures meaningful.
62013         * tests/test-fseeko.c: Print line number on failure.
62014         * tests/test-fseek.c: Likewise.
62015         Reported by Nelson H. F. Beebe.
62016
62017         Improve strtod bug detection check.
62018         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
62019         required for Solaris 10.
62020         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
62021
62022 2008-04-04  Bruno Haible  <bruno@clisp.org>
62023
62024         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
62025         by m4/setenv.m4.
62026
62027 2008-04-03  Eric Blake  <ebb9@byu.net>
62028
62029         Ensure sane .version contents.
62030         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
62031         version string.
62032         * build-aux/git-version-gen: Improve documentation.
62033
62034         Make GNU make output nicer.
62035         * top/GNUmakefile [!_have-Makefile]: Add dependency on
62036         MAKECMDGOALS to enforce message for all command line targets.  Set
62037         srcdir for use in maint.mk.
62038
62039         Another maintainer tweak.
62040         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
62041         a target that regenerates version.
62042
62043 2008-04-03  Jim Meyering  <meyering@redhat.com>
62044
62045         vc-list-files: don't cause coreutils "make po-check" failure
62046         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
62047
62048 2008-04-03  Eric Blake  <ebb9@byu.net>
62049
62050         Allow VPATH usage of vc-list-files.
62051         * build-aux/vc-list-files (scriptversion): Add timestamp.
62052         (options): Add --help, --version, -C.
62053         (CVS): Support installed cvsu.
62054
62055 2008-04-02  Bruno Haible  <bruno@clisp.org>
62056
62057         Avoid some "statement with no effect" warnings from gcc.
62058         * tests/test-wctype.c (main): Explicitly ignore unused values.
62059         Reported by Jim Meyering.
62060
62061 2008-04-02  Jim Meyering  <meyering@redhat.com>
62062
62063         Avoid some warnings from "gcc -Wshadow".
62064         * tests/test-frexp.c (exp): Define to a different identifier.
62065         * tests/test-frexpl.c (exp): Likewise.
62066
62067 2008-04-03  Jim Meyering  <meyering@redhat.com>
62068
62069         bootstrap: remove dangling *.[ch] symlinks from lib
62070         * build-aux/bootstrap [dangling symlink removal]: Move find's
62071         -depth option to precede all others, to avoid a warning.
62072         Remove *.[ch] files too, and from "$source_base" (usually lib/).
62073
62074 2008-04-02  Bruno Haible  <bruno@clisp.org>
62075
62076         Avoid some warnings from "gcc -Wshadow".
62077         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
62078         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
62079         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
62080         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
62081         Reported by Jim Meyering.
62082
62083 2008-04-01  Bruno Haible  <bruno@clisp.org>
62084
62085         Fix test to work on IRIX 6.5 with cc.
62086         * tests/test-math.c (numeric_equal): New function.
62087         (main): Use it.
62088
62089 2008-04-01  Bruno Haible  <bruno@clisp.org>
62090
62091         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
62092
62093 2008-04-01  Bruno Haible  <bruno@clisp.org>
62094
62095         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
62096         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
62097         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
62098         (Depends-on): Remove math.
62099
62100         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
62101         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
62102         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
62103         (Depends-on): Remove math.
62104
62105         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
62106         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
62107         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
62108         (Depends-on): Remove math.
62109         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
62110         (Depends-on): Remove math.
62111
62112         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
62113         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
62114         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
62115         (Depends-on): Remove math.
62116         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
62117         (Depends-on): Remove math.
62118
62119         * tests/test-round1.c: Include nan.h.
62120         (main): Use NaNd instead of NAN.
62121         * modules/round-tests (Files): Add tests/nan.h.
62122
62123         * tests/test-trunc1.c: Include nan.h.
62124         (main): Use NaNd instead of NAN.
62125         * modules/trunc-tests (Files): Add tests/nan.h.
62126
62127         * tests/test-roundf1.c: Include nan.h.
62128         (main): Use NaNf instead of NAN.
62129         * modules/roundf-tests (Files): Add tests/nan.h.
62130
62131         * tests/test-truncf1.c: Include nan.h.
62132         (main): Use NaNf instead of NAN.
62133         * modules/truncf-tests (Files): Add tests/nan.h.
62134
62135         * tests/test-ceilf1.c: Include nan.h.
62136         (main): Use NaNf instead of NAN.
62137         * modules/ceilf-tests (Files): Add tests/nan.h.
62138
62139         * tests/test-floorf1.c: Include nan.h.
62140         (main): Use NaNf instead of NAN.
62141         * modules/floorf-tests (Files): Add tests/nan.h.
62142
62143         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
62144         (main): Use NaNf instead of NAN.
62145         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
62146
62147         * tests/test-isnand.c: Include nan.h instead of <math.h>.
62148         (main): Use NaNd instead of NAN.
62149         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
62150
62151         * tests/test-frexp.c: Include nan.h.
62152         (main): Use NaNd instead of NAN.
62153         * modules/frexp-tests (Files): Add tests/nan.h.
62154
62155         * lib/isnan.c: Don't include <math.h>.
62156         (FUNC): Don't use NAN macro.
62157         * modules/isnand-nolibm (Depends-on): Remove math.
62158         * modules/isnanf-nolibm (Depends-on): Remove math.
62159         * modules/isnanl (Depends-on): Remove math.
62160         * modules/isnanl-nolibm (Depends-on): Remove math.
62161
62162         * tests/nan.h: New file.
62163
62164 2008-04-01  Eric Blake  <ebb9@byu.net>
62165
62166         Fix typos.
62167         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
62168         values to be the right type.
62169
62170         For now, cater to gnulib strtod inaccuracies.
62171         * tests/test-strtod.c (main): Allow 1-ulp error on expected
62172         fractional results.  While not as nice from a QoI perspective, it
62173         is a quicker patch than correctly implementing decimal to binary
62174         rounding.
62175
62176 2008-03-31  Eric Blake  <ebb9@byu.net>
62177
62178         Guarantee a definition of NAN.
62179         * lib/math.in.h (NAN): Define if missing.
62180         * tests/test-math.c (main): Test it.
62181         * doc/posix-headers/math.texi (math.h): Document this.
62182         * lib/isnan.c (rpl_isnand): Use it.
62183         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
62184         * tests/test-floorf1.c (NaN): Likewise.
62185         * tests/test-frexp.c (NaN): Likewise.
62186         * tests/test-isnand.c (NaN): Likewise.
62187         * tests/test-isnanf.c (NaN): Likewise.
62188         * tests/test-round1.c (NaN): Likewise.
62189         * tests/test-roundf1.c (NaN): Likewise.
62190         * tests/test-snprintf-posix.h (NaN): Likewise.
62191         * tests/test-sprintf-posix.h (NaN): Likewise.
62192         * tests/test-trunc1.c (NaN): Likewise.
62193         * tests/test-truncf1.c (NaN): Likewise.
62194         * tests/test-vasnprintf-posix.c (NaN): Likewise.
62195         * tests/test-vasprintf-posix.c (NaN): Likewise.
62196         * modules/isnand-nolibm (Depends-on): Add math.
62197         * modules/isnanf-nolibm (Depends-on): Likewise.
62198         * modules/isnanl (Depends-on): Likewise.
62199         * modules/isnanl-nolibm (Depends-on): Likewise.
62200         * modules/snprintf-posix-tests (Depends-on): Likewise.
62201         * modules/sprintf-posix-tests (Depends-on): Likewise.
62202         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
62203         * modules/vsprintf-posix-tests (Depends-on): Likewise.
62204         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
62205         * modules/vasprintf-posix-tests (Depends-on): Likewise.
62206
62207 2008-03-31  Bruno Haible  <bruno@clisp.org>
62208
62209         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
62210         * doc/posix-functions/strtod.texi: Likewise.
62211
62212 2008-03-31  Bruno Haible  <bruno@clisp.org>
62213
62214         * tests/test-strtod.c (main): Don't use C99 syntax.
62215
62216 2008-03-31  Bruno Haible  <bruno@clisp.org>
62217
62218         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
62219         Reported by Eric Blake.
62220
62221 2008-03-31  Jim Meyering  <meyering@redhat.com>
62222
62223         Don't compare actual signbit return values.
62224         * tests/test-strtod.c (main): Rather, compare only their
62225         zero/non-zero nature.
62226
62227 2008-03-31  Eric Blake  <ebb9@byu.net>
62228
62229         More strtod documentation.
62230         * doc/posix-functions/strtod.texi (strtod): Interpret more test
62231         failures as distinct bugs.
62232
62233 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
62234
62235         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
62236         Problem reported by Erik Benada in
62237         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
62238
62239 2008-03-30  Bruno Haible  <bruno@clisp.org>
62240
62241         * tests/test-strtod.c: Add comments about which assertion fails on which
62242         platform.
62243         * doc/posix-functions/strtod.texi: Add info about many more platforms.
62244
62245 2008-03-30  Eric Blake  <ebb9@byu.net>
62246
62247         Test signbit behavior on zeros.
62248         * tests/test-signbit.c (test_signbitf): Add tests for zero.
62249         (test_signbitd, test_signbitl): Likewise.
62250
62251         More strtod touchups.
62252         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
62253         sign of negative underflow, for now.  Use .5, not .1.
62254         * doc/posix-functions/strtod.texi (strtod): Mention these
62255         limitations.
62256         Reported by Jim Meyering.
62257
62258 2008-03-30  Bruno Haible  <bruno@clisp.org>
62259
62260         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
62261         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
62262
62263 2008-03-30  Bruno Haible  <bruno@clisp.org>
62264
62265         Avoid failure when attempting to return empty iconv results on some
62266         platforms.
62267         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
62268         allocation, don't report ENOMEM when the resulting string is empty.
62269
62270 2008-03-30  Bruno Haible  <bruno@clisp.org>
62271
62272         Fix buffer overrun.
62273         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
62274         Don't consider the width for tmp_length. Check count against tmp_length
62275         before doing the padding. Ensure enough allocation during padding.
62276
62277 2008-03-30  Eric Blake  <ebb9@byu.net>
62278
62279         strtod touchups.
62280         * lib/strtod.c (strtod): Avoid compiler warnings.
62281         Reported by Jim Meyering.
62282
62283 2008-03-30  Bruno Haible  <bruno@clisp.org>
62284
62285         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
62286         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
62287         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
62288         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
62289         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
62290         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
62291         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
62292         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
62293
62294         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
62295         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
62296         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
62297         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
62298         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
62299         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
62300         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
62301         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
62302
62303         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
62304         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
62305         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
62306         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
62307         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
62308         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
62309         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
62310         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
62311
62312         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
62313         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
62314
62315         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
62316         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
62317
62318         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
62319         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
62320
62321         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
62322         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
62323         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
62324
62325         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
62326         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
62327         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
62328
62329         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
62330         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
62331         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
62332
62333         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
62334         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
62335         * modules/vasprintf (Depends-on): Add EOVERFLOW.
62336
62337         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
62338         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
62339         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
62340         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
62341         (Depends-on): Add EOVERFLOW.
62342         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
62343         (Depends-on): Add EOVERFLOW.
62344         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
62345         (Depends-on): Add EOVERFLOW.
62346         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
62347         (Depends-on): Add EOVERFLOW.
62348         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
62349         (Depends-on): Add EOVERFLOW.
62350         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
62351         (Depends-on): Add EOVERFLOW.
62352         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
62353         (Depends-on): Add EOVERFLOW.
62354         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
62355         (Depends-on): Add EOVERFLOW.
62356
62357         * lib/sprintf.c (EOVERFLOW): Remove fallback.
62358         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
62359         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
62360
62361         * lib/snprintf.c (EOVERFLOW): Remove fallback.
62362         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
62363         * modules/snprintf (Depends-on): Add EOVERFLOW.
62364
62365         * lib/poll.c (EOVERFLOW): Remove fallback.
62366         * modules/poll (Depends-on): Add EOVERFLOW.
62367
62368         * lib/getugroups.c (EOVERFLOW): Remove fallback.
62369         * modules/getugroups (Depends-on): Add EOVERFLOW.
62370
62371         * lib/getdelim.c (EOVERFLOW): Remove fallback.
62372         * modules/getdelim (Depends-on): Add EOVERFLOW.
62373
62374         * lib/ftell.c (EOVERFLOW): Remove fallback.
62375         * modules/ftell (Depends-on): Add EOVERFLOW.
62376
62377         * lib/fprintf.c (EOVERFLOW): Remove fallback.
62378         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
62379         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
62380
62381         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
62382
62383         * modules/EOVERFLOW-tests: New file.
62384         * tests/test-EOVERFLOW.c: New file.
62385
62386         * modules/EOVERFLOW: New file.
62387         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
62388
62389 2008-03-30  Bruno Haible  <bruno@clisp.org>
62390
62391         Fix bug introduced on 2007-06-10.
62392         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
62393         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
62394
62395 2008-03-30  Bruno Haible  <bruno@clisp.org>
62396
62397         Improve freadseek's efficiency after ungetc.
62398         * lib/freadseek.c: Include freadahead.h.
62399         (freadptrinc): New function, extracted from freadseek.
62400         (freadseek): Use it in a loop. Use freadahead to determine the number
62401         of loop iterations.
62402         * modules/freadseek (Depends-on): Add freadahead.
62403         (configure.ac): Require AC_C_INLINE.
62404
62405 2008-03-30  Bruno Haible  <bruno@clisp.org>
62406
62407         * lib/freadseek.c (freadseek): Don't ignore the return value of
62408         freadptr.
62409
62410 2008-03-29  Eric Blake  <ebb9@byu.net>
62411
62412         Add hex float support.
62413         * modules/strtod (Depends-on): Add c-ctype.
62414         (Link): Mention POW_LIB.
62415         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
62416         whitespace between 'e' and exponent.
62417         * tests/test-strtod.c (main): Enable hex float tests.
62418         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
62419         now provides.
62420
62421         Document various strtod bugs, with some fixes.
62422         * doc/posix-functions/strtod.texi (strtod): Document bugs with
62423         "-0x", "inf", "nan", and hex constants.
62424         * doc/posix-functions/atof.texi (atof): Likewise.
62425         * modules/stdlib (Makefile.am): Support strtod.
62426         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
62427         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
62428         detect additional strtod bugs.
62429         * lib/stdlib.in.h (rpl_strtod): Add declarations.
62430         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
62431         bool where appropriate.  Parse 'inf' and 'nan'.
62432         * tests/test-strtod.c: New file.
62433         * modules/strtod (Depends-on): Add stdbool, stdlib.
62434         (configure.ac): Turn on module indicator.
62435         * modules/strtod-tests: New module.
62436
62437 2008-03-29  Eric Blake  <ebb9@byu.net>
62438
62439         Fix ftell on mingw.
62440         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
62441         * modules/ftell-tests (Depends-on): Add binary-io.
62442         * modules/ftello-tests (Depends-on): Likewise.
62443         * tests/test-ftell.c (main): Enhance test to cover behavior after
62444         ungetc.  Enforce binary mode.
62445         * tests/test-ftello.c (main): Likewise.
62446
62447         Pass test-freadseek on cygwin.
62448         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
62449         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
62450         ungetc buffer.
62451
62452         * tests/test-fflush2.c (main): Fix typo.
62453
62454 2008-03-29  Bruno Haible  <bruno@clisp.org>
62455
62456         * tests/test-fflush2.c (main): Temporarily disable the contents of
62457         this test.
62458         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
62459         Reported by Eric Blake.
62460
62461 2008-03-28  Simon Josefsson  <simon@josefsson.org>
62462
62463         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
62464         (GC_SHA224_DIGEST_SIZE): Add.
62465
62466         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
62467         (gc_hash_digest_length): Likewise.
62468         (gc_hash_buffer): Likewise.
62469
62470 2008-03-25  Bruno Haible  <bruno@clisp.org>
62471
62472         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
62473         detail which gettext release to use.
62474         Reported by Simon Josefsson.
62475
62476 2008-03-26  Jim Meyering  <meyering@redhat.com>
62477
62478         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
62479         * modules/gnumakefile (clean-GNUmakefile): Also, use
62480         test ... && ... || : syntax rather than if-then ... fi.
62481
62482         gnumakefile: Don't double-quote-expand $(VPATH) value.
62483         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
62484
62485 2008-03-24  Eric Blake  <ebb9@byu.net>
62486
62487         Alter GNUmakefile to install into top directory.
62488         * modules/maintainer-makefile: Split, and add dependency...
62489         * modules/gnumakefile: to this new module.
62490         * build-aux/GNUmakefile: Move...
62491         * top/GNUmakefile: ...here.
62492         * build-aux/maint.mk: Move...
62493         * top/maint.mk: ...here.
62494         * MODULES.html.sh (Support for maintaining...): Document new
62495         module.
62496
62497 2008-03-23  Bruno Haible  <bruno@clisp.org>
62498
62499         * gnulib-tool: New options --vc-files, --no-vc-files.
62500         (func_usage): Document them.
62501         (vc_files): New variable.
62502         (func_import): Consider vc_files.
62503         (func_create_testdir): Set vc_files to empty.
62504         Suggested by Jim Meyering and Karl Berry.
62505
62506 2008-03-23  Bruno Haible  <bruno@clisp.org>
62507
62508         Fix regex compilation error on HP-UX 11.
62509         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
62510         * modules/regex (Files): Add m4/mbstate_t.m4.
62511         Reported by Ton Voon <ton.voon@altinity.com>.
62512
62513 2008-03-23  Bruno Haible  <bruno@clisp.org>
62514
62515         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
62516
62517 2008-03-23  Eric Blake  <ebb9@byu.net>
62518             Bruno Haible  <bruno@clisp.org>
62519
62520         Install files from top/ in the destination directory.
62521         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
62522         augmentation also for the files from top/.
62523         (func_import, func_create_testdir): Rewrite file names:
62524         top/filename -> filename.
62525
62526 2008-03-23  Bruno Haible  <bruno@clisp.org>
62527
62528         Tweak "gnulib --version" output.
62529         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
62530
62531 2008-03-23  Bruno Haible  <bruno@clisp.org>
62532
62533         Tweak "gnulib --version" output.
62534         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
62535         rather than contents of ChangeLog, when possible.
62536
62537 2008-03-21  Eric Blake  <ebb9@byu.net>
62538
62539         More --version tweaks.
62540         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
62541         date of last ChangeLog entry.
62542
62543 2008-03-21  Jim Meyering  <meyering@redhat.com>
62544
62545         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
62546
62547 2008-03-20  Eric Blake  <ebb9@byu.net>
62548
62549         VPATH fix.
62550         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
62551
62552 2008-03-20  Simon Josefsson  <simon@josefsson.org>
62553
62554         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
62555         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
62556
62557 2008-03-20  Eric Blake  <ebb9@byu.net>
62558
62559         Sync GNUmakefile with coreutils.
62560         * build-aux/GNUmakefile (have-Makefile): Rename...
62561         (_have-Makefile): ...to this, for namespace consideration.
62562         (GNUmakefile.cfg): Include, if present.
62563         (_autoreconf): Define a default.
62564         (_is-dist-target): New rule for rebuilds to pick up intra-release
62565         version.
62566         (maint-cfg.mk): Rename...
62567         (cfg.mk): ...to this.
62568
62569 2008-03-18  Jim Meyering  <meyering@redhat.com>
62570
62571         New script and module: mktempd
62572         * MODULES.html.sh (maint+release support): Add mktempd.
62573         * build-aux/mktempd: New file.
62574         * modules/mktempd: New file.
62575
62576 2008-03-15  Jim Meyering  <meyering@redhat.com>
62577
62578         Undo last change.
62579         * lib/sha1.c, lib/md5.c: 63 != ~63.
62580         Reported by Andreas Schwab.
62581
62582         sha1.c, md5.c: Hoist a redundant expression.
62583         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
62584         "ctx->buflen" only once, before calling *_process_block.
62585         * lib/md5.c (md5_process_bytes): Likewise.
62586
62587 2008-03-14  Eric Blake  <ebb9@byu.net>
62588
62589         Bump copyright year in files generated by gnulib-tool.
62590         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
62591         gnulib-tool, rather than hard-coding it.
62592
62593         Fix 'gnulib-tool --version' output to work with git.
62594         * gnulib-tool (func_gnulib_dir): New function, extracted from...
62595         (startup): ...here.
62596         (func_version): Use it to invoke git-version-gen, rather than
62597         relying on CVS keyword expansion.  Modernize wording.
62598         (cvsdatestamp, last_checkin_date, version): Kill unused
62599         variables.
62600
62601 2008-03-12  Jim Meyering  <meyering@redhat.com>
62602
62603         Recognize optional cast of the argument to free.
62604         * build-aux/useless-if-before-free: Update regexps.
62605
62606         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
62607
62608 2008-03-11  Bruno Haible  <bruno@clisp.org>
62609
62610         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
62611         by a single package.
62612         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
62613         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
62614         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
62615         Reported by Sam Steingold <sds@gnu.org>.
62616
62617 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
62618
62619         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
62620         repositories.
62621
62622 2008-03-11  Bruno Haible  <bruno@clisp.org>
62623
62624         Avoid conflicts between local macro definitions.
62625         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
62626         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
62627
62628 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
62629             Bruno Haible  <bruno@clisp.org>
62630
62631         Make va_copy work with some version of xlc on AIX 5.1.
62632         * lib/stdarg.in.h: New file.
62633         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
62634         On AIX, use a <stdarg.h> file substitute.
62635         * modules/stdarg (Files): Add lib/stdarg.in.h.
62636         (Depends-on): Add include_next.
62637         (Makefile.am): Build a stdarg.h substitute if requested.
62638         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
62639
62640 2008-03-10  Bruno Haible  <bruno@clisp.org>
62641
62642         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
62643         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
62644         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
62645
62646 2008-03-10  Bruno Haible  <bruno@clisp.org>
62647
62648         * modules/stdlib (Depends-on): Add include_next, remove
62649         absolute-header.
62650
62651 2008-03-09  Bruno Haible  <bruno@clisp.org>
62652
62653         * lib/freadahead.h (freadahead): Document more precisely.
62654         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
62655         the sum of both buffer sizes.
62656         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
62657         * NEWS: Document the change.
62658
62659 2008-03-09  Bruno Haible  <bruno@clisp.org>
62660
62661         Extend freadptr to return also the buffer size.
62662         * lib/freadptr.h (freadptr): Add sizep argument.
62663         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
62664         (freadptr): Add sizep argument. Determine buffer size like freadahead
62665         does.
62666         * tests/test-freadptr.c: Don't include freadahead.h.
62667         (main): Adapt for new calling convention of freadptr.
62668         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
62669         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
62670         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
62671         tests/test-freadptr2.sh.
62672         (Depends): Remove freadahead.
62673         (TESTS): Add test-freadptr2.sh.
62674         (check_PROGRAMS): Add test-freadptr2.
62675
62676 2008-03-09  Bruno Haible  <bruno@clisp.org>
62677
62678         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
62679         Report and solution by Simon Josefsson.
62680
62681 2008-03-06  Bruno Haible  <bruno@clisp.org>
62682
62683         Make fflush after ungetc work on BSD platforms.
62684         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
62685         * tests/test-fflush2.c: New file.
62686         * tests/test-fflush2.sh: New file.
62687         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
62688         tests/test-fflush2.c.
62689         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
62690         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
62691
62692 2008-03-06  Eric Blake  <ebb9@byu.net>
62693
62694         Likewise for ftello.
62695         * modules/ftello (Dependencies): Add extensions.
62696         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
62697
62698 2008-03-06  Bruno Haible  <bruno@clisp.org>
62699
62700         * modules/fseeko (Dependencies): Add extensions.
62701         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
62702         Needed on glibc systems.
62703
62704 2008-03-06  Bruno Haible  <bruno@clisp.org>
62705
62706         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
62707         email address.
62708         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
62709
62710 2008-03-06  Bruno Haible  <bruno@clisp.org>
62711
62712         * users.txt: Add libgnupdf.
62713
62714 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
62715
62716         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
62717         (Header File Substitutes, Function Substitutes,
62718         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
62719         (Build robot for gnulib): Fix typo.
62720
62721 2008-03-06  Bruno Haible  <bruno@clisp.org>
62722
62723         * doc/gnulib-tool.texi (VCS Issues): Small updates.
62724         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
62725
62726 2008-03-06  Bruno Haible  <bruno@clisp.org>
62727
62728         * doc/func.texi: New file, extracted from doc/gnulib.texi.
62729         * doc/gnulib.texi: Include it.
62730
62731 2008-03-06  Simon Josefsson  <simon@josefsson.org>
62732
62733         * modules/func (License): Change license to unlimited; there was
62734         no LGPL parts in the module anyway.
62735
62736 2008-03-06  Simon Josefsson  <simon@josefsson.org>
62737
62738         * modules/__func__: Renamed to modules/func.
62739         * modules/__func__-tests: Renamed to modules/func-tests.
62740         * tests/test-__func__.c: Renamed to tests/test-func.c.
62741         * m4/__func__.m4: Renamed to m4/func.m4.
62742         * doc/gnulib.texi (__func__): Section renamed to func.
62743         Suggested by Eric Blake <ebb9@byu.net>.
62744
62745 2008-03-06  Simon Josefsson  <simon@josefsson.org>
62746
62747         * doc/gnulib.texi (__func__): Use C99 terminology when talking
62748         about __func__.  Make example self-contained.  Suggested by Eric
62749         Blake <ebb9@byu.net>.
62750
62751         * tests/test-__func__.c (main): Avoid extraneous () around __func.
62752         Suggested by Eric Blake <ebb9@byu.net>.
62753
62754 2008-03-06  Simon Josefsson  <simon@josefsson.org>
62755
62756         * modules/__func__: New file.
62757         * modules/__func__-tests: New file.
62758         * tests/test-__func__.c: New file.
62759         * m4/__func__.m4: New file.
62760         * doc/gnulib.texi (__func__): Document __func__ module.
62761
62762 2008-03-05  Simon Josefsson  <simon@josefsson.org>
62763
62764         * modules/byteswap (License): Re-license as LGPLv2+.
62765
62766 2008-03-05  Simon Josefsson  <simon@josefsson.org>
62767
62768         * doc/Makefile: Add pdf target.
62769
62770 2008-03-05  Simon Josefsson  <simon@josefsson.org>
62771
62772         * modules/inline (License): Use 'unlimited', since there are only
62773         *.m4 files in this module.
62774
62775 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
62776             Bruno Haible  <bruno@clisp.org>
62777
62778         Add support for HP C 7.1 on OpenVMS 8.3.
62779         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
62780
62781 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
62782
62783         Update VMS specifics.
62784         * lib/getopt.c [VMS]: Remove include of unixlib.h.
62785
62786 2008-03-02  Jim Meyering  <meyering@redhat.com>
62787
62788         Remove the last dependency on the "free" module.
62789         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
62790         Reported by Bob Proulx.
62791
62792         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
62793
62794         Remove useless "if" tests before free.  Deprecate "free" module.
62795         * doc/posix-functions/free.texi: Mention that this
62796         module is no longer useful.
62797         * modules/free (Notice): Say this module is obsolete.
62798         * modules/readutmp (Depends-on): Remove free.
62799         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
62800         * lib/putenv.c (putenv): Likewise.
62801         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
62802         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
62803         * tests/test-c-strcasestr.c (main): Likewise.
62804         * tests/test-c-strstr.c (main): Likewise.
62805         * tests/test-mbscasestr1.c (main): Likewise.
62806         * tests/test-mbscasestr2.c (main): Likewise.
62807         * tests/test-mbsstr1.c (main): Likewise.
62808         * tests/test-mbsstr2.c (main): Likewise.
62809         * tests/test-memmem.c (main): Likewise.
62810         * tests/test-strcasestr.c (main): Likewise.
62811         * tests/test-striconv.c (main): Likewise.
62812         * tests/test-striconveh.c (main): Likewise.
62813         * tests/test-striconveha.c (main): Likewise.
62814         * tests/test-strstr.c (main): Likewise.
62815
62816         * build-aux/git-version-gen: Adjust a comment and the Usage string.
62817
62818         bootstrap: sync from coreutils again
62819         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
62820
62821 2008-03-01  Jim Meyering  <meyering@redhat.com>
62822
62823         bootstrap: sync from coreutils
62824         * build-aux/bootstrap (update_po_files): Copy a .po file into place
62825         also when the target doesn't exist.
62826
62827 2008-03-01  Eric Blake  <ebb9@byu.net>
62828
62829         Fix bugs in last patch.
62830         * lib/memchr2.c (memchr2): Fix typo.
62831         * tests/test-memchr2.c: Test previous bug, and don't use GNU
62832         extension.
62833         Reported by Bruce Korb.
62834
62835         New module 'memchr2'.
62836         * modules/memchr2: New file.
62837         * modules/memchr2-tests: Likewise.
62838         * lib/memchr2.h: Likewise.
62839         * lib/memchr2.c: Likewise, based on memchr.c.
62840         * tests/test-memchr2.c: New test.
62841         * MODULES.html.sh (String handling): Add memchr2.
62842
62843 2008-02-29  Bruno Haible  <bruno@clisp.org>
62844
62845         * modules/freadseek-tests: New file.
62846         * tests/test-freadseek.sh: New file.
62847         * tests/test-freadseek.c: New file.
62848
62849         New module 'freadseek'.
62850         * modules/freadseek: New file.
62851         * lib/freadseek.h: New file.
62852         * lib/freadseek.c: New file.
62853         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
62854
62855 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
62856
62857         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
62858         wydawca.
62859
62860         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
62861         program_invocation_name and program_invocation_short_name are
62862         present.
62863
62864 2008-02-28  Bruno Haible  <bruno@clisp.org>
62865
62866         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
62867         * tests/test-freadptr.sh: Also test non-seekable stdin.
62868
62869 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
62870
62871         * build-aux/bootstrap (source_base, m4_base)
62872         (doc_base, tests_base): New variables.
62873         (gnulib_tool_options): Do not hardcode base directories, use
62874         the above variables instead.
62875
62876 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
62877
62878         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
62879
62880 2008-02-28  Bruno Haible  <bruno@clisp.org>
62881
62882         * modules/freadptr-tests: New file.
62883         * tests/test-freadptr.sh: New file.
62884         * tests/test-freadptr.c: New file.
62885
62886         New module 'freadptr'.
62887         * modules/freadptr: New file.
62888         * lib/freadptr.h: New file.
62889         * lib/freadptr.c: New file.
62890         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
62891
62892 2008-02-26  Karl Berry  <karl@freefriends.org>
62893
62894         Sync from Libtool:
62895         * libltdl/argz.c (argz_add, argz_count): New functions.
62896         * libltdl/argz.in.h: Declare them.
62897         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
62898
62899 2008-02-22  Bruno Haible  <bruno@clisp.org>
62900
62901         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
62902         is a pointer type.  Needed for HP-UX 10.
62903         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
62904         * doc/posix-functions/gmtime_r.texi: Likewise.
62905         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
62906
62907 2008-02-24  Bruno Haible  <bruno@clisp.org>
62908
62909         * modules/environ-tests: New file.
62910         * tests/test-environ.c: New file.
62911
62912         New module 'environ'.
62913         * modules/environ: New file.
62914         * lib/unistd.in.h (environ): New declaration.
62915         * m4/environ.m4: New file.
62916         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
62917         after use.
62918         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
62919         HAVE_DECL_ENVIRON.
62920         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
62921         HAVE_DECL_ENVIRON.
62922         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
62923         wrong claim that 'environ' is missing on some systems.
62924         * modules/execute (Depends-on): Add environ.
62925         * lib/execute.c (environ): Remove fallback declaration.
62926         * modules/pipe (Depends-on): Add environ.
62927         * lib/pipe.c (environ): Remove fallback declaration.
62928         * modules/setenv (Depends-on): Add environ.
62929         * lib/setenv.c (environ): Remove fallback declaration.
62930         * modules/unsetenv (Depends-on): Add environ.
62931         * lib/unsetenv.c (environ): Remove fallback declaration.
62932         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
62933         m4/environ.m4.
62934         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
62935         (gl_PREREQ_UNSETENV): Likewise.
62936
62937 2008-02-24  Bruno Haible  <bruno@clisp.org>
62938
62939         * doc/posix-functions/environ.texi: Document the MacOS X problem.
62940
62941 2008-02-20  Bob Proulx  <bob@proulx.com>
62942
62943         Enable use of older two part flavor 'git describe'.
62944         * build-aux/git-version-gen: If using the older two part flavor of
62945         git version then recreate the third part now present in the
62946         newer three part flavor of git describe.
62947
62948 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
62949
62950         * lib/fts.c (fts_build): Typo correction to comment.
62951
62952 2008-02-17  Bruno Haible  <bruno@clisp.org>
62953
62954         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
62955         generating no-op conflicts.
62956
62957 2008-02-17  Bruno Haible  <bruno@clisp.org>
62958
62959         Speed up by 10%.
62960         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
62961         result_entries, rather than an index-based loop.
62962
62963 2008-02-17  Bruno Haible  <bruno@clisp.org>
62964
62965         Speed up by 25%.
62966         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
62967         'hashcode_cached'.
62968         (entry_create): New function.
62969         (entry_hashcode): Use the cached hashcode if possible.
62970         (read_changelog_file, try_split_merged_entry): Use entry_create.
62971
62972 2008-02-17  Bruno Haible  <bruno@clisp.org>
62973
62974         Speed up from O(n^2) to O(n) for long ChangeLog files.
62975         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
62976         (read_changelog_file): Change implementation of entries_reversed list
62977         to rbtreehash.
62978         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
62979
62980 2008-02-17  Bruno Haible  <bruno@clisp.org>
62981
62982         New option --split-merged-entry.
62983         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
62984         (find_paragraph_end, try_split_merged_entry): New functions.
62985         (long_options): Add option --split-merged-entry.
62986         (usage): Document option --split-merged-entry.
62987         (main): Implement option --split-merged-entry.
62988         Reported by Eric Blake.
62989
62990 2008-02-17  Bruno Haible  <bruno@clisp.org>
62991
62992         * lib/git-merge-changelog.c: Include c-strstr.h.
62993         (main): Support the "git pull --rebase" situation.
62994         * modules/git-merge-changelog (Depends-on): Add c-strstr.
62995         Reported by Eric Blake.
62996
62997 2008-02-16  Eric Blake  <ebb9@byu.net>
62998
62999         Avoid doubling \ in common case of "c-maybe" quoting style.
63000         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
63001         eliding outer quotes.
63002         * lib/quotearg.h: Document this.
63003         * tests/test-quotearg.c (result_strings, inputs, results_g)
63004         (flag_results, locale_results): Test it by adding a new string to
63005         each test group.
63006         (compare_strings): Test new string.
63007
63008 2008-02-13  Eric Blake  <ebb9@byu.net>
63009
63010         Avoid trigraph quoting in default output.
63011         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
63012         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
63013         unless explicitly requested.
63014         * tests/test-quotearg.c (flag_results, main): Add additional tests.
63015
63016 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
63017
63018         Don't rely on signed integer overflowing to negative value.
63019         * lib/getugroups.c (getugroups): Include <limits.h>.
63020         Instead, compare against INT_MAX, and increment only if the test passes.
63021
63022 2008-02-13  Jim Meyering  <meyering@redhat.com>
63023         and Eric Blake  <ebb9@byu.net>
63024
63025         Avoid shadowing warning and compile errors on Linux.
63026         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
63027         forwarding macros on Linux.
63028         (dcgettext): Define a stub, for Linux.
63029         (results_g, main): Avoid warnings.
63030
63031 2008-02-12  Eric Blake  <ebb9@byu.net>
63032
63033         Silence warning in last patch.
63034         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
63035
63036         Quotearg part 4: add tests, fix c-maybe colon quoting.
63037         * lib/quotearg.h: Improve documentation.
63038         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
63039         escapes when adding outer quotes.  When quoting trigraphs, use
63040         valid C notation.  When quoting NUL, omit extra characters if next
63041         character is not digit.  Alter prototype.
63042         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
63043         callers.
63044         * modules/quotearg-tests: New module.
63045         * tests/test-quotearg.c: New test.
63046
63047 2008-02-07  Eric Blake  <ebb9@byu.net>
63048
63049         Quotearg part 3: add flag to control outer quote elision.
63050         * lib/quotearg.h (c_maybe_quoting_style): New style.
63051         (enum quoting_flags): Better documentation of flags.
63052         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
63053         c-maybe style.
63054         (quotearg_buffer_restyled): Handle new flag to elide outer
63055         quotes.
63056
63057         Quotearg part 2: add flag that can control NUL elision.
63058         * lib/quotearg.h (set_quoting_flags): New prototype.
63059         * lib/quotearg.c (struct quoting_options): Add flag field.
63060         (set_quoting_flags): New function.
63061         (quotearg_buffer_restyled): Add flags parameter.
63062         (quotearg_alloc_mem): Set the flag if length cannot be returned.
63063         (quotearg_n_options): Set the flag, since length cannot be
63064         returned.
63065         (quoting_options_from_style): Default flags correctly.
63066
63067         Quotearg part 1: more wrappers, restore quotearg_char state.
63068         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
63069         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
63070         (quotearg_colon_mem): New wrappers.
63071         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
63072         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
63073         functions.
63074         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
63075         (quotearg_colon_mem): New functions.
63076
63077 2008-02-11  Bruno Haible  <bruno@clisp.org>
63078
63079         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
63080         library in the current directory: it does not work with parallel make.
63081         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63082
63083 2008-02-11  Bruno Haible  <bruno@clisp.org>
63084
63085         * .gitattributes: New file.
63086
63087 2008-02-11  Jim Meyering  <meyering@redhat.com>
63088
63089         useless-if-before-free: Fix reversed exit values.
63090         * build-aux/useless-if-before-free: Use correct values
63091         for EXIT_MATCH and EXIT_NO_MATCH.
63092
63093         * build-aux/useless-if-before-free: Close stdout carefully.
63094
63095 2008-02-10  Bruno Haible  <bruno@clisp.org>
63096
63097         New module 'git-merge-changelog'.
63098         * modules/git-merge-changelog: New file.
63099         * lib/git-merge-changelog.c: New file.
63100
63101 2008-02-10  Jim Meyering  <meyering@redhat.com>
63102
63103         useless-if-before-free: New option: --list (-l).
63104
63105         useless-if-before-free: Don't exit immediately upon open failure.
63106         * build-aux/useless-if-before-free: Exit 2 for errors.
63107         Upon failure to open a file, don't exit immediately.
63108         Rather, just warn and continue with any remaining files.
63109
63110 2008-02-10  Bruno Haible  <bruno@clisp.org>
63111
63112         New abstract list operation 'node_set_value'.
63113         * lib/gl_list.h (gl_list_node_set_value): New function.
63114         (struct gl_list_implementation): New field node_set_value.
63115         * lib/gl_list.c (gl_list_node_set_value): New function.
63116         * lib/gl_array_list.c (gl_array_node_set_value): New function.
63117         (gl_array_list_implementation): Update.
63118         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
63119         (gl_carray_list_implementation): Update.
63120         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
63121         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
63122         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
63123         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
63124         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
63125         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
63126         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
63127         Update.
63128         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
63129         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
63130         (gl_sublist_list_implementation): Update.
63131
63132 2008-02-10  Bruno Haible  <bruno@clisp.org>
63133
63134         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
63135         Needed when ELEMENT is #defined to 'some_type *'.
63136
63137 2008-02-10  Jim Meyering  <meyering@redhat.com>
63138
63139         New script and module: useless-if-before-free
63140         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
63141         * build-aux/useless-if-before-free: New file.
63142         * modules/useless-if-before-free: New file.
63143
63144         * build-aux/gitlog-to-changelog: Use committer date, not author date.
63145
63146         xstrtol_error: Fix typo.
63147         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
63148         s/exit_failure/exit_status/.
63149
63150 2008-02-09  Jim Meyering  <meyering@redhat.com>
63151
63152         New script and module: gitlog-to-changelog
63153         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
63154         * modules/gitlog-to-changelog: New file.
63155         * build-aux/gitlog-to-changelog: New file.
63156
63157 2008-02-08  Jim Meyering  <meyering@redhat.com>
63158
63159         Avoid two "parameter unused" warnings.
63160         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
63161         Mark "st" as used.
63162
63163         Use "git COMMAND", not "git-COMMAND".
63164         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
63165         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
63166         * build-aux/git-version-gen: Use "git status", not "git-status".
63167
63168 2008-02-07  Bruno Haible  <bruno@clisp.org>
63169
63170         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
63171         Avoids a crash on Windows Vista.
63172         Reported by Adam Strzelecki <ono@java.pl> via
63173         Simon Josefsson <simon@josefsson.org>.
63174
63175 2008-02-06  Bruno Haible  <bruno@clisp.org>
63176
63177         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
63178         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
63179         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
63180         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
63181         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
63182         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
63183         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
63184         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
63185         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
63186         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63187         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63188         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63189         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
63190         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
63191         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63192         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
63193         left-adjust flag.
63194         * tests/test-snprintf-posix.h (test_function): Likewise.
63195         * tests/test-sprintf-posix.h (test_function): Likewise.
63196         * tests/test-vasprintf-posix.c (test_function): Likewise.
63197         * doc/posix-functions/fprintf.texi: Update.
63198         * doc/posix-functions/printf.texi: Update.
63199         * doc/posix-functions/snprintf.texi: Update.
63200         * doc/posix-functions/sprintf.texi: Update.
63201         * doc/posix-functions/vfprintf.texi: Update.
63202         * doc/posix-functions/vprintf.texi: Update.
63203         * doc/posix-functions/vsnprintf.texi: Update.
63204         * doc/posix-functions/vsprintf.texi: Update.
63205         Reported by Peter Fales <psfales@alcatel-lucent.com>.
63206
63207 2008-02-06  Bruno Haible  <bruno@clisp.org>
63208
63209         Fix bug introduced on 2008-01-26.
63210         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
63211
63212 2008-02-06  Bruno Haible  <bruno@clisp.org>
63213
63214         Fix bug introduced on 2007-06-10.
63215         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
63216         !NEED_PRINTF_FLAG_ZERO.
63217
63218 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
63219
63220         getloadavg: use libperfstat on AIX5
63221         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
63222
63223 2008-02-03  Bruno Haible  <bruno@clisp.org>
63224
63225         * lib/diffseq.h: Add comments about required #includes.
63226         Reported by Michael Biggs <gnulib@doubleplum.net>.
63227
63228 2008-02-01  Bruno Haible  <bruno@clisp.org>
63229
63230         * users.txt: Add gnuit.
63231
63232 2008-01-31  Bruno Haible  <bruno@clisp.org>
63233
63234         * lib/md4.c (set_uint32): Mark as inline.
63235         * lib/md5.c (set_uint32): Likewise.
63236         * lib/sha1.c (set_uint32): Likewise.
63237         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
63238         * m4/md5.m4 (gl_MD5): Likewise.
63239         * m4/sha1.m4 (gl_SHA1): Likewise.
63240
63241 2008-01-31  Jim Meyering  <meyering@redhat.com>
63242
63243         Use "sizeof VAR", rather than a literal "4".
63244         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
63245         * lib/md4.c (md4_read_ctx): Likewise.
63246         * lib/sha1.c (sha1_read_ctx): Likewise.
63247
63248 2008-01-31  Simon Josefsson  <simon@josefsson.org>
63249
63250         * tests/test-sha1.c: New file, based on test-md5.c.
63251
63252         * modules/crypto/sha1-tests: New file.
63253
63254 2008-01-31  Simon Josefsson  <simon@josefsson.org>
63255
63256         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
63257
63258 2008-01-31  Jim Meyering  <meyering@redhat.com>
63259
63260         Prefer "sizeof v" over the equivalent "4".
63261         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
63262         * lib/md5.c (set_uint32): Likewise.
63263         * lib/sha1.c (set_uint32): Likewise.
63264
63265 2008-01-31  Simon Josefsson  <simon@josefsson.org>
63266
63267         * lib/sha1.c (set_uint32): Mark function as static.
63268
63269 2008-01-31  Simon Josefsson  <simon@josefsson.org>
63270
63271         md2: clarify comments to say that alignment is not required.
63272         * lib/md2.h: Remove warning about alignment in comment.
63273         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
63274         never been required.
63275
63276 2008-01-31  Simon Josefsson  <simon@josefsson.org>
63277
63278         md4: adapt alignment constraint fix from sha1.
63279         * lib/md4.c (set_uint32): New function, from sha1.c
63280         (md4_read_ctx): Use it.
63281         (md4_finish_ctx): Doc fix.
63282         * lib/md4.h: Doc fix.
63283
63284 2008-01-31  Simon Josefsson  <simon@josefsson.org>
63285
63286         md5: adapt alignment constraint fix from sha1.
63287         * lib/md5.c (set_uint32): New function, from sha1.c
63288         (md5_read_ctx): Use it.
63289         (md5_finish_ctx): Doc fix.
63290         * lib/md5.h: Doc fix.
63291
63292 2008-01-30  Peter Palfrader  <weasel@debian.org>
63293
63294         sha1: remove the result buffer alignment constraint
63295         * lib/sha1.c (set_uint32): New function.
63296         (sha1_read_ctx): Rewrite to remove the result buffer alignment
63297         constraint.
63298         (sha1_finish_ctx): Remove comment warning about alignment constraint.
63299         * lib/sha1.h: Likewise.
63300
63301 2008-01-30  Andreas Schwab  <schwab@suse.de>
63302             Bruno Haible  <bruno@clisp.org>
63303
63304         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
63305         correct definition of LDBL_MIN_EXP.
63306
63307 2008-01-30  Karl Berry  <karl@gnu.org>
63308
63309         * config/srclist-update: try to preserve x bit on updates.
63310         * config/srclistvars.sh: update for karl.
63311
63312 2008-01-29  Jim Meyering  <meyering@redhat.com>
63313
63314         vasnprintf.c: Avoid warning about unused label
63315         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
63316         "overflow" label definition and associated code with the
63317         same cpp condition that guards the sole use of that label.
63318
63319 2008-01-26  Bruno Haible  <bruno@clisp.org>
63320
63321         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
63322         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
63323         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
63324         * lib/isnanl-nolibm.h (isnanl): Likewise.
63325         Reported by Paul Eggert <eggert@cs.ucla.edu>.
63326
63327 2008-01-26  Bruno Haible  <bruno@clisp.org>
63328
63329         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
63330         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
63331
63332 2008-01-26  Bruno Haible  <bruno@clisp.org>
63333
63334         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
63335         GCC >= 4.0 built-in.
63336         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
63337
63338 2008-01-26  Bruno Haible  <bruno@clisp.org>
63339
63340         Rename isnan, applicable to 'double' only, to isnand.
63341         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
63342         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
63343         (configure.ac): Update.
63344         (Include): Replace "isnan.h" with "isnand.h".
63345         * m4/isnand.m4: Renamed from m4/isnan.m4.
63346         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
63347         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
63348         instead of isnan.c.
63349         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
63350         instead of HAVE_ISNAN_IN_LIBC.
63351         (isnand): Renamed from isnan.
63352         * lib/isnand.c: New file.
63353         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
63354         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
63355         (Makefile.am): Update.
63356         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
63357         Include isnand.h instead of isnan.h.
63358         (main): Test isnand instead of isnan.
63359         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
63360         isnan-nolibm.
63361         * modules/frexp (Depends-on): Likewise.
63362         * modules/frexp-tests (Depends-on): Likewise.
63363         * modules/frexp-nolibm (Depends-on): Likewise.
63364         * modules/frexp-nolibm-tests (Depends-on): Likewise.
63365         * modules/isfinite (Depends-on): Likewise.
63366         * modules/round-tests (Depends-on): Likewise.
63367         * modules/signbit (Depends-on): Likewise.
63368         * modules/signbit-tests (Depends-on): Likewise.
63369         * modules/snprintf-posix (Depends-on): Likewise.
63370         * modules/sprintf-posix (Depends-on): Likewise.
63371         * modules/trunc-tests (Depends-on): Likewise.
63372         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
63373         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
63374         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
63375         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
63376         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
63377         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
63378         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
63379         * modules/vasnprintf-posix (Depends-on): Likewise.
63380         * modules/vasprintf-posix (Depends-on): Likewise.
63381         * modules/vfprintf-posix (Depends-on): Likewise.
63382         * modules/vsnprintf-posix (Depends-on): Likewise.
63383         * modules/vsprintf-posix (Depends-on): Likewise.
63384         * lib/frexp.c: Include isnand.h instead of isnan.h.
63385         (ISNAN): Set to isnand instead of isnan.
63386         * lib/isfinite.c: Include isnand.h instead of isnan.h.
63387         (gl_isfinited): Use isnand instead of isnan.
63388         * lib/signbitd.c: Include isnand.h instead of isnan.h.
63389         (gl_signbitd): Use isnand instead of isnan.
63390         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
63391         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
63392         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
63393         (main): Use isnand instead of isnan.
63394         * tests/test-round1.c: Include isnand.h.
63395         (main): Use isnand instead of isnan.
63396         * tests/test-round2.c: Include isnand.h instead of isnan.h.
63397         (ISNAN): Set to isnand instead of isnan.
63398         * tests/test-trunc1.c: Include isnand.h.
63399         (main): Use isnand instead of isnan.
63400         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
63401         (equal): Use isnand instead of isnan.
63402         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
63403         isnand-nolibm.
63404         * NEWS: Mention the change.
63405
63406 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
63407             Bruno Haible  <bruno@clisp.org>
63408
63409         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
63410         the GCC builtins for signbits are present and set
63411         REPLACE_SIGNBIT_USING_GCC if so.
63412         * lib/math.in.h (signbit): Define using GCC builtins if
63413         REPLACE_SIGNBIT_USING_GCC is set.
63414         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
63415         REPLACE_SIGNBIT_USING_GCC.
63416         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
63417
63418 2008-01-25  Jim Meyering  <meyering@redhat.com>
63419
63420         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
63421         * lib/poll.c: Include <config.h>, not "config.h".
63422         * tests/test-getaddrinfo.c: Likewise.
63423
63424 2008-01-25  Simon Josefsson  <simon@josefsson.org>
63425
63426         * modules/sockets-tests: New file.
63427
63428 2008-01-24  Simon Josefsson  <simon@josefsson.org>
63429
63430         * modules/sockets: New module, can be used to call WSA_Startup and
63431         WSA_Cleanup when needed.
63432
63433         * lib/sockets.h, lib/sockets.c: New files.
63434
63435         * m4/sockets.m4: New file.
63436
63437         * tests/test-sockets.c: New file.
63438
63439 2008-01-19  Bruno Haible  <bruno@clisp.org>
63440
63441         * doc/posix-headers: Renamed from doc/headers.
63442         * doc/posix-functions: Renamed from doc/functions.
63443         * doc/gnulib.texi: Update.
63444
63445 2008-01-19  Bruno Haible  <bruno@clisp.org>
63446
63447         * doc/glibc-functions/strcasestr.texi: Include contents of
63448         doc/functions/strcasestr.texi, fixing the list of platforms.
63449         * doc/functions/strcasestr.texi: Remove file.
63450
63451 2008-01-19  Bruno Haible  <bruno@clisp.org>
63452
63453         * doc/glibc-functions/memmem.texi: Include contents of
63454         doc/functions/memmem.texi.
63455         * doc/functions/memmem.texi: Remove file.
63456
63457 2008-01-18  Bruno Haible  <bruno@clisp.org>
63458
63459         * doc/glibc-functions/*.texi: New files.
63460         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
63461         to use the new files.
63462
63463 2008-01-17  Bruno Haible  <bruno@clisp.org>
63464
63465         * tests/test-gethostname.c (main): Fix printf statement.
63466
63467 2008-01-17  Simon Josefsson  <simon@josefsson.org>
63468
63469         * modules/gethostname-tests: New file.
63470
63471         * tests/test-gethostname.c: New file.
63472
63473 2008-01-17  Simon Josefsson  <simon@josefsson.org>
63474
63475         * lib/gethostname.c: Include string.h unconditionally, strncpy is
63476         used by the UNAME case.  Reported by Bruno Haible
63477         <bruno@clisp.org>.
63478
63479 2008-01-17  Eric Blake  <ebb9@byu.net>
63480
63481         Convert c-strcasestr to be more efficient.
63482         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
63483         (Depends-on): Add c-strcase, remove malloca, strnlen.
63484         * tests/test-c-strcasestr.c (main): Enhance test.
63485         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
63486
63487 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
63488
63489         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
63490         Use it in creating po/Makevars.
63491
63492 2008-01-15  Simon Josefsson  <simon@josefsson.org>
63493
63494         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
63495         Applications that requires it should initialize libgcrypt
63496         manually.
63497
63498 2008-01-16  Simon Josefsson  <simon@josefsson.org>
63499
63500         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
63501
63502 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
63503
63504         Fix problem with getdate on mingw32 reported by Simon Josefsson
63505         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
63506         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
63507         tzname", when deciding whether to declare tzname.
63508         * lib/strftime.c (tzname): Likewise.
63509
63510 2008-01-15  Bruno Haible  <bruno@clisp.org>
63511
63512         Work around a MacOS X 10.5 bug in frexpl().
63513         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
63514         * doc/functions/frexpl.texi: Document the bug.
63515         Reported by Elias Pipping <pipping@gentoo.org>.
63516
63517 2008-01-14  Eric Blake  <ebb9@byu.net>
63518
63519         Touch up previous patch.
63520         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
63521         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
63522
63523         Convert strcasestr module to use Two-Way algorithm.
63524         * modules/strcasestr-simple: New module, based on the old
63525         strcasestr, but with Two-Way rather than KMP.
63526         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
63527         * lib/string.in.h (rpl_strcasestr): Declare.
63528         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
63529         performance.
63530         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
63531         * modules/string (Makefile.am): Support strcasestr.
63532         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
63533         * modules/strcasestr-tests (Depends-on): Check for alarm.
63534         * tests/test-strcasestr.c: Augment test.
63535         * lib/str-two-way.h: Clean up stray macro.
63536         * NEWS: Document new module.
63537         * MODULES.html.sh (string handling): Likewise.
63538         * doc/functions/strcasestr.texi: New file.
63539         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
63540         here, since it is not a POSIX function.
63541
63542 2008-01-14  Colin Watson  <cjwatson@debian.org>
63543             Bruno Haible  <bruno@clisp.org>
63544
63545         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
63546         works fine; if not, set REPLACE_STRSIGNAL.
63547         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
63548         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
63549         REPLACE_STRSIGNAL.
63550         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
63551         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
63552         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
63553
63554 2008-01-14  Bruno Haible  <bruno@clisp.org>
63555
63556         * modules/strsignal (Include): Change to <string.h>.
63557
63558 2008-01-14  Colin Watson  <cjwatson@debian.org>
63559
63560         * modules/argp (Notice): Add a notice recommending to change
63561         XGETTEXT_OPTIONS.
63562         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
63563
63564 2008-01-13  Colin Watson  <cjwatson@debian.org>
63565
63566         * modules/strsignal-tests: New file.
63567         * tests/test-strsignal.c: New file.
63568
63569         * lib/strsignal.c: New file, from glibc with modifications.
63570         * lib/siglist.h: New file, from glibc with modifications.
63571         * lib/string.in.h (strsignal): New declaration.
63572         * m4/strsignal.m4: New file.
63573         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
63574         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
63575         * modules/strsignal: New file.
63576         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
63577         HAVE_DECL_STRSIGNAL.
63578
63579 2008-01-13  Bruno Haible  <bruno@clisp.org>
63580
63581         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
63582         locale encoding is not ASCII. Needed for OpenBSD 4.0.
63583         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
63584         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
63585
63586 2008-01-13  Bruno Haible  <bruno@clisp.org>
63587
63588         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
63589         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
63590         * lib/argp.h (__attribute__): Likewise.
63591         * lib/c-stack.c (__attribute__): Likewise.
63592         * lib/error.h (__attribute__): Likewise.
63593         * lib/fts.c (__attribute__): Likewise.
63594         * lib/openat.h (__attribute__): Likewise.
63595         * lib/stdio.in.h (__attribute__): Likewise.
63596         * lib/string.in.h (__attribute__): Likewise.
63597         * lib/utimens.c (__attribute__): Likewise.
63598         * lib/vasnprintf.h (__attribute__): Likewise.
63599         * lib/xalloc.h (__attribute__): Likewise.
63600         * lib/xprintf.h (__attribute__): Likewise.
63601         * lib/xstrtol.h (__attribute__): Likewise.
63602         * lib/xvasprintf.h (__attribute__): Likewise.
63603
63604 2008-01-12  Bruno Haible  <bruno@clisp.org>
63605
63606         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
63607         * doc/glibc-headers/a.out.texi: New file.
63608         * doc/glibc-headers/aliases.texi: New file.
63609         * doc/glibc-headers/alloca.texi: New file.
63610         * doc/glibc-headers/ar.texi: New file.
63611         * doc/glibc-headers/argp.texi: New file.
63612         * doc/glibc-headers/argz.texi: New file.
63613         * doc/glibc-headers/byteswap.texi: New file.
63614         * doc/glibc-headers/crypt.texi: New file.
63615         * doc/glibc-headers/endian.texi: New file.
63616         * doc/glibc-headers/envz.texi: New file.
63617         * doc/glibc-headers/err.texi: New file.
63618         * doc/glibc-headers/error.texi: New file.
63619         * doc/glibc-headers/execinfo.texi: New file.
63620         * doc/glibc-headers/fpu_control.texi: New file.
63621         * doc/glibc-headers/fstab.texi: New file.
63622         * doc/glibc-headers/fts.texi: New file.
63623         * doc/glibc-headers/getopt.texi: New file.
63624         * doc/glibc-headers/ieee754.texi: New file.
63625         * doc/glibc-headers/ifaddrs.texi: New file.
63626         * doc/glibc-headers/libintl.texi: New file.
63627         * doc/glibc-headers/mcheck.texi: New file.
63628         * doc/glibc-headers/mntent.texi: New file.
63629         * doc/glibc-headers/obstack.texi: New file.
63630         * doc/glibc-headers/paths.texi: New file.
63631         * doc/glibc-headers/printf.texi: New file.
63632         * doc/glibc-headers/pty.texi: New file.
63633         * doc/glibc-headers/resolv.texi: New file.
63634         * doc/glibc-headers/shadow.texi: New file.
63635         * doc/glibc-headers/sysexits.texi: New file.
63636         * doc/glibc-headers/ttyent.texi: New file.
63637
63638 2008-01-12  Jim Meyering  <meyering@redhat.com>
63639
63640         announce-gen: emit Gnulib's git-based version string.
63641         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
63642         New option --gnulib-version=V, where V is expected to be
63643         the output of running git describe in the gnulib directory.
63644         (get_tool_versions): Request feedback on xdelta.  I suspect it's
63645         not useful, and plan to stop publishing an xdelta file with each
63646         coreutils release.
63647
63648         * build-aux/announce-gen: Also check for lzma-compressed files.
63649
63650 2008-01-11  Bruno Haible  <bruno@clisp.org>
63651
63652         * tests/test-memmem.c (main): Increase maximum allowed time.
63653         * tests/test-strstr.c (main): Likewise.
63654
63655 2008-01-11  Bruno Haible  <bruno@clisp.org>
63656
63657         * doc/functions/memmem.texi: Add more precisions about platforms.
63658         * doc/functions/strstr.texi: Likewise.
63659
63660 2008-01-10  Eric Blake  <ebb9@byu.net>
63661
63662         * m4/strstr.m4: Delete cruft from copy-n-paste.
63663         Reported by Bruno Haible.
63664
63665 2008-01-10  Bruno Haible  <bruno@clisp.org>
63666
63667         Make c-strstr rely on strstr.
63668         * lib/c-strstr.c: Don't include str-kmp.h.
63669         (c_strstr): Define in terms of strstr.
63670         * modules/c-strstr (Files): Remove lib/str-kmp.h.
63671         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
63672
63673 2008-01-10  Bruno Haible  <bruno@clisp.org>
63674
63675         * doc/gnulib.texi (String Functions in C Locale): New section.
63676         * doc/c-ctype.texi: New file.
63677         * doc/c-strcase.texi: New file.
63678         * doc/c-strcaseeq.texi: New file.
63679         * doc/c-strcasestr.texi: New file.
63680         * doc/c-strstr.texi: New file.
63681         * doc/c-strtod.texi: New file.
63682         * doc/c-strtold.texi: New file.
63683
63684 2008-01-10  Eric Blake  <ebb9@byu.net>
63685
63686         * lib/relocatable.h: Fix a comment.
63687
63688 2008-01-10  Eric Blake  <ebb9@byu.net>
63689
63690         Share two-way algorithm.
63691         * lib/str-two-way.h: New file, merged from...
63692         * lib/memmem.c: ...here...
63693         * lib/strstr.c: ...and here.
63694         * modules/memmem (Files): Use it.
63695         * modules/strstr (Files): Likewise.
63696
63697         Avoid quadratic strstr implementations.
63698         * lib/strstr.c: New file.
63699         * m4/strstr.m4: Likewise.
63700         * modules/strstr: Likewise.
63701         * modules/strstr-tests: Likewise.
63702         * tests/test-strstr.c: Likewise.
63703         * lib/string.in.h (rpl_strstr): Declare.
63704         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
63705         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
63706         * modules/string (Makefile.am): Likewise.
63707         * MODULES.html.sh (string handling): Mention new module.
63708         * doc/functions/strstr.texi (strstr): Document the bug.
63709
63710 2008-01-10  Bruno Haible  <bruno@clisp.org>
63711
63712         * lib/relocatable.h (relocate): State whether result is freshly
63713         allocated or not.
63714         * lib/relocatable.c (relocate): Return a freshly allocated string
63715         instead of a pointer to a privately held string.
63716         Reported by Sylvain Beucler <beuc@gnu.org>.
63717
63718 2008-01-10  Colin Watson  <cjwatson@debian.org>
63719
63720         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
63721         s/S_ISNLK/S_ISLNK/.
63722
63723 2008-01-09  Bruno Haible  <bruno@clisp.org>
63724
63725         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
63726         and other files.
63727         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
63728         if it's only a guess.
63729         * modules/memmem: Simplify by depending on memmem-simple.
63730
63731 2008-01-09  Bruno Haible  <bruno@clisp.org>
63732
63733         Work around OpenBSD 4.0 tdelete() bug.
63734         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
63735         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
63736         macros and don't redefine the enum values.
63737         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
63738         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
63739         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
63740
63741 2008-01-09  Bruno Haible  <bruno@clisp.org>
63742
63743         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
63744         (main): Don't perform the tests if setlocale did not install a UTF-8
63745         locale. Needed on OpenBSD 4.0.
63746         * modules/wcwidth-tests (Depends-on): Add localcharset.
63747
63748 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
63749
63750         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
63751         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
63752         * NEWS: announce this.
63753         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
63754
63755 2008-01-09  Simon Josefsson  <simon@josefsson.org>
63756         and Eric Blake  <ebb9@byu.net>
63757
63758         Add memmem-simple module.
63759         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
63760         (gl_FUNC_MEMMEM): Separate performance from presence checks.
63761         * modules/memmem-simple: New file.
63762         * modules/memmem (Description): Tweak.
63763         * MODULES.html.sh (string handling): Mention new module.
63764         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
63765         addressed by memmem-simple.
63766         * NEWS: Document the difference.
63767
63768 2008-01-09  Eric Blake  <ebb9@byu.net>
63769
63770         Give gcc some memmem optimization hints.
63771         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
63772         (strcasestr): Declare as pure.
63773         * modules/memmem (Maintainer): Claim my implementation.
63774
63775 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63776
63777         Support AIX 6.1 and higher.
63778         * build-aux/config.libpath: Likewise.
63779         * build-aux/config.rpath: Likewise.
63780
63781 2008-01-08  Jim Meyering  <meyering@redhat.com>
63782             Bruno Haible  <bruno@clisp.org>
63783
63784         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
63785         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
63786         Reported by Peter Fales in
63787         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
63788
63789 2008-01-08  Bruno Haible  <bruno@clisp.org>
63790
63791         * modules/unictype/category-of (Depends-on): Add
63792         unictype/category-none.
63793         * modules/unictype/category-and-tests (Depends-on): Add
63794         unictype/category-{L,N,Lu,Nd}.
63795         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
63796         * modules/unictype/category-or-tests (Depends-on): Add
63797         unictype/category-{L,N}.
63798         * modules/unictype/category-name-tests (Depends-on): Add
63799         unictype/category-{Z,Nl}.
63800         Reported by Simon Josefsson.
63801
63802 2008-01-08  Bruno Haible  <bruno@clisp.org>
63803
63804         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
63805         convention better.
63806         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
63807         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
63808         Reported by Peter Miller <millerp@canb.auug.org.au>.
63809
63810 2008-01-08  Eric Blake  <ebb9@byu.net>
63811
63812         Rewrite memmem to guarantee linear complexity without malloc.
63813         * lib/memmem.c (memmem): Use Two-Way rather than
63814         Knuth-Morris-Pratt, to allow O(1) space usage.
63815         (critical_factorization, two_way_short_needle)
63816         (two_way_long_needle): New functions.
63817         (knuth_morris_pratt): Delete.
63818         * modules/memmem (Depends-on): No longer need malloca or stdbool.
63819         Add stdint.
63820         * tests/test-memmem.c (main): Add tests for periodic needle and
63821         sublinear performance.
63822         * doc/functions/memmem.texi (memmem): Document other deficiencies
63823         in cygwin and older glibc.
63824
63825 2008-01-08  Bruno Haible  <bruno@clisp.org>
63826
63827         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
63828         augmentation.
63829
63830 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
63831
63832         Add a configure time option: --disable-acl.
63833         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
63834         AC_ARG_ENABLE(acl).
63835
63836 2008-01-06  Simon Josefsson  <simon@josefsson.org>
63837
63838         * tests/test-localename.c: Don't include obsolete "setenv.h".
63839
63840         * modules/localename-tests (Depends-on): Need unsetenv.
63841
63842 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63843
63844         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
63845
63846 2008-01-06  Colin Watson  <cjwatson@debian.org>
63847
63848         * users.txt: Add man-db.
63849
63850 2008-01-07  Bruno Haible  <bruno@clisp.org>
63851
63852         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
63853         previous section name.
63854
63855 2008-01-07  Bruno Haible  <bruno@clisp.org>
63856
63857         * lib/progname.c (set_program_name): Don't strip off a leading
63858         "lt-" prefix outside a .libs directory.
63859         Suggested by Paul Eggert.
63860
63861 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
63862             Bruno Haible  <bruno@clisp.org>
63863
63864         Improve memory cleanup in 'relocatable' module.
63865         * lib/relocatable.h (compute_curr_prefix): Change return type to
63866         'char *'.
63867         * lib/relocatable.c (compute_curr_prefix): Change return type to
63868         'char *'. Free curr_installdir after use.
63869         (relocate): Free curr_prefix_better after use.
63870         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
63871
63872 2008-01-01  Bruno Haible  <bruno@clisp.org>
63873
63874         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
63875         failure on older glibc systems.
63876         Reported by Peter Fales <psfales@alcatel-lucent.com>.
63877
63878 2008-01-05  Eric Blake  <ebb9@byu.net>
63879
63880         Avoid quadratic system memmem.
63881         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
63882         Reported by Ralf Wildenhues.
63883
63884         Fix memmem test for mingw.
63885         * modules/memmem-tests (configure.ac): Check for alarm.
63886         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
63887         it.
63888         * doc/functions/memmem.texi: New file.
63889         * doc/gnulib.texi (Function Substitutes): Add memmem.
63890         Reported by Bruno Haible.
63891
63892 2008-01-04  Bruno Haible  <bruno@clisp.org>
63893
63894         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
63895         Require gl_HEADER_STRINGS_H_DEFAULTS, not
63896         gl_HEADER_STRING_H_DEFAULTS.
63897
63898 2008-01-04  Eric Blake  <ebb9@byu.net>
63899
63900         Shorten duration of memmem test.
63901         * tests/test-memmem.c (main): Use alarm to declare failure if test
63902         is taking too long.
63903         Reported by Ralf Wildenhues.
63904
63905 2007-12-21  Simon Josefsson  <simon@josefsson.org>
63906
63907         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
63908         string, needed by strerror.
63909
63910 2008-01-03  Colin Watson  <cjwatson@debian.org>
63911             Bruno Haible  <bruno@clisp.org>
63912
63913         * doc/gnulib-tool.texi (Localization): New section.
63914
63915 2008-01-02  Bruno Haible  <bruno@clisp.org>
63916
63917         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
63918         variables to 'unsigned char *' type.
63919         Reported by Paul Eggert.
63920
63921 2008-01-02  Jim Meyering  <jim@meyering.net>
63922
63923         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
63924
63925 2007-12-31  Jim Meyering  <jim@meyering.net>
63926
63927         Avoid use of private FTS type name.
63928         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
63929
63930 2007-12-30  Karl Berry  <karl@gnu.org>
63931
63932         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
63933         work around defect in Texinfo and/or the standalone Info browser.
63934
63935 2007-12-30  Bruno Haible  <bruno@clisp.org>
63936
63937         Unify 5 copies of the KMP code.
63938         * lib/str-kmp.h: New file.
63939         * lib/c-strcasestr.c: Include str-kmp.h.
63940         (knuth_morris_pratt): Remove function.
63941         (c_strcasestr): Update.
63942         * lib/c-strstr.c: Include str-kmp.h.
63943         (knuth_morris_pratt): Remove function.
63944         (c_strcasestr): Update.
63945         * lib/mbscasestr.c: Include str-kmp.h.
63946         (knuth_morris_pratt_unibyte): Remove function.
63947         * lib/mbsstr.c: Include str-kmp.h.
63948         (knuth_morris_pratt_unibyte): Remove function.
63949         * lib/strcasestr.c: Include str-kmp.h.
63950         (knuth_morris_pratt): Remove function.
63951         (strcasestr): Update.
63952         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
63953         * modules/c-strstr (Files): Likewise.
63954         * modules/mbscasestr (Files): Likewise.
63955         * modules/mbsstr (Files): Likewise.
63956         * modules/strcasestr (Files): Likewise.
63957         Suggested by Paul Eggert.
63958
63959 2007-12-30  Bruno Haible  <bruno@clisp.org>
63960
63961         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
63962         defined.
63963
63964 2007-12-30  Bruno Haible  <bruno@clisp.org>
63965
63966         * lib/xmalloca.h: Include xalloc.h.
63967         (xnmalloca): New macro.
63968
63969 2007-12-30  Bruno Haible  <bruno@clisp.org>
63970
63971         * lib/malloca.h (nmalloca): New macro.
63972         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
63973         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
63974         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
63975         knuth_morris_pratt_multibyte): Likewise.
63976         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
63977         knuth_morris_pratt_multibyte): Likewise.
63978         * lib/memmem.c (knuth_morris_pratt): Likewise.
63979         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
63980
63981 2007-12-25  Bruno Haible  <bruno@clisp.org>
63982
63983         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
63984         * lib/glob.c: Don't include openat.h.
63985         (link_exists2_p): Add back the code that deals with the
63986         !GLOB_ALTDIRFUNC case.
63987         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
63988         let it do the filename concatenation.
63989         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
63990         * modules/glob (Depends-on): Remove openat.
63991
63992 2007-12-31  Bruno Haible  <bruno@clisp.org>
63993
63994         * modules/dirfd (License): Change to LGPLv2+.
63995         Approved by Jim Meyering.
63996
63997 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
63998
63999         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
64000         when multiplying M by sizeof (size_t).
64001
64002 2007-12-10  Martin Lambers  <marlam@marlam.de>
64003
64004         Override getpagesize on mingw.
64005         * lib/getpagesize.c: New file.
64006         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
64007         * modules/getpagesize (Files): Add lib/getpagesize.c.
64008         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
64009         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
64010         REPLACE_GETPAGESIZE.
64011         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
64012
64013 2007-12-25  Bruno Haible  <bruno@clisp.org>
64014
64015         * modules/localcharset (Notice): New field.
64016         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
64017         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
64018
64019 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
64020             Bruno Haible  <bruno@clisp.org>
64021
64022         Avoid using the syntax symbol() in formatted documentation.
64023         * MODULES.html.sh (func_module): When replacing symbol() with a
64024         hyperlink, remove the parentheses. Show an error if some remain.
64025         Recognize and render the '...' syntax.
64026         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
64027         Rework. Add paragraph about GCC's inlining.
64028         * doc/alloca.texi: Likewise.
64029         * doc/error.texi: Remove parentheses from symbol reference.
64030         * doc/gnulib-intro.texi: Likewise.
64031         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
64032         * modules/fnmatch (Description): Reword to say "the ... function".
64033         * modules/full-read (Description): Likewise.
64034         * modules/full-write (Description): Likewise.
64035         * modules/safe-read (Description): Likewise.
64036         * modules/safe-write (Description): Likewise.
64037         * modules/strchrnul (Description): Likewise.
64038         * modules/trim (Description): Likewise.
64039         * modules/error (Description): Remove parentheses from symbol
64040         references.
64041         * modules/verror (Description): Likewise.
64042         Reported by Karl Berry.
64043
64044 2007-12-25  Bruno Haible  <bruno@clisp.org>
64045
64046         Fixup after 2007-10-16 commit.
64047         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
64048
64049 2007-12-24  Bruno Haible  <bruno@clisp.org>
64050
64051         Make --enable-relocatable work with DESTDIR.
64052         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
64053         to compute installdir from destprog.
64054         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
64055         also set the RELOC_DESTDIR variable.
64056         Reported by Левашев Иван <octagram@bluebottle.com>.
64057
64058 2007-12-24  Bruno Haible  <bruno@clisp.org>
64059
64060         Fix link error due to xalloc_die().
64061         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
64062         of xreadlink.
64063         * lib/relocwrapper.c: Update comments.
64064         * build-aux/install-reloc: Remove xreadlink.c from file list.
64065         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
64066         xreadlink.c.
64067         Reported by Левашев Иван <octagram@bluebottle.com>.
64068
64069 2007-12-24  Bruno Haible  <bruno@clisp.org>
64070
64071         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
64072         * lib/setenv.h: Remove file.
64073         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
64074         lib/setenv.h.
64075         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
64076         (Depends-on): Add stdlib.
64077         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
64078         gl_FUNC_UNSETENV.
64079         (Include): Replace setenv.h with <stdlib.h>.
64080         * modules/unsetenv: New file.
64081         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
64082         * lib/unsetenv.c: Include <stdlib.h> first.
64083         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
64084         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
64085         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
64086         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
64087         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
64088         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
64089         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
64090         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
64091         * doc/functions/unsetenv.texi: Update.
64092         * modules/xsetenv (Depends-on): Add unsetenv.
64093         * modules/getdate (Depends-on): Likewise.
64094         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
64095         * lib/xsetenv.c: Don't include setenv.h.
64096         * lib/getdate.y: Likewise.
64097         * lib/relocwrapper.c: Likewise.
64098         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
64099         (Depends-on): Add stdlib.
64100         * NEWS: Mention the changes.
64101         Reported by Левашев Иван <octagram@bluebottle.com>.
64102
64103 2007-12-23  Bruno Haible  <bruno@clisp.org>
64104
64105         * lib/memmem.c (memmem): Use lowercase variable names. Tab
64106         indentation.
64107
64108 2007-12-23  Bruno Haible  <bruno@clisp.org>
64109
64110         * lib/c-strcasestr.c: Add more comments.
64111         * lib/c-strstr.c: Likewise.
64112         * lib/mbscasestr.c: Likewise.
64113         * lib/mbsstr.c: Likewise.
64114         * lib/strcasestr.c: Likewise.
64115         * lib/memmem.c: Likewise.
64116
64117 2007-12-23  Bruno Haible  <bruno@clisp.org>
64118
64119         * tests/test-memmem.c: Include <string.h> first.
64120
64121 2007-12-22  Bruno Haible  <bruno@clisp.org>
64122
64123         * gnulib-tool (func_create_testdir): Change $auxdir while generating
64124         the contents of $testsbase.
64125         Reported by Ralf Wildenhues.
64126
64127 2007-12-22  Bruno Haible  <bruno@clisp.org>
64128
64129         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
64130         two variables local_ldadd_before, local_ldadd_last.
64131
64132 2007-12-20  Eric Blake  <ebb9@byu.net>
64133
64134         Work around circular library issue when cross-compiling.
64135         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
64136         that progname.o does not need to pull in rpl_memcmp.
64137
64138 2007-12-19  Eric Blake  <ebb9@byu.net>
64139
64140         Fix memmem to avoid O(n^2) worst-case complexity.
64141         * lib/memmem.c (knuth_morris_pratt): New function.
64142         (memmem): Use it if first few naive iterations fail.
64143         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
64144         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
64145         * modules/memchr (License): Likewise.
64146         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
64147         malloca.
64148         * tests/test-memmem.c: Rewrite, borrowing ideas from
64149         test-mbsstr1.c; the old version wouldn't even compile!
64150         * modules/memmem-tests: New file.
64151         * lib/string.in.h (rpl_memmem): Add declaration.
64152         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
64153         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
64154         REPLACE_MEMMEM.
64155
64156 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
64157
64158         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
64159         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
64160         before any system include files, and undef after them all.  This
64161         should fix a problem on VMS reported by John E. Malmberg in
64162         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
64163
64164 2007-12-17  Eric Blake  <ebb9@byu.net>
64165
64166         Revert addition of verify, for BSD/OS.
64167         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
64168         can't handle large files, for the sake of obsolete platforms.
64169         * modules/fseeko (Depends-on): Remove verify.
64170         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
64171         * doc/functions/ftello.texi (ftello): Likewise.
64172         * doc/functions/fgetpos.texi (fgetpos): Likewise.
64173         Reported by Larry Jones.
64174
64175 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
64176
64177         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
64178         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
64179
64180 2007-12-17  Jim Meyering  <meyering@redhat.com>
64181
64182         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
64183         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
64184         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
64185         * modules/getcwd (Depends-on): Add openat.
64186         Reported by Petr Salinger.
64187
64188 2007-12-17  Bruno Haible  <bruno@clisp.org>
64189
64190         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
64191         avoid a segmentation fault of the configure test on x86_64 systems.
64192
64193 2007-12-15  Jim Meyering  <meyering@redhat.com>
64194
64195         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
64196
64197 2007-12-13  Eric Blake  <ebb9@byu.net>
64198
64199         Another fseek test.
64200         * tests/test-fseek.c (main): Also test ungetc handling.
64201         * tests/test-fseeko.c (main): Likewise.
64202         * modules/fseeko (Depends-on): Add verify.
64203         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
64204         large.
64205         Reported by Larry Jones.
64206
64207         Fix fseeko on mingw.
64208         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
64209         seek.
64210
64211         Beef up fseek tests.
64212         * tests/test-fseek.c (main): Also test eof handling.
64213         * tests/test-fseeko.c (main): Likewise.
64214         Reported by Larry Jones.
64215
64216 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
64217
64218         Fix fseeko on BSD-based platforms.
64219         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
64220         successful seek.
64221
64222 2007-12-12  Eric Blake  <ebb9@byu.net>
64223
64224         Allow circular dependency of separate libtests.a
64225         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
64226         when use_libtests.
64227
64228 2007-12-11  Eric Blake  <ebb9@byu.net>
64229
64230         Fix bug with -0.0L in previous patch.
64231         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
64232         * tests/test-isnan.c (main): Also test on zeroes.
64233         * tests/test-isnanf.c (main): Likewise.
64234         * tests/test-isnanl.h (main): Likewise.
64235
64236         Detect pseudo-denormals on x86 even when cross-compiling.
64237         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
64238         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
64239         invalid bit patterns that happen to satisfy ==.
64240
64241         Avoid link failures with separate libtests.a.
64242         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
64243         last, to satisfy circular dependencies.
64244
64245 2007-12-11  Eric Blake  <ebb9@byu.net>
64246         and Bruno Haible  <bruno@clisp.org>
64247
64248         Fix OpenBSD 4.0 <float.h> handling of long double.
64249         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
64250         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
64251         * doc/headers/float.texi (float.h): Document OpenBSD bug.
64252
64253 2007-12-11  Jim Meyering  <meyering@redhat.com>
64254
64255         * users.txt: Add libvirt.
64256
64257         Support versions of autoconf prior to 2.59c.
64258         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
64259         if it is not already defined.
64260
64261 2007-12-09  Bruno Haible  <bruno@clisp.org>
64262
64263         Let 'gnulib-tool --import' collect sources needed for the tests in
64264         tests/ rather than in lib/.
64265         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
64266         argument. If true, add rules to generate libtests.a, and put libtests.a
64267         into $(LDADD). Consider source files in subdirectories and set
64268         uses_subdirs.
64269         (func_emit_initmacro_start, func_emit_initmacro_end,
64270         func_emit_initmacro_done): Pass all arguments explicitly.
64271         (func_import): Determine two module lists main_modules,
64272         testsrelated_modules. Determine use_libtests. Determine two variables
64273         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
64274         instead of just sed_transform_lib_file. Determine two variables
64275         main_files and testsrelated_files. Compute 'files' as the union of
64276         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
64277         func_add_or_update. In the generated gnulib-comp.m4, collect the
64278         object files for tests/ in different variables than those for lib/.
64279         Substitute LIBTESTS_LIBDEPS.
64280         (func_create_testdir): Combine the uses_subdirs results from
64281         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
64282
64283 2007-12-09  Bruno Haible  <bruno@clisp.org>
64284
64285         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
64286         the build-aux directory.
64287
64288 2007-12-09  Bruno Haible  <bruno@clisp.org>
64289
64290         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
64291         introduced on 2006-09-09.
64292
64293 2007-12-07  Jim Meyering  <meyering@redhat.com>
64294
64295         Let these macros work also with autoconf-2.59.
64296         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
64297         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
64298         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
64299
64300 2007-12-06  Jim Meyering  <meyering@redhat.com>
64301
64302         Avoid a configure-time syntax error in gl_FUNC_ACL.
64303         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
64304         function in each branch, before testing the cache variable.
64305
64306 2007-12-04  Eric Blake  <ebb9@byu.net>
64307
64308         Make scripts executable.
64309         * build-aux/config.guess: Add execute permissions.
64310         * build-aux/config.sub: Likewise.
64311         * build-aux/gendocs.sh: Likewise.
64312
64313         Fix frexp on mingw.
64314         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
64315         cross-compiling.
64316         * doc/functions/frexp.texi (frexp): Document the bug.
64317
64318         Make cygwin fseeko check more reliable.
64319         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
64320         version numbers, rather than unrelated feature check.
64321         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
64322         * doc/functions/ftello.texi (ftello): Likewise.
64323         Reported by Bruno Haible.
64324
64325         * m4/strerror.m4: Bump version number.
64326
64327 2007-12-03  Bruno Haible  <bruno@clisp.org>
64328
64329         * doc/functions/mprotect.texi: Mention the mingw problem.
64330
64331 2007-12-03  Eric Blake  <ebb9@byu.net>
64332
64333         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
64334         REPLACE_STRERROR is initialized before this macro.
64335
64336 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
64337
64338         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
64339         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
64340         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
64341         put -lsec in even for programs other than 'ls'.  This fixes a problem
64342         for gettext reported by Bruno Haible in
64343         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
64344         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
64345         Add support for Solaris 10.  This isn't efficient, but should get the
64346         job done for now.
64347
64348 2007-12-03  James Youngman  <jay@gnu.org>
64349
64350         * doc/regexprops-generic.texi: change "an close-group" to "a
64351         close-group" and "illegal" to "not allowed".
64352
64353 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64354
64355         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
64356         pr_byname.h. Needed for the rare case when the maintainer has done
64357         "make maintainer-clean" in the source directory and then attempts a
64358         build outside the source directory.
64359         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
64360         scripts_byname.h.
64361
64362 2007-12-02  Martin Lambers <marlam@marlam.de>
64363             Bruno Haible  <bruno@clisp.org>
64364
64365         * lib/getpagesize.h: Remove file.
64366         * lib/unistd.in.h: Include declaration of getpagesize here.
64367         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
64368         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
64369         HAVE_SYS_PARAM_H.
64370         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
64371         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
64372         * modules/getpagesize (Files): Remove lib/getpagesize.h.
64373         (Depends-on): Add unistd.
64374         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64375         (Include): Use <unistd.h> instead of getpagesize.h.
64376         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
64377         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
64378         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
64379         gl_GETPAGESIZE invocation, already handled by module dependency.
64380         * lib/pagealign_alloc.c: Don't include getpagesize.h.
64381
64382 2007-12-02  Bruno Haible  <bruno@clisp.org>
64383
64384         * modules/strings-tests: New file.
64385         * tests/test-strings.c: New file.
64386
64387         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
64388         * lib/strings.in.h: New file.
64389         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
64390         * m4/strings_h.m4: New file.
64391         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
64392         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
64393         * modules/strings: New file.
64394         * modules/string (Makefile.am): Update.
64395         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
64396         Reported by Karl Berry.
64397
64398 2007-12-01  Eric Blake  <ebb9@byu.net>
64399
64400         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
64401         accommodate fix in cygwin 1.5.25.
64402
64403 2007-12-01  Jim Meyering  <meyering@redhat.com>
64404
64405         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
64406         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
64407         that would inhibit utf8-optimization of a regexp containing line-
64408         or buffer-anchors, e.g., `^', `$'.
64409
64410 2007-11-30  Bruno Haible  <bruno@clisp.org>
64411
64412         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
64413         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
64414         glthread_recursive_lock_init.
64415         * lib/lock.c (glthread_recursive_lock_init)
64416         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
64417         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
64418
64419 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
64420
64421         New function qset_acl, like set_acl but with syscall semantics.
64422         * lib/acl.h (qset_acl): New decl.
64423         * lib/acl.c (qset_acl): New function.
64424         (set_acl): Use new function.  Use more-consistent diagnostics.
64425
64426 2007-11-28  Jim Meyering  <meyering@redhat.com>
64427
64428         * modules/physmem (License): Change from GPL to LGPLv2+.
64429
64430 2007-11-26  Bruno Haible  <bruno@clisp.org>
64431
64432         * lib/vasnprintf.c (decode_long_double): Don't abort if the
64433         'long double' type has excess precision.
64434         Reported by Jim Meyering in
64435         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
64436
64437 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64438
64439         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
64440         Sync from <http://gnu.org/licenses>.
64441         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
64442         with license text from same location.
64443         * doc/maintain.texi, doc/standards.texi:  Sync from
64444         <http://savannah.gnu.org/projects/gnustandards>.
64445
64446 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
64447         and Jim Meyering  <meyering@redhat.com>
64448
64449         Adjust getdate' grammar to accept a slightly more regular language.
64450         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
64451         Before, the former was rejected.
64452         * lib/getdate.y (digits_to_date_time): New function, factored
64453         out of ...
64454         (number): ...here.  Just call digits_to_date_time.
64455         (hybrid): New non-terminal to handle an <unsigned number,
64456         signed relative offset> sequence consistently.
64457
64458 2007-11-18  Jim Meyering  <meyering@redhat.com>
64459
64460         Pull my changes from coreutils:
64461         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
64462         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
64463         use of $gnulib_tool_option_extras, so that it's separated from the
64464         preceding argument.
64465
64466         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
64467         * build-aux/bootstrap (cp_mark_as_generated): Create any required
64468         parent destination directories before copying a file into place.
64469
64470 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
64471
64472         bootstrap: work also with 4-argument variant of AC_INIT
64473         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
64474
64475 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
64476
64477         Port test-getaddrinfo to Solaris.
64478         Problem reported by Bruno Haible in
64479         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
64480         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
64481         explanation of setting 'hints'.
64482         Don't reject an implementation merely because it returns EAI_SERVICE.
64483         (EAI_SERVICE): Define to 0 if not defined.
64484
64485 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
64486
64487         The license of gnu-make and posix-shell is now "GPLed build tool".
64488         * modules/gnu-make (License): Likewise.
64489         * modules/posix-shell (License): Likewise.
64490
64491         New module posix-shell, for determining a POSIX shell
64492         or perhaps something that is close enough to a POSIX shell.
64493         * m4/posix-shell.m4: New file.
64494         * modules/posix-shell: New file.
64495
64496         * MODULES.html.sh: Mention new module.
64497
64498         New module gnu-make, for determining whether we're using GNU Make.
64499         * m4/gnu-make.m4: New file.
64500         * modules/gnu-make: New file.
64501         * MODULES.html.sh: Mention new module.
64502
64503 2007-11-14  Jim Meyering  <meyering@redhat.com>
64504
64505         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
64506         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
64507         use this macro to create a function _definition_.
64508         Remove useless "#undef ARGMATCH_DIE".
64509
64510 2007-11-14  Bruno Haible  <bruno@clisp.org>
64511
64512         * lib/config.charset: Update for OpenBSD 4.1.
64513         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
64514
64515 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
64516
64517         Document 64-bit #if problems in stdint.texi.
64518         * doc/headers/stdint.texi (stdint.h): Mention problems with
64519         64-bit-#if, and how to work around them.
64520
64521         Don't insist on 'long long int' support in the preprocessor.  It
64522         breaks too many things.  For example, PRIdMAX still uses a 'long
64523         long int' format with the latest Sun compiler, even though
64524         HAVE_LONG_LONG_INT isn't defined due to that compiler's
64525         preprocessor problem.  This causes the latest coreutils to dump
64526         core on Solaris 10 sparc with the Sun C compiler.
64527         Instead, fix the 2007-10-16 problem in a different way, by evaluating
64528         the troublesome expressions at configure-time, not at #if-time.
64529         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
64530         preprocessor.
64531         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
64532         compile-time C checks, done at 'configure'-time.
64533         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
64534         * modules/inttypes (Makefile): Substitute the new symbols that
64535         gl_INTTYPES_H now generates.
64536         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
64537
64538 2007-11-12  Bruno Haible  <bruno@clisp.org>
64539
64540         Tests for Unicode character classification functions.
64541
64542         * modules/unictype/bidicategory-byname-tests: New file.
64543         * modules/unictype/bidicategory-name-tests: New file.
64544         * modules/unictype/bidicategory-of-tests: New file.
64545         * modules/unictype/bidicategory-test-tests: New file.
64546         * modules/unictype/block-list-tests: New file.
64547         * modules/unictype/block-of-tests: New file.
64548         * modules/unictype/block-test-tests: New file.
64549         * modules/unictype/category-C-tests: New file.
64550         * modules/unictype/category-Cc-tests: New file.
64551         * modules/unictype/category-Cf-tests: New file.
64552         * modules/unictype/category-Cn-tests: New file.
64553         * modules/unictype/category-Co-tests: New file.
64554         * modules/unictype/category-Cs-tests: New file.
64555         * modules/unictype/category-L-tests: New file.
64556         * modules/unictype/category-Ll-tests: New file.
64557         * modules/unictype/category-Lm-tests: New file.
64558         * modules/unictype/category-Lo-tests: New file.
64559         * modules/unictype/category-Lt-tests: New file.
64560         * modules/unictype/category-Lu-tests: New file.
64561         * modules/unictype/category-M-tests: New file.
64562         * modules/unictype/category-Mc-tests: New file.
64563         * modules/unictype/category-Me-tests: New file.
64564         * modules/unictype/category-Mn-tests: New file.
64565         * modules/unictype/category-N-tests: New file.
64566         * modules/unictype/category-Nd-tests: New file.
64567         * modules/unictype/category-Nl-tests: New file.
64568         * modules/unictype/category-No-tests: New file.
64569         * modules/unictype/category-P-tests: New file.
64570         * modules/unictype/category-Pc-tests: New file.
64571         * modules/unictype/category-Pd-tests: New file.
64572         * modules/unictype/category-Pe-tests: New file.
64573         * modules/unictype/category-Pf-tests: New file.
64574         * modules/unictype/category-Pi-tests: New file.
64575         * modules/unictype/category-Po-tests: New file.
64576         * modules/unictype/category-Ps-tests: New file.
64577         * modules/unictype/category-S-tests: New file.
64578         * modules/unictype/category-Sc-tests: New file.
64579         * modules/unictype/category-Sk-tests: New file.
64580         * modules/unictype/category-Sm-tests: New file.
64581         * modules/unictype/category-So-tests: New file.
64582         * modules/unictype/category-Z-tests: New file.
64583         * modules/unictype/category-Zl-tests: New file.
64584         * modules/unictype/category-Zp-tests: New file.
64585         * modules/unictype/category-Zs-tests: New file.
64586         * modules/unictype/category-and-not-tests: New file.
64587         * modules/unictype/category-and-tests: New file.
64588         * modules/unictype/category-byname-tests: New file.
64589         * modules/unictype/category-name-tests: New file.
64590         * modules/unictype/category-none-tests: New file.
64591         * modules/unictype/category-of-tests: New file.
64592         * modules/unictype/category-or-tests: New file.
64593         * modules/unictype/category-test-withtable-tests: New file.
64594         * modules/unictype/combining-class-tests: New file.
64595         * modules/unictype/ctype-alnum-tests: New file.
64596         * modules/unictype/ctype-alpha-tests: New file.
64597         * modules/unictype/ctype-blank-tests: New file.
64598         * modules/unictype/ctype-cntrl-tests: New file.
64599         * modules/unictype/ctype-digit-tests: New file.
64600         * modules/unictype/ctype-graph-tests: New file.
64601         * modules/unictype/ctype-lower-tests: New file.
64602         * modules/unictype/ctype-print-tests: New file.
64603         * modules/unictype/ctype-punct-tests: New file.
64604         * modules/unictype/ctype-space-tests: New file.
64605         * modules/unictype/ctype-upper-tests: New file.
64606         * modules/unictype/ctype-xdigit-tests: New file.
64607         * modules/unictype/decimal-digit-tests: New file.
64608         * modules/unictype/digit-tests: New file.
64609         * modules/unictype/mirror-tests: New file.
64610         * modules/unictype/numeric-tests: New file.
64611         * modules/unictype/property-alphabetic-tests: New file.
64612         * modules/unictype/property-ascii-hex-digit-tests: New file.
64613         * modules/unictype/property-bidi-arabic-digit-tests: New file.
64614         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
64615         * modules/unictype/property-bidi-block-separator-tests: New file.
64616         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
64617         * modules/unictype/property-bidi-common-separator-tests: New file.
64618         * modules/unictype/property-bidi-control-tests: New file.
64619         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
64620         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
64621         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
64622         * modules/unictype/property-bidi-european-digit-tests: New file.
64623         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
64624         * modules/unictype/property-bidi-left-to-right-tests: New file.
64625         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
64626         * modules/unictype/property-bidi-other-neutral-tests: New file.
64627         * modules/unictype/property-bidi-pdf-tests: New file.
64628         * modules/unictype/property-bidi-segment-separator-tests: New file.
64629         * modules/unictype/property-bidi-whitespace-tests: New file.
64630         * modules/unictype/property-byname-tests: New file.
64631         * modules/unictype/property-combining-tests: New file.
64632         * modules/unictype/property-composite-tests: New file.
64633         * modules/unictype/property-currency-symbol-tests: New file.
64634         * modules/unictype/property-dash-tests: New file.
64635         * modules/unictype/property-decimal-digit-tests: New file.
64636         * modules/unictype/property-default-ignorable-code-point-tests: New file.
64637         * modules/unictype/property-deprecated-tests: New file.
64638         * modules/unictype/property-diacritic-tests: New file.
64639         * modules/unictype/property-extender-tests: New file.
64640         * modules/unictype/property-format-control-tests: New file.
64641         * modules/unictype/property-grapheme-base-tests: New file.
64642         * modules/unictype/property-grapheme-extend-tests: New file.
64643         * modules/unictype/property-grapheme-link-tests: New file.
64644         * modules/unictype/property-hex-digit-tests: New file.
64645         * modules/unictype/property-hyphen-tests: New file.
64646         * modules/unictype/property-id-continue-tests: New file.
64647         * modules/unictype/property-id-start-tests: New file.
64648         * modules/unictype/property-ideographic-tests: New file.
64649         * modules/unictype/property-ids-binary-operator-tests: New file.
64650         * modules/unictype/property-ids-trinary-operator-tests: New file.
64651         * modules/unictype/property-ignorable-control-tests: New file.
64652         * modules/unictype/property-iso-control-tests: New file.
64653         * modules/unictype/property-join-control-tests: New file.
64654         * modules/unictype/property-left-of-pair-tests: New file.
64655         * modules/unictype/property-line-separator-tests: New file.
64656         * modules/unictype/property-logical-order-exception-tests: New file.
64657         * modules/unictype/property-lowercase-tests: New file.
64658         * modules/unictype/property-math-tests: New file.
64659         * modules/unictype/property-non-break-tests: New file.
64660         * modules/unictype/property-not-a-character-tests: New file.
64661         * modules/unictype/property-numeric-tests: New file.
64662         * modules/unictype/property-other-alphabetic-tests: New file.
64663         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
64664         * modules/unictype/property-other-grapheme-extend-tests: New file.
64665         * modules/unictype/property-other-id-continue-tests: New file.
64666         * modules/unictype/property-other-id-start-tests: New file.
64667         * modules/unictype/property-other-lowercase-tests: New file.
64668         * modules/unictype/property-other-math-tests: New file.
64669         * modules/unictype/property-other-uppercase-tests: New file.
64670         * modules/unictype/property-paired-punctuation-tests: New file.
64671         * modules/unictype/property-paragraph-separator-tests: New file.
64672         * modules/unictype/property-pattern-syntax-tests: New file.
64673         * modules/unictype/property-pattern-white-space-tests: New file.
64674         * modules/unictype/property-private-use-tests: New file.
64675         * modules/unictype/property-punctuation-tests: New file.
64676         * modules/unictype/property-quotation-mark-tests: New file.
64677         * modules/unictype/property-radical-tests: New file.
64678         * modules/unictype/property-sentence-terminal-tests: New file.
64679         * modules/unictype/property-soft-dotted-tests: New file.
64680         * modules/unictype/property-space-tests: New file.
64681         * modules/unictype/property-terminal-punctuation-tests: New file.
64682         * modules/unictype/property-test-tests: New file.
64683         * modules/unictype/property-titlecase-tests: New file.
64684         * modules/unictype/property-unassigned-code-value-tests: New file.
64685         * modules/unictype/property-unified-ideograph-tests: New file.
64686         * modules/unictype/property-uppercase-tests: New file.
64687         * modules/unictype/property-variation-selector-tests: New file.
64688         * modules/unictype/property-white-space-tests: New file.
64689         * modules/unictype/property-xid-continue-tests: New file.
64690         * modules/unictype/property-xid-start-tests: New file.
64691         * modules/unictype/property-zero-width-tests: New file.
64692         * modules/unictype/scripts-tests: New file.
64693         * modules/unictype/syntax-c-ident-tests: New file.
64694         * modules/unictype/syntax-c-whitespace-tests: New file.
64695         * modules/unictype/syntax-java-ident-tests: New file.
64696         * modules/unictype/syntax-java-whitespace-tests: New file.
64697         * tests/unictype/test-bidi_byname.c: New file.
64698         * tests/unictype/test-bidi_name.c: New file.
64699         * tests/unictype/test-bidi_of.c: New file.
64700         * tests/unictype/test-bidi_test.c: New file.
64701         * tests/unictype/test-block_list.c: New file.
64702         * tests/unictype/test-block_of.c: New file.
64703         * tests/unictype/test-block_test.c: New file.
64704         * tests/unictype/test-categ_and.c: New file.
64705         * tests/unictype/test-categ_and_not.c: New file.
64706         * tests/unictype/test-categ_byname.c: New file.
64707         * tests/unictype/test-categ_name.c: New file.
64708         * tests/unictype/test-categ_none.c: New file.
64709         * tests/unictype/test-categ_of.c: New file.
64710         * tests/unictype/test-categ_or.c: New file.
64711         * tests/unictype/test-categ_test_withtable.c: New file.
64712         * tests/unictype/test-combining.c: New file.
64713         * tests/unictype/test-decdigit.c: New file.
64714         * tests/unictype/test-digit.c: New file.
64715         * tests/unictype/test-mirror.c: New file.
64716         * tests/unictype/test-numeric.c: New file.
64717         * tests/unictype/test-pr_byname.c: New file.
64718         * tests/unictype/test-pr_test.c: New file.
64719         * tests/unictype/test-predicate-part1.h: New file.
64720         * tests/unictype/test-predicate-part2.h: New file.
64721         * tests/unictype/test-scripts.c: New file.
64722         * tests/unictype/test-sy_c_ident.c: New file.
64723         * tests/unictype/test-sy_java_ident.c: New file.
64724
64725         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
64726         for Unicode 5.0.0.
64727         * tests/unictype/test-categ_Cc.c: Likewise.
64728         * tests/unictype/test-categ_Cf.c: Likewise.
64729         * tests/unictype/test-categ_Cn.c: Likewise.
64730         * tests/unictype/test-categ_Co.c: Likewise.
64731         * tests/unictype/test-categ_Cs.c: Likewise.
64732         * tests/unictype/test-categ_L.c: Likewise.
64733         * tests/unictype/test-categ_Ll.c: Likewise.
64734         * tests/unictype/test-categ_Lm.c: Likewise.
64735         * tests/unictype/test-categ_Lo.c: Likewise.
64736         * tests/unictype/test-categ_Lt.c: Likewise.
64737         * tests/unictype/test-categ_Lu.c: Likewise.
64738         * tests/unictype/test-categ_M.c: Likewise.
64739         * tests/unictype/test-categ_Mc.c: Likewise.
64740         * tests/unictype/test-categ_Me.c: Likewise.
64741         * tests/unictype/test-categ_Mn.c: Likewise.
64742         * tests/unictype/test-categ_N.c: Likewise.
64743         * tests/unictype/test-categ_Nd.c: Likewise.
64744         * tests/unictype/test-categ_Nl.c: Likewise.
64745         * tests/unictype/test-categ_No.c: Likewise.
64746         * tests/unictype/test-categ_P.c: Likewise.
64747         * tests/unictype/test-categ_Pc.c: Likewise.
64748         * tests/unictype/test-categ_Pd.c: Likewise.
64749         * tests/unictype/test-categ_Pe.c: Likewise.
64750         * tests/unictype/test-categ_Pf.c: Likewise.
64751         * tests/unictype/test-categ_Pi.c: Likewise.
64752         * tests/unictype/test-categ_Po.c: Likewise.
64753         * tests/unictype/test-categ_Ps.c: Likewise.
64754         * tests/unictype/test-categ_S.c: Likewise.
64755         * tests/unictype/test-categ_Sc.c: Likewise.
64756         * tests/unictype/test-categ_Sk.c: Likewise.
64757         * tests/unictype/test-categ_Sm.c: Likewise.
64758         * tests/unictype/test-categ_So.c: Likewise.
64759         * tests/unictype/test-categ_Z.c: Likewise.
64760         * tests/unictype/test-categ_Zl.c: Likewise.
64761         * tests/unictype/test-categ_Zp.c: Likewise.
64762         * tests/unictype/test-categ_Zs.c: Likewise.
64763         * tests/unictype/test-ctype_alnum.c: Likewise.
64764         * tests/unictype/test-ctype_alpha.c: Likewise.
64765         * tests/unictype/test-ctype_blank.c: Likewise.
64766         * tests/unictype/test-ctype_cntrl.c: Likewise.
64767         * tests/unictype/test-ctype_digit.c: Likewise.
64768         * tests/unictype/test-ctype_graph.c: Likewise.
64769         * tests/unictype/test-ctype_lower.c: Likewise.
64770         * tests/unictype/test-ctype_print.c: Likewise.
64771         * tests/unictype/test-ctype_punct.c: Likewise.
64772         * tests/unictype/test-ctype_space.c: Likewise.
64773         * tests/unictype/test-ctype_upper.c: Likewise.
64774         * tests/unictype/test-ctype_xdigit.c: Likewise.
64775         * tests/unictype/test-decdigit.h: Likewise.
64776         * tests/unictype/test-digit.h: Likewise.
64777         * tests/unictype/test-numeric.h: Likewise.
64778         * tests/unictype/test-pr_alphabetic.c: Likewise.
64779         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
64780         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
64781         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
64782         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
64783         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
64784         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
64785         * tests/unictype/test-pr_bidi_control.c: Likewise.
64786         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
64787         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
64788         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
64789         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
64790         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
64791         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
64792         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
64793         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
64794         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
64795         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
64796         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
64797         * tests/unictype/test-pr_combining.c: Likewise.
64798         * tests/unictype/test-pr_composite.c: Likewise.
64799         * tests/unictype/test-pr_currency_symbol.c: Likewise.
64800         * tests/unictype/test-pr_dash.c: Likewise.
64801         * tests/unictype/test-pr_decimal_digit.c: Likewise.
64802         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
64803         * tests/unictype/test-pr_deprecated.c: Likewise.
64804         * tests/unictype/test-pr_diacritic.c: Likewise.
64805         * tests/unictype/test-pr_extender.c: Likewise.
64806         * tests/unictype/test-pr_format_control.c: Likewise.
64807         * tests/unictype/test-pr_grapheme_base.c: Likewise.
64808         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
64809         * tests/unictype/test-pr_grapheme_link.c: Likewise.
64810         * tests/unictype/test-pr_hex_digit.c: Likewise.
64811         * tests/unictype/test-pr_hyphen.c: Likewise.
64812         * tests/unictype/test-pr_id_continue.c: Likewise.
64813         * tests/unictype/test-pr_id_start.c: Likewise.
64814         * tests/unictype/test-pr_ideographic.c: Likewise.
64815         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
64816         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
64817         * tests/unictype/test-pr_ignorable_control.c: Likewise.
64818         * tests/unictype/test-pr_iso_control.c: Likewise.
64819         * tests/unictype/test-pr_join_control.c: Likewise.
64820         * tests/unictype/test-pr_left_of_pair.c: Likewise.
64821         * tests/unictype/test-pr_line_separator.c: Likewise.
64822         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
64823         * tests/unictype/test-pr_lowercase.c: Likewise.
64824         * tests/unictype/test-pr_math.c: Likewise.
64825         * tests/unictype/test-pr_non_break.c: Likewise.
64826         * tests/unictype/test-pr_not_a_character.c: Likewise.
64827         * tests/unictype/test-pr_numeric.c: Likewise.
64828         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
64829         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
64830         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
64831         * tests/unictype/test-pr_other_id_continue.c: Likewise.
64832         * tests/unictype/test-pr_other_id_start.c: Likewise.
64833         * tests/unictype/test-pr_other_lowercase.c: Likewise.
64834         * tests/unictype/test-pr_other_math.c: Likewise.
64835         * tests/unictype/test-pr_other_uppercase.c: Likewise.
64836         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
64837         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
64838         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
64839         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
64840         * tests/unictype/test-pr_private_use.c: Likewise.
64841         * tests/unictype/test-pr_punctuation.c: Likewise.
64842         * tests/unictype/test-pr_quotation_mark.c: Likewise.
64843         * tests/unictype/test-pr_radical.c: Likewise.
64844         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
64845         * tests/unictype/test-pr_soft_dotted.c: Likewise.
64846         * tests/unictype/test-pr_space.c: Likewise.
64847         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
64848         * tests/unictype/test-pr_titlecase.c: Likewise.
64849         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
64850         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
64851         * tests/unictype/test-pr_uppercase.c: Likewise.
64852         * tests/unictype/test-pr_variation_selector.c: Likewise.
64853         * tests/unictype/test-pr_white_space.c: Likewise.
64854         * tests/unictype/test-pr_xid_continue.c: Likewise.
64855         * tests/unictype/test-pr_xid_start.c: Likewise.
64856         * tests/unictype/test-pr_zero_width.c: Likewise.
64857         * tests/unictype/test-sy_c_whitespace.c: Likewise.
64858         * tests/unictype/test-sy_java_whitespace.c: Likewise.
64859
64860 2007-11-12  Bruno Haible  <bruno@clisp.org>
64861
64862         Unicode character classification functions.
64863         * lib/unictype.h: New file.
64864         * modules/unictype/base: New file.
64865         * modules/unictype/category-L: New file.
64866         * modules/unictype/category-Lu: New file.
64867         * modules/unictype/category-Ll: New file.
64868         * modules/unictype/category-Lt: New file.
64869         * modules/unictype/category-Lm: New file.
64870         * modules/unictype/category-Lo: New file.
64871         * modules/unictype/category-M: New file.
64872         * modules/unictype/category-Mn: New file.
64873         * modules/unictype/category-Mc: New file.
64874         * modules/unictype/category-Me: New file.
64875         * modules/unictype/category-N: New file.
64876         * modules/unictype/category-Nd: New file.
64877         * modules/unictype/category-Nl: New file.
64878         * modules/unictype/category-No: New file.
64879         * modules/unictype/category-P: New file.
64880         * modules/unictype/category-Pc: New file.
64881         * modules/unictype/category-Pd: New file.
64882         * modules/unictype/category-Ps: New file.
64883         * modules/unictype/category-Pe: New file.
64884         * modules/unictype/category-Pi: New file.
64885         * modules/unictype/category-Pf: New file.
64886         * modules/unictype/category-Po: New file.
64887         * modules/unictype/category-S: New file.
64888         * modules/unictype/category-Sm: New file.
64889         * modules/unictype/category-Sc: New file.
64890         * modules/unictype/category-Sk: New file.
64891         * modules/unictype/category-So: New file.
64892         * modules/unictype/category-Z: New file.
64893         * modules/unictype/category-Zs: New file.
64894         * modules/unictype/category-Zl: New file.
64895         * modules/unictype/category-Zp: New file.
64896         * modules/unictype/category-C: New file.
64897         * modules/unictype/category-Cc: New file.
64898         * modules/unictype/category-Cf: New file.
64899         * modules/unictype/category-Cs: New file.
64900         * modules/unictype/category-Co: New file.
64901         * modules/unictype/category-Cn: New file.
64902         * modules/unictype/category-or: New file.
64903         * modules/unictype/category-of: New file.
64904         * modules/unictype/category-test: New file.
64905         * modules/unictype/category-test-withtable: New file.
64906         * modules/unictype/category-byname: New file.
64907         * modules/unictype/category-none: New file.
64908         * modules/unictype/category-and: New file.
64909         * modules/unictype/category-and-not: New file.
64910         * modules/unictype/category-name: New file.
64911         * modules/unictype/combining-class: New file.
64912         * modules/unictype/category-all: New file.
64913         * modules/unictype/bidicategory-all: New file.
64914         * modules/unictype/bidicategory-byname: New file.
64915         * modules/unictype/bidicategory-name: New file.
64916         * modules/unictype/bidicategory-of: New file.
64917         * modules/unictype/bidicategory-test: New file.
64918         * modules/unictype/decimal-digit: New file.
64919         * modules/unictype/digit: New file.
64920         * modules/unictype/numeric: New file.
64921         * modules/unictype/mirror: New file.
64922         * modules/unictype/property-white-space: New file.
64923         * modules/unictype/property-alphabetic: New file.
64924         * modules/unictype/property-other-alphabetic: New file.
64925         * modules/unictype/property-not-a-character: New file.
64926         * modules/unictype/property-default-ignorable-code-point: New file.
64927         * modules/unictype/property-other-default-ignorable-code-point: New
64928         file.
64929         * modules/unictype/property-deprecated: New file.
64930         * modules/unictype/property-logical-order-exception: New file.
64931         * modules/unictype/property-variation-selector: New file.
64932         * modules/unictype/property-private-use: New file.
64933         * modules/unictype/property-unassigned-code-value: New file.
64934         * modules/unictype/property-uppercase: New file.
64935         * modules/unictype/property-other-uppercase: New file.
64936         * modules/unictype/property-lowercase: New file.
64937         * modules/unictype/property-other-lowercase: New file.
64938         * modules/unictype/property-titlecase: New file.
64939         * modules/unictype/property-soft-dotted: New file.
64940         * modules/unictype/property-id-start: New file.
64941         * modules/unictype/property-other-id-start: New file.
64942         * modules/unictype/property-id-continue: New file.
64943         * modules/unictype/property-other-id-continue: New file.
64944         * modules/unictype/property-xid-start: New file.
64945         * modules/unictype/property-xid-continue: New file.
64946         * modules/unictype/property-pattern-white-space: New file.
64947         * modules/unictype/property-pattern-syntax: New file.
64948         * modules/unictype/property-join-control: New file.
64949         * modules/unictype/property-grapheme-base: New file.
64950         * modules/unictype/property-grapheme-extend: New file.
64951         * modules/unictype/property-other-grapheme-extend: New file.
64952         * modules/unictype/property-grapheme-link: New file.
64953         * modules/unictype/property-bidi-control: New file.
64954         * modules/unictype/property-bidi-left-to-right: New file.
64955         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
64956         * modules/unictype/property-bidi-arabic-right-to-left: New file.
64957         * modules/unictype/property-bidi-european-digit: New file.
64958         * modules/unictype/property-bidi-eur-num-separator: New file.
64959         * modules/unictype/property-bidi-eur-num-terminator: New file.
64960         * modules/unictype/property-bidi-arabic-digit: New file.
64961         * modules/unictype/property-bidi-common-separator: New file.
64962         * modules/unictype/property-bidi-block-separator: New file.
64963         * modules/unictype/property-bidi-segment-separator: New file.
64964         * modules/unictype/property-bidi-whitespace: New file.
64965         * modules/unictype/property-bidi-non-spacing-mark: New file.
64966         * modules/unictype/property-bidi-boundary-neutral: New file.
64967         * modules/unictype/property-bidi-pdf: New file.
64968         * modules/unictype/property-bidi-embedding-or-override: New file.
64969         * modules/unictype/property-bidi-other-neutral: New file.
64970         * modules/unictype/property-hex-digit: New file.
64971         * modules/unictype/property-ascii-hex-digit: New file.
64972         * modules/unictype/property-ideographic: New file.
64973         * modules/unictype/property-unified-ideograph: New file.
64974         * modules/unictype/property-radical: New file.
64975         * modules/unictype/property-ids-binary-operator: New file.
64976         * modules/unictype/property-ids-trinary-operator: New file.
64977         * modules/unictype/property-zero-width: New file.
64978         * modules/unictype/property-space: New file.
64979         * modules/unictype/property-non-break: New file.
64980         * modules/unictype/property-iso-control: New file.
64981         * modules/unictype/property-format-control: New file.
64982         * modules/unictype/property-dash: New file.
64983         * modules/unictype/property-hyphen: New file.
64984         * modules/unictype/property-punctuation: New file.
64985         * modules/unictype/property-line-separator: New file.
64986         * modules/unictype/property-paragraph-separator: New file.
64987         * modules/unictype/property-quotation-mark: New file.
64988         * modules/unictype/property-sentence-terminal: New file.
64989         * modules/unictype/property-terminal-punctuation: New file.
64990         * modules/unictype/property-currency-symbol: New file.
64991         * modules/unictype/property-math: New file.
64992         * modules/unictype/property-other-math: New file.
64993         * modules/unictype/property-paired-punctuation: New file.
64994         * modules/unictype/property-left-of-pair: New file.
64995         * modules/unictype/property-combining: New file.
64996         * modules/unictype/property-composite: New file.
64997         * modules/unictype/property-decimal-digit: New file.
64998         * modules/unictype/property-numeric: New file.
64999         * modules/unictype/property-diacritic: New file.
65000         * modules/unictype/property-extender: New file.
65001         * modules/unictype/property-ignorable-control: New file.
65002         * modules/unictype/property-test: New file.
65003         * modules/unictype/property-byname: New file.
65004         * modules/unictype/property-all: New file.
65005         * modules/unictype/scripts: New file.
65006         * modules/unictype/scripts-all: New file.
65007         * modules/unictype/block-of: New file.
65008         * modules/unictype/block-test: New file.
65009         * modules/unictype/block-list: New file.
65010         * modules/unictype/block-all: New file.
65011         * modules/unictype/syntax-c-whitespace: New file.
65012         * modules/unictype/syntax-java-whitespace: New file.
65013         * modules/unictype/syntax-c-ident: New file.
65014         * modules/unictype/syntax-java-ident: New file.
65015         * modules/unictype/ctype-alnum: New file.
65016         * modules/unictype/ctype-alpha: New file.
65017         * modules/unictype/ctype-cntrl: New file.
65018         * modules/unictype/ctype-digit: New file.
65019         * modules/unictype/ctype-graph: New file.
65020         * modules/unictype/ctype-lower: New file.
65021         * modules/unictype/ctype-print: New file.
65022         * modules/unictype/ctype-punct: New file.
65023         * modules/unictype/ctype-space: New file.
65024         * modules/unictype/ctype-upper: New file.
65025         * modules/unictype/ctype-xdigit: New file.
65026         * modules/unictype/ctype-blank: New file.
65027         * lib/unictype/bidi_byname.c: New file.
65028         * lib/unictype/bidi_name.c: New file.
65029         * lib/unictype/bidi_of.c: New file.
65030         * lib/unictype/bidi_test.c: New file.
65031         * lib/unictype/bitmap.h: New file.
65032         * lib/unictype/block_test.c: New file.
65033         * lib/unictype/blocks.c: New file.
65034         * lib/unictype/categ_C.c: New file.
65035         * lib/unictype/categ_Cc.c: New file.
65036         * lib/unictype/categ_Cf.c: New file.
65037         * lib/unictype/categ_Cn.c: New file.
65038         * lib/unictype/categ_Co.c: New file.
65039         * lib/unictype/categ_Cs.c: New file.
65040         * lib/unictype/categ_L.c: New file.
65041         * lib/unictype/categ_Ll.c: New file.
65042         * lib/unictype/categ_Lm.c: New file.
65043         * lib/unictype/categ_Lo.c: New file.
65044         * lib/unictype/categ_Lt.c: New file.
65045         * lib/unictype/categ_Lu.c: New file.
65046         * lib/unictype/categ_M.c: New file.
65047         * lib/unictype/categ_Mc.c: New file.
65048         * lib/unictype/categ_Me.c: New file.
65049         * lib/unictype/categ_Mn.c: New file.
65050         * lib/unictype/categ_N.c: New file.
65051         * lib/unictype/categ_Nd.c: New file.
65052         * lib/unictype/categ_Nl.c: New file.
65053         * lib/unictype/categ_No.c: New file.
65054         * lib/unictype/categ_P.c: New file.
65055         * lib/unictype/categ_Pc.c: New file.
65056         * lib/unictype/categ_Pd.c: New file.
65057         * lib/unictype/categ_Pe.c: New file.
65058         * lib/unictype/categ_Pf.c: New file.
65059         * lib/unictype/categ_Pi.c: New file.
65060         * lib/unictype/categ_Po.c: New file.
65061         * lib/unictype/categ_Ps.c: New file.
65062         * lib/unictype/categ_S.c: New file.
65063         * lib/unictype/categ_Sc.c: New file.
65064         * lib/unictype/categ_Sk.c: New file.
65065         * lib/unictype/categ_Sm.c: New file.
65066         * lib/unictype/categ_So.c: New file.
65067         * lib/unictype/categ_Z.c: New file.
65068         * lib/unictype/categ_Zl.c: New file.
65069         * lib/unictype/categ_Zp.c: New file.
65070         * lib/unictype/categ_Zs.c: New file.
65071         * lib/unictype/categ_and.c: New file.
65072         * lib/unictype/categ_and_not.c: New file.
65073         * lib/unictype/categ_byname.c: New file.
65074         * lib/unictype/categ_name.c: New file.
65075         * lib/unictype/categ_none.c: New file.
65076         * lib/unictype/categ_of.c: New file.
65077         * lib/unictype/categ_or.c: New file.
65078         * lib/unictype/categ_test.c: New file.
65079         * lib/unictype/combining.c: New file.
65080         * lib/unictype/ctype_alnum.c: New file.
65081         * lib/unictype/ctype_alpha.c: New file.
65082         * lib/unictype/ctype_blank.c: New file.
65083         * lib/unictype/ctype_cntrl.c: New file.
65084         * lib/unictype/ctype_digit.c: New file.
65085         * lib/unictype/ctype_graph.c: New file.
65086         * lib/unictype/ctype_lower.c: New file.
65087         * lib/unictype/ctype_print.c: New file.
65088         * lib/unictype/ctype_punct.c: New file.
65089         * lib/unictype/ctype_space.c: New file.
65090         * lib/unictype/ctype_upper.c: New file.
65091         * lib/unictype/ctype_xdigit.c: New file.
65092         * lib/unictype/decdigit.c: New file.
65093         * lib/unictype/digit.c: New file.
65094         * lib/unictype/identsyntaxmap.h: New file.
65095         * lib/unictype/mirror.c: New file.
65096         * lib/unictype/numeric.c: New file.
65097         * lib/unictype/pr_alphabetic.c: New file.
65098         * lib/unictype/pr_ascii_hex_digit.c: New file.
65099         * lib/unictype/pr_bidi_arabic_digit.c: New file.
65100         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
65101         * lib/unictype/pr_bidi_block_separator.c: New file.
65102         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
65103         * lib/unictype/pr_bidi_common_separator.c: New file.
65104         * lib/unictype/pr_bidi_control.c: New file.
65105         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
65106         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
65107         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
65108         * lib/unictype/pr_bidi_european_digit.c: New file.
65109         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
65110         * lib/unictype/pr_bidi_left_to_right.c: New file.
65111         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
65112         * lib/unictype/pr_bidi_other_neutral.c: New file.
65113         * lib/unictype/pr_bidi_pdf.c: New file.
65114         * lib/unictype/pr_bidi_segment_separator.c: New file.
65115         * lib/unictype/pr_bidi_whitespace.c: New file.
65116         * lib/unictype/pr_byname.c: New file.
65117         * lib/unictype/pr_byname.gperf: New file.
65118         * lib/unictype/pr_combining.c: New file.
65119         * lib/unictype/pr_composite.c: New file.
65120         * lib/unictype/pr_currency_symbol.c: New file.
65121         * lib/unictype/pr_dash.c: New file.
65122         * lib/unictype/pr_decimal_digit.c: New file.
65123         * lib/unictype/pr_default_ignorable_code_point.c: New file.
65124         * lib/unictype/pr_deprecated.c: New file.
65125         * lib/unictype/pr_diacritic.c: New file.
65126         * lib/unictype/pr_extender.c: New file.
65127         * lib/unictype/pr_format_control.c: New file.
65128         * lib/unictype/pr_grapheme_base.c: New file.
65129         * lib/unictype/pr_grapheme_extend.c: New file.
65130         * lib/unictype/pr_grapheme_link.c: New file.
65131         * lib/unictype/pr_hex_digit.c: New file.
65132         * lib/unictype/pr_hyphen.c: New file.
65133         * lib/unictype/pr_id_continue.c: New file.
65134         * lib/unictype/pr_id_start.c: New file.
65135         * lib/unictype/pr_ideographic.c: New file.
65136         * lib/unictype/pr_ids_binary_operator.c: New file.
65137         * lib/unictype/pr_ids_trinary_operator.c: New file.
65138         * lib/unictype/pr_ignorable_control.c: New file.
65139         * lib/unictype/pr_iso_control.c: New file.
65140         * lib/unictype/pr_join_control.c: New file.
65141         * lib/unictype/pr_left_of_pair.c: New file.
65142         * lib/unictype/pr_line_separator.c: New file.
65143         * lib/unictype/pr_logical_order_exception.c: New file.
65144         * lib/unictype/pr_lowercase.c: New file.
65145         * lib/unictype/pr_math.c: New file.
65146         * lib/unictype/pr_non_break.c: New file.
65147         * lib/unictype/pr_not_a_character.c: New file.
65148         * lib/unictype/pr_numeric.c: New file.
65149         * lib/unictype/pr_other_alphabetic.c: New file.
65150         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
65151         * lib/unictype/pr_other_grapheme_extend.c: New file.
65152         * lib/unictype/pr_other_id_continue.c: New file.
65153         * lib/unictype/pr_other_id_start.c: New file.
65154         * lib/unictype/pr_other_lowercase.c: New file.
65155         * lib/unictype/pr_other_math.c: New file.
65156         * lib/unictype/pr_other_uppercase.c: New file.
65157         * lib/unictype/pr_paired_punctuation.c: New file.
65158         * lib/unictype/pr_paragraph_separator.c: New file.
65159         * lib/unictype/pr_pattern_syntax.c: New file.
65160         * lib/unictype/pr_pattern_white_space.c: New file.
65161         * lib/unictype/pr_private_use.c: New file.
65162         * lib/unictype/pr_punctuation.c: New file.
65163         * lib/unictype/pr_quotation_mark.c: New file.
65164         * lib/unictype/pr_radical.c: New file.
65165         * lib/unictype/pr_sentence_terminal.c: New file.
65166         * lib/unictype/pr_soft_dotted.c: New file.
65167         * lib/unictype/pr_space.c: New file.
65168         * lib/unictype/pr_terminal_punctuation.c: New file.
65169         * lib/unictype/pr_test.c: New file.
65170         * lib/unictype/pr_titlecase.c: New file.
65171         * lib/unictype/pr_unassigned_code_value.c: New file.
65172         * lib/unictype/pr_unified_ideograph.c: New file.
65173         * lib/unictype/pr_uppercase.c: New file.
65174         * lib/unictype/pr_variation_selector.c: New file.
65175         * lib/unictype/pr_white_space.c: New file.
65176         * lib/unictype/pr_xid_continue.c: New file.
65177         * lib/unictype/pr_xid_start.c: New file.
65178         * lib/unictype/pr_zero_width.c: New file.
65179         * lib/unictype/scripts.c: New file.
65180         * lib/unictype/sy_c_ident.c: New file.
65181         * lib/unictype/sy_c_whitespace.c: New file.
65182         * lib/unictype/sy_java_ident.c: New file.
65183         * lib/unictype/sy_java_whitespace.c: New file.
65184
65185         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
65186         Unicode 5.0.0.
65187         * lib/unictype/blocks.h: Likewise.
65188         * lib/unictype/categ_C.h: Likewise.
65189         * lib/unictype/categ_Cc.h: Likewise.
65190         * lib/unictype/categ_Cf.h: Likewise.
65191         * lib/unictype/categ_Cn.h: Likewise.
65192         * lib/unictype/categ_Co.h: Likewise.
65193         * lib/unictype/categ_Cs.h: Likewise.
65194         * lib/unictype/categ_L.h: Likewise.
65195         * lib/unictype/categ_Ll.h: Likewise.
65196         * lib/unictype/categ_Lm.h: Likewise.
65197         * lib/unictype/categ_Lo.h: Likewise.
65198         * lib/unictype/categ_Lt.h: Likewise.
65199         * lib/unictype/categ_Lu.h: Likewise.
65200         * lib/unictype/categ_M.h: Likewise.
65201         * lib/unictype/categ_Mc.h: Likewise.
65202         * lib/unictype/categ_Me.h: Likewise.
65203         * lib/unictype/categ_Mn.h: Likewise.
65204         * lib/unictype/categ_N.h: Likewise.
65205         * lib/unictype/categ_Nd.h: Likewise.
65206         * lib/unictype/categ_Nl.h: Likewise.
65207         * lib/unictype/categ_No.h: Likewise.
65208         * lib/unictype/categ_P.h: Likewise.
65209         * lib/unictype/categ_Pc.h: Likewise.
65210         * lib/unictype/categ_Pd.h: Likewise.
65211         * lib/unictype/categ_Pe.h: Likewise.
65212         * lib/unictype/categ_Pf.h: Likewise.
65213         * lib/unictype/categ_Pi.h: Likewise.
65214         * lib/unictype/categ_Po.h: Likewise.
65215         * lib/unictype/categ_Ps.h: Likewise.
65216         * lib/unictype/categ_S.h: Likewise.
65217         * lib/unictype/categ_Sc.h: Likewise.
65218         * lib/unictype/categ_Sk.h: Likewise.
65219         * lib/unictype/categ_Sm.h: Likewise.
65220         * lib/unictype/categ_So.h: Likewise.
65221         * lib/unictype/categ_Z.h: Likewise.
65222         * lib/unictype/categ_Zl.h: Likewise.
65223         * lib/unictype/categ_Zp.h: Likewise.
65224         * lib/unictype/categ_Zs.h: Likewise.
65225         * lib/unictype/categ_of.h: Likewise.
65226         * lib/unictype/combining.h: Likewise.
65227         * lib/unictype/ctype_alnum.h: Likewise.
65228         * lib/unictype/ctype_alpha.h: Likewise.
65229         * lib/unictype/ctype_blank.h: Likewise.
65230         * lib/unictype/ctype_cntrl.h: Likewise.
65231         * lib/unictype/ctype_digit.h: Likewise.
65232         * lib/unictype/ctype_graph.h: Likewise.
65233         * lib/unictype/ctype_lower.h: Likewise.
65234         * lib/unictype/ctype_print.h: Likewise.
65235         * lib/unictype/ctype_punct.h: Likewise.
65236         * lib/unictype/ctype_space.h: Likewise.
65237         * lib/unictype/ctype_upper.h: Likewise.
65238         * lib/unictype/ctype_xdigit.h: Likewise.
65239         * lib/unictype/decdigit.h: Likewise.
65240         * lib/unictype/digit.h: Likewise.
65241         * lib/unictype/mirror.h: Likewise.
65242         * lib/unictype/numeric.h: Likewise.
65243         * lib/unictype/pr_alphabetic.h: Likewise.
65244         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
65245         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
65246         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
65247         * lib/unictype/pr_bidi_block_separator.h: Likewise.
65248         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
65249         * lib/unictype/pr_bidi_common_separator.h: Likewise.
65250         * lib/unictype/pr_bidi_control.h: Likewise.
65251         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
65252         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
65253         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
65254         * lib/unictype/pr_bidi_european_digit.h: Likewise.
65255         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
65256         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
65257         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
65258         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
65259         * lib/unictype/pr_bidi_pdf.h: Likewise.
65260         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
65261         * lib/unictype/pr_bidi_whitespace.h: Likewise.
65262         * lib/unictype/pr_combining.h: Likewise.
65263         * lib/unictype/pr_composite.h: Likewise.
65264         * lib/unictype/pr_currency_symbol.h: Likewise.
65265         * lib/unictype/pr_dash.h: Likewise.
65266         * lib/unictype/pr_decimal_digit.h: Likewise.
65267         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
65268         * lib/unictype/pr_deprecated.h: Likewise.
65269         * lib/unictype/pr_diacritic.h: Likewise.
65270         * lib/unictype/pr_extender.h: Likewise.
65271         * lib/unictype/pr_format_control.h: Likewise.
65272         * lib/unictype/pr_grapheme_base.h: Likewise.
65273         * lib/unictype/pr_grapheme_extend.h: Likewise.
65274         * lib/unictype/pr_grapheme_link.h: Likewise.
65275         * lib/unictype/pr_hex_digit.h: Likewise.
65276         * lib/unictype/pr_hyphen.h: Likewise.
65277         * lib/unictype/pr_id_continue.h: Likewise.
65278         * lib/unictype/pr_id_start.h: Likewise.
65279         * lib/unictype/pr_ideographic.h: Likewise.
65280         * lib/unictype/pr_ids_binary_operator.h: Likewise.
65281         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
65282         * lib/unictype/pr_ignorable_control.h: Likewise.
65283         * lib/unictype/pr_iso_control.h: Likewise.
65284         * lib/unictype/pr_join_control.h: Likewise.
65285         * lib/unictype/pr_left_of_pair.h: Likewise.
65286         * lib/unictype/pr_line_separator.h: Likewise.
65287         * lib/unictype/pr_logical_order_exception.h: Likewise.
65288         * lib/unictype/pr_lowercase.h: Likewise.
65289         * lib/unictype/pr_math.h: Likewise.
65290         * lib/unictype/pr_non_break.h: Likewise.
65291         * lib/unictype/pr_not_a_character.h: Likewise.
65292         * lib/unictype/pr_numeric.h: Likewise.
65293         * lib/unictype/pr_other_alphabetic.h: Likewise.
65294         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
65295         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
65296         * lib/unictype/pr_other_id_continue.h: Likewise.
65297         * lib/unictype/pr_other_id_start.h: Likewise.
65298         * lib/unictype/pr_other_lowercase.h: Likewise.
65299         * lib/unictype/pr_other_math.h: Likewise.
65300         * lib/unictype/pr_other_uppercase.h: Likewise.
65301         * lib/unictype/pr_paired_punctuation.h: Likewise.
65302         * lib/unictype/pr_paragraph_separator.h: Likewise.
65303         * lib/unictype/pr_pattern_syntax.h: Likewise.
65304         * lib/unictype/pr_pattern_white_space.h: Likewise.
65305         * lib/unictype/pr_private_use.h: Likewise.
65306         * lib/unictype/pr_punctuation.h: Likewise.
65307         * lib/unictype/pr_quotation_mark.h: Likewise.
65308         * lib/unictype/pr_radical.h: Likewise.
65309         * lib/unictype/pr_sentence_terminal.h: Likewise.
65310         * lib/unictype/pr_soft_dotted.h: Likewise.
65311         * lib/unictype/pr_space.h: Likewise.
65312         * lib/unictype/pr_terminal_punctuation.h: Likewise.
65313         * lib/unictype/pr_titlecase.h: Likewise.
65314         * lib/unictype/pr_unassigned_code_value.h: Likewise.
65315         * lib/unictype/pr_unified_ideograph.h: Likewise.
65316         * lib/unictype/pr_uppercase.h: Likewise.
65317         * lib/unictype/pr_variation_selector.h: Likewise.
65318         * lib/unictype/pr_white_space.h: Likewise.
65319         * lib/unictype/pr_xid_continue.h: Likewise.
65320         * lib/unictype/pr_xid_start.h: Likewise.
65321         * lib/unictype/pr_zero_width.h: Likewise.
65322         * lib/unictype/scripts.h: Likewise.
65323         * lib/unictype/scripts_byname.gperf: Likewise.
65324         * lib/unictype/sy_c_ident.h: Likewise.
65325         * lib/unictype/sy_c_whitespace.h: Likewise.
65326         * lib/unictype/sy_java_ident.h: Likewise.
65327         * lib/unictype/sy_java_whitespace.h: Likewise.
65328
65329         * lib/unictype/Makefile: New file.
65330         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
65331         glibc.
65332         * lib/unictype/3level.h: New file, copied from glibc.
65333         * lib/unictype/3levelbit.h: New file.
65334
65335 2007-11-11  Bruno Haible  <bruno@clisp.org>
65336
65337         * modules/gperf: New file.
65338         * modules/iconv_open (Depends-on): Add it.
65339         (Makefile.am): Remove the GPERF definition.
65340
65341 2007-11-11  Bruno Haible  <bruno@clisp.org>
65342
65343         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
65344         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
65345
65346 2007-11-11  Bruno Haible  <bruno@clisp.org>
65347
65348         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
65349         (usage): Remove function.
65350
65351 2007-11-11  Bruno Haible  <bruno@clisp.org>
65352
65353         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
65354         gl_FUNC_CEILF_LIBS.
65355         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
65356         gl_FUNC_CEIL_LIBS.
65357         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
65358         gl_FUNC_CEILL_LIBS.
65359         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
65360         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
65361         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
65362
65363 2007-11-11  Bruno Haible  <bruno@clisp.org>
65364
65365         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
65366         roundf were declared but do not exist on functions.
65367         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
65368         roundl were declared but do not exist on functions.
65369         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
65370         HAVE_FLOORL_AND_CEILL, respectively.
65371         Needed for Sun C on Solaris 10.
65372
65373 2007-11-11  Bruno Haible  <bruno@clisp.org>
65374
65375         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
65376         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
65377         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
65378         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
65379         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
65380         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
65381         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
65382         HAVE_DECL_ROUNDF.
65383         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
65384         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
65385         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
65386         of HAVE_DECL_ROUND*.
65387         * modules/math (Makefile.am): Update.
65388
65389 2007-11-10  Bruno Haible  <bruno@clisp.org>
65390
65391         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
65392         ptrdiff_t as m4/intl.m4.
65393
65394 2007-11-10  Jim Meyering  <meyering@redhat.com>
65395
65396         Avoid link failure for the argmatch test.
65397         * tests/test-argmatch.c (usage): Define function to avoid a link
65398         failure: argmatch_die requires a usage function.
65399
65400 2007-11-09  Bruno Haible  <bruno@clisp.org>
65401
65402         * doc/functions/snprintf.texi: Mention BeOS deficiency.
65403         * doc/functions/vsnprintf.texi: Likewise.
65404         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
65405         with a size argument < 2.
65406
65407 2007-11-09  Bruno Haible  <bruno@clisp.org>
65408
65409         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
65410         buffer. Fixes an inefficiency introduced on 2007-11-03.
65411
65412 2007-11-09  Bruno Haible  <bruno@clisp.org>
65413
65414         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
65415         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
65416
65417 2007-11-08  Jim Meyering  <meyering@redhat.com>
65418
65419         Change cache variable name prefix "jm_" to "gl_" everywhere.
65420         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
65421         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
65422         * m4/uptime.m4: s/gl_/jm_/
65423
65424 2007-11-07  Bruno Haible  <bruno@clisp.org>
65425
65426         Update to GNU gettext 0.17.
65427         * m4/intl.m4: Update to GNU gettext 0.17.
65428         * m4/po.m4: Likewise.
65429         * modules/gettext (Files): Remove m4/ulonglong.m4.
65430         (configure.ac): Require gettext infrastructure from version 0.17.
65431
65432 2007-11-06  Bruno Haible  <bruno@clisp.org>
65433
65434         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
65435         symbolic values are not defined in a public header.
65436         * lib/freadable.c (freadable) [QNX]: Likewise.
65437         * lib/freadahead.c (freadahead) [QNX]: Likewise.
65438         * lib/freading.c (freading) [QNX]: Likewise.
65439         * lib/fseterr.c (fseterr) [QNX]: Likewise.
65440         * lib/fwritable.c (fwritable) [QNX]: Likewise.
65441         * lib/fwriting.c (fwriting) [QNX]: Likewise.
65442         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
65443         Reported by Alain Magloire.
65444
65445         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
65446
65447 2007-11-05  Bruno Haible  <bruno@clisp.org>
65448
65449         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
65450         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
65451         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
65452         Reported by Eric Blake.
65453
65454 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65455             Bruno Haible  <bruno@clisp.org>
65456
65457         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
65458         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
65459         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
65460         (malloc): Undefine also before including <stdlib.h>.
65461         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
65462         Needed on OSF/1 4.0.
65463
65464 2007-11-05  Jim Meyering  <meyering@redhat.com>
65465
65466         git-version-gen: sync from coreutils.
65467         * build-aux/git-version-gen: Add comments.
65468         Change the first '-' to '.' in the snapshot version string,
65469         e.g., 6.9-377-08144 -> 6.9.377-08144
65470         Remove first parameter.
65471         Don't declare a version "-dirty" merely because a time
65472         stamp has changed.
65473
65474 2007-11-04  Bruno Haible  <bruno@clisp.org>
65475
65476         * lib/lock.h: Protect all macro definitions containing an 'if'
65477         statement through a "do { ... } while (0)".
65478         * lib/tls.h: Likewise.
65479
65480 2007-11-04  Bruno Haible  <bruno@clisp.org>
65481
65482         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
65483
65484 2007-11-04  Bruno Haible  <bruno@clisp.org>
65485
65486         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
65487         * modules/fprintf-posix (Depends-on): Add nocrash.
65488         * modules/snprintf-posix (Depends-on): Likewise.
65489         * modules/sprintf-posix (Depends-on): Likewise.
65490         * modules/vasnprintf-posix (Depends-on): Likewise.
65491         * modules/vasprintf-posix (Depends-on): Likewise.
65492         * modules/vfprintf-posix (Depends-on): Likewise.
65493         * modules/vsnprintf-posix (Depends-on): Likewise.
65494         * modules/vsprintf-posix (Depends-on): Likewise.
65495         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
65496         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
65497         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
65498         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
65499         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
65500         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
65501         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
65502
65503 2007-11-04  Bruno Haible  <bruno@clisp.org>
65504
65505         * modules/nocrash: New file.
65506         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
65507         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
65508
65509 2007-11-04  Bruno Haible  <bruno@clisp.org>
65510
65511         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
65512         precision handling.
65513         * tests/test-vasprintf-posix.c (test_function): Likewise.
65514         * tests/test-snprintf-posix.h (test_function): Likewise.
65515         * tests/test-sprintf-posix.h (test_function): Likewise.
65516
65517         Fix *printf behaviour for large precisions on mingw and BeOS.
65518         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
65519         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
65520         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
65521         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
65522         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65523         gl_PRINTF_PRECISION and test its result. Invoke
65524         gl_PREREQ_VASNPRINTF_PRECISION.
65525         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65526         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65527         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65528         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65529         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65530         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65531         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65532         * doc/functions/fprintf.texi: Update.
65533         * doc/functions/printf.texi: Update.
65534         * doc/functions/snprintf.texi: Update.
65535         * doc/functions/sprintf.texi: Update.
65536         * doc/functions/vfprintf.texi: Update.
65537         * doc/functions/vprintf.texi: Update.
65538         * doc/functions/vsnprintf.texi: Update.
65539         * doc/functions/vsprintf.texi: Update.
65540
65541 2007-11-04  Bruno Haible  <bruno@clisp.org>
65542
65543         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
65544
65545 2007-11-04  Bruno Haible  <bruno@clisp.org>
65546
65547         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
65548         Reported by Sylvain Beucler <beuc@gnu.org>.
65549
65550 2007-11-03  Bruno Haible  <bruno@clisp.org>
65551
65552         * tests/test-fprintf-posix2.sh: New file.
65553         * tests/test-fprintf-posix2.c: New file.
65554         * modules/fprintf-posix-tests (Files): Add them.
65555         (TESTS): Add test-fprintf-posix2.sh.
65556         (configure.ac): Check for getrlimit and setrlimit.
65557         (check_PROGRAMS): Add test-fprintf-posix2.
65558
65559         * tests/test-printf-posix2.sh: New file.
65560         * tests/test-printf-posix2.c: New file.
65561         * modules/printf-posix-tests (Files): Add them.
65562         (TESTS): Add test-printf-posix2.sh.
65563         (configure.ac): Check for getrlimit and setrlimit.
65564         (check_PROGRAMS): Add test-printf-posix2.
65565
65566         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
65567         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
65568         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
65569         (decode_double): New function, copied from decode_long_double.
65570         (scale10_round_decimal_decoded): New function, extracted from
65571         scale10_round_decimal_long_double.
65572         (scale10_round_decimal_long_double): Use it.
65573         (scale10_round_decimal_double): New function.
65574         (floorlog10): New function.
65575         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
65576         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
65577         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
65578         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65579         gl_PRINTF_ENOMEM and test its result. Invoke
65580         gl_PREREQ_VASNPRINTF_ENOMEM.
65581         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65582         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65583         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65584         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65585         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65586         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65587         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65588         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
65589         * modules/snprintf-posix (Depends-on): Likewise.
65590         * modules/sprintf-posix (Depends-on): Likewise.
65591         * modules/vasnprintf-posix (Depends-on): Likewise.
65592         * modules/vasprintf-posix (Depends-on): Likewise.
65593         * modules/vfprintf-posix (Depends-on): Likewise.
65594         * modules/vsnprintf-posix (Depends-on): Likewise.
65595         * modules/vsprintf-posix (Depends-on): Likewise.
65596         * doc/functions/fprintf.texi: Update.
65597         * doc/functions/printf.texi: Update.
65598         * doc/functions/snprintf.texi: Update.
65599         * doc/functions/sprintf.texi: Update.
65600         * doc/functions/vfprintf.texi: Update.
65601         * doc/functions/vprintf.texi: Update.
65602         * doc/functions/vsnprintf.texi: Update.
65603         * doc/functions/vsprintf.texi: Update.
65604
65605 2007-11-03  Bruno Haible  <bruno@clisp.org>
65606
65607         * modules/frexp-nolibm-tests: New file.
65608
65609         * modules/frexp-nolibm: New file.
65610         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
65611
65612 2007-11-03  Bruno Haible  <bruno@clisp.org>
65613
65614         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
65615         value is C99 compliant.
65616         Needed for OSF/1 5.1.
65617
65618 2007-11-03  Bruno Haible  <bruno@clisp.org>
65619
65620         Fix out-of-memory handling of vasnprintf.
65621         * lib/printf-parse.c: Include <errno.h>.
65622         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
65623         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
65624         is already set.
65625
65626 2007-11-02  Eric Blake  <ebb9@byu.net>
65627
65628         Fix tests on cygwin.
65629         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
65630
65631 2007-11-01  Bruno Haible  <bruno@clisp.org>
65632
65633         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
65634         warning.
65635         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
65636         needed for POSIX compatibility.
65637
65638 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
65639
65640         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
65641         for compatibility with GNU.
65642
65643 2007-11-01  Bruno Haible  <bruno@clisp.org>
65644
65645         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
65646         (putenv): Renamed from rpl_putenv. Change argument type from
65647         'const char *' to 'char *'.
65648         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
65649         of defining putenv in config.h, just set REPLACE_PUTENV.
65650         * modules/putenv (Depends-on): Add stdlib.
65651         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
65652         (Include): Use <stdlib.h>.
65653         * lib/stdlib.in.h (putenv): New declaration.
65654         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
65655         REPLACE_PUTENV.
65656         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
65657         REPLACE_PUTENV.
65658         Needed for MacOS X 10.5.0.
65659         Reported by Peter O'Gorman <peter@pogma.com>.
65660
65661 2007-11-01  Jim Meyering  <meyering@redhat.com>
65662
65663         Treat an empty date string exactly like "0".
65664         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
65665         if the remaining date string (to be parsed) is empty, use "0".
65666         Reported by Mischa Molhoek and discussed in this thread:
65667         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
65668
65669 2007-10-31  Bruno Haible  <bruno@clisp.org>
65670
65671         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
65672         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
65673         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
65674         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
65675         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
65676         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
65677
65678 2007-10-31  Bruno Haible  <bruno@clisp.org>
65679
65680         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
65681         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
65682         (AC_TYPE_LONG_LONG_INT): Use it.
65683         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
65684         it as well.
65685         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
65686         to m4/longlong.m4.
65687         * modules/stdint (Files): Remove m4/ulonglong.m4.
65688         * modules/strtoull (Files): Use m4/longlong.m4 instead of
65689         m4/ulonglong.m4.
65690         * modules/strtoumax (Files): Likewise.
65691
65692 2007-10-30  Bruno Haible  <bruno@clisp.org>
65693
65694         * modules/xvasprintf-posix: New file.
65695         Suggested by Eric Blake.
65696
65697 2007-10-30  Bruno Haible  <bruno@clisp.org>
65698
65699         * modules/xprintf-posix-tests: New file.
65700         * tests/test-xprintf-posix.sh: New file.
65701         * tests/test-xprintf-posix.c: New file.
65702         * tests/test-xfprintf-posix.c: New file.
65703
65704         * modules/xprintf-posix: New file.
65705
65706 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65707
65708         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
65709         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
65710         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
65711
65712 2007-10-29  Bruno Haible  <bruno@clisp.org>
65713
65714         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
65715         contain the special marker '_cv_'.
65716         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
65717         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
65718         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
65719         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
65720         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
65721         Reported by Ralf Wildenhues.
65722
65723 2007-10-29  Bruno Haible  <bruno@clisp.org>
65724
65725         * gnulib-tool (func_import): When --lgpl is not specified, set
65726         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
65727         GPLv3.
65728         Reported by Simon Josefsson.
65729
65730 2007-10-28  Bruno Haible  <bruno@clisp.org>
65731
65732         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
65733         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
65734         HAVE_DECL_ISFINITE.
65735         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
65736         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
65737         HAVE_DECL_ISFINITE.
65738
65739 2007-10-28  Bruno Haible  <bruno@clisp.org>
65740
65741         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
65742         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
65743
65744 2007-10-28  Bruno Haible  <bruno@clisp.org>
65745
65746         Fix link errors with Sun C 5.0 on Solaris 10.
65747         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
65748         function is declared but not present in the compiler's libm.
65749         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
65750         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
65751         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
65752         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
65753         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
65754         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
65755         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
65756         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
65757         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
65758         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
65759         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
65760         HAVE_DECL_FLOORL.
65761
65762 2007-10-28  Bruno Haible  <bruno@clisp.org>
65763
65764         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
65765         gl_FUNC_FLOORL. Cache the result.
65766         (gl_FUNC_FLOORL): Use it.
65767         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
65768         gl_FUNC_CEILL. Cache the result.
65769         (gl_FUNC_CEILL): Use it.
65770
65771         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
65772         gl_FUNC_FLOOR. Cache the result.
65773         (gl_FUNC_FLOOR): Use it.
65774         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
65775         gl_FUNC_CEIL. Cache the result.
65776         (gl_FUNC_CEIL): Use it.
65777
65778         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
65779         gl_FUNC_FLOORF. Cache the result.
65780         (gl_FUNC_FLOORF): Use it.
65781         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
65782         gl_FUNC_CEILF. Cache the result.
65783         (gl_FUNC_CEILF): Use it.
65784
65785 2007-10-28  Bruno Haible  <bruno@clisp.org>
65786
65787         * gnulib-tool: Allow specifying the LGPL version number through
65788         --lgpl=2 or --lgpl=3.
65789         (func_usage): Document --lgpl with argument.
65790         Handle --lgpl=... arguments.
65791         (func_import): Recognize also gl_LGPL calls with an argument. When
65792         --lgpl=2 is used and the module's license is just LGPL, report an
65793         error. Set sed_transform_lib_file according to the lgpl variable. In
65794         the generated files, use --lgpl or gl_LGPL invocations with argument,
65795         if necessary.
65796         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
65797         an LGPv2+ license.
65798         * doc/gnulib-tool.texi (Modified imports): Update explanation of
65799         gl_LGPL macro.
65800
65801 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65802             Bruno Haible  <bruno@clisp.org>
65803
65804         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
65805         (u16_uctomb_aux): Likewise.
65806         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
65807         !HAVE_INLINE.
65808         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
65809
65810 2007-10-28  Bruno Haible  <bruno@clisp.org>
65811
65812         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
65813         Invoke AM_GETTEXT_OPTION if it exists.
65814         * modules/vasprintf: Likewise.
65815         * modules/verror: Likewise.
65816         * modules/xprintf: Likewise.
65817         * modules/xvasprintf: Likewise.
65818
65819 2007-10-27  Ben Pfaff  <blp@gnu.org>
65820
65821         * lib/math.in.h: Define isfinite macro and prototypes for
65822         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
65823         implementations.
65824         * m4/math_h.m4: New substitutions for isfinite module.
65825         * lib/isfinite.c: New file.
65826         * m4/isfinite.m4: New file.
65827         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
65828         * modules/isfinite: New file.
65829         * modules/isfinite-tests: New file.
65830         * tests/tests-isfinite.c: New file.
65831         * doc/functions/isfinite.texi: Mention isfinite module.
65832         * MODULES.html.sh: Mention new module.
65833
65834 2007-10-27  Ben Pfaff  <blp@gnu.org>
65835
65836         Ralf Wildenhues reported that Tru64 4.0D declares the round
65837         functions but does not have definitions.
65838         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
65839         cannot be found in any library, set the output variable to
65840         "missing" instead of "".
65841         * m4/round.m4: Also use our substitute if we cannot find round in
65842         any library, even if it is declared.
65843         * m4/roundf.m4: Likewise for roundf.
65844         * m4/roundl.m4: Likewise for roundl.
65845         * lib/math.in.h: Undefine roundf, round, roundl before defining
65846         their replacements, to allow for hypothetical systems where these
65847         may be defined as macros but not available in libraries.
65848
65849 2007-10-27  Bruno Haible  <bruno@clisp.org>
65850
65851         * doc/gnulib.texi: Invoke @firstparagraphindent.
65852         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
65853         changes in gnulib.
65854         (Source changes): New section.
65855
65856 2007-10-26  Bruno Haible  <bruno@clisp.org>
65857
65858         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
65859         borrowed from autoconf.
65860
65861 2007-10-26  Bruno Haible  <bruno@clisp.org>
65862
65863         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
65864         strerror returned the empty string. Needed on HP-UX 11.00.
65865
65866 2007-10-24  Micah Cowan  <micah@cowan.name>
65867
65868         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
65869         * build-aux/bootstrap: Remove support for now-unnecessary option,
65870         --cvs-user, and envvars CVS_USER, CVS_RSH.
65871
65872 2007-10-24  Jim Meyering  <meyering@redhat.com>
65873
65874         Avoid diagnostics from sha1sum when there is no cached checksum.
65875         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
65876         if the po.s1 file hasn't been created yet.
65877
65878         * build-aux/bootstrap: Sync from coreutils:
65879         2007-10-24  Jim Meyering  <meyering@redhat.com>
65880         Get gnulib from the git repository, not from an obsolete cvs one.
65881         * build-aux/bootstrap: Suggestion from Micah Cowan.
65882         2007-10-04  Jim Meyering  <jim@meyering.net>
65883         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
65884         (update_po_files): Work also when there are no .po files in po/.
65885
65886 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
65887
65888         * README: Append ".git" to git and cg examples.
65889         Problem reported by Benoit Sigoure.
65890
65891 2007-10-23  Micah Cowan  <micah@cowan.name>
65892
65893         * users.txt: Add wget.
65894
65895 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65896
65897         Fix linking of some unistdio tests on FreeBSD.
65898         * modules/unistdio/u16-vsnprintf-tests
65899         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
65900         * modules/unistdio/u16-vsprintf-tests
65901         (test_u16_vsnprintf1_LDADD): Likewise.
65902         * modules/unistdio/u32-vsnprintf-tests
65903         (test_u32_vsnprintf1_LDADD): Likewise.
65904         * modules/unistdio/u32-vsprintf-tests
65905         (test_u32_vsprintf1_LDADD): Likewise.
65906         * modules/unistdio/u8-vsnprintf-tests
65907         (test_u8_vsnprintf1_LDADD): Likewise.
65908         * modules/unistdio/u8-vsprintf-tests
65909         (test_u8_vsprintf1_LDADD): Likewise.
65910         * modules/unistdio/ulc-vsnprintf-tests
65911         (test_ulc_vsnprintf1_LDADD): Likewise.
65912         * modules/unistdio/ulc-vsprintf-tests
65913         (test_ulc_vsprintf1_LDADD): Likewise.
65914
65915         Fix linking of some uniconv tests on FreeBSD.
65916         * modules/uniconv/u16-conv-from-enc-tests
65917         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
65918         * modules/uniconv/u16-conv-to-enc-tests
65919         (test_u16_conv_to_enc_LDADD): Likewise.
65920         * modules/uniconv/u16-strconv-from-enc-tests
65921         (test_u16_strconv_from_enc_LDADD): Likewise.
65922         * modules/uniconv/u16-strconv-to-enc-tests
65923         (test_u16_strconv_to_enc_LDADD): Likewise.
65924         * modules/uniconv/u32-conv-from-enc-tests
65925         (test_u32_conv_from_enc_LDADD): Likewise.
65926         * modules/uniconv/u32-conv-to-enc-tests
65927         (test_u32_conv_to_enc_LDADD): Likewise.
65928         * modules/uniconv/u32-strconv-from-enc-tests
65929         (test_u32_strconv_from_enc_LDADD): Likewise.
65930         * modules/uniconv/u32-strconv-to-enc-tests
65931         (test_u32_strconv_to_enc_LDADD): Likewise.
65932         * modules/uniconv/u8-conv-from-enc-tests
65933         (test_u8_conv_from_enc_LDADD): Likewise.
65934         * modules/uniconv/u8-conv-to-enc-tests
65935         (test_u8_conv_to_enc_LDADD): Likewise.
65936         * modules/uniconv/u8-strconv-from-enc-tests
65937         (test_u8_strconv_from_enc_LDADD): Likewise.
65938         * modules/uniconv/u8-strconv-to-enc-tests
65939         (test_u8_strconv_to_enc_LDADD): Likewise.
65940
65941 2007-10-22  Bruno Haible  <bruno@clisp.org>
65942
65943         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
65944         size.
65945
65946 2007-10-22  Eric Blake  <ebb9@byu.net>
65947
65948         Tweak x*printf documentation.
65949         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
65950         variable name and comments.
65951         Suggested by Bruno Haible.
65952
65953 2007-10-22  Bruno Haible  <bruno@clisp.org>
65954
65955         * lib/acl.c (copy_acl): Fix file name in comment.
65956
65957 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
65958
65959         Fix Tru64 problem with stdbool.h.
65960         * lib/stdbool.in.h (false, true):
65961         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
65962         Don't declare as an enum in this situation; it runs afoul of Tru64.
65963         Problem reported by Steven M. Schweda in
65964         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
65965
65966 2007-10-22  Eric Blake  <ebb9@byu.net>
65967
65968         Also wrap vf?printf.
65969         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
65970         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
65971         (xvprintf, xvfprintf): New functions.
65972
65973 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65974
65975         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
65976         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
65977
65978         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
65979         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
65980
65981 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
65982
65983         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
65984         by Bruno Haible.
65985
65986 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65987
65988         * lib/getloadavg.c
65989         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
65990         Undef `sys' after including sys/table.h, for Tru64 4.0D.
65991
65992         * tests/test-i-ring.c: Work for C89.
65993
65994 2007-10-22  Bruno Haible  <bruno@clisp.org>
65995
65996         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
65997         -1u, in preprocessor expression, so that we don't test for the bug
65998         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
65999         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
66000
66001 2007-10-22  Eric Blake  <ebb9@byu.net>
66002
66003         * tests/test-yesno.sh: Silence stderr during test.
66004
66005 2007-10-22  Simon Josefsson  <simon@josefsson.org>
66006
66007         * modules/crypto/gc-camellia: New file.
66008
66009         * m4/gc-camellia.m4: New file.
66010
66011         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
66012
66013         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
66014
66015 2007-10-22  Simon Josefsson  <simon@josefsson.org>
66016
66017         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
66018         --help to stdout.  Reported by sms@antinode.org (Steven
66019         M. Schweda).
66020
66021 2007-10-22  Simon Josefsson  <simon@josefsson.org>
66022
66023         * users.txt: Fix link to libksba.
66024
66025 2007-10-21  Ben Pfaff  <blp@gnu.org>
66026
66027         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
66028         round.c roundf implementation that depends on floorf and ceilf to
66029         be tested unconditionally.
66030
66031 2007-10-21  Ben Pfaff  <blp@gnu.org>
66032
66033         * m4/check-libm-func.m4: Removed.
66034         * m4/check-math-lib.m4: New file.
66035         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
66036         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
66037         definition and lack of AC_LIBOBJ([roundf]).
66038         * m4/roundl.m4: Ditto, and similarly for roundl.
66039         * modules/round: Reference new m4 file.
66040         * modules/roundf: Ditto.
66041         * modules/roundl: Ditto.
66042         * tests/test-round2.c (main): Use ROUND instead of round.
66043         Bug report from Bruno Haible.
66044
66045 2007-10-21  Bruno Haible  <bruno@clisp.org>
66046
66047         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
66048         context.
66049
66050 2007-10-21  Bruno Haible  <bruno@clisp.org>
66051
66052         * tests/test-wcwidth.c (main): Allow negative result for some control
66053         characters.
66054
66055         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
66056         Needed on OSF/1 5.1.
66057
66058 2007-10-21  Bruno Haible  <bruno@clisp.org>
66059
66060         * tests/test-floorf1.c: Include isnanf.h.
66061         (main): Use isnanf() instead of isnan().
66062         * tests/test-ceilf1.c: Include isnanf.h.
66063         (main): Use isnanf() instead of isnan().
66064         * tests/test-truncf1.c: Include isnanf.h.
66065         (main): Use isnanf() instead of isnan().
66066         * tests/test-roundf1.c: Include isnanf.h.
66067         (main): Use isnanf() instead of isnan().
66068
66069 2007-10-21  Eric Blake  <ebb9@byu.net>
66070
66071         * users.txt: Update URL for m4.
66072
66073 2007-10-21  Bruno Haible  <bruno@clisp.org>
66074
66075         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
66076
66077 2007-10-21  Bruno Haible  <bruno@clisp.org>
66078
66079         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
66080         Git's management files if the CVS files are not present.
66081
66082 2007-10-20  Bruno Haible  <bruno@clisp.org>
66083
66084         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
66085         gcc-3.4.x.
66086
66087 2007-10-20  Ben Pfaff  <blp@gnu.org>
66088
66089         * lib/math.in.h: Declare round, roundf, roundl if we are providing
66090         implementations.
66091         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
66092         * lib/round.c: New file.
66093         * lib/roundf.c: New file.
66094         * lib/roundl.c: New file.
66095         * m4/round.m4: New file.
66096         * m4/roundf.m4: New file.
66097         * m4/roundl.m4: New file.
66098         * m4/check-libm-func-m4: New file.
66099         * modules/math: Replace round, roundf, roundl related @VARS@ in
66100         math.in.h.
66101         * modules/round: New file.
66102         * modules/round-tests: New file.
66103         * modules/roundf: New file.
66104         * modules/roundf-tests: New file.
66105         * modules/roundl: New file.
66106         * modules/roundl-tests: New file.
66107         * tests/test-round1.c: New file.
66108         * tests/test-round2.c: New file.
66109         * tests/test-roundf1.c: New file.
66110         * tests/test-roundf2.c: New file.
66111         * tests/test-roundl.c: New file.
66112         * doc/functions/round.texi: Mention round module.
66113         * doc/functions/roundf.texi: Mention roundf module.
66114         * doc/functions/roundl.texi: Mention roundl module.
66115         * MODULES.html.sh: Mention new modules.
66116         Thanks to Bruno Haible for suggestions.
66117
66118 2007-10-20  Jim Meyering  <meyering@redhat.com>
66119
66120         * lib/xprintf.c: Include <config.h> unconditionally.
66121
66122         Change xprintf's license to GPL.
66123         * modules/xprintf (License): s/LGPL/GPL/, since this module
66124         depends on modules (exit and exitfail) which are GPL.
66125         Suggestion from Bruno Haible.
66126
66127         xprintf fixes.
66128         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
66129         Use a clearer diagnostic.
66130         Patch from Bruno Haible.
66131
66132 2007-10-20  Bruno Haible  <bruno@clisp.org>
66133
66134         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
66135         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
66136         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66137
66138 2007-10-20  Bruno Haible  <bruno@clisp.org>
66139
66140         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
66141         precision in the comparison result > x - 1 or similar.
66142         * tests/test-ceilf2.c (correct_result_p): Likewise.
66143         * tests/test-truncf2.c (correct_result_p): Likewise.
66144         * tests/test-trunc2.c (correct_result_p): Likewise.
66145         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66146
66147 2007-10-20  Bruno Haible  <bruno@clisp.org>
66148
66149         * modules/ceil: New file.
66150         * m4/ceil.m4: New file.
66151         * doc/functions/ceil.texi: Mention the 'ceil' module.
66152
66153 2007-10-20  Bruno Haible  <bruno@clisp.org>
66154
66155         * modules/floor: New file.
66156         * m4/floor.m4: New file.
66157         * doc/functions/floor.texi: Mention the 'floor' module.
66158
66159 2007-10-20  Bruno Haible  <bruno@clisp.org>
66160
66161         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
66162         of %a.
66163         * modules/floorf-tests (Depends-on): Likewise.
66164         * modules/truncf-tests (Depends-on): Likewise.
66165         * modules/trunc-tests (Depends-on): Likewise.
66166         Reported by Ben Pfaff.
66167
66168 2007-10-19  Jim Meyering  <meyering@redhat.com>
66169
66170         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
66171         Don't bother testing specific errno values.  Just test ferror.
66172
66173         New module: xprintf
66174         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
66175
66176 2007-10-19  Bruno Haible  <bruno@clisp.org>
66177
66178         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
66179         syntax.
66180         * modules/javaexec (Makefile.am): Likewise.
66181         * modules/relocatable-prog (Makefile.am): Likewise.
66182         Suggested by Jim Meyering.
66183
66184 2007-10-18  Bruno Haible  <bruno@clisp.org>
66185
66186         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
66187         Reported by Jim Meyering.
66188
66189 2007-10-18  Eric Blake  <ebb9@byu.net>
66190
66191         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
66192
66193 2007-10-18  Bruno Haible  <bruno@clisp.org>
66194
66195         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
66196         the format string into writable memory. Needed in Fortify conditions.
66197
66198 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
66199             Bruno Haible  <bruno@clisp.org>
66200
66201         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
66202         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
66203         * modules/trim (Depends-on): Add mbchar.
66204         (configure.ac): Add gl_FUNC_MBRTOWC.
66205         (Makefile.am): Augment lib_SOURCES.
66206
66207 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
66208
66209         Modify glob.c to use fstatat and dirfd, to simplify it.
66210         Suggested by Eric Blake.
66211         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
66212         Don't include <stdbool.h>; not used.
66213         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
66214         (link_exists_p): Simplify implementation, since we can now assume
66215         dirfd and fstatat.
66216         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
66217
66218 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66219
66220         * gnulib-tool (func_get_dependencies): Fix sed script to
66221         match only tests.
66222
66223 2007-10-17  Bruno Haible  <bruno@clisp.org>
66224
66225         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
66226         allow locale names without encoding suffix.
66227         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
66228         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
66229
66230 2007-10-16  Bruno Haible  <bruno@clisp.org>
66231
66232         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
66233         * lib/getgroups.c (getgroups): Likewise.
66234         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
66235
66236 2007-10-16  Bruno Haible  <bruno@clisp.org>
66237
66238         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
66239         * modules/malloc-posix (License): Likewise.
66240         * modules/realloc-posix (License): Likewise.
66241         * modules/calloc-posix (License): Likewise.
66242         * modules/intprops (License): Change from GPL to LGPL, with
66243         Paul Eggert's approval.
66244
66245 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
66246
66247         Merge glibc changes into lib/glob.c.
66248
66249         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
66250         2007-10-15 04:59:03 UTC.  Here are the changes:
66251
66252         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
66253
66254         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
66255
66256         * lib/glob.c: Add some branch prediction throughout.
66257
66258         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
66259
66260         [BZ #5103]
66261         * lib/glob.c (glob): Recognize patterns starting \/.
66262
66263         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
66264
66265         [BZ #3996]
66266         * lib/glob.c (attribute_hidden): Define if not defined.
66267         (glob): Unescape dirname, filename or username when needed and not
66268         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
66269         is NULL.  Handle unescaped [ in pattern without closing ].
66270         Don't pass GLOB_CHECK down to recursive glob for directories.
66271         (__glob_pattern_type): New function.
66272         (__glob_pattern_p): Implement using __glob_pattern_type.
66273         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
66274         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
66275         Remove unreachable code.
66276
66277         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
66278
66279         * lib/glob.c (glob_in_dir): Add some comments and asserts to
66280         explain why there are no leaks.
66281
66282         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
66283
66284         [BZ #3253]
66285         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
66286         time, rather allocate increasingly bigger arrays of pointers, if
66287         possible with alloca, if too large with malloc.
66288
66289 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
66290
66291         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
66292         Problem reported by H.Merijn Brand in
66293         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
66294         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
66295         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
66296
66297 2007-10-15  Bruno Haible  <bruno@clisp.org>
66298
66299         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
66300         with explicit rpl_ prefix.
66301         * lib/fopen.c (fopen): Likewise.
66302         * lib/freopen.c (freopen): Likewise.
66303         * lib/iconv.c (iconv): Likewise.
66304         * lib/iconv_close.c (iconv_close): Likewise.
66305
66306 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66307
66308         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
66309
66310 2007-10-15  Bruno Haible  <bruno@clisp.org>
66311
66312         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
66313         <stddef.h> instead of <stdlib.h> since we only need NULL.
66314         Reported by Ben Pfaff <blp@cs.stanford.edu>.
66315
66316 2007-10-15  Bruno Haible  <bruno@clisp.org>
66317
66318         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
66319         Replace paragraph talking about LIBOBJS.
66320         Reported by Colin Watson <cjwatson@debian.org>.
66321
66322 2007-10-15  Bruno Haible  <bruno@clisp.org>
66323
66324         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
66325         <stdlib.h> before using NULL.
66326
66327 2007-10-15  Simon Josefsson  <simon@josefsson.org>
66328
66329         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
66330         Reported by Albert Chin <china@thewrittenword.com>.
66331
66332 2007-10-14  Bruno Haible  <bruno@clisp.org>
66333
66334         * modules/iconv_open-utf-tests: New file.
66335         * tests/test-iconv-utf.c: New file.
66336
66337         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
66338         * modules/iconv_open-utf: New file.
66339         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
66340         (iconv, iconv_close): New declarations.
66341         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
66342         be defined.
66343         (iconv_open): Add special handling of conversion between UTF-8 and
66344         UTF-{16,32}{BE,LE}.
66345         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
66346         * lib/iconv_close.c: New file.
66347         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
66348         gl_FUNC_ICONV_OPEN.
66349         (gl_FUNC_ICONV_OPEN): Use it.
66350         (gl_FUNC_ICONV_OPEN_UTF): New macro.
66351         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
66352         and REPLACE_ICONV_UTF.
66353         * modules/iconv_open (Depends-on): Add c-strcase.
66354         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
66355         ICONV_CONST.
66356         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
66357
66358 2007-10-13  Albert Chin  <china@thewrittenword.com>
66359             Bruno Haible  <bruno@clisp.org>
66360
66361         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
66362         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
66363
66364 2007-10-13  Bruno Haible  <bruno@clisp.org>
66365
66366         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
66367         defined, use the ISO C99 inline semantics.
66368         * lib/argp.h (ARGP_EI): Likewise.
66369
66370 2007-10-13  Bruno Haible  <bruno@clisp.org>
66371
66372         Handle 'inline' change in gcc 4.3.0.
66373         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
66374         argp_fmtstream_write, argp_fmtstream_set_lmargin,
66375         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
66376         argp_fmtstream_point): Disable 'extern' declaration if the function
66377         definition is going to be provided inline.
66378         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
66379         semantics, not the ISO C99 inline semantics.
66380         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
66381         'extern' declaration if the function definition is going to be provided
66382         inline.
66383         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
66384         the GNU C inline semantics, not the ISO C99 inline semantics. With
66385         GCC 4.2, avoid a warning.
66386
66387 2007-10-13  Bruno Haible  <bruno@clisp.org>
66388
66389         * lib/freading.h (freading): Enable the use of __freading for
66390         glibc >= 2.7.
66391         * lib/freading.c (freading): Likewise.
66392
66393 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
66394
66395         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
66396         "warning: C99 inline functions are not supported; using GNU89".
66397
66398 2007-10-12  Bruno Haible  <bruno@clisp.org>
66399
66400         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
66401         of 2.
66402         * tests/test-ceilf2.c: New file.
66403         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
66404
66405         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
66406         * modules/ceilf-tests: Update.
66407
66408 2007-10-12  Bruno Haible  <bruno@clisp.org>
66409
66410         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
66411         of 2.
66412         * tests/test-floorf2.c: New file.
66413         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
66414
66415         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
66416         * modules/floorf-tests: Update.
66417
66418 2007-10-12  Bruno Haible  <bruno@clisp.org>
66419
66420         * tests/test-trunc2.c: New file.
66421         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
66422
66423         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
66424         * modules/trunc-tests: Update.
66425
66426 2007-10-12  Bruno Haible  <bruno@clisp.org>
66427
66428         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
66429         of 2.
66430         * tests/test-truncf2.c: New file.
66431         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
66432
66433         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
66434         * modules/truncf-tests: Update.
66435
66436 2007-10-11  Eric Blake  <ebb9@byu.net>
66437
66438         Don't claim strerror is broken on Interix.
66439         * doc/functions/strerror.texi (strerror): Known broken systems are
66440         now Solaris 8, and not Interix.
66441         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
66442         Interix on cross-compile.
66443         Reported by Martin Koeppe in
66444         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
66445
66446 2007-10-11  Bruno Haible  <bruno@clisp.org>
66447
66448         * modules/i-ring-tests: New file.
66449         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
66450         instead of assert.
66451
66452 2007-10-11  Bruno Haible  <bruno@clisp.org>
66453
66454         * modules/filenamecat-tests: New file.
66455         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
66456         * lib/filenamecat.c: Remove test code.
66457
66458 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
66459
66460         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
66461
66462         * lib/strerror.c: Include <string.h> always, to test interface,
66463         and to remove the need for the dummy.
66464         Include intprops.h to compute width instead of doing it ourselves
66465         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
66466         (strerror): Define it to return NULL if there's no system strerror.
66467         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
66468         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
66469         ancient pre-strerror Unix systems well any more.  Saying "unknown
66470         system error" is enough.
66471         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
66472         simpler strerror.c implementation.
66473         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
66474         Simplify the tests to reflect the simpler strerror implementation.
66475         * modules/strerror (Depends-on): Add intprops.
66476
66477 2007-10-09  Eric Blake  <ebb9@byu.net>
66478
66479         Silence test-fpending.
66480         * modules/fpending-tests (Files): Add wrapper script.
66481         * tests/test-fpending.sh: New file.
66482
66483 2007-10-09  Bruno Haible  <bruno@clisp.org>
66484
66485         * MODULES.html.sh (func_module): Don't create a hyperlink for
66486         function names like 'printf_frexp'.
66487         (Misc): Add crc, memxor.
66488         (Characteristics of floating types): New section.
66489         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
66490         isnanf-nolibm, signbit, trunc, truncf, truncl.
66491         (Enhancements for ISO C 99 functions): New subsection Input/output.
66492         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
66493         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
66494         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
66495         (Compatibility checks for POSIX:2001 functions): Add clock-time.
66496         (Enhancements for POSIX:2001 functions): Add chdir-long.
66497         (File system functions): Add areadlink, chdir-safer, read-file.
66498         Remove cycle-check.
66499         (File system as inode set): New section.
66500         (Date and time): Add gethrxtime.
66501         (Multithreading): Add openmp.
66502         (Internationalization functions): Add localename.
66503         (Unicode string functions): Add unistr/u*-mbsnlen.
66504         (Support for maintaining and releasing projects): Add git-version-gen.
66505         (Lone files): Remove directories.
66506
66507 2007-10-08  Ben Pfaff  <blp@gnu.org>
66508
66509         * lib/xmalloca.h: Fix typo in comment.
66510
66511 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
66512
66513         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
66514         when avoiding problems with integer overflow.  Use a portable test
66515         instead.
66516
66517 2007-10-08  Simon Josefsson  <simon@josefsson.org>
66518
66519         * modules/dummy (License): Change to LGPLv2+.
66520         * modules/float (License): Likewise
66521         * modules/realloc (License): Likewise
66522         * modules/stdlib (License): Likewise
66523
66524 2007-10-07  Bruno Haible  <bruno@clisp.org>
66525
66526         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
66527         * floor.c (TWO_MANT_DIG): Likewise.
66528         * ceil.c (TWO_MANT_DIG): Likewise.
66529         Reported by Ben Pfaff.
66530
66531 2007-10-07  Bruno Haible  <bruno@clisp.org>
66532
66533         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
66534         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
66535         * lib/frexp.c (FUNC): Likewise.
66536         * lib/printf-frexp.h (printf_frexp): Likewise.
66537         * lib/printf-frexpl.h (printf_frexpl): Likewise.
66538         * lib/printf-frexp.c (FUNC): Likewise.
66539         Suggested by Jim Meyering.
66540
66541 2007-10-07  Jim Meyering  <meyering@redhat.com>
66542
66543         Make xnanosleep's integer overflow test more robust.
66544         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
66545         so that gcc-4.3.0 doesn't optimize away this test for overflow.
66546
66547 2007-10-07  Bruno Haible  <bruno@clisp.org>
66548
66549         * NEWS: Mention the license change.
66550
66551         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
66552         abbreviations in the modules files.
66553
66554         Change copyright notice from GPLv2+ to GPLv3+.
66555         * README: Change copyright notice.
66556         * MODULES.html.sh: Likewise.
66557         * build-aux/bootstrap.conf: Likewise.
66558         * build-aux/config.libpath: Likewise.
66559         * build-aux/csharpcomp.sh.in: Likewise.
66560         * build-aux/csharpexec.sh.in: Likewise.
66561         * build-aux/install-reloc: Likewise.
66562         * build-aux/javacomp.sh.in: Likewise.
66563         * build-aux/javaexec.sh.in: Likewise.
66564         * build-aux/ldd.sh.in: Likewise.
66565         * build-aux/reloc-ldflags: Likewise.
66566         * build-aux/relocatable.sh.in: Likewise.
66567         * build-aux/x-to-1.in: Likewise.
66568         * check-module: Likewise.
66569         * config/srclistvars.sh: Likewise.
66570         * gnulib-tool: Likewise.
66571         * lib/acl-internal.h: Likewise.
66572         * lib/acl.c: Likewise.
66573         * lib/acl.h: Likewise.
66574         * lib/acl_entries.c: Likewise.
66575         * lib/areadlink-with-size.c: Likewise.
66576         * lib/areadlink.c: Likewise.
66577         * lib/areadlink.h: Likewise.
66578         * lib/argmatch.c: Likewise.
66579         * lib/argmatch.h: Likewise.
66580         * lib/argp-ba.c: Likewise.
66581         * lib/argp-eexst.c: Likewise.
66582         * lib/argp-fmtstream.c: Likewise.
66583         * lib/argp-fmtstream.h: Likewise.
66584         * lib/argp-fs-xinl.c: Likewise.
66585         * lib/argp-help.c: Likewise.
66586         * lib/argp-namefrob.h: Likewise.
66587         * lib/argp-parse.c: Likewise.
66588         * lib/argp-pin.c: Likewise.
66589         * lib/argp-pv.c: Likewise.
66590         * lib/argp-pvh.c: Likewise.
66591         * lib/argp-xinl.c: Likewise.
66592         * lib/argp.h: Likewise.
66593         * lib/at-func.c: Likewise.
66594         * lib/atanl.c: Likewise.
66595         * lib/backupfile.c: Likewise.
66596         * lib/backupfile.h: Likewise.
66597         * lib/basename.c: Likewise.
66598         * lib/binary-io.h: Likewise.
66599         * lib/byteswap.in.h: Likewise.
66600         * lib/c-stack.c: Likewise.
66601         * lib/c-stack.h: Likewise.
66602         * lib/c-strcasestr.c: Likewise.
66603         * lib/c-strcasestr.h: Likewise.
66604         * lib/c-strstr.c: Likewise.
66605         * lib/c-strstr.h: Likewise.
66606         * lib/c-strtod.c: Likewise.
66607         * lib/calloc.c: Likewise.
66608         * lib/canon-host.c: Likewise.
66609         * lib/canon-host.h: Likewise.
66610         * lib/canonicalize-lgpl.c: Likewise.
66611         * lib/canonicalize.c: Likewise.
66612         * lib/canonicalize.h: Likewise.
66613         * lib/ceil.c: Likewise.
66614         * lib/ceilf.c: Likewise.
66615         * lib/ceill.c: Likewise.
66616         * lib/chdir-long.c: Likewise.
66617         * lib/chdir-long.h: Likewise.
66618         * lib/chdir-safer.c: Likewise.
66619         * lib/chdir-safer.h: Likewise.
66620         * lib/chown.c: Likewise.
66621         * lib/classpath.c: Likewise.
66622         * lib/classpath.h: Likewise.
66623         * lib/clean-temp.c: Likewise.
66624         * lib/clean-temp.h: Likewise.
66625         * lib/cloexec.c: Likewise.
66626         * lib/close-stream.c: Likewise.
66627         * lib/closein.c: Likewise.
66628         * lib/closein.h: Likewise.
66629         * lib/closeout.c: Likewise.
66630         * lib/closeout.h: Likewise.
66631         * lib/concat-filename.c: Likewise.
66632         * lib/copy-file.c: Likewise.
66633         * lib/copy-file.h: Likewise.
66634         * lib/count-one-bits.h: Likewise.
66635         * lib/crc.c: Likewise.
66636         * lib/crc.h: Likewise.
66637         * lib/creat-safer.c: Likewise.
66638         * lib/csharpcomp.c: Likewise.
66639         * lib/csharpcomp.h: Likewise.
66640         * lib/csharpexec.c: Likewise.
66641         * lib/csharpexec.h: Likewise.
66642         * lib/cycle-check.c: Likewise.
66643         * lib/cycle-check.h: Likewise.
66644         * lib/diacrit.c: Likewise.
66645         * lib/diacrit.h: Likewise.
66646         * lib/diffseq.h: Likewise.
66647         * lib/dirchownmod.c: Likewise.
66648         * lib/dirent.in.h: Likewise.
66649         * lib/dirfd.c: Likewise.
66650         * lib/dirfd.h: Likewise.
66651         * lib/dirname.c: Likewise.
66652         * lib/dirname.h: Likewise.
66653         * lib/dummy.c: Likewise.
66654         * lib/dup-safer.c: Likewise.
66655         * lib/dup2.c: Likewise.
66656         * lib/eealloc.h: Likewise.
66657         * lib/error.c: Likewise.
66658         * lib/error.h: Likewise.
66659         * lib/euidaccess.c: Likewise.
66660         * lib/exclude.c: Likewise.
66661         * lib/exclude.h: Likewise.
66662         * lib/execute.c: Likewise.
66663         * lib/execute.h: Likewise.
66664         * lib/exitfail.c: Likewise.
66665         * lib/exitfail.h: Likewise.
66666         * lib/expl.c: Likewise.
66667         * lib/fatal-signal.c: Likewise.
66668         * lib/fatal-signal.h: Likewise.
66669         * lib/fbufmode.c: Likewise.
66670         * lib/fbufmode.h: Likewise.
66671         * lib/fchdir.c: Likewise.
66672         * lib/fchmodat.c: Likewise.
66673         * lib/fchownat.c: Likewise.
66674         * lib/fcntl--.h: Likewise.
66675         * lib/fcntl-safer.h: Likewise.
66676         * lib/fcntl.in.h: Likewise.
66677         * lib/fd-safer.c: Likewise.
66678         * lib/fflush.c: Likewise.
66679         * lib/file-has-acl.c: Likewise.
66680         * lib/file-set.c: Likewise.
66681         * lib/file-type.c: Likewise.
66682         * lib/file-type.h: Likewise.
66683         * lib/fileblocks.c: Likewise.
66684         * lib/filemode.c: Likewise.
66685         * lib/filemode.h: Likewise.
66686         * lib/filename.h: Likewise.
66687         * lib/filenamecat.c: Likewise.
66688         * lib/filenamecat.h: Likewise.
66689         * lib/findprog.c: Likewise.
66690         * lib/findprog.h: Likewise.
66691         * lib/float.in.h: Likewise.
66692         * lib/floor.c: Likewise.
66693         * lib/floorf.c: Likewise.
66694         * lib/floorl.c: Likewise.
66695         * lib/fopen-safer.c: Likewise.
66696         * lib/fopen.c: Likewise.
66697         * lib/fpending.c: Likewise.
66698         * lib/fpending.h: Likewise.
66699         * lib/fprintf.c: Likewise.
66700         * lib/fprintftime.h: Likewise.
66701         * lib/fpucw.h: Likewise.
66702         * lib/fpurge.c: Likewise.
66703         * lib/fpurge.h: Likewise.
66704         * lib/freadable.c: Likewise.
66705         * lib/freadable.h: Likewise.
66706         * lib/freadahead.c: Likewise.
66707         * lib/freadahead.h: Likewise.
66708         * lib/freading.c: Likewise.
66709         * lib/freading.h: Likewise.
66710         * lib/free.c: Likewise.
66711         * lib/freopen.c: Likewise.
66712         * lib/frexp.c: Likewise.
66713         * lib/frexpl.c: Likewise.
66714         * lib/fseek.c: Likewise.
66715         * lib/fseterr.c: Likewise.
66716         * lib/fseterr.h: Likewise.
66717         * lib/fstatat.c: Likewise.
66718         * lib/fstrcmp.c: Likewise.
66719         * lib/fstrcmp.h: Likewise.
66720         * lib/fsusage.c: Likewise.
66721         * lib/fsusage.h: Likewise.
66722         * lib/ftell.c: Likewise.
66723         * lib/ftello.c: Likewise.
66724         * lib/fts-cycle.c: Likewise.
66725         * lib/fts.c: Likewise.
66726         * lib/fts_.h: Likewise.
66727         * lib/full-read.c: Likewise.
66728         * lib/full-read.h: Likewise.
66729         * lib/full-write.c: Likewise.
66730         * lib/full-write.h: Likewise.
66731         * lib/fwritable.c: Likewise.
66732         * lib/fwritable.h: Likewise.
66733         * lib/fwriteerror.c: Likewise.
66734         * lib/fwriteerror.h: Likewise.
66735         * lib/fwriting.c: Likewise.
66736         * lib/fwriting.h: Likewise.
66737         * lib/gcd.c: Likewise.
66738         * lib/gcd.h: Likewise.
66739         * lib/getcwd.c: Likewise.
66740         * lib/getdate.h: Likewise.
66741         * lib/getdate.y: Likewise.
66742         * lib/getdomainname.c: Likewise.
66743         * lib/getdomainname.h: Likewise.
66744         * lib/getgroups.c: Likewise.
66745         * lib/gethostname.c: Likewise.
66746         * lib/gethrxtime.c: Likewise.
66747         * lib/gethrxtime.h: Likewise.
66748         * lib/getloadavg.c: Likewise.
66749         * lib/getndelim2.c: Likewise.
66750         * lib/getndelim2.h: Likewise.
66751         * lib/getnline.c: Likewise.
66752         * lib/getnline.h: Likewise.
66753         * lib/getopt.c: Likewise.
66754         * lib/getopt.in.h: Likewise.
66755         * lib/getopt1.c: Likewise.
66756         * lib/getopt_int.h: Likewise.
66757         * lib/getpagesize.h: Likewise.
66758         * lib/getsubopt.c: Likewise.
66759         * lib/gettime.c: Likewise.
66760         * lib/getugroups.c: Likewise.
66761         * lib/getugroups.h: Likewise.
66762         * lib/getusershell.c: Likewise.
66763         * lib/gl_anyavltree_list1.h: Likewise.
66764         * lib/gl_anyavltree_list2.h: Likewise.
66765         * lib/gl_anyhash_list1.h: Likewise.
66766         * lib/gl_anyhash_list2.h: Likewise.
66767         * lib/gl_anylinked_list1.h: Likewise.
66768         * lib/gl_anylinked_list2.h: Likewise.
66769         * lib/gl_anyrbtree_list1.h: Likewise.
66770         * lib/gl_anyrbtree_list2.h: Likewise.
66771         * lib/gl_anytree_list1.h: Likewise.
66772         * lib/gl_anytree_list2.h: Likewise.
66773         * lib/gl_anytree_oset.h: Likewise.
66774         * lib/gl_anytreehash_list1.h: Likewise.
66775         * lib/gl_anytreehash_list2.h: Likewise.
66776         * lib/gl_array_list.c: Likewise.
66777         * lib/gl_array_list.h: Likewise.
66778         * lib/gl_array_oset.c: Likewise.
66779         * lib/gl_array_oset.h: Likewise.
66780         * lib/gl_avltree_list.c: Likewise.
66781         * lib/gl_avltree_list.h: Likewise.
66782         * lib/gl_avltree_oset.c: Likewise.
66783         * lib/gl_avltree_oset.h: Likewise.
66784         * lib/gl_avltreehash_list.c: Likewise.
66785         * lib/gl_avltreehash_list.h: Likewise.
66786         * lib/gl_carray_list.c: Likewise.
66787         * lib/gl_carray_list.h: Likewise.
66788         * lib/gl_linked_list.c: Likewise.
66789         * lib/gl_linked_list.h: Likewise.
66790         * lib/gl_linkedhash_list.c: Likewise.
66791         * lib/gl_linkedhash_list.h: Likewise.
66792         * lib/gl_list.c: Likewise.
66793         * lib/gl_list.h: Likewise.
66794         * lib/gl_oset.c: Likewise.
66795         * lib/gl_oset.h: Likewise.
66796         * lib/gl_rbtree_list.c: Likewise.
66797         * lib/gl_rbtree_list.h: Likewise.
66798         * lib/gl_rbtree_oset.c: Likewise.
66799         * lib/gl_rbtree_oset.h: Likewise.
66800         * lib/gl_rbtreehash_list.c: Likewise.
66801         * lib/gl_rbtreehash_list.h: Likewise.
66802         * lib/gl_sublist.c: Likewise.
66803         * lib/gl_sublist.h: Likewise.
66804         * lib/group-member.c: Likewise.
66805         * lib/group-member.h: Likewise.
66806         * lib/hard-locale.c: Likewise.
66807         * lib/hard-locale.h: Likewise.
66808         * lib/hash-pjw.c: Likewise.
66809         * lib/hash-pjw.h: Likewise.
66810         * lib/hash-triple.c: Likewise.
66811         * lib/hash.c: Likewise.
66812         * lib/hash.h: Likewise.
66813         * lib/human.c: Likewise.
66814         * lib/human.h: Likewise.
66815         * lib/i-ring.c: Likewise.
66816         * lib/i-ring.h: Likewise.
66817         * lib/idcache.c: Likewise.
66818         * lib/imaxabs.c: Likewise.
66819         * lib/imaxdiv.c: Likewise.
66820         * lib/inet_pton.c: Likewise.
66821         * lib/inet_pton.h: Likewise.
66822         * lib/intprops.h: Likewise.
66823         * lib/inttostr.c: Likewise.
66824         * lib/inttostr.h: Likewise.
66825         * lib/inttypes.in.h: Likewise.
66826         * lib/isapipe.c: Likewise.
66827         * lib/isdir.c: Likewise.
66828         * lib/isnan.c: Likewise.
66829         * lib/isnan.h: Likewise.
66830         * lib/isnanf.c: Likewise.
66831         * lib/isnanf.h: Likewise.
66832         * lib/isnanl-nolibm.h: Likewise.
66833         * lib/isnanl.c: Likewise.
66834         * lib/isnanl.h: Likewise.
66835         * lib/javacomp.c: Likewise.
66836         * lib/javacomp.h: Likewise.
66837         * lib/javaexec.c: Likewise.
66838         * lib/javaexec.h: Likewise.
66839         * lib/javaversion.c: Likewise.
66840         * lib/javaversion.h: Likewise.
66841         * lib/javaversion.java: Likewise.
66842         * lib/lbrkprop.h: Likewise.
66843         * lib/lchmod.h: Likewise.
66844         * lib/lchown.c: Likewise.
66845         * lib/ldexpl.c: Likewise.
66846         * lib/linebreak.c: Likewise.
66847         * lib/linebreak.h: Likewise.
66848         * lib/linebuffer.c: Likewise.
66849         * lib/linebuffer.h: Likewise.
66850         * lib/locale.in.h: Likewise.
66851         * lib/logl.c: Likewise.
66852         * lib/long-options.c: Likewise.
66853         * lib/long-options.h: Likewise.
66854         * lib/lstat.c: Likewise.
66855         * lib/lstat.h: Likewise.
66856         * lib/math.in.h: Likewise.
66857         * lib/mbchar.c: Likewise.
66858         * lib/mbchar.h: Likewise.
66859         * lib/mbfile.h: Likewise.
66860         * lib/mbiter.h: Likewise.
66861         * lib/mbscasecmp.c: Likewise.
66862         * lib/mbscasestr.c: Likewise.
66863         * lib/mbschr.c: Likewise.
66864         * lib/mbscspn.c: Likewise.
66865         * lib/mbslen.c: Likewise.
66866         * lib/mbsncasecmp.c: Likewise.
66867         * lib/mbsnlen.c: Likewise.
66868         * lib/mbspbrk.c: Likewise.
66869         * lib/mbspcasecmp.c: Likewise.
66870         * lib/mbsrchr.c: Likewise.
66871         * lib/mbssep.c: Likewise.
66872         * lib/mbsspn.c: Likewise.
66873         * lib/mbsstr.c: Likewise.
66874         * lib/mbstok_r.c: Likewise.
66875         * lib/mbswidth.c: Likewise.
66876         * lib/mbswidth.h: Likewise.
66877         * lib/mbuiter.h: Likewise.
66878         * lib/memcasecmp.c: Likewise.
66879         * lib/memcasecmp.h: Likewise.
66880         * lib/memchr.c: Likewise.
66881         * lib/memcmp.c: Likewise.
66882         * lib/memcoll.c: Likewise.
66883         * lib/memcoll.h: Likewise.
66884         * lib/memcpy.c: Likewise.
66885         * lib/memrchr.c: Likewise.
66886         * lib/mkancesdirs.c: Likewise.
66887         * lib/mkdir-p.c: Likewise.
66888         * lib/mkdir-p.h: Likewise.
66889         * lib/mkdir.c: Likewise.
66890         * lib/mkdirat.c: Likewise.
66891         * lib/mkdtemp.c: Likewise.
66892         * lib/mkstemp-safer.c: Likewise.
66893         * lib/mkstemp.c: Likewise.
66894         * lib/modechange.c: Likewise.
66895         * lib/modechange.h: Likewise.
66896         * lib/mountlist.c: Likewise.
66897         * lib/mountlist.h: Likewise.
66898         * lib/mpsort.c: Likewise.
66899         * lib/nanosleep.c: Likewise.
66900         * lib/obstack.c: Likewise.
66901         * lib/obstack.h: Likewise.
66902         * lib/open-safer.c: Likewise.
66903         * lib/open.c: Likewise.
66904         * lib/openat-die.c: Likewise.
66905         * lib/openat-priv.h: Likewise.
66906         * lib/openat-proc.c: Likewise.
66907         * lib/openat.c: Likewise.
66908         * lib/openat.h: Likewise.
66909         * lib/pagealign_alloc.c: Likewise.
66910         * lib/pagealign_alloc.h: Likewise.
66911         * lib/physmem.c: Likewise.
66912         * lib/physmem.h: Likewise.
66913         * lib/pipe-safer.c: Likewise.
66914         * lib/pipe.c: Likewise.
66915         * lib/pipe.h: Likewise.
66916         * lib/posixtm.c: Likewise.
66917         * lib/posixtm.h: Likewise.
66918         * lib/posixver.c: Likewise.
66919         * lib/printf-frexp.c: Likewise.
66920         * lib/printf-frexp.h: Likewise.
66921         * lib/printf-frexpl.c: Likewise.
66922         * lib/printf-frexpl.h: Likewise.
66923         * lib/printf.c: Likewise.
66924         * lib/progname.c: Likewise.
66925         * lib/progname.h: Likewise.
66926         * lib/progreloc.c: Likewise.
66927         * lib/putenv.c: Likewise.
66928         * lib/quote.c: Likewise.
66929         * lib/quote.h: Likewise.
66930         * lib/quotearg.c: Likewise.
66931         * lib/quotearg.h: Likewise.
66932         * lib/raise.c: Likewise.
66933         * lib/readline.c: Likewise.
66934         * lib/readline.h: Likewise.
66935         * lib/readlink.c: Likewise.
66936         * lib/readtokens.c: Likewise.
66937         * lib/readtokens.h: Likewise.
66938         * lib/readtokens0.c: Likewise.
66939         * lib/readtokens0.h: Likewise.
66940         * lib/readutmp.c: Likewise.
66941         * lib/readutmp.h: Likewise.
66942         * lib/realloc.c: Likewise.
66943         * lib/relocwrapper.c: Likewise.
66944         * lib/rename-dest-slash.c: Likewise.
66945         * lib/rename.c: Likewise.
66946         * lib/rmdir.c: Likewise.
66947         * lib/rpmatch.c: Likewise.
66948         * lib/safe-read.c: Likewise.
66949         * lib/safe-read.h: Likewise.
66950         * lib/safe-write.c: Likewise.
66951         * lib/safe-write.h: Likewise.
66952         * lib/same-inode.h: Likewise.
66953         * lib/same.c: Likewise.
66954         * lib/same.h: Likewise.
66955         * lib/save-cwd.c: Likewise.
66956         * lib/save-cwd.h: Likewise.
66957         * lib/savedir.c: Likewise.
66958         * lib/savedir.h: Likewise.
66959         * lib/savewd.c: Likewise.
66960         * lib/savewd.h: Likewise.
66961         * lib/search.in.h: Likewise.
66962         * lib/setenv.c: Likewise.
66963         * lib/setenv.h: Likewise.
66964         * lib/settime.c: Likewise.
66965         * lib/sh-quote.c: Likewise.
66966         * lib/sh-quote.h: Likewise.
66967         * lib/sig2str.c: Likewise.
66968         * lib/sig2str.h: Likewise.
66969         * lib/signal.in.h: Likewise.
66970         * lib/signbitd.c: Likewise.
66971         * lib/signbitf.c: Likewise.
66972         * lib/signbitl.c: Likewise.
66973         * lib/sigprocmask.c: Likewise.
66974         * lib/sincosl.c: Likewise.
66975         * lib/sleep.c: Likewise.
66976         * lib/sprintf.c: Likewise.
66977         * lib/sqrtl.c: Likewise.
66978         * lib/stat-time.h: Likewise.
66979         * lib/stdio--.h: Likewise.
66980         * lib/stdio-safer.h: Likewise.
66981         * lib/stdlib--.h: Likewise.
66982         * lib/stdlib-safer.h: Likewise.
66983         * lib/stdlib.in.h: Likewise.
66984         * lib/stpcpy.c: Likewise.
66985         * lib/stpncpy.c: Likewise.
66986         * lib/strchrnul.c: Likewise.
66987         * lib/strcspn.c: Likewise.
66988         * lib/strerror.c: Likewise.
66989         * lib/strftime.c: Likewise.
66990         * lib/strftime.h: Likewise.
66991         * lib/striconveh.c: Likewise.
66992         * lib/striconveh.h: Likewise.
66993         * lib/striconveha.c: Likewise.
66994         * lib/striconveha.h: Likewise.
66995         * lib/stripslash.c: Likewise.
66996         * lib/strnlen1.c: Likewise.
66997         * lib/strnlen1.h: Likewise.
66998         * lib/strtod.c: Likewise.
66999         * lib/strtoimax.c: Likewise.
67000         * lib/strtok_r.c: Likewise.
67001         * lib/strtol.c: Likewise.
67002         * lib/strtoll.c: Likewise.
67003         * lib/strtoul.c: Likewise.
67004         * lib/strtoull.c: Likewise.
67005         * lib/sysexits.in.h: Likewise.
67006         * lib/tempname.c: Likewise.
67007         * lib/tempname.h: Likewise.
67008         * lib/timespec.h: Likewise.
67009         * lib/tls.c: Likewise.
67010         * lib/tls.h: Likewise.
67011         * lib/tmpdir.c: Likewise.
67012         * lib/tmpdir.h: Likewise.
67013         * lib/tmpfile-safer.c: Likewise.
67014         * lib/tmpfile.c: Likewise.
67015         * lib/trigl.c: Likewise.
67016         * lib/trigl.h: Likewise.
67017         * lib/trim.c: Likewise.
67018         * lib/trim.h: Likewise.
67019         * lib/trunc.c: Likewise.
67020         * lib/truncf.c: Likewise.
67021         * lib/truncl.c: Likewise.
67022         * lib/tsearch.c: Likewise.
67023         * lib/unicodeio.c: Likewise.
67024         * lib/unicodeio.h: Likewise.
67025         * lib/unistd--.h: Likewise.
67026         * lib/unistd-safer.h: Likewise.
67027         * lib/unistdio/ulc-fprintf.c: Likewise.
67028         * lib/unistdio/ulc-vfprintf.c: Likewise.
67029         * lib/unlinkdir.c: Likewise.
67030         * lib/unlinkdir.h: Likewise.
67031         * lib/unlocked-io.h: Likewise.
67032         * lib/unsetenv.c: Likewise.
67033         * lib/userspec.c: Likewise.
67034         * lib/utime.c: Likewise.
67035         * lib/utimecmp.c: Likewise.
67036         * lib/utimecmp.h: Likewise.
67037         * lib/utimens.c: Likewise.
67038         * lib/verify.h: Likewise.
67039         * lib/verror.c: Likewise.
67040         * lib/verror.h: Likewise.
67041         * lib/version-etc-fsf.c: Likewise.
67042         * lib/version-etc.c: Likewise.
67043         * lib/version-etc.h: Likewise.
67044         * lib/vfprintf.c: Likewise.
67045         * lib/vprintf.c: Likewise.
67046         * lib/vsprintf.c: Likewise.
67047         * lib/w32spawn.h: Likewise.
67048         * lib/wait-process.c: Likewise.
67049         * lib/wait-process.h: Likewise.
67050         * lib/wcwidth.c: Likewise.
67051         * lib/write-any-file.c: Likewise.
67052         * lib/xalloc-die.c: Likewise.
67053         * lib/xalloc.h: Likewise.
67054         * lib/xasprintf.c: Likewise.
67055         * lib/xgetcwd.c: Likewise.
67056         * lib/xgetcwd.h: Likewise.
67057         * lib/xgetdomainname.c: Likewise.
67058         * lib/xgetdomainname.h: Likewise.
67059         * lib/xgethostname.c: Likewise.
67060         * lib/xmalloc.c: Likewise.
67061         * lib/xmalloca.c: Likewise.
67062         * lib/xmalloca.h: Likewise.
67063         * lib/xmemcoll.c: Likewise.
67064         * lib/xnanosleep.c: Likewise.
67065         * lib/xreadlink.c: Likewise.
67066         * lib/xreadlink.h: Likewise.
67067         * lib/xsetenv.c: Likewise.
67068         * lib/xsetenv.h: Likewise.
67069         * lib/xstriconv.c: Likewise.
67070         * lib/xstriconv.h: Likewise.
67071         * lib/xstrndup.c: Likewise.
67072         * lib/xstrndup.h: Likewise.
67073         * lib/xstrtod.c: Likewise.
67074         * lib/xstrtod.h: Likewise.
67075         * lib/xstrtol-error.c: Likewise.
67076         * lib/xstrtol.c: Likewise.
67077         * lib/xstrtol.h: Likewise.
67078         * lib/xtime.h: Likewise.
67079         * lib/xvasprintf.c: Likewise.
67080         * lib/xvasprintf.h: Likewise.
67081         * lib/yesno.c: Likewise.
67082         * lib/yesno.h: Likewise.
67083         * posix-modules: Likewise.
67084         * tests/test-alloca-opt.c: Likewise.
67085         * tests/test-arcfour.c: Likewise.
67086         * tests/test-arctwo.c: Likewise.
67087         * tests/test-argmatch.c: Likewise.
67088         * tests/test-argp-2.sh: Likewise.
67089         * tests/test-argp.c: Likewise.
67090         * tests/test-arpa_inet.c: Likewise.
67091         * tests/test-array_list.c: Likewise.
67092         * tests/test-array_oset.c: Likewise.
67093         * tests/test-atexit.c: Likewise.
67094         * tests/test-avltree_list.c: Likewise.
67095         * tests/test-avltree_oset.c: Likewise.
67096         * tests/test-avltreehash_list.c: Likewise.
67097         * tests/test-base64.c: Likewise.
67098         * tests/test-binary-io.c: Likewise.
67099         * tests/test-byteswap.c: Likewise.
67100         * tests/test-c-ctype.c: Likewise.
67101         * tests/test-c-strcasecmp.c: Likewise.
67102         * tests/test-c-strcasestr.c: Likewise.
67103         * tests/test-c-strncasecmp.c: Likewise.
67104         * tests/test-c-strstr.c: Likewise.
67105         * tests/test-canonicalize-lgpl.c: Likewise.
67106         * tests/test-canonicalize.c: Likewise.
67107         * tests/test-carray_list.c: Likewise.
67108         * tests/test-ceilf.c: Likewise.
67109         * tests/test-ceill.c: Likewise.
67110         * tests/test-count-one-bits.c: Likewise.
67111         * tests/test-crc.c: Likewise.
67112         * tests/test-dirname.c: Likewise.
67113         * tests/test-fbufmode.c: Likewise.
67114         * tests/test-fcntl.c: Likewise.
67115         * tests/test-fflush.c: Likewise.
67116         * tests/test-floorf.c: Likewise.
67117         * tests/test-floorl.c: Likewise.
67118         * tests/test-fopen.c: Likewise.
67119         * tests/test-fprintf-posix.c: Likewise.
67120         * tests/test-fprintf-posix.h: Likewise.
67121         * tests/test-fpurge.c: Likewise.
67122         * tests/test-freadable.c: Likewise.
67123         * tests/test-freadahead.c: Likewise.
67124         * tests/test-freading.c: Likewise.
67125         * tests/test-freopen.c: Likewise.
67126         * tests/test-frexp.c: Likewise.
67127         * tests/test-frexpl.c: Likewise.
67128         * tests/test-fseek.c: Likewise.
67129         * tests/test-fseeko.c: Likewise.
67130         * tests/test-fseterr.c: Likewise.
67131         * tests/test-fstrcmp.c: Likewise.
67132         * tests/test-ftell.c: Likewise.
67133         * tests/test-ftello.c: Likewise.
67134         * tests/test-fwritable.c: Likewise.
67135         * tests/test-fwriting.c: Likewise.
67136         * tests/test-getaddrinfo.c: Likewise.
67137         * tests/test-getpass.c: Likewise.
67138         * tests/test-gettimeofday.c: Likewise.
67139         * tests/test-hmac-md5.c: Likewise.
67140         * tests/test-hmac-sha1.c: Likewise.
67141         * tests/test-iconv.c: Likewise.
67142         * tests/test-iconvme.c: Likewise.
67143         * tests/test-inttypes.c: Likewise.
67144         * tests/test-isnan.c: Likewise.
67145         * tests/test-isnanf.c: Likewise.
67146         * tests/test-isnanl-nolibm.c: Likewise.
67147         * tests/test-isnanl.c: Likewise.
67148         * tests/test-isnanl.h: Likewise.
67149         * tests/test-ldexpl.c: Likewise.
67150         * tests/test-linked_list.c: Likewise.
67151         * tests/test-linkedhash_list.c: Likewise.
67152         * tests/test-locale.c: Likewise.
67153         * tests/test-localename.c: Likewise.
67154         * tests/test-lock.c: Likewise.
67155         * tests/test-lseek.c: Likewise.
67156         * tests/test-malloca.c: Likewise.
67157         * tests/test-math.c: Likewise.
67158         * tests/test-mbscasecmp.c: Likewise.
67159         * tests/test-mbscasestr1.c: Likewise.
67160         * tests/test-mbscasestr2.c: Likewise.
67161         * tests/test-mbscasestr3.c: Likewise.
67162         * tests/test-mbscasestr4.c: Likewise.
67163         * tests/test-mbschr.c: Likewise.
67164         * tests/test-mbscspn.c: Likewise.
67165         * tests/test-mbsncasecmp.c: Likewise.
67166         * tests/test-mbspbrk.c: Likewise.
67167         * tests/test-mbspcasecmp.c: Likewise.
67168         * tests/test-mbsrchr.c: Likewise.
67169         * tests/test-mbsspn.c: Likewise.
67170         * tests/test-mbsstr1.c: Likewise.
67171         * tests/test-mbsstr2.c: Likewise.
67172         * tests/test-mbsstr3.c: Likewise.
67173         * tests/test-md5.c: Likewise.
67174         * tests/test-memmem.c: Likewise.
67175         * tests/test-netinet_in.c: Likewise.
67176         * tests/test-open.c: Likewise.
67177         * tests/test-printf-frexp.c: Likewise.
67178         * tests/test-printf-frexpl.c: Likewise.
67179         * tests/test-printf-posix.c: Likewise.
67180         * tests/test-printf-posix.h: Likewise.
67181         * tests/test-rbtree_list.c: Likewise.
67182         * tests/test-rbtree_oset.c: Likewise.
67183         * tests/test-rbtreehash_list.c: Likewise.
67184         * tests/test-read-file.c: Likewise.
67185         * tests/test-rijndael.c: Likewise.
67186         * tests/test-search.c: Likewise.
67187         * tests/test-signbit.c: Likewise.
67188         * tests/test-sleep.c: Likewise.
67189         * tests/test-snprintf-posix.c: Likewise.
67190         * tests/test-snprintf-posix.h: Likewise.
67191         * tests/test-snprintf.c: Likewise.
67192         * tests/test-sprintf-posix.c: Likewise.
67193         * tests/test-sprintf-posix.h: Likewise.
67194         * tests/test-stat-time.c: Likewise.
67195         * tests/test-stdbool.c: Likewise.
67196         * tests/test-stdint.c: Likewise.
67197         * tests/test-stdio.c: Likewise.
67198         * tests/test-stdlib.c: Likewise.
67199         * tests/test-stpncpy.c: Likewise.
67200         * tests/test-strcasestr.c: Likewise.
67201         * tests/test-striconv.c: Likewise.
67202         * tests/test-striconveh.c: Likewise.
67203         * tests/test-striconveha.c: Likewise.
67204         * tests/test-string.c: Likewise.
67205         * tests/test-sys_select.c: Likewise.
67206         * tests/test-sys_socket.c: Likewise.
67207         * tests/test-sys_stat.c: Likewise.
67208         * tests/test-sys_time.c: Likewise.
67209         * tests/test-sysexits.c: Likewise.
67210         * tests/test-time.c: Likewise.
67211         * tests/test-tls.c: Likewise.
67212         * tests/test-trunc.c: Likewise.
67213         * tests/test-truncf.c: Likewise.
67214         * tests/test-truncl.c: Likewise.
67215         * tests/test-unistd.c: Likewise.
67216         * tests/test-vasnprintf-posix.c: Likewise.
67217         * tests/test-vasnprintf-posix2.c: Likewise.
67218         * tests/test-vasnprintf.c: Likewise.
67219         * tests/test-vasprintf-posix.c: Likewise.
67220         * tests/test-vasprintf.c: Likewise.
67221         * tests/test-verify.c: Likewise.
67222         * tests/test-vfprintf-posix.c: Likewise.
67223         * tests/test-vprintf-posix.c: Likewise.
67224         * tests/test-vsnprintf-posix.c: Likewise.
67225         * tests/test-vsnprintf.c: Likewise.
67226         * tests/test-vsprintf-posix.c: Likewise.
67227         * tests/test-wchar.c: Likewise.
67228         * tests/test-wctype.c: Likewise.
67229         * tests/test-wcwidth.c: Likewise.
67230         * tests/test-xstrtol.c: Likewise.
67231         * tests/test-xvasprintf.c: Likewise.
67232         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
67233         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
67234         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
67235         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
67236         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
67237         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
67238         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
67239         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
67240         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
67241         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
67242         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
67243         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
67244         * tests/uniname/test-uninames.c: Likewise.
67245         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
67246         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
67247         * tests/unistdio/test-u16-printf1.h: Likewise.
67248         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
67249         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
67250         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
67251         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
67252         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
67253         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
67254         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
67255         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
67256         * tests/unistdio/test-u32-printf1.h: Likewise.
67257         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
67258         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
67259         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
67260         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
67261         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
67262         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
67263         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
67264         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
67265         * tests/unistdio/test-u8-printf1.h: Likewise.
67266         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
67267         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
67268         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
67269         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
67270         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
67271         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
67272         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
67273         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
67274         * tests/unistdio/test-ulc-printf1.h: Likewise.
67275         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
67276         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
67277         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
67278         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
67279         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
67280         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
67281         * tests/uniwidth/test-u16-strwidth.c: Likewise.
67282         * tests/uniwidth/test-u16-width.c: Likewise.
67283         * tests/uniwidth/test-u32-strwidth.c: Likewise.
67284         * tests/uniwidth/test-u32-width.c: Likewise.
67285         * tests/uniwidth/test-u8-strwidth.c: Likewise.
67286         * tests/uniwidth/test-u8-width.c: Likewise.
67287         * tests/uniwidth/test-uc_width.c: Likewise.
67288         * config/srclist-update: Likewise.
67289         (fixlicense): Update to GPLv3+.
67290
67291         Change copyright notice from LGPLv2.1+ to LGPLv3+.
67292         * tests/test-tsearch.c: Change copyright notice.
67293
67294         Change copyright notice from LGPLv2.0+ to LGPLv3+.
67295         * lib/c-strcaseeq.h: Change copyright notice.
67296         * lib/streq.h: Likewise.
67297         * lib/uniconv.h: Likewise.
67298         * lib/uniconv/u-conv-from-enc.h: Likewise.
67299         * lib/uniconv/u-conv-to-enc.h: Likewise.
67300         * lib/uniconv/u-strconv-from-enc.h: Likewise.
67301         * lib/uniconv/u-strconv-to-enc.h: Likewise.
67302         * lib/uniconv/u16-conv-from-enc.c: Likewise.
67303         * lib/uniconv/u16-conv-to-enc.c: Likewise.
67304         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
67305         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
67306         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
67307         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
67308         * lib/uniconv/u32-conv-from-enc.c: Likewise.
67309         * lib/uniconv/u32-conv-to-enc.c: Likewise.
67310         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
67311         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
67312         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
67313         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
67314         * lib/uniconv/u8-conv-from-enc.c: Likewise.
67315         * lib/uniconv/u8-conv-to-enc.c: Likewise.
67316         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
67317         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
67318         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
67319         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
67320         * lib/uniname.h: Likewise.
67321         * lib/uniname/uniname.c: Likewise.
67322         * lib/unistdio.h: Likewise.
67323         * lib/unistdio/u-asnprintf.h: Likewise.
67324         * lib/unistdio/u-asprintf.h: Likewise.
67325         * lib/unistdio/u-printf-args.c: Likewise.
67326         * lib/unistdio/u-printf-args.h: Likewise.
67327         * lib/unistdio/u-printf-parse.h: Likewise.
67328         * lib/unistdio/u-snprintf.h: Likewise.
67329         * lib/unistdio/u-sprintf.h: Likewise.
67330         * lib/unistdio/u-vasprintf.h: Likewise.
67331         * lib/unistdio/u-vsnprintf.h: Likewise.
67332         * lib/unistdio/u-vsprintf.h: Likewise.
67333         * lib/unistdio/u16-asnprintf.c: Likewise.
67334         * lib/unistdio/u16-asprintf.c: Likewise.
67335         * lib/unistdio/u16-printf-parse.c: Likewise.
67336         * lib/unistdio/u16-snprintf.c: Likewise.
67337         * lib/unistdio/u16-sprintf.c: Likewise.
67338         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
67339         * lib/unistdio/u16-u16-asprintf.c: Likewise.
67340         * lib/unistdio/u16-u16-snprintf.c: Likewise.
67341         * lib/unistdio/u16-u16-sprintf.c: Likewise.
67342         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
67343         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
67344         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
67345         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
67346         * lib/unistdio/u16-vasnprintf.c: Likewise.
67347         * lib/unistdio/u16-vasprintf.c: Likewise.
67348         * lib/unistdio/u16-vsnprintf.c: Likewise.
67349         * lib/unistdio/u16-vsprintf.c: Likewise.
67350         * lib/unistdio/u32-asnprintf.c: Likewise.
67351         * lib/unistdio/u32-asprintf.c: Likewise.
67352         * lib/unistdio/u32-printf-parse.c: Likewise.
67353         * lib/unistdio/u32-snprintf.c: Likewise.
67354         * lib/unistdio/u32-sprintf.c: Likewise.
67355         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
67356         * lib/unistdio/u32-u32-asprintf.c: Likewise.
67357         * lib/unistdio/u32-u32-snprintf.c: Likewise.
67358         * lib/unistdio/u32-u32-sprintf.c: Likewise.
67359         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
67360         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
67361         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
67362         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
67363         * lib/unistdio/u32-vasnprintf.c: Likewise.
67364         * lib/unistdio/u32-vasprintf.c: Likewise.
67365         * lib/unistdio/u32-vsnprintf.c: Likewise.
67366         * lib/unistdio/u32-vsprintf.c: Likewise.
67367         * lib/unistdio/u8-asnprintf.c: Likewise.
67368         * lib/unistdio/u8-asprintf.c: Likewise.
67369         * lib/unistdio/u8-printf-parse.c: Likewise.
67370         * lib/unistdio/u8-snprintf.c: Likewise.
67371         * lib/unistdio/u8-sprintf.c: Likewise.
67372         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
67373         * lib/unistdio/u8-u8-asprintf.c: Likewise.
67374         * lib/unistdio/u8-u8-snprintf.c: Likewise.
67375         * lib/unistdio/u8-u8-sprintf.c: Likewise.
67376         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
67377         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
67378         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
67379         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
67380         * lib/unistdio/u8-vasnprintf.c: Likewise.
67381         * lib/unistdio/u8-vasprintf.c: Likewise.
67382         * lib/unistdio/u8-vsnprintf.c: Likewise.
67383         * lib/unistdio/u8-vsprintf.c: Likewise.
67384         * lib/unistdio/ulc-asnprintf.c: Likewise.
67385         * lib/unistdio/ulc-asprintf.c: Likewise.
67386         * lib/unistdio/ulc-printf-parse.c: Likewise.
67387         * lib/unistdio/ulc-snprintf.c: Likewise.
67388         * lib/unistdio/ulc-sprintf.c: Likewise.
67389         * lib/unistdio/ulc-vasnprintf.c: Likewise.
67390         * lib/unistdio/ulc-vasprintf.c: Likewise.
67391         * lib/unistdio/ulc-vsnprintf.c: Likewise.
67392         * lib/unistdio/ulc-vsprintf.c: Likewise.
67393         * lib/unistr.h: Likewise.
67394         * lib/unistr/u-cpy-alloc.h: Likewise.
67395         * lib/unistr/u-cpy.h: Likewise.
67396         * lib/unistr/u-endswith.h: Likewise.
67397         * lib/unistr/u-move.h: Likewise.
67398         * lib/unistr/u-set.h: Likewise.
67399         * lib/unistr/u-startswith.h: Likewise.
67400         * lib/unistr/u-stpcpy.h: Likewise.
67401         * lib/unistr/u-stpncpy.h: Likewise.
67402         * lib/unistr/u-strcat.h: Likewise.
67403         * lib/unistr/u-strcpy.h: Likewise.
67404         * lib/unistr/u-strcspn.h: Likewise.
67405         * lib/unistr/u-strdup.h: Likewise.
67406         * lib/unistr/u-strlen.h: Likewise.
67407         * lib/unistr/u-strncat.h: Likewise.
67408         * lib/unistr/u-strncpy.h: Likewise.
67409         * lib/unistr/u-strnlen.h: Likewise.
67410         * lib/unistr/u-strpbrk.h: Likewise.
67411         * lib/unistr/u-strspn.h: Likewise.
67412         * lib/unistr/u-strstr.h: Likewise.
67413         * lib/unistr/u-strtok.h: Likewise.
67414         * lib/unistr/u16-check.c: Likewise.
67415         * lib/unistr/u16-chr.c: Likewise.
67416         * lib/unistr/u16-cmp.c: Likewise.
67417         * lib/unistr/u16-cpy-alloc.c: Likewise.
67418         * lib/unistr/u16-cpy.c: Likewise.
67419         * lib/unistr/u16-endswith.c: Likewise.
67420         * lib/unistr/u16-mblen.c: Likewise.
67421         * lib/unistr/u16-mbsnlen.c: Likewise.
67422         * lib/unistr/u16-mbtouc-aux.c: Likewise.
67423         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
67424         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
67425         * lib/unistr/u16-mbtouc.c: Likewise.
67426         * lib/unistr/u16-mbtoucr.c: Likewise.
67427         * lib/unistr/u16-move.c: Likewise.
67428         * lib/unistr/u16-next.c: Likewise.
67429         * lib/unistr/u16-prev.c: Likewise.
67430         * lib/unistr/u16-set.c: Likewise.
67431         * lib/unistr/u16-startswith.c: Likewise.
67432         * lib/unistr/u16-stpcpy.c: Likewise.
67433         * lib/unistr/u16-stpncpy.c: Likewise.
67434         * lib/unistr/u16-strcat.c: Likewise.
67435         * lib/unistr/u16-strchr.c: Likewise.
67436         * lib/unistr/u16-strcmp.c: Likewise.
67437         * lib/unistr/u16-strcpy.c: Likewise.
67438         * lib/unistr/u16-strcspn.c: Likewise.
67439         * lib/unistr/u16-strdup.c: Likewise.
67440         * lib/unistr/u16-strlen.c: Likewise.
67441         * lib/unistr/u16-strmblen.c: Likewise.
67442         * lib/unistr/u16-strmbtouc.c: Likewise.
67443         * lib/unistr/u16-strncat.c: Likewise.
67444         * lib/unistr/u16-strncmp.c: Likewise.
67445         * lib/unistr/u16-strncpy.c: Likewise.
67446         * lib/unistr/u16-strnlen.c: Likewise.
67447         * lib/unistr/u16-strpbrk.c: Likewise.
67448         * lib/unistr/u16-strrchr.c: Likewise.
67449         * lib/unistr/u16-strspn.c: Likewise.
67450         * lib/unistr/u16-strstr.c: Likewise.
67451         * lib/unistr/u16-strtok.c: Likewise.
67452         * lib/unistr/u16-to-u32.c: Likewise.
67453         * lib/unistr/u16-to-u8.c: Likewise.
67454         * lib/unistr/u16-uctomb-aux.c: Likewise.
67455         * lib/unistr/u16-uctomb.c: Likewise.
67456         * lib/unistr/u32-check.c: Likewise.
67457         * lib/unistr/u32-chr.c: Likewise.
67458         * lib/unistr/u32-cmp.c: Likewise.
67459         * lib/unistr/u32-cpy-alloc.c: Likewise.
67460         * lib/unistr/u32-cpy.c: Likewise.
67461         * lib/unistr/u32-endswith.c: Likewise.
67462         * lib/unistr/u32-mblen.c: Likewise.
67463         * lib/unistr/u32-mbsnlen.c: Likewise.
67464         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
67465         * lib/unistr/u32-mbtouc.c: Likewise.
67466         * lib/unistr/u32-mbtoucr.c: Likewise.
67467         * lib/unistr/u32-move.c: Likewise.
67468         * lib/unistr/u32-next.c: Likewise.
67469         * lib/unistr/u32-prev.c: Likewise.
67470         * lib/unistr/u32-set.c: Likewise.
67471         * lib/unistr/u32-startswith.c: Likewise.
67472         * lib/unistr/u32-stpcpy.c: Likewise.
67473         * lib/unistr/u32-stpncpy.c: Likewise.
67474         * lib/unistr/u32-strcat.c: Likewise.
67475         * lib/unistr/u32-strchr.c: Likewise.
67476         * lib/unistr/u32-strcmp.c: Likewise.
67477         * lib/unistr/u32-strcpy.c: Likewise.
67478         * lib/unistr/u32-strcspn.c: Likewise.
67479         * lib/unistr/u32-strdup.c: Likewise.
67480         * lib/unistr/u32-strlen.c: Likewise.
67481         * lib/unistr/u32-strmblen.c: Likewise.
67482         * lib/unistr/u32-strmbtouc.c: Likewise.
67483         * lib/unistr/u32-strncat.c: Likewise.
67484         * lib/unistr/u32-strncmp.c: Likewise.
67485         * lib/unistr/u32-strncpy.c: Likewise.
67486         * lib/unistr/u32-strnlen.c: Likewise.
67487         * lib/unistr/u32-strpbrk.c: Likewise.
67488         * lib/unistr/u32-strrchr.c: Likewise.
67489         * lib/unistr/u32-strspn.c: Likewise.
67490         * lib/unistr/u32-strstr.c: Likewise.
67491         * lib/unistr/u32-strtok.c: Likewise.
67492         * lib/unistr/u32-to-u16.c: Likewise.
67493         * lib/unistr/u32-to-u8.c: Likewise.
67494         * lib/unistr/u32-uctomb.c: Likewise.
67495         * lib/unistr/u8-check.c: Likewise.
67496         * lib/unistr/u8-chr.c: Likewise.
67497         * lib/unistr/u8-cmp.c: Likewise.
67498         * lib/unistr/u8-cpy-alloc.c: Likewise.
67499         * lib/unistr/u8-cpy.c: Likewise.
67500         * lib/unistr/u8-endswith.c: Likewise.
67501         * lib/unistr/u8-mblen.c: Likewise.
67502         * lib/unistr/u8-mbsnlen.c: Likewise.
67503         * lib/unistr/u8-mbtouc-aux.c: Likewise.
67504         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
67505         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
67506         * lib/unistr/u8-mbtouc.c: Likewise.
67507         * lib/unistr/u8-mbtoucr.c: Likewise.
67508         * lib/unistr/u8-move.c: Likewise.
67509         * lib/unistr/u8-next.c: Likewise.
67510         * lib/unistr/u8-prev.c: Likewise.
67511         * lib/unistr/u8-set.c: Likewise.
67512         * lib/unistr/u8-startswith.c: Likewise.
67513         * lib/unistr/u8-stpcpy.c: Likewise.
67514         * lib/unistr/u8-stpncpy.c: Likewise.
67515         * lib/unistr/u8-strcat.c: Likewise.
67516         * lib/unistr/u8-strchr.c: Likewise.
67517         * lib/unistr/u8-strcmp.c: Likewise.
67518         * lib/unistr/u8-strcpy.c: Likewise.
67519         * lib/unistr/u8-strcspn.c: Likewise.
67520         * lib/unistr/u8-strdup.c: Likewise.
67521         * lib/unistr/u8-strlen.c: Likewise.
67522         * lib/unistr/u8-strmblen.c: Likewise.
67523         * lib/unistr/u8-strmbtouc.c: Likewise.
67524         * lib/unistr/u8-strncat.c: Likewise.
67525         * lib/unistr/u8-strncmp.c: Likewise.
67526         * lib/unistr/u8-strncpy.c: Likewise.
67527         * lib/unistr/u8-strnlen.c: Likewise.
67528         * lib/unistr/u8-strpbrk.c: Likewise.
67529         * lib/unistr/u8-strrchr.c: Likewise.
67530         * lib/unistr/u8-strspn.c: Likewise.
67531         * lib/unistr/u8-strstr.c: Likewise.
67532         * lib/unistr/u8-strtok.c: Likewise.
67533         * lib/unistr/u8-to-u16.c: Likewise.
67534         * lib/unistr/u8-to-u32.c: Likewise.
67535         * lib/unistr/u8-uctomb-aux.c: Likewise.
67536         * lib/unistr/u8-uctomb.c: Likewise.
67537         * lib/unitypes.h: Likewise.
67538         * lib/uniwidth.h: Likewise.
67539         * lib/uniwidth/cjk.h: Likewise.
67540         * lib/uniwidth/u16-strwidth.c: Likewise.
67541         * lib/uniwidth/u16-width.c: Likewise.
67542         * lib/uniwidth/u32-strwidth.c: Likewise.
67543         * lib/uniwidth/u32-width.c: Likewise.
67544         * lib/uniwidth/u8-strwidth.c: Likewise.
67545         * lib/uniwidth/u8-width.c: Likewise.
67546         * lib/uniwidth/width.c: Likewise.
67547
67548 2007-10-07  Bruno Haible  <bruno@clisp.org>
67549
67550         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
67551         The file is still under LGPL (see modules/inttypes).
67552
67553 2007-10-06  Bruno Haible  <bruno@clisp.org>
67554
67555         * modules/trunc (Dependencies): Add 'extensions'.
67556         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
67557         Reported by Ben Pfaff <blp@gnu.org>.
67558
67559 2007-10-06  Bruno Haible  <bruno@clisp.org>
67560
67561         * modules/freopen-tests: New file.
67562         * tests/test-freopen.c: New file.
67563
67564         * modules/fopen-tests: New file.
67565         * tests/test-fopen.c: New file.
67566
67567         * modules/fopen: New file.
67568         * lib/fopen.c: New file.
67569         * m4/fopen.m4: New file.
67570         * modules/freopen: New file.
67571         * lib/freopen.c: New file.
67572         * m4/freopen.m4: New file.
67573         * lib/stdio.in.h (fopen, freopen): New declarations.
67574         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
67575         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
67576         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
67577         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
67578         * doc/functions/fopen.texi: Mention the 'fopen' module.
67579         * doc/functions/freopen.texi: Mention the 'freopen' module.
67580
67581 2007-10-06  Bruno Haible  <bruno@clisp.org>
67582
67583         * modules/open-tests: New file.
67584         * tests/test-open.c: New file.
67585
67586         * modules/open: New file.
67587         * lib/open.c: New file.
67588         * m4/open.m4: New file.
67589         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
67590         lib/open.c does.
67591         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
67592         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
67593         macros.
67594         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
67595         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
67596         REPLACE_OPEN.
67597         * doc/functions/open.texi: Mention the 'open' module.
67598
67599 2007-10-04  Bruno Haible  <bruno@clisp.org>
67600
67601         * modules/ceill-tests: New file.
67602         * tests/test-ceill.c: New file.
67603
67604         * modules/ceill: New file.
67605         * lib/ceill.c: Replace entire file.
67606         * m4/ceill.m4: New file.
67607         * lib/math.in.h (ceill): Replace declaration.
67608         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
67609         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
67610         * doc/functions/ceill.texi: Mention the 'ceill' module.
67611         * modules/mathl (Files): Remove lib/ceill.c.
67612         (Depends-on): Add ceill.
67613
67614 2007-10-04  Bruno Haible  <bruno@clisp.org>
67615
67616         * modules/ceilf-tests: New file.
67617         * tests/test-ceilf.c: New file.
67618
67619         * modules/ceilf: New file.
67620         * lib/ceil.c: New file.
67621         * lib/ceilf.c: New file.
67622         * m4/ceilf.m4: New file.
67623         * lib/math.in.h (ceilf): New declaration.
67624         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
67625         HAVE_DECL_CEILF.
67626         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
67627         HAVE_DECL_CEILF.
67628         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
67629
67630 2007-10-04  Bruno Haible  <bruno@clisp.org>
67631
67632         * modules/floorl-tests: New file.
67633         * tests/test-floorl.c: New file.
67634
67635         * modules/floorl: New file.
67636         * lib/floorl.c: Replace entire file.
67637         * m4/floorl.m4: New file.
67638         * lib/math.in.h (floorl): Replace declaration.
67639         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
67640         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
67641         * doc/functions/floorl.texi: Mention the 'floorl' module.
67642         * modules/mathl (Files): Remove lib/floorl.c.
67643         (Depends-on): Add floorl.
67644
67645 2007-10-04  Bruno Haible  <bruno@clisp.org>
67646
67647         * modules/floorf-tests: New file.
67648         * tests/test-floorf.c: New file.
67649
67650         * modules/floorf: New file.
67651         * lib/floor.c: New file.
67652         * lib/floorf.c: New file.
67653         * m4/floorf.m4: New file.
67654         * lib/math.in.h (floorf): New declaration.
67655         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
67656         HAVE_DECL_FLOORF.
67657         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
67658         HAVE_DECL_FLOORF.
67659         * doc/functions/floorf.texi: Mention the 'floorf' module.
67660
67661 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
67662             Bruno Haible  <bruno@clisp.org>
67663
67664         Advertise for the Git server instead of the CVS server.
67665         * doc/gnulib-intro.texi (Steady Development): Mention the Git
67666         repository instead of the CVS one.
67667         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
67668         about all VCS systems generically.
67669         * doc/gnulib.texi (Introduction): Capitalize `Git'.
67670
67671 2007-10-04  Bruno Haible  <bruno@clisp.org>
67672
67673         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
67674         means.
67675         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
67676
67677 2007-10-04  Bruno Haible  <bruno@clisp.org>
67678
67679         * modules/truncl-tests: New file.
67680         * tests/test-truncl.c: New file.
67681
67682         * modules/truncl: New file.
67683         * lib/truncl.c: New file.
67684         * m4/truncl.m4: New file.
67685         * lib/math.in.h (truncl): New declaration.
67686         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
67687         HAVE_DECL_TRUNCL.
67688         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
67689         HAVE_DECL_TRUNCL.
67690         * doc/functions/truncl.texi: Mention the 'truncl' module.
67691
67692 2007-10-04  Bruno Haible  <bruno@clisp.org>
67693
67694         * modules/truncf-tests: New file.
67695         * tests/test-truncf.c: New file.
67696
67697         * modules/truncf: New file.
67698         * lib/trunc.c: Make paramerizable through USE_* macros.
67699         * lib/truncf.c: New file.
67700         * m4/truncf.m4: New file.
67701         * lib/math.in.h (truncf): New declaration.
67702         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
67703         HAVE_DECL_TRUNCF.
67704         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
67705         HAVE_DECL_TRUNCF.
67706         * doc/functions/truncf.texi: Mention the 'truncf' module.
67707
67708 2007-10-03  Bruno Haible  <bruno@clisp.org>
67709
67710         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
67711         augmentation also for tests modules.
67712         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
67713         * modules/atexit-tests (Makefile.am): Likewise.
67714         * modules/binary-io-tests (Makefile.am): Likewise.
67715         * modules/c-strcase-tests (Makefile.am): Likewise.
67716         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
67717         * modules/canonicalize-tests (Makefile.am): Likewise.
67718         * modules/closein-tests (Makefile.am): Likewise.
67719         * modules/fprintf-posix-tests (Makefile.am): Likewise.
67720         * modules/freadahead-tests (Makefile.am): Likewise.
67721         * modules/fseek-tests (Makefile.am): Likewise.
67722         * modules/fseeko-tests (Makefile.am): Likewise.
67723         * modules/ftell-tests (Makefile.am): Likewise.
67724         * modules/ftello-tests (Makefile.am): Likewise.
67725         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
67726         * modules/isnanl-tests (Makefile.am): Likewise.
67727         * modules/lseek-tests (Makefile.am): Likewise.
67728         * modules/mbscasecmp-tests (Makefile.am): Likewise.
67729         * modules/mbscasestr-tests (Makefile.am): Likewise.
67730         * modules/mbschr-tests (Makefile.am): Likewise.
67731         * modules/mbscspn-tests (Makefile.am): Likewise.
67732         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
67733         * modules/mbspbrk-tests (Makefile.am): Likewise.
67734         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
67735         * modules/mbsrchr-tests (Makefile.am): Likewise.
67736         * modules/mbsspn-tests (Makefile.am): Likewise.
67737         * modules/mbsstr-tests (Makefile.am): Likewise.
67738         * modules/printf-posix-tests (Makefile.am): Likewise.
67739         * modules/snprintf-posix-tests (Makefile.am): Likewise.
67740         * modules/sprintf-posix-tests (Makefile.am): Likewise.
67741         * modules/tsearch-tests (Makefile.am): Likewise.
67742         * modules/uniname/uniname-tests (Makefile.am): Likewise.
67743         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
67744         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
67745         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
67746         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
67747         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
67748         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
67749         * modules/vprintf-posix-tests (Makefile.am): Likewise.
67750         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
67751         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
67752         * modules/xstrtoimax-tests (Makefile.am): Likewise.
67753         * modules/xstrtol-tests (Makefile.am): Likewise.
67754         * modules/xstrtoumax-tests (Makefile.am): Likewise.
67755         * modules/yesno-tests (Makefile.am): Likewise.
67756
67757 2007-10-03  Bruno Haible  <bruno@clisp.org>
67758
67759         * modules/trunc-tests: New file.
67760         * tests/test-trunc.c: New file.
67761
67762         * modules/trunc: New file.
67763         * lib/trunc.c: New file.
67764         * m4/trunc.m4: New file.
67765         * lib/math.in.h (trunc): New declaration.
67766         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
67767         HAVE_DECL_TRUNC.
67768         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
67769         HAVE_DECL_TRUNC.
67770         * doc/functions/trunc.texi: Mention the 'trunc' module.
67771
67772 2007-10-03  Bruno Haible  <bruno@clisp.org>
67773
67774         * tests/test-fpending.c: New file, mostly copied
67775         from coreutils/lib/t-fpending.c.
67776         * modules/fpending-tests: New file.
67777
67778 2007-10-03  Bruno Haible  <bruno@clisp.org>
67779
67780         Port the stdio extensions to QNX (untested).
67781         * lib/fseterr.c (fseterr): Add support for QNX.
67782         * lib/fbufmode.c (fbufmode): Likewise.
67783         * lib/freadable.c (freadable): Likewise.
67784         * lib/fwritable.c (fwritable): Likewise.
67785         * lib/freading.c (freading): Likewise.
67786         * lib/fwriting.c (fwriting): Likewise.
67787         * lib/freadahead.c (freadahed): Likewise.
67788         * lib/fpurge.c (fpurge): Likewise.
67789         * lib/fseeko.c (rpl_fseeko): Likewise.
67790
67791 2007-10-03  Bruno Haible  <bruno@clisp.org>
67792             Jim Meyering  <jim@meyering.net>
67793             Eric Blake  <ebb9@byu.net>
67794
67795         * doc/relocatable.texi: Use @command instead of @program.
67796
67797 2007-10-02  Jim Meyering  <jim@meyering.net>
67798
67799         Perform one more "_.h" -> ".in.h" substitution.
67800         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
67801         instead of unistd_.h here, too.
67802
67803 2007-10-01  Bruno Haible  <bruno@clisp.org>
67804
67805         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
67806         Needed for the alloca-opt module.
67807
67808 2007-09-30  Bruno Haible  <bruno@clisp.org>
67809
67810         * lib/alloca.in.h: Renamed from lib/alloca_.h.
67811         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
67812         alloca_.h.
67813         * lib/argz.in.h: Renamed from lib/argz_.h.
67814         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
67815         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
67816         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
67817         byteswap_.h.
67818         * lib/dirent.in.h: Renamed from lib/dirent_.h.
67819         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
67820         dirent_.h.
67821         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
67822         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
67823         fcntl_.h.
67824         * lib/float.in.h: Renamed from lib/float_.h.
67825         * modules/float (Files, Makefile.am): Use float.in.h instead of
67826         float_.h.
67827         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
67828         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
67829         fnmatch_.h.
67830         * lib/getopt.in.h: Renamed from lib/getopt_.h.
67831         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
67832         getopt_.h.
67833         * lib/glob.in.h: Renamed from lib/glob_.h.
67834         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
67835         * lib/iconv.in.h: Renamed from lib/iconv_.h.
67836         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
67837         iconv_.h.
67838         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
67839         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
67840         inttypes_.h.
67841         * lib/locale.in.h: Renamed from lib/locale_.h.
67842         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
67843         locale_.h.
67844         * lib/math.in.h: Renamed from lib/math_.h.
67845         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
67846         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
67847         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
67848         of netinet_in_.h. Add dependency.
67849         * lib/poll.in.h: Renamed from lib/poll_.h.
67850         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
67851         * lib/search.in.h: Renamed from lib/search_.h.
67852         * modules/search (Files, Makefile.am): Use search.in.h instead of
67853         search_.h.
67854         * lib/signal.in.h: Renamed from lib/signal_.h.
67855         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
67856         _signal.h.
67857         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
67858         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
67859         stdbool_.h.
67860         * lib/stdint.in.h: Renamed from lib/stdint_.h.
67861         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
67862         stdint_.h.
67863         * lib/stdio.in.h: Renamed from lib/stdio_.h.
67864         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
67865         stdio_.h.
67866         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
67867         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
67868         stdlib_.h.
67869         * lib/string.in.h: Renamed from lib/string_.h.
67870         * modules/string (Files, Makefile.am): Use string.in.h instead of
67871         string_.h.
67872         * doc/gnulib-tool.texi (Initial import): Update.
67873         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
67874         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
67875         of sys_select_.h. Add dependency.
67876         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
67877         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
67878         of sys_socket_.h.
67879         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
67880         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
67881         sys_stat_.h.
67882         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
67883         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
67884         sys_time_.h.
67885         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
67886         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
67887         sysexits_.h.
67888         * lib/time.in.h: Renamed from lib/time_.h.
67889         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
67890         * lib/unistd.in.h: Renamed from lib/unistd_.h.
67891         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
67892         unistd_.h.
67893         * lib/wchar.in.h: Renamed from lib/wchar_.h.
67894         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
67895         wchar_.h.
67896         * lib/wctype.in.h: Renamed from lib/wctype_.h.
67897         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
67898         wctype_.h.
67899         * build-aux/bootstrap (slurp): Update.
67900         * lib/.cppi-disable: Update.
67901
67902 2007-09-30  Bruno Haible  <bruno@clisp.org>
67903
67904         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
67905         Needed on BeOS.
67906
67907 2007-09-30  Bruno Haible  <bruno@clisp.org>
67908
67909         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
67910
67911 2007-09-29  Bruno Haible  <bruno@clisp.org>
67912
67913         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
67914
67915 2007-09-29  Bruno Haible  <bruno@clisp.org>
67916
67917         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
67918         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
67919         * build-aux/install-reloc: Compile also areadlink.c.
67920         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
67921
67922 2007-09-29  Bruno Haible  <bruno@clisp.org>
67923
67924         * gnulib-tool (func_emit_initmacro_done): Indentation.
67925
67926 2007-09-29  Bruno Haible  <bruno@clisp.org>
67927
67928         * README: Add CVS checkout update instructions.
67929         Info from Bob Proulx <bob@proulx.com>.
67930
67931 2007-09-28  Eric Blake  <ebb9@byu.net>
67932
67933         Provide move-if-change.
67934         * build-aux/move-if-change: New file, based on best practice
67935         rather than any canonical upstream location.
67936
67937 2007-09-28  Jim Meyering  <jim@meyering.net>
67938
67939         Fix canonicalize loop-detection corner case.
67940         Do not attempt to stat the symlink values stored via seen_triple.
67941         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
67942         on linux-2.6.18, (but not 2.6.22).
67943         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
67944         triple_compare.  The former compares dev,ino,filename, while the latter
67945         would actually stat dirname(filename) when dev and ino were equal.
67946         * lib/hash-triple.c: Install <string.h>.
67947         (STREQ): Define.
67948         (triple_compare_ino_str): New function.
67949         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
67950
67951 2007-09-28  Eric Blake  <ebb9@byu.net>
67952
67953         Enforce that AC_REPLACE_FUNCS files exist.
67954         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
67955         override check for typos.
67956
67957         Fix test-closein on Solaris 10.
67958         * tests/test-closein.c (main): Don't assume stdin can be inherited
67959         closed on all systems.
67960         * tests/test-closein.sh: Likewise.
67961         Reported by Piotr Tarnowski.
67962
67963 2007-09-28  Jim Meyering  <jim@meyering.net>
67964
67965         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
67966
67967 2007-09-27  Jim Meyering  <jim@meyering.net>
67968
67969         canonicalize: Avoid a false-positive cycle failure.
67970         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
67971         Sort.  Remove cycle-check.
67972         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
67973         not cycle-check.h.
67974         (seen_triple): New function.
67975         (canonicalize_filename_mode): Use it instead of cycle-check.
67976         * tests/test-canonicalize.c: Add a test for this bug.
67977         * tests/test-canonicalize.sh: Set up and run the test.
67978
67979         New module, file-set, from coreutils.
67980         * modules/file-set: Define it.
67981         * lib/file-set.c, lib/file-set.h: Implement.
67982
67983         New module, hash-triple, from coreutils.
67984         * modules/hash-triple: Define it.
67985         * lib/hash-triple.c, lib/hash-triple.h: Implement.
67986
67987 2007-09-25  Eric Blake  <ebb9@byu.net>
67988
67989         Fix strerror on Interix.
67990         * lib/string_.h (strerror): Declare replacement.
67991         * doc/functions/strerror.texi (strerror): Document the Interix
67992         shortcoming.
67993         * modules/string (Makefile.am): Support new hooks.
67994         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
67995         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
67996         gl_FUNC_STRERROR_SEPARATE.
67997         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
67998         * lib/strerror.c (rpl_strerror): Provide replacement.
67999         * modules/strerror (Depends-on): Add string.
68000         (configure.ac): Detect use of module.
68001         * tests/test-strerror.c: New file.
68002         * modules/strerror-tests: New test module.
68003         * modules/argp (Depends-on): Add strerror.
68004         * modules/error (Depends-on): Likewise.
68005         Reported by Martin Koeppe.
68006
68007 2007-09-24  Bruno Haible  <bruno@clisp.org>
68008
68009         * README: Update git instructions.
68010
68011 2007-09-24  Eric Blake  <ebb9@byu.net>
68012
68013         Revert fpending breakage from 2007-09-08.
68014         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
68015         __fpending.c.
68016
68017 2007-09-24  Jim Meyering  <jim@meyering.net>
68018
68019         filenamecat.c: Add a test.
68020         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
68021         showing how the function works when DIR is the empty string.
68022
68023 2007-09-21  Simon Josefsson  <simon@josefsson.org>
68024
68025         * tests/test-canonicalize.sh: Turn on executable bit.
68026
68027 2007-09-19  Eric Blake  <ebb9@byu.net>
68028
68029         * README: Update CVS instructions.
68030
68031 2007-09-18  Bruno Haible  <bruno@clisp.org>
68032
68033         * modules/areadlink: New file.
68034         * lib/areadlink.h (areadlink): New declaration.
68035         * lib/areadlink.c: New file, based on lib/xreadlink.c.
68036
68037 2007-09-17  Jim Meyering  <jim@meyering.net>
68038
68039         * lib/savewd.c (ESTALE) [!defined]: Define.
68040         Reported to be required on Interix by Martin Koeppe.
68041
68042 2007-09-17  Bruno Haible  <bruno@clisp.org>
68043
68044         * gnulib-tool (func_version): Use $version.
68045
68046 2007-09-16  Bruno Haible  <bruno@clisp.org>
68047
68048         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
68049         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
68050         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
68051         Reported by Greg Schafer <gschafer@zip.com.au>.
68052
68053 2007-09-15  Bruno Haible  <bruno@clisp.org>
68054
68055         * gnulib-tool (sed): Try a little harder to make bash understand the
68056         alias.
68057         Reported by Bruce Korb <bruce.korb@gmail.com>.
68058
68059 2007-09-13  Eric Blake  <ebb9@byu.net>
68060
68061         * ChangeLog: Remove conflict markers.
68062
68063 2007-09-13  Simon Josefsson  <simon@josefsson.org>
68064
68065         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
68066         Reported by Bruno Haible <bruno@clisp.org>.
68067
68068 2007-09-12  Bruno Haible  <bruno@clisp.org>
68069
68070         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
68071         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
68072         is not defined.
68073
68074 2007-09-12  Eric Blake  <ebb9@byu.net>
68075
68076         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
68077         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
68078         Autoconf definition.
68079         * modules/euidaccess (Depends-on): Add extensions, for
68080         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
68081         * modules/fnmatch (Depends-on): Likewise.
68082         * modules/getaddrinfo (Depends-on): Likewise.
68083         * modules/getdelim (Depends-on): Likewise.
68084         * modules/getline (Depends-on): Likewise.
68085         * modules/getsubopt (Depends-on): Likewise.
68086         * modules/gettext (Depends-on): Likewise.
68087         * modules/group-member (Depends-on): Likewise.
68088         * modules/mbchar (Depends-on): Likewise.
68089         * modules/memmem (Depends-on): Likewise.
68090         * modules/mempcpy (Depends-on): Likewise.
68091         * modules/memrchr (Depends-on): Likewise.
68092         * modules/pagealign_alloc (Depends-on): Likewise.
68093         * modules/readutmp (Depends-on): Likewise.
68094         * modules/stpcpy (Depends-on): Likewise.
68095         * modules/stpncpy (Depends-on): Likewise.
68096         * modules/strchrnul (Depends-on): Likewise.
68097         * modules/strndup (Depends-on): Likewise.
68098         * modules/strsep (Depends-on): Likewise.
68099         * modules/strverscmp (Depends-on): Likewise.
68100         * modules/vasprintf (Depends-on): Likewise.
68101         * modules/wcwidth (Depends-on): Likewise.
68102         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
68103         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
68104         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
68105         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
68106         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
68107         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
68108         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
68109         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
68110         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
68111         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
68112         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
68113         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
68114         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
68115         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
68116         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
68117         * m4/readutmp.m4 (gl_READUTMP): Likewise.
68118         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
68119         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
68120         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
68121         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
68122         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
68123         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
68124         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
68125         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
68126         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
68127         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
68128         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
68129         so that lock.m4 can be used in gettext without extensions module.
68130
68131 2007-09-11  Bruno Haible  <bruno@clisp.org>
68132
68133         * m4/isc-posix.m4: Remove file.
68134         Suggested by Eric Blake.
68135
68136 2007-09-11  Eric Blake  <ebb9@byu.net>
68137
68138         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
68139
68140 2007-09-10  Bruno Haible  <bruno@clisp.org>
68141
68142         * posix-modules: Fix typo in error message.
68143         Reported by Matt <mkraai@beckman.com>.
68144
68145 2007-09-09  Bruno Haible  <bruno@clisp.org>
68146
68147         * doc/functions/getdelim.texi: Update list of platforms lacking the
68148         function.
68149         * doc/functions/getline.texi: Likewise.
68150
68151 2007-09-09  Jim Meyering  <jim@meyering.net>
68152
68153         * lib/hash.c (hash_initialize): Detect calloc failure.
68154         Reported by Bruno Haible.
68155
68156 2007-09-09  Bruno Haible  <bruno@clisp.org>
68157
68158         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
68159         malloc or realloc fails.
68160
68161 2007-09-09  Bruno Haible  <bruno@clisp.org>
68162
68163         * modules/getcwd (Depends-on): Add malloc-posix.
68164         * modules/glob (Depends-on): Likewise.
68165         * modules/putenv (Depends-on): Likewise.
68166         * modules/strdup (Depends-on): Likewise.
68167         * modules/getdelim (Depends-on): Add realloc-posix.
68168         * modules/read-file (Depends-on): Likewise.
68169
68170 2007-09-09  Bruno Haible  <bruno@clisp.org>
68171
68172         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
68173         (gl_FUNC_MALLOC_POSIX): Require it.
68174         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
68175         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
68176         * modules/realloc (Files): Add m4/malloc.m4.
68177         * modules/calloc (Files): Likewise.
68178
68179 2007-09-09  Bruno Haible  <bruno@clisp.org>
68180
68181         * modules/malloc-posix: New file.
68182         * modules/malloc (Depends-on): Add malloc-posix.
68183         * lib/malloc.c: Include errno.h.
68184         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
68185         and a POSIX-compatible malloc into a single function. Set ENOMEM
68186         when returning NULL.
68187         * m4/malloc.m4: New file.
68188         * doc/functions/malloc.texi: Mention the malloc-posix module.
68189         * lib/stdlib_.h (malloc): New declaration.
68190         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
68191         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
68192         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
68193         and HAVE_MALLOC_POSIX.
68194
68195 2007-09-09  Bruno Haible  <bruno@clisp.org>
68196
68197         * modules/realloc-posix: New file.
68198         * modules/realloc (Depends-on): Add realloc-posix.
68199         * lib/realloc.c: Include errno.h.
68200         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
68201         and a POSIX-compatible realloc into a single function. Set ENOMEM
68202         when returning NULL.
68203         * m4/realloc.m4: New file.
68204         * doc/functions/realloc.texi: Mention the realloc-posix module.
68205         * lib/stdlib_.h (realloc): New declaration.
68206         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
68207         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
68208         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
68209         and HAVE_REALLOC_POSIX.
68210
68211 2007-09-09  Bruno Haible  <bruno@clisp.org>
68212
68213         * modules/calloc-posix: New file.
68214         * modules/calloc (Depends-on): Add calloc-posix.
68215         * lib/calloc.c: Include errno.h.
68216         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
68217         and a POSIX-compatible calloc into a single function. Set ENOMEM
68218         when returning NULL.
68219         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
68220         * doc/functions/calloc.texi: Mention the calloc-posix module.
68221         * lib/stdlib_.h (calloc): New declaration.
68222         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
68223         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
68224         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
68225         and HAVE_CALLOC_POSIX.
68226
68227 2007-09-09  Bruno Haible  <bruno@clisp.org>
68228
68229         Allow for modules to show an arbitrary notice.
68230         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
68231         * gnulib-tool: New option --extract-notice.
68232         (func_usage): Document it.
68233         (sed_extract_prog): Update.
68234         (func_get_notice): New function.
68235         (func_modules_notice): New function.
68236         (func_import, func_create_testdir): Invoke it.
68237         Suggested by Jim Meyering.
68238
68239 2007-09-09  Bruno Haible  <bruno@clisp.org>
68240
68241         * gnulib-tool: New options --verbose, --quiet.
68242         (func_usage): Document them.
68243         (verbose): New variable.
68244         (func_execute_command): New function.
68245         (func_import): Don't show the module list and the file list if
68246         $verbose < 0.
68247         (func_create_testdir): Likewise. Use func_execute_command.
68248         (func_create_megatestdir): Use func_execute_command.
68249
68250 2007-09-08  Bruno Haible  <bruno@clisp.org>
68251
68252         * gnulib-tool (func_import): Prefer rsync over wget when available,
68253         for fetching the PO files.
68254
68255 2007-09-08  Bruno Haible  <bruno@clisp.org>
68256
68257         * posix-modules: New file. Portions copied from gnulib-tool.
68258         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
68259
68260 2007-09-08  Jim Meyering  <jim@meyering.net>
68261
68262         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
68263         * lib/fpending.h: Rename from __fpending.h.
68264         * lib/fpending.c: Rename from __fpending.c.
68265         Include "fpending.h", not "__fpending.h".
68266         * lib/__fpending.h, lib/__fpending.c: Remove files.
68267         * modules/fpending (Files): Reflect new file names.
68268         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
68269
68270 2007-09-08  Bruno Haible  <bruno@clisp.org>
68271
68272         * m4/inttypes-h.m4: Remove stub file.
68273
68274 2007-09-07  Simon Josefsson  <simon@josefsson.org>
68275
68276         * doc/headers/stdint.texi: Discuss #include_next issue.
68277
68278 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
68279
68280         * build-aux/bootstrap: Remove obsolete comment about wget --help.
68281
68282 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68283
68284         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
68285         in variable name.
68286
68287 2007-09-03  Jim Meyering  <jim@meyering.net>
68288
68289         New module: git-version-gen.
68290         * modules/git-version-gen: New file.
68291
68292         Import changes from coreutils for bootstrap script.
68293
68294         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
68295
68296         bootstrap: uses rsync to download the .po files
68297         * build-aux/bootstrap (po_download_command_format): New global.
68298         (download_po_files): Use rsync.
68299         (update_po_files): Don't remove .po files after download,
68300         so future rsync runs can take advantage of the copies.
68301
68302         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
68303
68304         Solve the unnecessary-.po-file-regeneration problem once and for all.
68305         * build-aux/bootstrap (download_po_files): New function, renamed from
68306         get_translations.  Now, downloads, but doesn't update LINGUAS.
68307         (update_po_files): New function.
68308
68309         bootstrap: Ignore more.
68310         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
68311         uniwidth to e.g., lib/.gitignore.
68312         (slurp): Handle the sys_stat_.h -> sys mapping, too.
68313
68314         * build-aux/bootstrap: New setting: vc_ignore.
68315         (insert_sorted_if_absent): Create $file if absent.
68316         Adapt to new, possibly empty, list: $vc_ignore.
68317
68318         bootstrap: generate more ignorable names
68319         * build-aux/bootstrap (slurp): When generating ignorable names,
68320         also map .sin to .sed, .gperf to .c, and .y to .c.
68321
68322 2007-09-03  Jim Meyering  <jim@meyering.net>
68323
68324         * build-aux/git-version-gen: New file, from coreutils.  For details, see
68325         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
68326
68327 2007-09-02  Bruno Haible  <bruno@clisp.org>
68328
68329         Fix mis-recognition of 'mcs' on QNX 6.
68330         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
68331         output contains the string "Mono".
68332         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
68333         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
68334
68335 2007-09-01  Bruno Haible  <bruno@clisp.org>
68336
68337         Fix collision between uniwidth/* and linebreak modules.
68338         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
68339         u32_width): Remove declarations.
68340         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
68341         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
68342         streq3, streq2, streq1, streq0): Remove functions.
68343         (STREQ): Remove macro.
68344         (is_cjk_encoding): Remove function.
68345         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
68346         (uc_width, u8_width, u16_width, u32_width): Remove functions.
68347         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
68348         * NEWS: Document the change.
68349
68350 2007-09-01  Bruno Haible  <bruno@clisp.org>
68351
68352         * lib/streq.h: Add double-inclusion guard.
68353
68354 2007-09-01  Karl Berry  <karl@gnu.org>
68355
68356         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
68357
68358 2007-08-28  Jim Meyering  <jim@meyering.net>
68359
68360         Rename mreadlink_with_size to areadlink_with_size.
68361         * NEWS: Document the change.
68362         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
68363         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
68364         * lib/mreadlink.h: Rename this to...
68365         * lib/areadlink.h: ...this.
68366         * modules/mreadlink-with-size: Rename this to...
68367         * modules/areadlink-with-size: ...this.
68368         * lib/canonicalize.c: Reflect the renaming.
68369         * modules/canonicalize: Likewise.
68370
68371 2007-08-26  Bruno Haible  <bruno@clisp.org>
68372
68373         * gnulib-tool (func_import): When deciding which files to remove,
68374         consider also dangling symbolic links.
68375         Reported by Eric Blake.
68376
68377 2007-08-26  Bruno Haible  <bruno@clisp.org>
68378
68379         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
68380
68381 2007-08-23  Simon Josefsson  <simon@josefsson.org>
68382
68383         * lib/readline.c: Don't include getline.h, the prototype is now
68384         found in stdio.h.
68385
68386 2007-08-23  Jim Meyering  <jim@meyering.net>
68387
68388         Getdelim touchup.
68389         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
68390         around the funlockfile call, since funlockfile never sets errno.
68391         Don't set errno upon failed realloc.
68392
68393 2007-08-22  Eric Blake  <ebb9@byu.net>
68394
68395         Getline touchups.
68396         * lib/getdelim.c (getdelim): Revert regression that required *n to
68397         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
68398         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
68399         getdelim, rather than whether implementation is missing.
68400         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
68401         * lib/stdio_.h (getline): Also declare if replacement is
68402         required.
68403         * doc/functions/getdelim.texi: New file.
68404         * doc/functions/getline.texi: Likewise.
68405         * doc/gnulib.texi (Function Substitutes): Add new files.
68406         Reported by Bruno Haible.
68407
68408 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
68409
68410         * users.txt: Add Guile.
68411
68412 2007-08-22  Eric Blake  <ebb9@byu.net>
68413
68414         * tests/test-getdelim.c (main): Use remove, not unlink.
68415         * tests/test-getline.c (main): Likewise.
68416
68417         Move getline and getdelim into stdio.h, per POSIX 200x.
68418         * modules/getline (Files): Remove getline.h.
68419         (Depends-on): Add stdio.
68420         (configure.ac): Add module indicator.
68421         * modules/getdelim (Files): Remove getdelim.h.
68422         (Depends-on): Add stdio.
68423         (configure.ac): Add module indicator.
68424         * modules/stdio (Makefile.am): Work with new indicators.
68425         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
68426         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
68427         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
68428         * lib/getdelim.h: Delete.
68429         * lib/getline.h: Delete.
68430         * lib/stdio_.h (getdelim, getline): Declare.
68431         * modules/getdelim-tests: New module.
68432         * modules/getline-tests: Likewise.
68433         * tests/test-getdelim.c: New file.
68434         * tests/test-getline.c: Likewise.
68435         * NEWS: Document the change.
68436         * lib/getline.c: Update choice of header.
68437         * lib/csharpcomp.c: Likewise.
68438         * lib/getpass.c: Likewise.
68439         * lib/javacomp.c: Likewise.
68440         * lib/javaversion.c: Likewise.
68441         * lib/yesno.c: Likewise.
68442         * lib/getdelim.c: Likewise.
68443         (getdelim): Set errno on failure, and avoid memory leak.
68444
68445 2007-08-19  Bruno Haible  <bruno@clisp.org>
68446
68447         * modules/closein (Depends-on): Add freadahead.
68448         * lib/closein.c: Include freadahead.h.
68449         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
68450         is zero.
68451
68452 2007-08-19  Bruno Haible  <bruno@clisp.org>
68453
68454         * modules/freadahead-tests: New file.
68455         * tests/test-freadahead.sh: New file.
68456         * tests/test-freadahead.c: New file.
68457
68458         * modules/freadahead: New file.
68459         * lib/freadahead.h: New file.
68460         * lib/freadahead.c: New file.
68461         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
68462         fbufmode, fpurge, freadable, fwritable.
68463
68464 2007-08-19  Eric Blake  <ebb9@byu.net>
68465
68466         Test yesno in combination with closein.
68467         * lib/yesno.c (yesno): Document use of stdin.
68468         * modules/yesno-tests (Files): New module.
68469         * tests/test-yesno.c (main): New file.
68470         * tests/test-yesno.sh: Likewise.
68471
68472 2007-08-19  Bruno Haible  <bruno@clisp.org>
68473
68474         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
68475         * lib/fseeko.c (rpl_fseeko): Likewise.
68476         * lib/fseterr.c (fseterr): Likewise.
68477
68478 2007-08-19  Bruno Haible  <bruno@clisp.org>
68479
68480         * tests/test-lseek.c (main): Disable a test for BeOS.
68481         * doc/functions/lseek.texi: Document the BeOS bug.
68482
68483 2007-08-19  Bruno Haible  <bruno@clisp.org>
68484             Eric Blake  <ebb9@byu.net>
68485
68486         * lib/lseek.c: Include <sys/stat.h>.
68487         (rpl_lseek): Add workaround code also for Unix platforms.
68488         Needed for BeOS.
68489         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
68490         * doc/functions/lseek.texi: Document BeOS definiency.
68491
68492 2007-08-18  Bruno Haible  <bruno@clisp.org>
68493
68494         * modules/fstrcmp-tests: New file.
68495         * tests/test-fstrcmp.c: New file.
68496
68497 2007-08-18  Bruno Haible  <bruno@clisp.org>
68498
68499         * modules/fstrcmp: New file, from GNU gettext with modifications.
68500         * lib/fstrcmp.h: New file, from GNU gettext.
68501         * lib/fstrcmp.c: New file, from GNU gettext.
68502         * MODULES.html.sh (String handling): Add fstrcmp.
68503
68504 2007-08-18  Bruno Haible  <bruno@clisp.org>
68505
68506         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
68507         'bool'.
68508         (diag, compareseq): Remove const from the ctxt argument.
68509         (USE_HEURISTIC): Undefine at the end.
68510
68511 2007-08-18  Jim Meyering  <jim@meyering.net>
68512
68513         New file: lib/idcache.h
68514         * NEWS: Mention the addition.
68515         * modules/idcache (Files): Add lib/idcache.h
68516         * lib/idcache.c: Include "idcache.h".
68517         Don't include <sys/types.h>.
68518         Add a FIXME comment.
68519         Move file-scoped "static" declarations to the top.
68520         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
68521
68522 2007-08-17  Bruno Haible  <bruno@clisp.org>
68523         and Paul Eggert  <eggert@cs.ucla.edu>
68524
68525         * MODULES.html.sh: Add diffseq.
68526         * modules/diffseq: New file.
68527         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
68528         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
68529
68530 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68531
68532         Import changes from coreutils for bootstrap script.
68533
68534         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
68535
68536         * build-aux/bootstrap (slurp): Work even in environments where
68537         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
68538         current code does not slurp files whose names start with ".", and
68539         this looks like it might be a troublesome area.
68540
68541         2007-07-11  Jim Meyering  <jim@meyering.net>
68542
68543         If there's a GPL vN copyright comment, require that N == 3.
68544
68545         2007-07-08  Jim Meyering  <jim@meyering.net>
68546
68547         Run the coreutils-specific code only if tests/Makefile.am.in exists.
68548         * build-aux/bootstrap (mam_template): Move definition out of loop.
68549
68550         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
68551
68552         * build-aux/bootstrap (symlink_to_dir): Rename function from
68553         symlink_to_gnulib.  Add a directory parameter.  Update all
68554         callers.
68555         (cp_mark_as_generated): Also check for -- and link to -- files in
68556         gl/.
68557
68558         2007-07-08  Jim Meyering  <jim@meyering.net>
68559
68560         Adapt to deeper hierarchy in gnulib.
68561         * build-aux/bootstrap (symlink_to_dir): If the destination
68562         directory doesn't exist, create it. This is required at least for
68563         "lib/uniwidth/cjk.h".
68564
68565         2007-05-15  Jim Meyering  <jim@meyering.net>
68566
68567         * build-aux/bootstrap: Now that generated Makefile.am files
68568         are no longer under version control, they must be created at
68569         bootstrap time.
68570
68571 2007-08-14  Ben Pfaff  <blp@gnu.org>
68572
68573         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
68574
68575 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
68576
68577         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
68578         given the changes below.
68579         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
68580         even on hosts that have padding bits beyond the supported 64.
68581
68582 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
68583
68584         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
68585         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
68586         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
68587         depends on it.
68588         (xstrtol_error): Remove.
68589         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
68590         but with a different signature.
68591         (ATTRIBUTE_NORETURN, __attribute__): New macros.
68592         * lib/xstrtol-error.c: Include exitfail.h.
68593         (xstrtol_fatal): New function, with a different signature from the
68594         old xstrtol_error, so that the caller need not worry about passing
68595         in an exit status, or about storage management of the option argument.
68596         (xstrtol_error): Now a static function.  Redo signature to
68597         implement xstrtol_fatal.  Output the correct number of hyphens in
68598         front of the option so that the caller need not worry about
68599         storage management.
68600         (N_): New macro.
68601         (_): Remove; not used now.
68602         * modules/xstrtol: Depend on getopt.
68603         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
68604         of old STRTOL_FATAL_ERROR macro.
68605         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
68606         of test program.
68607         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
68608         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
68609
68610 2007-08-08  Eric Blake  <ebb9@byu.net>
68611
68612         * lib/xstrtol-error.c: Add missing include.
68613
68614         Move xstrtol messages into gnulib domain, when --pobase is used.
68615         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
68616         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
68617         * modules/xstrtol (Files): Distribute new file.
68618         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
68619         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
68620         * tests/test-xstrtol.c: ...into new file.
68621         * tests/test-xstrtoul.c: Also test xstrtoul.
68622         * tests/test-xstrtoimax.c: Also test xstrtoimax.
68623         * tests/test-xstrtoumax.c: Also test xstrtoumax.
68624         * tests/test-xstrtol.sh: Drive the tests.
68625         * tests/test-xstrtoimax.sh: Likewise.
68626         * tests/test-xstrtoumax.sh: Likewise.
68627         * modules/xstrtol-tests: New module.
68628         * modules/xstrtoimax-tests: Likewise.
68629         * modules/xstrtoumax-tests: Likewise.
68630
68631 2007-08-08  Jim Meyering  <jim@meyering.net>
68632
68633         New function: mfile_name_concat.
68634         * lib/filenamecat.c (mfile_name_concat): New function, just like
68635         file_name_concat, but return NULL upon failure rather than exiting
68636         with a diagnostic.
68637         * lib/filenamecat.h: Declare it.
68638
68639 2007-08-07  Bruno Haible  <bruno@clisp.org>
68640
68641         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
68642         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
68643         warning from gcc.
68644         Reported by Eric Blake.
68645
68646 2007-08-07  Simon Josefsson  <simon@josefsson.org>
68647
68648         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
68649         * modules/crypto/arcfour (License): Likewise.
68650         * modules/crypto/des-tests (License): Likewise.
68651         * modules/crypto/gc-arctwo-tests (License): Likewise.
68652         * modules/crypto/gc-des-tests (License): Likewise.
68653         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
68654         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
68655         * modules/crypto/gc-md2-tests (License): Likewise.
68656         * modules/crypto/gc-md4-tests (License): Likewise.
68657         * modules/crypto/gc-md5-tests (License): Likewise.
68658         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
68659         * modules/crypto/gc-rijndael-tests (License): Likewise.
68660         * modules/crypto/gc-sha1-tests (License): Likewise.
68661         * modules/crypto/gc-tests (License): Likewise.
68662         * modules/crypto/hmac-md5 (License): Likewise.
68663         * modules/crypto/hmac-sha1 (License): Likewise.
68664         * modules/crypto/md2-tests (License): Likewise.
68665         * modules/crypto/md4-tests (License): Likewise.
68666         * modules/crypto/md5 (License): Likewise.
68667         * modules/crypto/rijndael (License): Likewise.
68668         * modules/crypto/sha1 (License): Likewise.
68669         * modules/memxor (License): Likewise.
68670
68671 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
68672         and Bruno Haible  <bruno@clisp.org>
68673
68674         * NEWS: Describe interface changes to human, xstrtol.
68675         * lib/human.h: Include <xstrtol.h>.
68676         (human_options): Return enum strtol_error, not int.  Remove
68677         bool arg; take int * instead.
68678         * lib/human.c: Don't include "gettext.h".
68679         (_): Remove; no longer used.
68680         Don't include <xstrtol.h>, since human.h does it.
68681         (human_options): Adjust to abovementioned interface changes.
68682         Do not report error to stderr; that's now the caller's
68683         responsibility.
68684         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
68685         interface change.
68686         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
68687         Str, Argument_type_string.  All uses changed.  Put " argument"
68688         in diagnostics to make them clearer.  Change wording of suffix
68689         message for clarity.
68690         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
68691         Argument_type_string.
68692         (STRTOL_FATAL_WARN): Remove; no longer used.
68693         * modules/human (Depends-on): Remove gettext-h.
68694
68695 2007-08-06  Simon Josefsson  <simon@josefsson.org>
68696
68697         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
68698
68699 2007-07-31  Bruno Haible  <bruno@clisp.org>
68700
68701         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
68702         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
68703         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
68704
68705 2007-07-31  Bruno Haible  <bruno@clisp.org>
68706
68707         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
68708         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
68709
68710 2007-07-30  Bruno Haible  <bruno@clisp.org>
68711
68712         * modules/base64 (License): Use the synonymous term "LGPLv2+".
68713         * modules/c-ctype (License): Likewise.
68714         * modules/c-strcase (License): Likewise.
68715         * modules/check-version (License): Likewise.
68716         * modules/iconv (License): Likewise.
68717         * modules/iconv_open (License): Likewise.
68718         * modules/read-file (License): Likewise.
68719         * modules/striconv (License): Likewise.
68720         * modules/strverscmp (License): Likewise.
68721         * modules/vasprintf (License): Likewise.
68722         * modules/crypto/des (License): Likewise.
68723         * modules/crypto/gc (License): Likewise.
68724         * modules/crypto/gc-arcfour (License): Likewise.
68725         * modules/crypto/gc-arctwo (License): Likewise.
68726         * modules/crypto/gc-des (License): Likewise.
68727         * modules/crypto/gc-hmac-md5 (License): Likewise.
68728         * modules/crypto/gc-hmac-sha1 (License): Likewise.
68729         * modules/crypto/gc-md2 (License): Likewise.
68730         * modules/crypto/gc-md4 (License): Likewise.
68731         * modules/crypto/gc-md5 (License): Likewise.
68732         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
68733         * modules/crypto/gc-random (License): Likewise.
68734         * modules/crypto/gc-rijndael (License): Likewise.
68735         * modules/crypto/gc-sha1 (License): Likewise.
68736         * modules/crypto/md2 (License): Likewise.
68737         * modules/crypto/md4 (License): Likewise.
68738
68739 2007-07-30  Jim Meyering  <jim@meyering.net>
68740
68741         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
68742         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
68743         it has valid stat data.  This bug would cause du not to count the
68744         sizes of inaccessible directories.
68745         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
68746         in <http://bugzilla.redhat.com/250077>.
68747
68748 2007-07-25  Peter O'Gorman  <peter@pogma.com>
68749             Bruno Haible  <bruno@clisp.org>
68750
68751         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
68752         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
68753         #include_next, gives a diagnostic about it, but reports no error in
68754         the exit code.
68755         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
68756
68757 2007-07-24  Ben Pfaff  <blp@gnu.org>
68758
68759         Improve name: "count-one-bits" is better than "popcount".
68760         * MODULES.html.sh: Update name.
68761         * lib/popcount.h: Renamed lib/count-one-bits.h.
68762         (popcount): Renamed count_one_bits.
68763         (popcountl): Renamed count_one_bits_l.
68764         (popcountll): Renamed count_one_bits_ll.
68765         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
68766         * modules/popcount: Renamed module/count-one-bits.
68767         * modules/popcount-tests: Renamed module/count-one-bits-tests.
68768         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
68769
68770 2007-07-23  Ben Pfaff  <blp@gnu.org>
68771
68772         * lib/popcount.h (popcount32): Reduce size of constants, to allow
68773         better code generation, and add U to large constants to avoid
68774         warnings, in non-GCC case.
68775         Suggested by Bruno Haible.
68776
68777 2007-07-23  Ben Pfaff  <blp@gnu.org>
68778
68779         * lib/popcount.h: Use verify_true instead of if...abort.
68780         * modules/popcount: Depend on verify module.
68781         Suggested by Jim Meyering.
68782
68783 2007-07-23  Bruno Haible  <bruno@clisp.org>
68784
68785         * gnulib-tool (func_import): Create a .cvsignore file also when the
68786         directory is not yet in CVS but the toplevel directory is. When
68787         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
68788         Reported by Karl Berry.
68789
68790 2007-07-22  Ben Pfaff  <blp@gnu.org>
68791
68792         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
68793         case.
68794         Suggested by Eric Blake.
68795
68796 2007-07-22  Ben Pfaff  <blp@gnu.org>
68797
68798         New module: popcount.
68799         * MODULES.html.sh: Add popcount.
68800         * modules/popcount: New file.
68801         * modules/popcount-tests: New file.
68802         * tests/test-popcount.c: New file.
68803         * lib/popcount.h: New file.
68804         * m4/popcount.m4: New file.
68805
68806 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
68807
68808         * build-aux/announce-gen: Update to GPLv3.
68809
68810         * build-aux/config.guess: Update from config.
68811
68812 2007-07-21  Bruno Haible  <bruno@clisp.org>
68813
68814         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
68815         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
68816
68817 2007-07-20  Jim Meyering  <jim@meyering.net>
68818
68819         * check-module: Diagnose a self-dependency.
68820
68821 2007-07-19  Bruno Haible  <bruno@clisp.org>
68822
68823         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
68824         empty.
68825         Reported by Eric Blake.
68826
68827 2007-07-18  Bruno Haible  <bruno@clisp.org>
68828
68829         * gnulib-tool: New options --po-base, --po-domain.
68830         (func_usage): Document them.
68831         (pobase, po_domain): New variables.
68832         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
68833         DEFAULT_TEXT_DOMAIN.
68834         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
68835         (func_import): Consider pobase and po_domain. Create a po/ directory.
68836         (func_create_testdir): Set pobase and po_domain to empty.
68837         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
68838         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
68839
68840 2007-07-18  Bruno Haible  <bruno@clisp.org>
68841
68842         * gnulib-tool (func_get_automake_snippet): Synthesize also an
68843         EXTRA_DIST augmentation for files in build-aux/.
68844
68845 2007-07-16  Bruno Haible  <bruno@clisp.org>
68846
68847         * modules/lseek (License): Use the synonymous term "LGPLv2+".
68848         * modules/getdelim (License): Likewise.
68849
68850 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68851
68852         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
68853         * modules/d-type (License): Likewise.
68854         * modules/extensions (License): Likewise.
68855         * modules/fnmatch (License): Likewise.
68856         * modules/fseeko (License): Likewise.
68857         * modules/getaddrinfo (License): Likewise.
68858         * modules/getline (License): Likewise.
68859         * modules/getlogin_r (License): Likewise.
68860         * modules/getpass (License): Likewise.
68861         * modules/gettimeofday (License): Likewise.
68862         * modules/glob (License): Likewise.
68863         * modules/inet_ntop (License): Likewise.
68864         * modules/malloc (License): Likewise.
68865         * modules/malloca (License): Likewise.
68866         * modules/memmem (License): Likewise.
68867         * modules/mempcpy (License): Likewise.
68868         * modules/memset (License): Likewise.
68869         * modules/minmax (License): Likewise.
68870         * modules/mktime (License): Likewise.
68871         * modules/netinet_in (License): Likewise.
68872         * modules/pathmax (License): Likewise.
68873         * modules/poll (License): Likewise.
68874         * modules/regex (License): Likewise.
68875         * modules/snprintf (License): Likewise.
68876         * modules/stdbool (License): Likewise.
68877         * modules/stdint (License): Likewise.
68878         * modules/stdio (License): Likewise.
68879         * modules/strcase (License): Likewise.
68880         * modules/strcasestr (License): Likewise.
68881         * modules/strdup (License): Likewise.
68882         * modules/string (License): Likewise.
68883         * modules/strndup (License): Likewise.
68884         * modules/strnlen (License): Likewise.
68885         * modules/strpbrk (License): Likewise.
68886         * modules/strptime (License): Likewise.
68887         * modules/strsep (License): Likewise.
68888         * modules/sys_select (License): Likewise.
68889         * modules/sys_socket (License): Likewise.
68890         * modules/sys_stat (License): Likewise.
68891         * modules/sys_time (License): Likewise.
68892         * modules/time (License): Likewise.
68893         * modules/time_r (License): Likewise.
68894         * modules/timegm (License): Likewise.
68895         * modules/unistd (License): Likewise.
68896         * modules/vsnprintf (License): Likewise.
68897         * modules/wctype (License): Likewise.
68898
68899 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68900
68901         * modules/argz (License): LGPLv2+.
68902
68903 2007-07-15  Karl Berry  <karl@gnu.org>
68904
68905         * doc/gnulib.texi: revise node structure per new fdl.texi.
68906
68907 2007-07-14  Bruno Haible  <bruno@clisp.org>
68908
68909         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
68910         the output file.
68911         * lib/uniname/uninames.h: Regenerated.
68912
68913 2007-07-14  Karl Berry  <karl@gnu.org>
68914
68915         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
68916         omitting sectioning and index commands.
68917
68918 2007-07-13  Bruno Haible  <bruno@clisp.org>
68919
68920         New gnulib-tool option --more-symlinks.
68921         * gnulib-tool (func_usage): Document --more-symlinks.
68922         (do_copyrights): New variable.
68923         Recognize option --more-symlinks.
68924         (func_import): Don't add a copyright notice transform to
68925         sed_transform_lib_file if do_copyrights is empty.
68926
68927 2007-07-13  Bruno Haible  <bruno@clisp.org>
68928
68929         * lib/vasnprintf.c (decimal_point_char): Define also if
68930         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
68931         && !NEED_PRINTF_DIRECTIVE_A.
68932         Reported by Clemens Koller <clemens.koller@anagramm.de> via
68933         Gary V. Vaughan <gary@gnu.org>.
68934
68935 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
68936
68937         * lib/inttypes_.h: Undo previous change, since it was fixed
68938         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
68939
68940 2007-07-13  Bruno Haible  <bruno@clisp.org>
68941
68942         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
68943         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
68944
68945 2007-07-13  Jim Meyering  <jim@meyering.net>
68946
68947         df: Don't fail for Tru64's "file-on-file mount".
68948         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
68949         so we fall through and use statfs instead.  Details here:
68950         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
68951         Reported by Albert Chin.
68952
68953 2007-07-13  Bruno Haible  <bruno@clisp.org>
68954
68955         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
68956         * modules/configmake (License): Likewise.
68957         * modules/gettext (License): Likewise.
68958         * modules/gettext-h (License): Likewise.
68959         * modules/include_next (License): Likewise.
68960         * modules/link-warning (License): Likewise.
68961         * modules/localcharset (License): Likewise.
68962         * modules/localename (License): Likewise.
68963         * modules/lock (License): Likewise.
68964         * modules/relocatable-lib-lgpl (License): Likewise.
68965         * modules/size_max (License): Likewise.
68966         * modules/vasnprintf (License): Likewise.
68967         * modules/wchar (License): Likewise.
68968         * modules/xsize (License): Likewise.
68969
68970 2007-07-13  Bruno Haible  <bruno@clisp.org>
68971
68972         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
68973         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
68974
68975 2007-07-12  Bruno Haible  <bruno@clisp.org>
68976
68977         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
68978         in the modules files.
68979
68980 2007-07-11  Karl Berry  <karl@gnu.org>
68981
68982         * MODULES.html.sh (func_module): use
68983          sed -e '\|^'"${includefile}"'$|d'
68984          instead of /.../d, to avoid errors on $includefile's containing /.
68985
68986 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
68987
68988         * gnulib-tool (func_import): Avoid duplication of --avoid
68989         statements
68990         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
68991         names to `_' in variable names.
68992
68993 2007-07-10  Eric Blake  <ebb9@byu.net>
68994
68995         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
68996         * NEWS: Document this change.
68997
68998 2007-07-08  Bruno Haible  <bruno@clisp.org>
68999
69000         Update to Unicode 5.0.
69001         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
69002         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
69003         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
69004         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
69005         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
69006         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
69007         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
69008         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
69009         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
69010         U+10A3F, U+1D242..U+1D244.
69011         (nonspacing_table_ind): Update.
69012         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
69013         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
69014
69015 2007-07-08  Bruno Haible  <bruno@clisp.org>
69016
69017         Update to Unicode 5.0.
69018         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
69019         code transform. Extend the name index field of unicode_name_to_code and
69020         unicode_code_to_name from 16 to 24 bits.
69021         * lib/uniname/uniname.c (unicode_character_name,
69022         unicode_name_character): Add the range 0x12xxx to the code transform.
69023         * lib/uniname/uninames.h: Regenerated.
69024         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
69025
69026 2007-07-07  Bruno Haible  <bruno@clisp.org>
69027
69028         * modules/wcwidth-tests: New file.
69029         * tests/test-wcwidth.c: New file.
69030
69031         Work around MacOS X wcwidth() bug.
69032         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
69033         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
69034         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
69035         original wcwidth in non-UTF-8 locales.
69036         * modules/wcwidth (Depends-on): Add localcharset, streq,
69037         uniwidth/width.
69038         * doc/functions/wcwidth.texi: Update.
69039
69040 2007-07-07  Bruno Haible  <bruno@clisp.org>
69041
69042         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
69043         (wcwidth): New declaration.
69044         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
69045         macros.
69046         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
69047         here. Prepare for creating <wchar.h> unconditionally.
69048         * modules/wchar (Depends-on): Add link-warning.
69049         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
69050         REPLACE_WCWIDTH, and GL_LINK_WARNING.
69051         * lib/wcwidth.h: Remove file.
69052         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
69053         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
69054         * modules/wcwidth (Files): Remove lib/wcwidth.h.
69055         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
69056         (Include): Replace wcwidth.h with <wchar.h>.
69057         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
69058         * lib/mbchar.h: Don't include wcwidth.h.
69059         * lib/mbswidth.c: Likewise.
69060         * NEWS: Mention the change.
69061
69062 2007-07-07  Bruno Haible  <bruno@clisp.org>
69063
69064         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
69065         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
69066         definition with an external declaration.
69067         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
69068         defined as a function. Remove AC_C_INLINE requirement.
69069         * modules/wcwidth (Files): Add lib/wcwidth.c.
69070         (Makefile.am): Remove redundant statement.
69071
69072 2007-07-07  Bruno Haible  <bruno@clisp.org>
69073
69074         * MODULES.html.sh (Unicode string functions): Add the new modules.
69075
69076         * tests/uniwidth/test-u32-strwidth.c: New file.
69077         * modules/uniwidth/u32-strwidth-tests: New file.
69078
69079         * lib/uniwidth/u32-strwidth.c: New file.
69080         * modules/uniwidth/u32-strwidth: New file.
69081
69082         * tests/uniwidth/test-u16-strwidth.c: New file.
69083         * modules/uniwidth/u16-strwidth-tests: New file.
69084
69085         * lib/uniwidth/u16-strwidth.c: New file.
69086         * modules/uniwidth/u16-strwidth: New file.
69087
69088         * tests/uniwidth/test-u8-strwidth.c: New file.
69089         * modules/uniwidth/u8-strwidth-tests: New file.
69090
69091         * lib/uniwidth/u8-strwidth.c: New file.
69092         * modules/uniwidth/u8-strwidth: New file.
69093
69094         * tests/uniwidth/test-u32-width.c: New file.
69095         * modules/uniwidth/u32-width-tests: New file.
69096
69097         * lib/uniwidth/u32-width.c: New file.
69098         * modules/uniwidth/u32-width: New file.
69099
69100         * tests/uniwidth/test-u16-width.c: New file.
69101         * modules/uniwidth/u16-width-tests: New file.
69102
69103         * lib/uniwidth/u16-width.c: New file.
69104         * modules/uniwidth/u16-width: New file.
69105
69106         * tests/uniwidth/test-u8-width.c: New file.
69107         * modules/uniwidth/u8-width-tests: New file.
69108
69109         * lib/uniwidth/u8-width.c: New file.
69110         * modules/uniwidth/u8-width: New file.
69111
69112         * tests/uniwidth/test-uc_width.c: New file.
69113         * modules/uniwidth/width-tests: New file.
69114
69115         * lib/uniwidth/width.c: New file, from GNU libiconv.
69116         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
69117         * modules/uniwidth/width: New file.
69118
69119         * lib/uniwidth.h: New file, from GNU libiconv.
69120         * modules/uniwidth/base: New file.
69121
69122 2007-07-07  Bruno Haible  <bruno@clisp.org>
69123
69124         * lib/uniname.h: New file, from GNU gettext.
69125         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
69126         * lib/uniname/uninames.h: New file, from GNU gettext.
69127         * lib/uniname/uniname.c: New file, from GNU gettext.
69128         * tests/uniname/test-uninames.sh: New file.
69129         * tests/uniname/test-uninames.c: New file, from GNU gettext.
69130         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
69131         * modules/uniname/base: New file.
69132         * modules/uniname/uniname: New file.
69133         * modules/uniname/uniname-tests: New file.
69134         * MODULES.html.sh (Unicode string functions): Add the new modules.
69135
69136 2007-07-06  Bruno Haible  <bruno@clisp.org>
69137
69138         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
69139
69140 2007-07-06  Bruno Haible  <bruno@clisp.org>
69141
69142         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
69143         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
69144         includes <cygwin/sys_time.h> which includes <sys/select.h> which
69145         include <sys/time.h>.
69146         Reported by Eric Blake.
69147
69148 2007-07-06  Eric Blake  <ebb9@byu.net>
69149
69150         Fix testing canonicalize on cygwin.
69151         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
69152         Revert patch from 2007-06-19.
69153         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
69154         canonicalize module is also in use.
69155         * tests/test-canonicalize.c: New file.
69156         * tests/test-canonicalize.sh: Likewise.
69157         * modules/canonicalize-tests: Likewise.
69158
69159 2007-07-06  Jim Meyering  <jim@meyering.net>
69160
69161         * lib/getugroups.c (getugroups): Detect getgrent failure.
69162         Adjust comment to reflect reality: this function may return -1.
69163
69164 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
69165
69166         * build-aux/bootstrap (TP_URL,get_translations): Update to use
69167         the new TP address.
69168         (usage): Fix typo
69169         (gnulib_mk): New variable.
69170
69171 2007-07-05  Jim Meyering  <jim@meyering.net>
69172
69173         Don't let endgrent clobber errno, no matter how improbable.
69174         * lib/getugroups.c (getugroups): Save and restore errno around
69175         endgrent call.
69176
69177         Close the group DB even when failing with 2^31 or more members.
69178         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
69179
69180 2007-07-04  Jim Meyering  <jim@meyering.net>
69181
69182         * lib/getugroups.h: New file.
69183         * lib/getugroups.c: Include "getugroups.h".
69184         Remove uses of "register" keyword.
69185         Move local variable, "cp", down into scope where used.
69186         Give "username" parameter the "const" attribute.
69187         * modules/getugroups (Files): Add lib/getugroups.h
69188
69189 2007-07-04  Karl Berry  <karl@gnu.org>
69190
69191         * MODULES.html.sh (func_all_modules): Complete rename of
69192         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
69193
69194 2007-07-02  Bruno Haible  <bruno@clisp.org>
69195
69196         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
69197         mode, when inttypes.h comes from gnulib.
69198         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
69199
69200 2007-07-02  Simon Josefsson  <simon@josefsson.org>
69201
69202         * NEWS: Mention lgpl module name change.
69203
69204         * modules/lgpl-2.1: Renamed from lgpl.
69205
69206         * NEWS: Mention gpl module name change.
69207
69208         * modules/gpl-3.0: New file, based on gpl-2.0.
69209
69210         * modules/gpl-2.0: Renamed from gpl.
69211
69212         * modules/gpl: Fix filename, doc/gpl.texi is now found at
69213         doc/gpl-2.0.texi.
69214
69215 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
69216
69217         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
69218         #define __STDC_LIMIT_MACROS temporarily while including
69219         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
69220         Problem reported by Joel E. Denny in
69221         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
69222
69223 2007-07-01  Bruno Haible  <bruno@clisp.org>
69224
69225         * lib/unistdio.h: New file.
69226         * lib/unistdio/u-asnprintf.h: New file.
69227         * lib/unistdio/u-asprintf.h: New file.
69228         * lib/unistdio/u-printf-args.c: New file.
69229         * lib/unistdio/u-printf-args.h: New file.
69230         * lib/unistdio/u-printf-parse.h: New file.
69231         * lib/unistdio/u-snprintf.h: New file.
69232         * lib/unistdio/u-sprintf.h: New file.
69233         * lib/unistdio/u-vasprintf.h: New file.
69234         * lib/unistdio/u-vsnprintf.h: New file.
69235         * lib/unistdio/u-vsprintf.h: New file.
69236         * lib/unistdio/ulc-asnprintf.c: New file.
69237         * lib/unistdio/ulc-asprintf.c: New file.
69238         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
69239         * lib/unistdio/ulc-printf-parse.c: New file.
69240         * lib/unistdio/ulc-snprintf.c: New file.
69241         * lib/unistdio/ulc-sprintf.c: New file.
69242         * lib/unistdio/ulc-vasnprintf.c: New file.
69243         * lib/unistdio/ulc-vasprintf.c: New file.
69244         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
69245         * lib/unistdio/ulc-vsnprintf.c: New file.
69246         * lib/unistdio/ulc-vsprintf.c: New file.
69247         * lib/unistdio/u8-asnprintf.c: New file.
69248         * lib/unistdio/u8-asprintf.c: New file.
69249         * lib/unistdio/u8-printf-parse.c: New file.
69250         * lib/unistdio/u8-snprintf.c: New file.
69251         * lib/unistdio/u8-sprintf.c: New file.
69252         * lib/unistdio/u8-vasnprintf.c: New file.
69253         * lib/unistdio/u8-vasprintf.c: New file.
69254         * lib/unistdio/u8-vsnprintf.c: New file.
69255         * lib/unistdio/u8-vsprintf.c: New file.
69256         * lib/unistdio/u8-u8-asnprintf.c: New file.
69257         * lib/unistdio/u8-u8-asprintf.c: New file.
69258         * lib/unistdio/u8-u8-snprintf.c: New file.
69259         * lib/unistdio/u8-u8-sprintf.c: New file.
69260         * lib/unistdio/u8-u8-vasnprintf.c: New file.
69261         * lib/unistdio/u8-u8-vasprintf.c: New file.
69262         * lib/unistdio/u8-u8-vsnprintf.c: New file.
69263         * lib/unistdio/u8-u8-vsprintf.c: New file.
69264         * lib/unistdio/u16-asnprintf.c: New file.
69265         * lib/unistdio/u16-asprintf.c: New file.
69266         * lib/unistdio/u16-printf-parse.c: New file.
69267         * lib/unistdio/u16-snprintf.c: New file.
69268         * lib/unistdio/u16-sprintf.c: New file.
69269         * lib/unistdio/u16-vasnprintf.c: New file.
69270         * lib/unistdio/u16-vasprintf.c: New file.
69271         * lib/unistdio/u16-vsnprintf.c: New file.
69272         * lib/unistdio/u16-vsprintf.c: New file.
69273         * lib/unistdio/u16-u16-asnprintf.c: New file.
69274         * lib/unistdio/u16-u16-asprintf.c: New file.
69275         * lib/unistdio/u16-u16-snprintf.c: New file.
69276         * lib/unistdio/u16-u16-sprintf.c: New file.
69277         * lib/unistdio/u16-u16-vasnprintf.c: New file.
69278         * lib/unistdio/u16-u16-vasprintf.c: New file.
69279         * lib/unistdio/u16-u16-vsnprintf.c: New file.
69280         * lib/unistdio/u16-u16-vsprintf.c: New file.
69281         * lib/unistdio/u32-asnprintf.c: New file.
69282         * lib/unistdio/u32-asprintf.c: New file.
69283         * lib/unistdio/u32-printf-parse.c: New file.
69284         * lib/unistdio/u32-snprintf.c: New file.
69285         * lib/unistdio/u32-sprintf.c: New file.
69286         * lib/unistdio/u32-vasnprintf.c: New file.
69287         * lib/unistdio/u32-vasprintf.c: New file.
69288         * lib/unistdio/u32-vsnprintf.c: New file.
69289         * lib/unistdio/u32-vsprintf.c: New file.
69290         * lib/unistdio/u32-u32-asnprintf.c: New file.
69291         * lib/unistdio/u32-u32-asprintf.c: New file.
69292         * lib/unistdio/u32-u32-snprintf.c: New file.
69293         * lib/unistdio/u32-u32-sprintf.c: New file.
69294         * lib/unistdio/u32-u32-vasnprintf.c: New file.
69295         * lib/unistdio/u32-u32-vasprintf.c: New file.
69296         * lib/unistdio/u32-u32-vsnprintf.c: New file.
69297         * lib/unistdio/u32-u32-vsprintf.c: New file.
69298         * tests/unistdio/test-ulc-asnprintf1.c: New file.
69299         * tests/unistdio/test-ulc-asnprintf1.h: New file.
69300         * tests/unistdio/test-ulc-printf1.h: New file.
69301         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
69302         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
69303         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
69304         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
69305         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
69306         * tests/unistdio/test-ulc-vasprintf1.c: New file.
69307         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
69308         * tests/unistdio/test-ulc-vsprintf1.c: New file.
69309         * tests/unistdio/test-u8-asnprintf1.c: New file.
69310         * tests/unistdio/test-u8-asnprintf1.h: New file.
69311         * tests/unistdio/test-u8-printf1.h: New file.
69312         * tests/unistdio/test-u8-vasnprintf1.c: New file.
69313         * tests/unistdio/test-u8-vasnprintf2.c: New file.
69314         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
69315         * tests/unistdio/test-u8-vasnprintf3.c: New file.
69316         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
69317         * tests/unistdio/test-u8-vasprintf1.c: New file.
69318         * tests/unistdio/test-u8-vsnprintf1.c: New file.
69319         * tests/unistdio/test-u8-vsprintf1.c: New file.
69320         * tests/unistdio/test-u16-asnprintf1.c: New file.
69321         * tests/unistdio/test-u16-asnprintf1.h: New file.
69322         * tests/unistdio/test-u16-printf1.h: New file.
69323         * tests/unistdio/test-u16-vasnprintf1.c: New file.
69324         * tests/unistdio/test-u16-vasnprintf2.c: New file.
69325         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
69326         * tests/unistdio/test-u16-vasnprintf3.c: New file.
69327         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
69328         * tests/unistdio/test-u16-vasprintf1.c: New file.
69329         * tests/unistdio/test-u16-vsnprintf1.c: New file.
69330         * tests/unistdio/test-u16-vsprintf1.c: New file.
69331         * tests/unistdio/test-u32-asnprintf1.c: New file.
69332         * tests/unistdio/test-u32-asnprintf1.h: New file.
69333         * tests/unistdio/test-u32-printf1.h: New file.
69334         * tests/unistdio/test-u32-vasnprintf1.c: New file.
69335         * tests/unistdio/test-u32-vasnprintf2.c: New file.
69336         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
69337         * tests/unistdio/test-u32-vasnprintf3.c: New file.
69338         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
69339         * tests/unistdio/test-u32-vasprintf1.c: New file.
69340         * tests/unistdio/test-u32-vsnprintf1.c: New file.
69341         * tests/unistdio/test-u32-vsprintf1.c: New file.
69342         * modules/unistdio/base: New file.
69343         * modules/unistdio/u-printf-args: New file.
69344         * modules/unistdio/ulc-asnprintf: New file.
69345         * modules/unistdio/ulc-asprintf: New file.
69346         * modules/unistdio/ulc-fprintf: New file.
69347         * modules/unistdio/ulc-printf-parse: New file.
69348         * modules/unistdio/ulc-snprintf: New file.
69349         * modules/unistdio/ulc-sprintf: New file.
69350         * modules/unistdio/ulc-vasnprintf: New file.
69351         * modules/unistdio/ulc-vasprintf: New file.
69352         * modules/unistdio/ulc-vfprintf: New file.
69353         * modules/unistdio/ulc-vsnprintf: New file.
69354         * modules/unistdio/ulc-vsprintf: New file.
69355         * modules/unistdio/u8-asnprintf: New file.
69356         * modules/unistdio/u8-asprintf: New file.
69357         * modules/unistdio/u8-printf-parse: New file.
69358         * modules/unistdio/u8-snprintf: New file.
69359         * modules/unistdio/u8-sprintf: New file.
69360         * modules/unistdio/u8-vasnprintf: New file.
69361         * modules/unistdio/u8-vasprintf: New file.
69362         * modules/unistdio/u8-vsnprintf: New file.
69363         * modules/unistdio/u8-vsprintf: New file.
69364         * modules/unistdio/u8-u8-asnprintf: New file.
69365         * modules/unistdio/u8-u8-asprintf: New file.
69366         * modules/unistdio/u8-u8-snprintf: New file.
69367         * modules/unistdio/u8-u8-sprintf: New file.
69368         * modules/unistdio/u8-u8-vasnprintf: New file.
69369         * modules/unistdio/u8-u8-vasprintf: New file.
69370         * modules/unistdio/u8-u8-vsnprintf: New file.
69371         * modules/unistdio/u8-u8-vsprintf: New file.
69372         * modules/unistdio/u16-asnprintf: New file.
69373         * modules/unistdio/u16-asprintf: New file.
69374         * modules/unistdio/u16-printf-parse: New file.
69375         * modules/unistdio/u16-snprintf: New file.
69376         * modules/unistdio/u16-sprintf: New file.
69377         * modules/unistdio/u16-vasnprintf: New file.
69378         * modules/unistdio/u16-vasprintf: New file.
69379         * modules/unistdio/u16-vsnprintf: New file.
69380         * modules/unistdio/u16-vsprintf: New file.
69381         * modules/unistdio/u16-u16-asnprintf: New file.
69382         * modules/unistdio/u16-u16-asprintf: New file.
69383         * modules/unistdio/u16-u16-snprintf: New file.
69384         * modules/unistdio/u16-u16-sprintf: New file.
69385         * modules/unistdio/u16-u16-vasnprintf: New file.
69386         * modules/unistdio/u16-u16-vasprintf: New file.
69387         * modules/unistdio/u16-u16-vsnprintf: New file.
69388         * modules/unistdio/u16-u16-vsprintf: New file.
69389         * modules/unistdio/u32-asnprintf: New file.
69390         * modules/unistdio/u32-asprintf: New file.
69391         * modules/unistdio/u32-printf-parse: New file.
69392         * modules/unistdio/u32-snprintf: New file.
69393         * modules/unistdio/u32-sprintf: New file.
69394         * modules/unistdio/u32-vasnprintf: New file.
69395         * modules/unistdio/u32-vasprintf: New file.
69396         * modules/unistdio/u32-vsnprintf: New file.
69397         * modules/unistdio/u32-vsprintf: New file.
69398         * modules/unistdio/u32-u32-asnprintf: New file.
69399         * modules/unistdio/u32-u32-asprintf: New file.
69400         * modules/unistdio/u32-u32-snprintf: New file.
69401         * modules/unistdio/u32-u32-sprintf: New file.
69402         * modules/unistdio/u32-u32-vasnprintf: New file.
69403         * modules/unistdio/u32-u32-vasprintf: New file.
69404         * modules/unistdio/u32-u32-vsnprintf: New file.
69405         * modules/unistdio/u32-u32-vsprintf: New file.
69406         * modules/unistdio/ulc-asnprintf-tests: New file.
69407         * modules/unistdio/ulc-vasnprintf-tests: New file.
69408         * modules/unistdio/ulc-vasprintf-tests: New file.
69409         * modules/unistdio/ulc-vsnprintf-tests: New file.
69410         * modules/unistdio/ulc-vsprintf-tests: New file.
69411         * modules/unistdio/u8-asnprintf-tests: New file.
69412         * modules/unistdio/u8-vasnprintf-tests: New file.
69413         * modules/unistdio/u8-vasprintf-tests: New file.
69414         * modules/unistdio/u8-vsnprintf-tests: New file.
69415         * modules/unistdio/u8-vsprintf-tests: New file.
69416         * modules/unistdio/u16-asnprintf-tests: New file.
69417         * modules/unistdio/u16-vasnprintf-tests: New file.
69418         * modules/unistdio/u16-vasprintf-tests: New file.
69419         * modules/unistdio/u16-vsnprintf-tests: New file.
69420         * modules/unistdio/u16-vsprintf-tests: New file.
69421         * modules/unistdio/u32-asnprintf-tests: New file.
69422         * modules/unistdio/u32-vasnprintf-tests: New file.
69423         * modules/unistdio/u32-vasprintf-tests: New file.
69424         * modules/unistdio/u32-vsnprintf-tests: New file.
69425         * modules/unistdio/u32-vsprintf-tests: New file.
69426         * MODULES.html.sh (Unicode string functions): Add the new modules.
69427
69428 2007-07-01  Bruno Haible  <bruno@clisp.org>
69429
69430         * lib/sprintf.c (sprintf): Limit the available length estimation,
69431         to avoid address wraparound.
69432         * lib/vsprintf.c (vsprintf): Likewise.
69433         * modules/sprintf-posix (Dependencies): Add stdint.
69434         * modules/vsprintf-posix (Dependencies): Likewise.
69435
69436 2007-07-01  Bruno Haible  <bruno@clisp.org>
69437
69438         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
69439         Windows PATH as well. Conservative double-quoting. Comments.
69440
69441 2007-07-01  Bruno Haible  <bruno@clisp.org>
69442             Eric Blake  <ebb9@byu.net>
69443             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69444
69445         * gnulib-tool (self_abspathname): Fix algorithm to cope with
69446         empty components in $PATH, denoting '.'.
69447
69448 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69449
69450         * gnulib-tool: Fix indentation.
69451         (func_create_megatestdir): Likewise.
69452         Report by Bruno Haible.
69453
69454 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69455
69456         Sync from Automake.
69457         * build-aux/gnupload: Fix shell portability issues with for loops.
69458         Report by Karl Berry.
69459
69460 2007-06-29  Simon Josefsson  <simon@josefsson.org>
69461
69462         * build-aux/maint.mk (POURL): Use translationproject.org.
69463
69464 2007-06-27  Simon Josefsson  <simon@josefsson.org>
69465             Bruno Haible  <bruno@clisp.org>
69466
69467         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
69468         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
69469         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
69470         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
69471         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
69472
69473 2007-06-27  Bruno Haible  <bruno@clisp.org>
69474
69475         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
69476         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
69477
69478 2007-06-26  Karl Berry  <karl@gnu.org>
69479
69480         * MODULES.html.sh: remove xreadlink-with-size.
69481
69482 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
69483
69484         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
69485         method that I hope also handles the double-include problem noted
69486         by Bruno Haible in
69487         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
69488
69489 2007-06-23  Bruno Haible  <bruno@clisp.org>
69490
69491         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69492         Don't let the 'mostlyclean' target fail if the last subdirectory could
69493         not be removed.
69494         Reported by Karl Berry.
69495
69496 2007-06-23  Bruno Haible  <bruno@clisp.org>
69497
69498         * gnulib-tool (echo): Add a speedier workaround for ksh.
69499         * tests/test-echo.sh: Likewise.
69500
69501 2007-06-23  Bruno Haible  <bruno@clisp.org>
69502
69503         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
69504         * tests/test-echo.sh: Likewise.
69505
69506 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69507
69508         * gnulib-tool (IFS): Initialize early, so we don't set it to
69509         empty later.
69510         (self_abspathname): Rewrite algorithm to set it, reindent.
69511         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
69512         (func_create_megatestdir): Merge some sed scripts.
69513
69514 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
69515
69516         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
69517         exposed by Sun Studio 11 cc on Solaris 8.
69518
69519 2007-06-22  Bruno Haible  <bruno@clisp.org>
69520
69521         * gnulib-tool (echo): Ensure the echo primitive does not interpret
69522         backslashes.
69523         * tests/test-echo.sh: New file.
69524
69525 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69526
69527         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
69528         simplify `sed_replace_build_aux' scripts, they are portable but
69529         echoing them with `echo' is not.
69530         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
69531
69532 2007-06-21  Karl Berry  <karl@gnu.org>
69533
69534         * config/srclist.txt: guess we can't handle the licenses via
69535         srclist at the moment.
69536
69537 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
69538
69539         * MODULES.html.sh: Add include_next.
69540         * modules/include_next: New file.
69541
69542 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
69543
69544         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
69545         INCLUDE_NEXT.
69546         (gl_CHECK_NEXT_HEADERS): New macro.
69547         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
69548         the obsolescent gl_ABSOLUTE_HEADER.
69549         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
69550         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
69551         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
69552         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
69553         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
69554         * m4/math_h.m4 (gl_MATH_H): Likewise.
69555         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
69556         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
69557         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
69558         * m4/stdint.m4 (gl_STDINT_H): Likewise.
69559         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
69560         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
69561         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
69562         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
69563         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
69564         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
69565         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
69566         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
69567         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
69568         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
69569         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
69570         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
69571         * m4/inttypes.m4 (gl_INTTYPES_H): Define
69572         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
69573         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
69574         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
69575         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
69576         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
69577         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
69578         * lib/float_.h: Likewise.
69579         * lib/inttypes_.h: Likewise.
69580         * lib/math_.h: Likewise.
69581         * lib/search_.h: Likewise.
69582         * lib/signal_.h: Likewise.
69583         * lib/stdint_.h: Likewise.
69584         * lib/stdio_.h: Likewise.
69585         * lib/stdlib_.h: Likewise.
69586         * lib/string_.h: Likewise.
69587         * lib/sys_stat_.h: Likewise.
69588         * lib/sys_time_.h: Likewise.
69589         * lib/time_.h: Likewise.
69590         * lib/unistd_.h: Likewise.
69591         * lib/wchar_.h: Likewise.
69592         * lib/wctype_.h: Likewise.
69593         * lib/dirent_.h: Likewise.
69594         * lib/iconv_.h: Likewise.
69595         * lib/locale_.h: Likewise.
69596         * lib/netinet_in_.h: Likewise.
69597         * lib/sys_select_.h: Likewise.
69598         * lib/sys_socket_.h: Likewise.
69599         * lib/sysexits_.h: Likewise.
69600         * modules/fcntl (Depends-on): Depend on include_next, not
69601         absolute_header.
69602         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
69603         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
69604         * modules/fchdir: Likewise.
69605         * modules/float: Likewise.
69606         * modules/iconv_open: Likewise.
69607         * modules/inttypes: Likewise.
69608         * modules/locale: Likewise.
69609         * modules/math: Likewise.
69610         * modules/netinet_in: Likewise.
69611         * modules/search: Likewise.
69612         * modules/signal: Likewise.
69613         * modules/stdint: Likewise.
69614         * modules/stdio: Likewise.
69615         * modules/stdlib: Likewise.
69616         * modules/string: Likewise.
69617         * modules/sys_select: Likewise.
69618         * modules/sys_socket: Likewise.
69619         * modules/sys_stat: Likewise.
69620         * modules/sys_time: Likewise.
69621         * modules/sysexits: Likewise.
69622         * modules/time: Likewise.
69623         * modules/unistd: Likewise.
69624         * modules/wchar: Likewise.
69625         * modules/wctype: Likewise.
69626         * modules/sys_stat: Change maintainer to "all".
69627         * modules/unistd: Likewise.
69628
69629 2007-06-20  Karl Berry  <karl@gnu.org>
69630
69631         * config/srclist.txt: track www changes in license files.
69632
69633 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
69634
69635         * build-aux/bootstrap: Remove stray dot.
69636         Make sure build_aux settings are honored when linking
69637         gnulib_extra_files.
69638
69639 2007-06-19  Eric Blake  <ebb9@byu.net>
69640
69641         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
69642         Allow compilation on cygwin.
69643
69644 2007-06-19  Jim Meyering  <jim@meyering.net>
69645
69646         xreadlink-with-size: Remove module.  No longer used.
69647         Ex-callers now use xreadlink or mreadlink-with-size.
69648         * modules/xreadlink-with-size: Remove module.
69649         * lib/xreadlink-with-size.c: Remove file.
69650         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
69651         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
69652         just before the function definition *is* accurate.
69653
69654         Eliminate one way canonicalize_filename_mode could exit.
69655         * lib/canonicalize.c (canonicalize_filename_mode):
69656         Use mreadlink_with_size, not xreadlink_with_size.
69657
69658 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
69659
69660         Detect porting problems to FreeBSD/arm, which has time_t wider than
69661         long int.  Original problem reported for GNU diff by Xin Li in
69662         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
69663         * modules/getdate (Depends-on): Add intprops, verify.
69664         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
69665         is an integer type no wider than long int.
69666
69667 2007-06-18  Jim Meyering  <jim@meyering.net>
69668
69669         New module: mreadlink-with-size.
69670         * MODULES.html.sh: Add mreadlink-with-size.
69671         * modules/mreadlink-with-size: New module
69672         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
69673         not xreadlink-with-size.
69674         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
69675
69676 2007-06-16  Bruno Haible  <bruno@clisp.org>
69677
69678         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
69679         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
69680         Reported by Gary V. Vaughan <gary@gnu.org>.
69681
69682 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
69683
69684         Revamp lchown so that it lives in unistd.h where it belongs.
69685         * lib/lchown.h: Remove.
69686         * lib/dirchownmod.c: Don't include lib/lchown.h.
69687         * lib/fchownat.c: Likewise.
69688         * lib/openat.c: Likewise.
69689         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
69690         does not follow symlinks.
69691         (EOPNOTSUPP): Define if not defined.
69692         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
69693         is defined to 0.
69694         (lchown): New decl.
69695         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
69696         Do not check for lchown decl.
69697         Set REPLACE_LCHOWN.
69698         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
69699         REPLACE_LCHOWN.
69700         * modules/chown: Make it clear it follows symlinks.
69701         * modules/lchown: Make it clear it doesn't follow symlinks.
69702         (Files): Remove lib/lchown.h
69703         (Depends-on): Add unistd.
69704         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
69705         (Include): Include <unistd.h>, not "lchown.h".
69706         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
69707         REPLACE_LCHOWN.
69708
69709 2007-06-15  Jim Meyering  <jim@meyering.net>
69710
69711         Change license (GPL to LGPL) of fsusage and dependents.
69712         * modules/fsusage (License): Change to LGPL.
69713         * modules/full-read (License): Likewise.
69714         * modules/full-write (License): Likewise.
69715         * modules/safe-read (License): Likewise.
69716         * modules/safe-write (License): Likewise.
69717
69718 2007-06-14  Ben Pfaff  <blp@gnu.org>
69719
69720         Missing part of allocsa -> malloca transition.
69721         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
69722         gl_MALLOCA.
69723
69724 2007-06-12  Bruno Haible  <bruno@clisp.org>
69725
69726         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
69727         to ia64, x86_64, i386.
69728         Reported by Eric Blake.
69729
69730 2007-06-12  Bruno Haible  <bruno@clisp.org>
69731
69732         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
69733         cross-compiling to x86_64.
69734
69735 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
69736
69737         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
69738         glitch reported by Ralf Wildenhues in
69739         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
69740
69741         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
69742         Vin Shelton.
69743
69744 2007-06-11  Bruno Haible  <bruno@clisp.org>
69745
69746         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
69747         replacement string.
69748         Reported by Eric Blake.
69749
69750 2007-06-10  Bruno Haible  <bruno@clisp.org>
69751
69752         Prepare vasnprintf code for use with Unicode strings.
69753         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
69754         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
69755         TYPE_U32_STRING.
69756         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
69757         a_u32_string variants.
69758         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
69759         * lib/printf-args.c: Don't include config.h and the specification
69760         header if PRINTF_FETCHARGS is already defined.
69761         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
69762         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
69763         TYPE_U16_STRING, TYPE_U32_STRING.
69764         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
69765         u16_directive, u16_directives, u32_directive, u32_directives): New
69766         types.
69767         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
69768         New declarations.
69769         * lib/printf-parse.c: Don't include config.h and the specification
69770         header if PRINTF_PARSE is already defined. Eliminate the set of
69771         parameters for WIDE_CHAR_VERSION; the user of this file must provide
69772         them now. Include c-ctype.h.
69773         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
69774         directive and CHAR_T_ONLY_ASCII.
69775         * lib/vasnprintf.c: Don't include config.h and the specification header
69776         if VASNPRINTF is already defined.
69777         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
69778         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
69779         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
69780         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
69781         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
69782         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
69783         code accordingly.
69784         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
69785         pad_ourselves also in this case, with the 'c' and 's' directives, and
69786         with a different notion of "width".
69787         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
69788
69789 2007-06-10  Bruno Haible  <bruno@clisp.org>
69790
69791         * modules/unistr/u32-mbsnlen: New file.
69792         * lib/unistr/u32-mbsnlen.c: New file.
69793
69794         * modules/unistr/u16-mbsnlen: New file.
69795         * lib/unistr/u16-mbsnlen.c: New file.
69796
69797         * modules/unistr/u8-mbsnlen: New file.
69798         * lib/unistr/u8-mbsnlen.c: New file.
69799
69800         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
69801         declarations.
69802
69803 2007-06-10  Bruno Haible  <bruno@clisp.org>
69804
69805         * lib/string_.h (mbsnlen): New declaration.
69806         * lib/mbsnlen.c: New file.
69807         * m4/mbsnlen.m4: New file.
69808         * modules/mbsnlen: New file.
69809         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
69810         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
69811         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
69812
69813 2007-06-10  Bruno Haible  <bruno@clisp.org>
69814
69815         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
69816
69817 2007-06-10  Bruno Haible  <bruno@clisp.org>
69818
69819         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
69820         * lib/mbuiter.h: Likewise.
69821
69822 2007-06-10  Bruno Haible  <bruno@clisp.org>
69823
69824         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
69825         declaration.
69826
69827 2007-06-10  Karl Berry  <karl@gnu.org>
69828
69829         * config/srclist.txt: remove gettext entries, Bruno prefers
69830         to update individually.
69831
69832 2007-06-10  Bruno Haible  <bruno@clisp.org>
69833
69834         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
69835         'maxlen'. Ensure only length + width bytes are allocated, not
69836         length + 1 + width.
69837
69838 2007-06-09  Bruno Haible  <bruno@clisp.org>
69839
69840         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
69841         (CHAR_T): Remove macro.
69842         (VASNPRINTF): Update.
69843
69844 2007-06-09  Bruno Haible  <bruno@clisp.org>
69845
69846         * MODULES.html.sh (Unicode string functions): Add the new modules.
69847
69848         * modules/uniconv/u32-conv-to-enc: New file.
69849         * lib/uniconv/u32-conv-to-enc.c: New file.
69850         * modules/uniconv/u32-conv-to-enc-tests: New file.
69851         * tests/uniconv/test-u32-conv-to-enc.c: New file.
69852
69853         * modules/uniconv/u16-conv-to-enc: New file.
69854         * lib/uniconv/u16-conv-to-enc.c: New file.
69855         * lib/uniconv/u-conv-to-enc.h: New file.
69856         * modules/uniconv/u16-conv-to-enc-tests: New file.
69857         * tests/uniconv/test-u16-conv-to-enc.c: New file.
69858
69859         * modules/uniconv/u8-conv-to-enc: New file.
69860         * lib/uniconv/u8-conv-to-enc.c: New file.
69861         * modules/uniconv/u8-conv-to-enc-tests: New file.
69862         * tests/uniconv/test-u8-conv-to-enc.c: New file.
69863
69864         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
69865         u32_conv_to_encoding): New declarations.
69866
69867 2007-06-09  Bruno Haible  <bruno@clisp.org>
69868
69869         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
69870
69871 2007-06-09  Bruno Haible  <bruno@clisp.org>
69872
69873         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
69874         * modules/malloca: Renamed from modules/allocsa, updated.
69875         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
69876         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
69877         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
69878         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
69879         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
69880         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
69881         * modules/xmalloca: Renamed from modules/xallocsa, updated.
69882         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
69883         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
69884         * modules/c-strcasestr (Depends-on): Update.
69885         * lib/c-strcasestr.c: Update.
69886         * modules/c-strstr (Depends-on): Update.
69887         * lib/c-strstr.c: Update.
69888         * modules/canonicalize-lgpl (Depends-on): Update.
69889         * lib/canonicalize-lgpl.c: Update.
69890         * modules/clean-temp (Depends-on): Update.
69891         * lib/clean-temp.c: Update.
69892         * modules/csharpcomp (Depends-on): Update.
69893         * lib/csharpcomp.c: Update.
69894         * modules/csharpexec (Depends-on): Update.
69895         * lib/csharpexec.c: Update.
69896         * modules/javacomp (Depends-on): Update.
69897         * lib/javacomp.c: Update.
69898         * modules/javaexec (Depends-on): Update.
69899         * lib/javaexec.c: Update.
69900         * modules/mbscasestr (Depends-on): Update.
69901         * lib/mbscasestr.c: Update.
69902         * modules/mbsstr (Depends-on): Update.
69903         * lib/mbsstr.c: Update.
69904         * modules/setenv (Depends-on): Update.
69905         * lib/setenv.c: Update.
69906         * modules/strcasestr (Depends-on): Update.
69907         * lib/strcasestr.c: Update.
69908         * modules/striconveha (Depends-on): Update.
69909         * lib/striconveha.c: Update.
69910         * modules/relocatable-prog-wrapper (Files): Update.
69911         * lib/relocwrapper.c: Update.
69912         * build-aux/install-reloc: Update.
69913         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
69914
69915 2007-06-08  Bruno Haible  <bruno@clisp.org>
69916
69917         Port to uClibc.
69918         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
69919         * lib/fpurge.c (fpurge): Likewise.
69920         * lib/freading.c (freading): Likewise.
69921         * lib/fseeko.c (rpl_fseeko): Likewise.
69922         * lib/fseterr.c (fseterr): Likewise.
69923         * lib/fwriting.c (fwriting): Likewise.
69924         * tests/test-fflush.c (main): Avoid a failure on uClibc.
69925
69926 2007-06-08  Bruno Haible  <bruno@clisp.org>
69927
69928         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
69929         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
69930         * modules/gettext (Files): Add m4/intlmacosx.m4.
69931
69932 2007-06-07  Bruno Haible  <bruno@clisp.org>
69933
69934         * modules/localename-tests: New file.
69935         * tests/test-localename.c: New file.
69936
69937         New module 'localename'.
69938         * lib/localename.h: New file.
69939         * lib/localename.c: New file, from GNU gettext.
69940         * m4/localename.m4: New file.
69941         * modules/localename: New file.
69942
69943 2007-06-07  Bruno Haible  <bruno@clisp.org>
69944
69945         Work around the lack of <wchar.h> on some builds of uClibc.
69946         * doc/headers/wchar.texi: Update.
69947         * lib/wchar_.h: Include <wchar.h> only if it exists.
69948         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
69949         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
69950         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
69951         doesn't exist.
69952         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
69953         * modules/mbfile (Depends-on): Add wchar.
69954         * modules/mbiter (Depends-on): Likewise.
69955         * modules/mbuiter (Depends-on): Likewise.
69956         Reported by Simon Josefsson.
69957
69958 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
69959
69960         Work around problem reported by Steven M. Schweda in
69961         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
69962         Tru64 5.1B with the Compaq compiler environment installed declares
69963         an 'isblank' function but does not define it in the C library.
69964         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
69965         * lib/regex_internal.h (isblank): Likewise.
69966         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
69967         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
69968
69969 2007-06-05  Bruno Haible  <bruno@clisp.org>
69970
69971         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
69972         ia64.
69973         * modules/printf-safe: New file.
69974         * modules/fprintf-posix (Depends-on): Add printf-safe.
69975         * modules/printf-posix (Depends-on): Likewise.
69976         * modules/snprintf-posix (Depends-on): Likewise.
69977         * modules/sprintf-posix (Depends-on): Likewise.
69978         * modules/vasnprintf-posix (Depends-on): Likewise.
69979         * modules/vasprintf-posix (Depends-on): Likewise.
69980         * modules/vfprintf-posix (Depends-on): Likewise.
69981         * modules/vprintf-posix (Depends-on): Likewise.
69982         * modules/vsnprintf-posix (Depends-on): Likewise.
69983         * modules/vsprintf-posix (Depends-on): Likewise.
69984         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
69985         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
69986         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
69987         "no" on i386, x86_64, ia64.
69988         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
69989         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
69990         on i386, x86_64, ia64.
69991         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
69992         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
69993         on i386, x86_64, ia64.
69994         * tests/test-vasnprintf-posix.c: Include float.h.
69995         (LDBL80_WORDS): New macro.
69996         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
69997         on i386, x86_64, ia64.
69998         * tests/test-vasprintf-posix.c: Include float.h.
69999         (LDBL80_WORDS): New macro.
70000         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
70001         on i386, x86_64, ia64.
70002         * tests/test-snprintf-posix.c: Include float.h.
70003         * tests/test-sprintf-posix.c: Likewise.
70004         * tests/test-vsnprintf-posix.c: Likewise.
70005         * tests/test-vsprintf-posix.c: Likewise.
70006
70007 2007-06-05  Bruno Haible  <bruno@clisp.org>
70008
70009         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
70010         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
70011         non-IEEE numbers on i386, x86_64, ia64.
70012         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
70013         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
70014         * tests/test-isnanl.h: Include float.h.
70015         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
70016
70017 2007-06-05  Bruno Haible  <bruno@clisp.org>
70018
70019         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
70020         also the %a / %A. Handle the %a / %A code before this extra handling.
70021
70022 2007-06-05  Bruno Haible  <bruno@clisp.org>
70023
70024         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
70025         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
70026
70027 2007-06-05  Bruno Haible  <bruno@clisp.org>
70028
70029         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
70030         typo in variable name.
70031
70032 2007-06-05  Eric Blake  <ebb9@byu.net>
70033
70034         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
70035         Reported by Simon Josefsson.
70036
70037 2007-06-04  Bruno Haible  <bruno@clisp.org>
70038
70039         Avoid test failures on some PowerPC platforms.
70040         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
70041         Define differently for PowerPC.
70042         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
70043         Reported by Gary V. Vaughan <gary@gnu.org>.
70044
70045 2007-06-02  Bruno Haible  <bruno@clisp.org>
70046
70047         Fix test-stdint failure on FreeBSD/ia64.
70048         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
70049         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
70050         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
70051         * doc/headers/stdint.texi: Update.
70052
70053 2007-06-01  Bruno Haible  <bruno@clisp.org>
70054
70055         * tests/test-binary-io.c (main): Pass a third argument to open().
70056         Reported by Gary V. Vaughan <gary@gnu.org>.
70057
70058 2007-06-01  Bruno Haible  <bruno@clisp.org>
70059
70060         * doc/functions/frexpl.texi: Update for mingw.
70061
70062 2007-06-01  Bruno Haible  <bruno@clisp.org>
70063
70064         * tests/test-lseek.c (main): Disable test of errno for invalid third
70065         argument.
70066         * doc/functions/lseek.texi: Update.
70067         Reported by Gary V. Vaughan <gary@gnu.org>.
70068
70069 2007-05-28  Bruno Haible  <bruno@clisp.org>
70070
70071         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
70072
70073 2007-05-31  Eric Blake  <ebb9@byu.net>
70074
70075         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
70076         cross compiling.
70077
70078 2007-05-30  Eric Blake  <ebb9@byu.net>
70079         and Bruno Haible  <bruno@clisp.org>
70080
70081         Work around mingw test failures exposed by m4-1.4.9b.
70082         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
70083         * tests/test-unistd.c: Disable uid_t and git_t tests for the
70084         moment.
70085
70086 2007-05-30  Bruno Haible  <bruno@clisp.org>
70087
70088         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
70089         assuming that they are closed. Needed on HP-UX 11.
70090
70091 2007-05-29  Bruno Haible  <bruno@clisp.org>
70092
70093         Fix a problem with #include_next.
70094         * lib/dirent_.h: Split the double-inclusion guard.
70095         * lib/fcntl_.h: Likewise.
70096         * lib/float_.h: Likewise.
70097         * lib/iconv_.h: Likewise.
70098         * lib/inttypes_.h: Likewise.
70099         * lib/locale_.h: Likewise.
70100         * lib/math_.h: Likewise.
70101         * lib/netinet_in_.h: Likewise.
70102         * lib/search_.h: Likewise.
70103         * lib/signal_.h: Likewise.
70104         * lib/stdint_.h: Likewise.
70105         * lib/stdio_.h: Likewise.
70106         * lib/stdlib_.h: Likewise.
70107         * lib/string_.h: Likewise.
70108         * lib/sys_select_.h: Likewise.
70109         * lib/sys_socket_.h: Likewise.
70110         * lib/sys_stat_.h: Likewise.
70111         * lib/sys_time_.h: Likewise.
70112         * lib/sysexits_.h: Likewise.
70113         * lib/time_.h: Likewise.
70114         * lib/unistd_.h: Likewise.
70115         * lib/wchar_.h: Likewise.
70116         * lib/wctype_.h: Likewise.
70117
70118 2007-05-29  Bruno Haible  <bruno@clisp.org>
70119
70120         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
70121         for the moment.
70122
70123 2007-05-29  Bruno Haible  <bruno@clisp.org>
70124
70125         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
70126         invocation.
70127         Reported by Eric Blake.
70128
70129 2007-05-29  Bruno Haible  <bruno@clisp.org>
70130
70131         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
70132         compiling case.
70133
70134 2007-05-29  Eric Blake  <ebb9@byu.net>
70135             Bruno Haible  <bruno@clisp.org>
70136
70137         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
70138         cross compiles.
70139
70140 2007-05-28  Eric Blake  <ebb9@byu.net>
70141
70142         * modules/closein-tests (test_closein_LDADD): Support test on
70143         cygwin with libtool.
70144
70145 2007-05-28  Bruno Haible  <bruno@clisp.org>
70146
70147         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
70148         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
70149         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
70150         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
70151         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
70152         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
70153         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
70154         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
70155         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
70156
70157 2007-05-28  Eric Blake  <ebb9@byu.net>
70158
70159         Unconditionally include <config.h> in unit tests.
70160         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
70161         * tests/test-allocsa.c, tests/test-arcfour.c,
70162         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
70163         tests/test-array_list.c, tests/test-array_oset.c,
70164         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
70165         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
70166         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
70167         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
70168         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
70169         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
70170         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
70171         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
70172         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
70173         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
70174         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
70175         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
70176         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
70177         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
70178         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
70179         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
70180         test-md5.c, test-memmem.c, test-printf-posix.c,
70181         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
70182         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
70183         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
70184         test-strcasestr.c, test-striconv.c, test-striconveh.c,
70185         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
70186         test-vasnprintf-posix2.c, test-vasnprintf.c,
70187         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
70188         test-vfprintf-posix.c, test-vprintf-posix.c,
70189         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
70190         test-xvasprintf.c: Likewise.
70191
70192 2007-05-28  Bruno Haible  <bruno@clisp.org>
70193
70194         * gnulib-tool (func_import): Remember the --with-tests command-line
70195         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
70196         Reported by Eric Blake.
70197
70198 2007-05-28  Bruno Haible  <bruno@clisp.org>
70199
70200         * modules/ftell-tests: New file.
70201         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
70202         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
70203
70204         * lib/ftell.c: New file.
70205         * modules/ftell: New file.
70206         * m4/ftell.m4: New file.
70207         * doc/functions/ftell.texi: Update.
70208         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
70209         REPLACE_FTELL.
70210         * lib/stdio_.h (rpl_ftell): New declaration.
70211         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
70212         REPLACE_FTELL.
70213
70214 2007-05-28  Eric Blake  <ebb9@byu.net>
70215
70216         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
70217
70218 2007-05-28  Bruno Haible  <bruno@clisp.org>
70219
70220         * modules/fseek-tests: New file.
70221         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
70222         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
70223
70224         * lib/fseek.c: New file.
70225         * modules/fseek: New file.
70226         * m4/fseek.m4: New file.
70227         * doc/functions/fseek.texi: Update.
70228         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
70229         REPLACE_FSEEK.
70230         * lib/stdio_.h (rpl_fseek): New declaration.
70231         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
70232         REPLACE_FSEEK.
70233
70234 2007-05-28  Bruno Haible  <bruno@clisp.org>
70235
70236         * lib/stdio_.h (fflush): More comments.
70237
70238 2007-05-28  Bruno Haible  <bruno@clisp.org>
70239
70240         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
70241         runtime test.
70242
70243 2007-05-28  Eric Blake  <ebb9@byu.net>
70244
70245         Improve lseek module.
70246         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
70247         * lib/unistd_.h (lseek): Scale back link warning message.
70248         * tests/test-lseek.c: Beef up test.
70249         * tests/test-lseek.sh: Exercise more facets of lseek.
70250         Reported by Bruno Haible.
70251
70252 2007-05-28  Bruno Haible  <bruno@clisp.org>
70253
70254         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
70255         to define.
70256
70257 2007-05-27  Bruno Haible  <bruno@clisp.org>
70258
70259         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
70260
70261 2007-05-27  Bruno Haible  <bruno@clisp.org>
70262
70263         * modules/openmp: New file.
70264         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
70265         Noah Misch.
70266
70267 2007-05-26  Bruno Haible  <bruno@clisp.org>
70268
70269         * modules/chdir-long (Depends-on): Add fchdir.
70270         * modules/chdir-safer (Depends-on): Likewise.
70271         * modules/fts (Depends-on): Likewise.
70272         * modules/fts-lgpl (Depends-on): Likewise.
70273         * modules/openat (Depends-on): Likewise.
70274         * modules/savewd (Depends-on): Likewise.
70275
70276 2007-05-24  Eric Blake  <ebb9@byu.net>
70277
70278         Fix lseek on mingw.
70279         * modules/lseek: New module.
70280         * m4/lseek.m4: New file.
70281         * lib/lseek.c: New file.
70282         * modules/lseek-tests: New file.
70283         * tests/test-lseek.c: New file.
70284         * tests/test-lseek.sh: New file.
70285         * MODULES.html.sh: Document lseek module.
70286         * modules/fflush (Depends-on): Add lseek, fseeko.
70287         * modules/fseeko (Depends-on): Likewise.
70288         * modules/ftello (Depends-on): Likewise.
70289         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
70290         broken.
70291         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
70292         broken.
70293         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
70294         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
70295         * lib/ftello.c (rpl_ftello): Likewise.
70296         * tests/test-fseeko.c (main): Test this.
70297         * tests/test-fseeko.sh: Likewise.
70298         * tests/test-ftello.c (main): Likewise.
70299         * tests/test-ftello.sh: Likewise.
70300         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
70301         implies replacing fseek.
70302         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
70303         HAVE_FTELLO.
70304         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
70305         * modules/unistd (Makefile.am): Likewise.
70306         * lib/unistd_.h (lseek): Declare a replacement.
70307         * doc/functions/lseek.texi (lseek): Document this fix.
70308         * doc/functions/fseek.texi (fseek): Likewise.
70309         * doc/functions/ftell.texi (ftell): Likewise.
70310
70311 2007-05-24  Bruno Haible  <bruno@clisp.org>
70312
70313         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
70314         in the printed representation of a NaN.
70315         * tests/test-vasprintf-posix.c (test_function): Likewise.
70316         * tests/test-snprintf-posix.h (test_function): Likewise.
70317         * tests/test-sprintf-posix.h (test_function): Likewise.
70318         Reported by Eric Blake.
70319
70320 2007-05-23  Eric Blake  <ebb9@byu.net>
70321
70322         Fix fseeko/ftello on cygwin 1.5.24.
70323         * doc/functions/fseeko.texi (fseeko): Document the fix.
70324         * doc/functions/ftello.texi (ftello): Document the fix.
70325         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
70326         * doc/functions/stdout.text (stdout): New file.
70327         * doc/functions/stderr.text (stderr): New file.
70328         * doc/gnulib.texi (Function Substitutes): Use new files.
70329         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
70330         prior to 1.7.0.
70331         * tests/test-ftello.c (main): Likewise for ftello.
70332         * tests/test-fseeko.sh: New file.
70333         * tests/test-ftello.sh: New file.
70334         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
70335         with seekable stdin.
70336         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
70337         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
70338         (gl_REPLACE_FSEEKO): New macro.
70339         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
70340         * modules/fseeko (Files): Distribute fseeko.c.
70341         * modules/ftello (Files): Distribute ftello.c.
70342         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
70343         mode.
70344         * lib/ftello.c (rpl_ftello): New file.
70345         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
70346         fseeko, ftello.
70347         (gl_STDIN_LARGE_OFFSET): New macro.
70348         * modules/stdio (Makefile.am): Perform the replacement.
70349         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
70350
70351 2007-05-23  Bruno Haible  <bruno@clisp.org>
70352
70353         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
70354         GNULIB_POSIXCHECK is defined.
70355
70356 2007-05-21  Bruno Haible  <bruno@clisp.org>
70357
70358         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
70359         Check also the output for NaN arguments. When cross-compiling, guess
70360         no on IRIX.
70361         * lib/vasnprintf.c: Update comments.
70362         * tests/test-vasnprintf-posix.c (strisnan): New function.
70363         (test_function): Use it.
70364         * tests/test-vasprintf-posix.c (strisnan): New function.
70365         (test_function): Use it.
70366         * tests/test-snprintf-posix.h (strisnan): New function.
70367         (test_function): Use it.
70368         * tests/test-sprintf-posix.h (strisnan): New function.
70369         (test_function): Use it.
70370         Reported by Eric Blake.
70371
70372 2007-05-20  Bruno Haible  <bruno@clisp.org>
70373
70374         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
70375         numbers that fails on BeOS.
70376         * doc/functions/frexpl.texi: Update.
70377
70378 2007-05-20  Jim Meyering  <jim@meyering.net>
70379
70380         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
70381         forced upon us by glibc-2.6.
70382
70383 2007-05-20  Bruno Haible  <bruno@clisp.org>
70384
70385         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
70386         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
70387         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
70388         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
70389         NEED_PRINTF_INFINITE.
70390         (is_infinitel): New function.
70391         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
70392         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
70393         gl_PREREQ_VASNPRINTF_INFINITE.
70394         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
70395         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
70396         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
70397         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
70398         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
70399         gl_PREREQ_VASNPRINTF_INFINITE.
70400         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
70401         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70402         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70403         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70404         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70405         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70406         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70407         * doc/functions/fprintf.texi: Update.
70408         * doc/functions/printf.texi: Update.
70409         * doc/functions/snprintf.texi: Update.
70410         * doc/functions/sprintf.texi: Update.
70411         * doc/functions/vfprintf.texi: Update.
70412         * doc/functions/vprintf.texi: Update.
70413         * doc/functions/vsnprintf.texi: Update.
70414         * doc/functions/vsprintf.texi: Update.
70415
70416 2007-05-20  Bruno Haible  <bruno@clisp.org>
70417
70418         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
70419         was not found in libc.
70420         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
70421
70422 2007-05-20  Bruno Haible  <bruno@clisp.org>
70423
70424         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
70425         printed as "-nan" instead of "nan".
70426         * tests/test-vasprintf-posix.c (test_function): Likewise.
70427         * tests/test-snprintf-posix.h (test_function): Likewise.
70428         * tests/test-sprintf-posix.h (test_function): Likewise.
70429         Needed for HP-UX 11.
70430
70431 2007-05-20  Jim Meyering  <jim@meyering.net>
70432
70433         Fix buggy test for the fchownat-deref bug.
70434         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
70435         symlink required for the run-test.  Without it, this test would
70436         always declare that fchownat doesn't work, and client code would
70437         unnecessarily use the replacement function with fixed libc.
70438         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
70439         Reported by Greg Schafer.
70440
70441 2007-05-19  Bruno Haible  <bruno@clisp.org>
70442
70443         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
70444         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
70445         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
70446         Needed for IRIX 6.5 and Solaris 2.5.1.
70447
70448 2007-05-19  Bruno Haible  <bruno@clisp.org>
70449
70450         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
70451         (test_function): Skip tests involving -0.0 on platforms where
70452         -0.0 = 0.0.
70453         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
70454         (test_function): Skip tests involving -0.0 on platforms where
70455         -0.0 = 0.0.
70456         * tests/test-snprintf-posix.h (have_minus_zero): New function.
70457         (test_function): Skip tests involving -0.0 on platforms where
70458         -0.0 = 0.0.
70459         * tests/test-sprintf-posix.h (have_minus_zero): New function.
70460         (test_function): Skip tests involving -0.0 on platforms where
70461         -0.0 = 0.0.
70462         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
70463         tests.
70464         * tests/test-printf-posix.h (test_function): Likewise.
70465         * tests/test-printf-posix.output: Remove all -0.0 related results.
70466         Needed for IRIX 6.5.
70467
70468 2007-05-19  Bruno Haible  <bruno@clisp.org>
70469
70470         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
70471         printed as "nan0x7fffffff" instead of "nan".
70472         * tests/test-vasprintf-posix.c (test_function): Likewise.
70473         * tests/test-snprintf-posix.h (test_function): Likewise.
70474         * tests/test-sprintf-posix.h (test_function): Likewise.
70475         * tests/test-fprintf-posix.h (NaN): Remove macro.
70476         (test_function): Remove all NaN related tests.
70477         * tests/test-printf-posix.h (NaN): Remove macro.
70478         (test_function): Remove all NaN related tests.
70479         * tests/test-printf-posix.output: Remove all NaN related results.
70480         Needed for IRIX 6.5.
70481
70482 2007-05-19  Bruno Haible  <bruno@clisp.org>
70483
70484         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
70485         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
70486
70487 2007-05-19  Bruno Haible  <bruno@clisp.org>
70488
70489         * lib/float_.h: New file.
70490         * m4/float_h.m4: New file.
70491         * modules/float: New file.
70492         * modules/isnanl (Dependencies): Add float.
70493         * modules/isnanl-nolibm (Dependencies): Likewise.
70494         * modules/mathl (Dependencies): Likewise.
70495         * modules/printf-frexpl (Dependencies): Likewise.
70496         * modules/signbit (Dependencies): Likewise.
70497         * modules/vasnprintf (Dependencies): Likewise.
70498         * doc/headers/float.texi: Update.
70499
70500 2007-05-19  Jim Meyering  <jim@meyering.net>
70501
70502         * lib/utimens.c (gl_futimens): Rename from futimens,
70503         now that glibc-2.6 declares futimens.
70504         * lib/utimens.h: Likewise.
70505
70506 2007-05-19  Bruno Haible  <bruno@clisp.org>
70507
70508         Avoid test failures on mingw.
70509         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
70510         * tests/test-printf-posix.sh: Likewise.
70511         * tests/test-vfprintf-posix.sh: Likewise.
70512         * tests/test-vprintf-posix.sh: Likewise.
70513
70514 2007-05-19  Bruno Haible  <bruno@clisp.org>
70515
70516         Fix *printf result for NaN, Inf, -0.0 on mingw.
70517         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
70518         * lib/vasnprintf.c: Include math.h and isnan.h.
70519         (is_infinite_or_zero): New function.
70520         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
70521         values in the %f, %F, %e, %E, %g, %G directives.
70522         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
70523         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
70524         gl_PRINTF_INFINITE and test its result. Invoke
70525         gl_PREREQ_VASNPRINTF_INFINITE.
70526         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
70527         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70528         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70529         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70530         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70531         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70532         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70533         * doc/functions/fprintf.texi: Update.
70534         * doc/functions/printf.texi: Update.
70535         * doc/functions/snprintf.texi: Update.
70536         * doc/functions/sprintf.texi: Update.
70537         * doc/functions/vfprintf.texi: Update.
70538         * doc/functions/vprintf.texi: Update.
70539         * doc/functions/vsnprintf.texi: Update.
70540         * doc/functions/vsprintf.texi: Update.
70541
70542 2007-05-19  Bruno Haible  <bruno@clisp.org>
70543
70544         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
70545         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
70546         Instead of multiplying with 10^k, set extra_zeroes to k.
70547         (scale10_round_long_double): Remove function.
70548
70549 2007-05-18  Bruno Haible  <bruno@clisp.org>
70550
70551         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
70552         introduced on 2007-05-06.
70553
70554 2007-05-18  Bruno Haible  <bruno@clisp.org>
70555
70556         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
70557         %g directives.
70558         * tests/test-vasprintf-posix.c (test_function): Likewise.
70559         * tests/test-snprintf-posix.h (test_function): Likewise.
70560         * tests/test-sprintf-posix.h (test_function): Likewise.
70561
70562 2007-05-18  Bruno Haible  <bruno@clisp.org>
70563
70564         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
70565         (strmatch): New function.
70566         (test_function): Test the %f directive on numbers of various exponents.
70567         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
70568         (strmatch): New function.
70569         (test_function): Test the %f directive on numbers of various exponents.
70570         * tests/test-snprintf-posix.h (strmatch): New function.
70571         (test_function): Test the %f directive on numbers of various exponents.
70572         * tests/test-sprintf-posix.h (strmatch): New function.
70573         (test_function): Test the %f directive on numbers of various exponents.
70574         * tests/test-snprintf-posix.c (SIZEOF): New macro.
70575         * tests/test-sprintf-posix.c (SIZEOF): New macro.
70576         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
70577         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
70578
70579 2007-05-18  Bruno Haible  <bruno@clisp.org>
70580
70581         Add support for 'long double' number output.
70582         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
70583         * lib/vasnprintf.c: Include math.h and float+.h.
70584         (mp_limb_t): New type.
70585         (GMP_LIMB_BITS): New macro.
70586         (mp_twolimb_t): New type.
70587         (GMP_TWOLIMB_BITS): New macro.
70588         (mpn_t): New type.
70589         (multiply, divide, convert_to_decimal, decode_long_double,
70590         scale10_round_long_double, scale10_round_decimal_long_double,
70591         floorlog10l): New functions.
70592         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
70593         for the %f, %F, %e, %E, %g, %G directives.
70594         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
70595         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
70596         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
70597         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
70598         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
70599         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70600         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70601         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70602         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70603         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70604         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70605         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
70606         * modules/snprintf-posix (Depends-on): Likewise.
70607         * modules/sprintf-posix (Depends-on): Likewise.
70608         * modules/vasnprintf-posix (Depends-on): Likewise.
70609         * modules/vasprintf-posix (Depends-on): Likewise.
70610         * modules/vfprintf-posix (Depends-on): Likewise.
70611         * modules/vsnprintf-posix (Depends-on): Likewise.
70612         * modules/vsprintf-posix (Depends-on): Likewise.
70613         * modules/vasnprintf (Files): Add lib/float+.h.
70614         * doc/functions/fprintf.texi: Update.
70615         * doc/functions/printf.texi: Update.
70616         * doc/functions/snprintf.texi: Update.
70617         * doc/functions/sprintf.texi: Update.
70618         * doc/functions/vfprintf.texi: Update.
70619         * doc/functions/vprintf.texi: Update.
70620         * doc/functions/vsnprintf.texi: Update.
70621         * doc/functions/vsprintf.texi: Update.
70622
70623 2007-05-18  Bruno Haible  <bruno@clisp.org>
70624
70625         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
70626
70627 2007-05-18  Bruno Haible  <bruno@clisp.org>
70628
70629         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
70630         for printing 64-bit integers. Needed for mingw.
70631
70632 2007-05-18  Bruno Haible  <bruno@clisp.org>
70633
70634         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
70635         gl_FUNC_FREXPL_WORKS.
70636         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
70637
70638 2007-05-18  Bruno Haible  <bruno@clisp.org>
70639
70640         * modules/frexpl-nolibm-tests: New file.
70641
70642         * modules/frexpl-nolibm: New file.
70643         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
70644
70645 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
70646
70647         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
70648         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
70649         GCC 4.2, which otherwise issues a lot of warnings.
70650         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
70651         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
70652         Likewise.
70653         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
70654         * modules/iconv_open (iconv.h): Likewise.
70655         * modules/locale (locale.h): Likewise.
70656         * modules/netinet_in (netinet/in.h): Likewise.
70657         * modules/sys_select (sys_select.h): Likewise.
70658         * modules/sys_socket (sys/socket.h): Likewise.
70659         * modules/sys_stat (sys/stat.h): Likewise.
70660         * modules/sysexits (sysexits.h): Likewise.
70661         * modules/unistd (unistd.h): Likewise.
70662
70663 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70664
70665         * modules/closein-tests (Makefile.am): Distribute
70666         `test-closein.sh'.
70667
70668 2007-05-17  Bruno Haible  <bruno@clisp.org>
70669
70670         * tests/test-printf-posix.output: Renamed from
70671         tests/test-fprintf-posix.out.
70672         * modules/fprintf-posix-tests: Update.
70673         * modules/printf-posix-tests: Update.
70674         * modules/vfprintf-posix-tests: Update.
70675         * modules/vprintf-posix-tests: Update.
70676         * tests/test-fprintf-posix.sh: Update.
70677         * tests/test-printf-posix.sh: Update.
70678         * tests/test-vfprintf-posix.sh: Update.
70679         * tests/test-vprintf-posix.sh: Update.
70680         Reported by Ralf Wildenhues.
70681
70682 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
70683
70684         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
70685         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
70686         GCC 4.2, which otherwise issues a lot of warnings.
70687         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
70688         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
70689         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
70690         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
70691         it should no longer be needed.
70692         * lib/string_.h: Likewise.
70693         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
70694         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
70695         * modules/inttypes (inttypes.h): Likewise.
70696         * modules/math (math.h): Likewise.
70697         * modules/search (search.h): Likewise.
70698         * modules/signal (signal.h): Likewise.
70699         * modules/stdint (stdint.h): Likewise.
70700         * modules/stdio (stdio.h): Likewise.
70701         * modules/stdlib (stdlib.h): Likewise.
70702         * modules/string (string.h): Likewise.
70703         * modules/sys_time (sys/time.h): Likewise.
70704         * modules/time (time.h): Likewise.
70705         * modules/wchar (wchar.h): Likewise.
70706         * modules/wctype (wtype.h): Likewise.
70707
70708 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
70709
70710         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
70711
70712 2007-05-13  Bruno Haible  <bruno@clisp.org>
70713
70714         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
70715         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
70716         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
70717         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
70718         (gl_PREREQ_STRTOK_R): Don't require it here.
70719
70720 2007-05-13  Bruno Haible  <bruno@clisp.org>
70721
70722         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
70723         when used in C++ mode.
70724
70725 2007-05-12  Bruno Haible  <bruno@clisp.org>
70726
70727         * lib/linebuffer.h: Tweak doc.
70728         * lib/linebuffer.c: Likewise.
70729
70730 2007-05-12  James Youngman  <jay@gnu.org>
70731
70732         * lib/linebuffer.c (readlinebuffer_delim): New function,
70733         like readlinebuffer, but use a caller-specified delimiter.
70734         (readlinebuffer): Just call readlinebuffer_delim with '\n'
70735         as the delimiter.
70736         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
70737
70738 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
70739
70740         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
70741         * modules/openat (Files): Remove openat-die.c.
70742         (Depends-on): Add openat-die.
70743         * modules/openat-die: New module.
70744
70745 2007-05-06  Bruno Haible  <bruno@clisp.org>
70746
70747         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
70748         Update with info about Cygwin.
70749         * doc/functions/fprintf.texi: Update.
70750         * doc/functions/printf.texi: Update.
70751         * doc/functions/snprintf.texi: Update.
70752         * doc/functions/sprintf.texi: Update.
70753         * doc/functions/vfprintf.texi: Update.
70754         * doc/functions/vprintf.texi: Update.
70755         * doc/functions/vsnprintf.texi: Update.
70756         * doc/functions/vsprintf.texi: Update.
70757         Reported by Eric Blake.
70758
70759 2007-05-06  Bruno Haible  <bruno@clisp.org>
70760
70761         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
70762         padding ourselves for the floating-point directives.
70763         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
70764         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
70765         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
70766         gl_PRINTF_FLAG_ZERO and test its result. Invoke
70767         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
70768         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70769         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
70770         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70771         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70772         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70773         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70774         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70775         * tests/test-snprintf-posix.h (test_function): Also check the width
70776         and some flags in the %f directive.
70777         * tests/test-sprintf-posix.h (test_function): Likewise.
70778         * tests/test-vasnprintf-posix.c (test_function): Likewise.
70779         * tests/test-vasprintf-posix.c (test_function): Likewise.
70780         * doc/functions/fprintf.texi: Update.
70781         * doc/functions/printf.texi: Update.
70782         * doc/functions/snprintf.texi: Update.
70783         * doc/functions/sprintf.texi: Update.
70784         * doc/functions/vfprintf.texi: Update.
70785         * doc/functions/vprintf.texi: Update.
70786         * doc/functions/vsnprintf.texi: Update.
70787         * doc/functions/vsprintf.texi: Update.
70788
70789 2007-05-06  Bruno Haible  <bruno@clisp.org>
70790
70791         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
70792         pass the ' flag character to sprintf or snprintf.
70793         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
70794         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
70795         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
70796         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
70797         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
70798         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70799         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
70800         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70801         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70802         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70803         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70804         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70805         * tests/test-snprintf-posix.h (test_function): Also check the grouping
70806         flag.
70807         * tests/test-sprintf-posix.h (test_function): Likewise.
70808         * tests/test-vasnprintf-posix.c (test_function): Likewise.
70809         * tests/test-vasprintf-posix.c (test_function): Likewise.
70810         * doc/functions/fprintf.texi: Update.
70811         * doc/functions/printf.texi: Update.
70812         * doc/functions/snprintf.texi: Update.
70813         * doc/functions/sprintf.texi: Update.
70814         * doc/functions/vfprintf.texi: Update.
70815         * doc/functions/vprintf.texi: Update.
70816         * doc/functions/vsnprintf.texi: Update.
70817         * doc/functions/vsprintf.texi: Update.
70818
70819 2007-05-01  Bruno Haible  <bruno@clisp.org>
70820
70821         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
70822
70823 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
70824
70825         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
70826         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
70827
70828 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
70829
70830         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
70831         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
70832         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
70833
70834 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
70835
70836         * lib/argp-help.c (struct hol_entry): New member `ord'.
70837         (HOL_ENTRY_PTRCMP): Use ord for comparison
70838         (hol_sort): Initialize ord.
70839
70840 2007-05-01  Bruno Haible  <bruno@clisp.org>
70841
70842         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
70843         Reported by Eric Blake.
70844         * doc/gnulib.texi (Function Substitutes): Update.
70845
70846 2007-05-01  Bruno Haible  <bruno@clisp.org>
70847
70848         * doc/functions.texi: Remove file, now redundant through
70849         doc/functions/*.texi.
70850
70851 2007-05-01  Bruno Haible  <bruno@clisp.org>
70852
70853         * modules/argp (Depends-on): Add sleep.
70854
70855 2007-05-01  Bruno Haible  <bruno@clisp.org>
70856
70857         * modules/sleep-tests: New file.
70858         * tests/test-sleep.c: New file.
70859
70860         * modules/sleep: New file.
70861         * lib/sleep.c: New file.
70862         * m4/sleep.m4: New file.
70863         * lib/unistd_.h (sleep): New declaration.
70864         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
70865         HAVE_SLEEP.
70866         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
70867         * doc/functions/sleep.texi: Document the sleep module.
70868
70869 2007-05-01  Bruno Haible  <bruno@clisp.org>
70870
70871         * lib/sigprocmask.h: Remove file.
70872         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
70873         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
70874         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
70875         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
70876         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
70877         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
70878         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
70879         HAVE_SIGSET_T as a shell variable.
70880         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
70881         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
70882         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
70883         (Depends-on): Add signal. Remove verify.
70884         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
70885         (Include): Mention <signal.h> instead of sigprocmask.h.
70886         * NEWS: Mention the change.
70887         * lib/fatal-signal.c: Don't include sigprocmask.h.
70888
70889 2007-05-01  Bruno Haible  <bruno@clisp.org>
70890
70891         * modules/signal: New file.
70892         * lib/signal_.h: New file.
70893         * m4/signal_h.m4: New file.
70894
70895 2007-05-01  Bruno Haible  <bruno@clisp.org>
70896
70897         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
70898         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
70899         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
70900         HAVE_WCTYPE_CTMP_BUG into wctype.h.
70901
70902 2007-05-01  Bruno Haible  <bruno@clisp.org>
70903
70904         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
70905         configure time.
70906         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
70907         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
70908         * modules/sys_stat (Makefile.am): Substitute their values into
70909         sys/stat.h.
70910
70911 2007-05-01  Bruno Haible  <bruno@clisp.org>
70912
70913         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
70914         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
70915         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
70916
70917 2007-05-01  Bruno Haible  <bruno@clisp.org>
70918
70919         * doc/header/assert.texi: Undo last change: don't mention the gnulib
70920         'assert' module here.
70921
70922 2007-05-01  Bruno Haible  <bruno@clisp.org>
70923
70924         * doc/functions/*.texi: New files.
70925         * doc/functions/google-ranking.txt: New file.
70926         * doc/gnulib.texi (Function Substitutes): New chapter.
70927         (ctime, inet_ntoa): Remove sections.
70928         * doc/ctime.texi: Remove file.
70929         * doc/inet_ntoa.texi: Remove file.
70930         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
70931         dependencies.
70932         (%.info): New rule, specifying a --reference-limit.
70933
70934 2007-05-01  Bruno Haible  <bruno@clisp.org>
70935
70936         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
70937
70938 2007-05-01  Bruno Haible  <bruno@clisp.org>
70939
70940         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
70941         the portability of 'mkdir' to mingw systems.
70942
70943 2007-05-01  Bruno Haible  <bruno@clisp.org>
70944
70945         * doc/headers/google-ranking.txt: New file.
70946
70947 2007-04-30  Eric Blake  <ebb9@byu.net>
70948
70949         Prefer fseeko to fseek.
70950         * modules/getpass (Depends-on): Add fseeko.
70951         * lib/getpass.c (getpass): Use fseeko, not fseek.
70952
70953 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
70954
70955         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
70956         assumes the sorting is stable, while most qsort implementations
70957         are not.  Use argument addresses to ensure they never compare as
70958         equal.
70959
70960         * tests/test-argp-2.sh (usage-indent test): Fix output
70961         (func_compare): Restore diff options
70962         * tests/test-argp.c: Restore #include "progname.h"
70963
70964 2007-04-29  Bruno Haible  <bruno@clisp.org>
70965
70966         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
70967         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
70968         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
70969         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70970         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
70971         (configure.ac): Define CHECK_SNPRINTF_POSIX.
70972         (TESTS, check_PROGRAMS): Add test-snprintf.
70973         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
70974         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
70975         (TESTS, check_PROGRAMS): Add test-vsnprintf.
70976         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
70977         assertions that fail on HP-UX, OSF/1, or IRIX.
70978         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
70979
70980 2007-04-29  Bruno Haible  <bruno@clisp.org>
70981
70982         * MODULES.html.sh (posix_functions): Remove 'contents'.
70983
70984 2007-04-29  Karl Berry  <karl@gnu.org>
70985
70986         * config/srclist.txt (gendocs_template_min): new entry.
70987
70988 2007-04-29  Bruno Haible  <bruno@clisp.org>
70989
70990         Work around fpurge bug on BSD systems.
70991         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
70992         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
70993         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
70994         fpurge to rpl_fpurge if the system already has this function.
70995         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
70996         the case where the system already has this function. Correct invariants
70997         on BSD systems.
70998         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
70999         BSD systems.
71000
71001 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
71002
71003         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
71004         proposed by Sven Verdoolaege.
71005
71006         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
71007         options.
71008         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
71009         (usage and help tests): Update
71010
71011 2007-04-29  Bruno Haible  <bruno@clisp.org>
71012
71013         * tests/test-fflush.c (main): Use a file of size 17, not 10.
71014         Print more information in case of failure. Disable a test on BeOS.
71015
71016 2007-04-29  Bruno Haible  <bruno@clisp.org>
71017
71018         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
71019         This helps debugging on systems on which no gdb is available.
71020
71021 2007-04-29  Bruno Haible  <bruno@clisp.org>
71022
71023         * lib/freading.h: Improve comments.
71024         * lib/fwriting.h: Likewise.
71025         * tests/test-freading.c (main): Don't check freading immediately after
71026         repositioning. Needed for glibc.
71027
71028 2007-04-29  Bruno Haible  <bruno@clisp.org>
71029
71030         * lib/freading.c (freading): Trivial simplification.
71031
71032 2007-04-28  Bruno Haible  <bruno@clisp.org>
71033
71034         * tests/test-fwriting.c (main): Also test the interaction between
71035         fflush and fwriting.
71036         * modules/fwriting-tests (Depends-on): Add fflush.
71037
71038         * tests/test-freading.c (main): Also test the interaction between
71039         fflush and freading.
71040         * modules/freading-tests (Depends-on): Add fflush.
71041
71042 2007-04-28  Bruno Haible  <bruno@clisp.org>
71043
71044         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
71045         fseeko and ftello.
71046         Suggested by Eric Blake.
71047
71048 2007-04-28  Jim Meyering  <jim@meyering.net>
71049
71050         Avoid false-negative in gl_STDINT_H's C99 conformance test.
71051         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
71052         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
71053
71054 2007-04-27  Eric Blake  <ebb9@byu.net>
71055
71056         * doc/headers/assert.texi (assert.h): Document assert module use.
71057
71058 2007-04-27  Bruno Haible  <bruno@clisp.org>
71059
71060         * doc/headers/*.texi: New files.
71061         * doc/gnulib.texi (Header File Substitutes): New chapter.
71062         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
71063         dependencies.
71064         (standards.info ,standards.html, standards.dvi): Update dependencies.
71065         (mostlyclean, clean): New targets.
71066
71067 2007-04-27  Bruno Haible  <bruno@clisp.org>
71068
71069         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
71070         * modules/sysexits (Files, Makefile.am): Update.
71071
71072         * lib/sys_socket_.h: Renamed from lib/socket_.h.
71073         * modules/sys_socket (Files, Makefile.am): Update.
71074
71075         * lib/sys_stat_.h: Renamed from lib/stat_.h.
71076         * modules/sys_stat (Files, Makefile.am): Update.
71077
71078 2007-04-27  Eric Blake  <ebb9@byu.net>
71079
71080         * lib/freading.h: Improve comments.
71081         * lib/fwriting.h: Likewise.
71082         * lib/fflush.c: Likewise.
71083
71084         Fix closein for mingw.
71085         * modules/closein-tests: Add tests for closein.
71086         * tests/test-closein.c: New file.
71087         * tests/test-closein.sh: Likewise.
71088         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
71089         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
71090
71091 2007-04-27  Bruno Haible  <bruno@clisp.org>
71092
71093         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
71094         version is < 6.
71095         * lib/math_.h [__DECC]: Likewise.
71096         * lib/stdio_.h [__DECC]: Likewise.
71097         * lib/stdlib_.h [__DECC]: Likewise.
71098         * lib/string_.h [__DECC]: Likewise.
71099         * lib/time_.h [__DECC]: Likewise.
71100         * lib/wchar_.h [__DECC]: Likewise.
71101         * lib/wctype_.h [__DECC]: Likewise.
71102
71103 2007-04-27  Bruno Haible  <bruno@clisp.org>
71104
71105         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
71106
71107 2007-04-27  Bruno Haible  <bruno@clisp.org>
71108
71109         * lib/fflush.c: Add comments.
71110         * modules/fpurge-tests (Depends-on): Add fflush.
71111         * modules/freadable-tests (Depends-on): Likewise.
71112         * modules/fwritable-tests (Depends-on): Likewise.
71113
71114 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
71115
71116         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
71117         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
71118         Report by Bruno Haible <bruno@clisp.org>.
71119
71120 2007-04-26  Eric Blake  <ebb9@byu.net>
71121
71122         Fix fflush on mingw.
71123         * modules/fflush (Depends-on): Add freading.
71124         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
71125         but unread data.
71126
71127 2007-04-26  Eric Blake  <ebb9@byu.net>
71128         and Bruno Haible  <bruno@clisp.org>
71129
71130         Implement freading and fwriting.
71131         * lib/freading.c: New file.
71132         * lib/freading.h: Likewise.
71133         * m4/freading.m4: Likewise.
71134         * modules/freading: Likewise.
71135         * modules/freading-tests: Likewise.
71136         * tests/test-freading.c: Likewise.
71137         * lib/fwriting.c: New file.
71138         * lib/fwriting.h: Likewise.
71139         * m4/fwriting.m4: Likewise.
71140         * modules/fwriting: Likewise.
71141         * modules/fwriting-tests: Likewise.
71142         * tests/test-fwriting.c: Likewise.
71143         * MODULES.html.sh (File stream based Input/Output): Mention them.
71144
71145 2007-04-26  Bruno Haible  <bruno@clisp.org>
71146
71147         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
71148         'long' when we assume it.
71149         Suggested by Eric Blake.
71150
71151 2007-04-26  Bruno Haible  <bruno@clisp.org>
71152
71153         Ensure fseeko, ftello are declared on glibc systems.
71154         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
71155         * modules/fseeko (configure.ac-early): Likewise.
71156         * modules/ftello (configure.ac-early): Likewise.
71157         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
71158         AC_FUNC_FSEEKO for this.
71159         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
71160         (gl_CHECK_FSEEKO): Remove macro.
71161
71162 2007-04-26  Bruno Haible  <bruno@clisp.org>
71163
71164         * tests/test-fflush.c (main): Also check the ftell result after
71165         fflush and fseek/fseeko.
71166         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
71167         file descriptor position cache in the stream.
71168         * lib/fseeko.c (rpl_fseeko): Likewise.
71169
71170 2007-04-26  Bruno Haible  <bruno@clisp.org>
71171
71172         * modules/fflush-tests (Depends-on): Add fseeko.
71173
71174 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
71175             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71176
71177         * lib/argz_.h: ensure error_t definition is obtained in same
71178         mechanism system argz.h would have.
71179         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
71180         argz facilities are known bad.  Err on the side of caution if
71181         cross-compiling.
71182
71183 2007-04-25  Eric Blake  <ebb9@byu.net>
71184
71185         * lib/fpurge.c (includes): Use stdlib.h for free.
71186         * tests/test-fflush.c (main): Also test fflush-fseeko.
71187
71188 2007-04-25  Bruno Haible  <bruno@clisp.org>
71189
71190         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
71191         * lib/fseeko.c: New file.
71192         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
71193         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
71194         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
71195         gl_FUNC_FSEEKO.
71196         (gl_FUNC_FSEEKO): Invoke it.
71197         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
71198         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
71199         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
71200
71201 2007-04-25  Bruno Haible  <bruno@clisp.org>
71202
71203         * modules/fflush (Depends-on): Add ftello.
71204
71205 2007-04-25  Bruno Haible  <bruno@clisp.org>
71206
71207         * modules/ftello-tests: New file.
71208         * tests/test-ftello.c: New file.
71209
71210         * modules/ftello: New file.
71211         * m4/ftello.m4: New file.
71212         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
71213         HAVE_FTELLO.
71214         * lib/stdio_.h (ftello): New declaration.
71215         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
71216         HAVE_FTELLO.
71217
71218 2007-04-25  Bruno Haible  <bruno@clisp.org>
71219
71220         * modules/fseeko-tests: New file.
71221         * tests/test-fseeko.c: New file.
71222
71223         * modules/fseeko: New file.
71224         * m4/fseeko.m4: New file.
71225         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
71226         HAVE_FSEEKO.
71227         * lib/stdio_.h (fseeko): New declaration.
71228         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
71229         HAVE_FSEEKO.
71230
71231 2007-04-25  Bruno Haible  <bruno@clisp.org>
71232
71233         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
71234
71235 2007-04-25  Bruno Haible  <bruno@clisp.org>
71236
71237         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
71238         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
71239         * tests/test-unistd.c: Likewise.
71240         * tests/test-fcntl.c: Likewise.
71241
71242 2007-04-23  Eric Blake  <ebb9@byu.net>
71243
71244         * lib/fflush.c: Fix missing include.
71245         Reported by Bruno Haible.
71246
71247 2007-04-23  Bruno Haible  <bruno@clisp.org>
71248
71249         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
71250         Reported by Eric Blake.
71251
71252 2007-04-23  Bruno Haible  <bruno@clisp.org>
71253
71254         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
71255
71256 2007-04-23  Bruno Haible  <bruno@clisp.org>
71257
71258         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
71259
71260 2007-04-23  Bruno Haible  <bruno@clisp.org>
71261
71262         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
71263         Needed on HP-UX 11.
71264
71265 2007-04-16  Eric Blake  <ebb9@byu.net>
71266
71267         Make fflush rely on fpurge.
71268         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
71269         open coding all variants.
71270         * modules/fflush (Depends-on): Add fpurge and unistd.
71271         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
71272         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
71273
71274         Fix --with-tests compilation on cygwin.
71275         * modules/argmatch-tests (Makefile.am): List gnulib library first
71276         in LDADD.
71277         * modules/argp-tests (Makefile.am): Likewise.
71278         * modules/array-list-tests (Makefile.am): Likewise.
71279         * modules/array-oset-tests (Makefile.am): Likewise.
71280         * modules/avltree-list-tests (Makefile.am): Likewise.
71281         * modules/avltree-oset-tests (Makefile.am): Likewise.
71282         * modules/avltreehash-list-tests (Makefile.am): Likewise.
71283         * modules/carray-list-tests (Makefile.am): Likewise.
71284         * modules/dirname-tests (Makefile.am): Likewise.
71285         * modules/frexp-tests (Makefile.am): Likewise.
71286         * modules/isnanl-tests (Makefile.am): Likewise.
71287         * modules/linked-list-tests (Makefile.am): Likewise.
71288         * modules/linkedhash-list-tests (Makefile.am): Likewise.
71289         * modules/lock-tests (Makefile.am): Likewise.
71290         * modules/rbtree-list-tests (Makefile.am): Likewise.
71291         * modules/rbtree-oset-tests (Makefile.am): Likewise.
71292         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
71293         * modules/tls-tests (Makefile.am): Likewise.
71294         * modules/tsearch-tests (Makefile.am): Likewise.
71295         * modules/xvasprintf-tests (Makefile.am): Likewise.
71296
71297         Fix fpurge for cygwin.
71298         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
71299         value.
71300         * modules/fpurge-tests (Depends-on): Clean up trash.
71301
71302 2007-04-16  Simon Josefsson  <simon@josefsson.org>
71303
71304         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
71305
71306         * m4/autobuild.m4: Re-indent.
71307
71308 2007-04-13  Bruno Haible  <bruno@clisp.org>
71309
71310         * modules/fpurge-tests: New file.
71311         * tests/test-fpurge.c: New file.
71312
71313         * modules/fpurge: New file.
71314         * lib/fpurge.h: New file.
71315         * lib/fpurge.c: New file.
71316         * m4/fpurge.m4: New file.
71317
71318 2007-04-13  Bruno Haible  <bruno@clisp.org>
71319
71320         * modules/fbufmode-tests: New file.
71321         * tests/test-fbufmode.c: New file.
71322
71323         * modules/fbufmode: New file.
71324         * lib/fbufmode.h: New file.
71325         * lib/fbufmode.c: New file.
71326         * m4/fbufmode.m4: New file.
71327
71328 2007-04-13  Bruno Haible  <bruno@clisp.org>
71329
71330         * modules/fwritable-tests: New file.
71331         * tests/test-fwritable.c: New file.
71332
71333         * modules/fwritable: New file.
71334         * lib/fwritable.h: New file.
71335         * lib/fwritable.c: New file.
71336         * m4/fwritable.m4: New file.
71337
71338 2007-04-13  Bruno Haible  <bruno@clisp.org>
71339
71340         * modules/freadable-tests: New file.
71341         * tests/test-freadable.c: New file.
71342
71343         * modules/freadable: New file.
71344         * lib/freadable.h: New file.
71345         * lib/freadable.c: New file.
71346         * m4/freadable.m4: New file.
71347
71348 2007-04-13  Bruno Haible  <bruno@clisp.org>
71349
71350         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
71351         MOSTLYCLEANFILES.
71352
71353 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
71354
71355         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
71356         gzip bootstrap.conf to avoid dragging in i18n machinery.
71357         (gnulib_tool_option): Use it.
71358
71359 2007-04-13  Bruno Haible  <bruno@clisp.org>
71360
71361         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
71362         %F directives.
71363         * tests/test-vasprintf-posix.c (test_function): Likewise.
71364         * tests/test-snprintf-posix.h (test_function): Likewise.
71365         * tests/test-sprintf-posix.h (test_function): Likewise.
71366         * tests/test-fprintf-posix.h (test_function): Likewise.
71367         * tests/test-printf-posix.h (test_function): Likewise.
71368         * tests/test-fprintf-posix.out: Likewise.
71369
71370 2007-04-13  Bruno Haible  <bruno@clisp.org>
71371
71372         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
71373         * modules/tls-tests (configure.ac): Likewise.
71374         Reported by Arto C. Nirkko <anirkko@insel.ch>.
71375
71376 2007-04-13  Bruno Haible  <bruno@clisp.org>
71377
71378         * lib/tls.c (glthread_tls_get): Fix return type.
71379         Patch by Arto C. Nirkko <anirkko@insel.ch>.
71380
71381 2007-04-12  Eric Blake  <ebb9@byu.net>
71382
71383         * modules/gettime (Depends-on): Remove gettime.
71384         Reported by Dmitry V. Levin.
71385
71386 2007-04-12  Bruno Haible  <bruno@clisp.org>
71387
71388         * modules/fflush (Include): Mention <stdio.h>.
71389         * modules/strtoimax (Include): Mention <inttypes.h>.
71390         * modules/strtoumax (Include): Likewise.
71391
71392 2007-04-12  Eric Blake  <ebb9@byu.net>
71393
71394         * .cvsignore: New file.
71395         * .gitignore: Likewise.
71396
71397 2007-04-12  Bruno Haible  <bruno@clisp.org>
71398
71399         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
71400         not before, since $(LDADD) often contains libgnu.a.
71401         * modules/striconv-tests (test_striconv_LDADD): Likewise.
71402         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
71403         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
71404         Needed on Cygwin.
71405
71406 2007-04-12  Eric Blake  <ebb9@byu.net>
71407
71408         Work around glibc's failure to flush stdin on fclose.
71409         * lib/closein.c (close_stdin): Flush stdin before closing.
71410
71411         Work around glibc's failure to reset seekable stdin on exit.
71412         * modules/closein: New module.
71413         * lib/closein.c: New file.
71414         * lib/closein.h: Likewise.
71415         * m4/closein.m4: Likewise.
71416         * MODULES.html.sh (File stream based Input/Output): Document it.
71417
71418 2007-04-12  Simon Josefsson  <simon@josefsson.org>
71419
71420         * gnulib-tool: Rename generated 'autobuild' script to
71421         'do-autobuild' in --create-megatestdir output.
71422
71423         * doc/gnulib.texi (Build robot for gnulib): Fix.
71424
71425 2007-04-12  Simon Josefsson  <simon@josefsson.org>
71426
71427         * modules/sysexits (Depends-on): Add absolute-header.
71428
71429 2007-04-12  Eric Blake  <ebb9@byu.net>
71430
71431         No need to preserve errno on success.
71432         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
71433         Reported by Bruno Haible.
71434
71435 2007-04-12  Simon Josefsson  <simon@josefsson.org>
71436
71437         * MODULES.html.sh (Support for maintaining and releasing
71438         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
71439
71440 2007-04-12  Simon Josefsson  <simon@josefsson.org>
71441
71442         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
71443
71444 2007-04-12  Simon Josefsson  <simon@josefsson.org>
71445
71446         * modules/autobuild: New module.
71447
71448         * m4/autobuild.m4: New file.
71449
71450 2007-04-11  Bruno Haible  <bruno@clisp.org>
71451
71452         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
71453         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
71454         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
71455         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
71456         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
71457         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71458         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71459         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
71460         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71461         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71462         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
71463         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71464         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71465         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
71466         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71467         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71468         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
71469         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71470         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71471         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_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/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_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/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_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         Reported by Eric Blake.
71481
71482 2007-04-11  Bruno Haible  <bruno@clisp.org>
71483
71484         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
71485
71486 2007-04-10  Bruno Haible  <bruno@clisp.org>
71487
71488         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
71489         for NaN and Infinity. Needed on FreeBSD 6.1.
71490         * tests/test-vasnprintf-posix.c (test_function): Undo last change
71491         regarding results for "%010a" of Infinity and NaN.
71492         * tests/test-vasprintf-posix.c (test_function): Likewise.
71493         * tests/test-snprintf-posix.h (test_function): Likewise.
71494         * tests/test-sprintf-posix.h (test_function): Likewise.
71495         * tests/test-fprintf-posix.h (test_function): Likewise.
71496         * tests/test-printf-posix.h (test_function): Likewise.
71497         * tests/test-fprintf-posix.out: Likewise.
71498
71499 2007-04-10  Bruno Haible  <bruno@clisp.org>
71500
71501         * modules/locale-tests: New file.
71502         * tests/test-locale.c: New file.
71503
71504         * modules/locale: New file.
71505         * lib/locale_.h: New file.
71506         * m4/locale_h.m4: New file.
71507
71508 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
71509             Bruno Haible  <bruno@clisp.org>
71510
71511         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
71512         be determined, test for availability of the copysignf, copysign,
71513         copysignl functions.
71514         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
71515         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
71516         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
71517
71518 2007-04-09  Eric Blake  <ebb9@byu.net>
71519
71520         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
71521         * modules/stdio (Makefile.am): Support fflush.
71522         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
71523         * modules/fflush: New file.
71524         * lib/fflush.c: Likewise.
71525         * m4/fflush.m4: Likewise.
71526         * modules/fflush-tests: New test.
71527         * tests/test-fflush.c: Likewise.
71528         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
71529
71530 2007-04-06  Bruno Haible  <bruno@clisp.org>
71531
71532         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
71533         (VASNPRINTF): Use signbit for faster determination whether to print a
71534         minus sign.
71535         * modules/vasnprintf (Files): Remove lib/float+.h.
71536         * modules/fprintf-posix (Depends-on): Add signbit.
71537         * modules/snprintf-posix (Depends-on): Likewise.
71538         * modules/sprintf-posix (Depends-on): Likewise.
71539         * modules/vasnprintf-posix (Depends-on): Likewise.
71540         * modules/vasprintf-posix (Depends-on): Likewise.
71541         * modules/vfprintf-posix (Depends-on): Likewise.
71542         * modules/vsnprintf-posix (Depends-on): Likewise.
71543         * modules/vsprintf-posix (Depends-on): Likewise.
71544
71545 2007-04-06  Bruno Haible  <bruno@clisp.org>
71546
71547         * tests/test-frexp.c (main): Test also the sign bit of zero results.
71548         * tests/test-frexpl.c (main): Likewise.
71549         * tests/test-ldexpl.c (main): Likewise.
71550         * modules/frexp-tests (Depends-on): Add signbit.
71551         * modules/frexpl-tests (Depdends-on): Likewise.
71552         * modules/ldexpl-tests (Depdends-on): Likewise.
71553
71554 2007-04-06  Bruno Haible  <bruno@clisp.org>
71555
71556         * modules/signbit-tests: New file.
71557         * tests/test-signbit.c: New file.
71558
71559         * modules/signbit: New file.
71560         * lib/signbitf.c: New file.
71561         * lib/signbitd.c: New file.
71562         * lib/signbitl.c: New file.
71563         * m4/signbit.m4: New file.
71564         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
71565         (signbit): New macro.
71566         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
71567         REPLACE_SIGNBIT.
71568         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
71569         REPLACE_FREXPL into math.h.
71570
71571 2007-04-06  Bruno Haible  <bruno@clisp.org>
71572
71573         * modules/isnanf-nolibm-tests: New file.
71574         * tests/test-isnanf.c: New file.
71575
71576         * modules/isnanf-nolibm: New file.
71577         * lib/isnanf.h: New file.
71578         * lib/isnanf.c: New file.
71579         * lib/isnan.c: Consider the USE_FLOAT macro.
71580         * m4/isnanf.m4: New file.
71581
71582 2007-04-06  Bruno Haible  <bruno@clisp.org>
71583
71584         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
71585         (Link): New section.
71586
71587         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
71588
71589 2007-04-06  Bruno Haible  <bruno@clisp.org>
71590
71591         Assume the 'long double' type.
71592         * m4/longdouble.m4: Remove file.
71593         * config/srclist.txt: Don't mention longdouble.m4.
71594         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
71595         * lib/float+.h: Likewise.
71596         * lib/frexp.c: Likewise.
71597         * lib/printf-args.h: Likewise.
71598         * lib/printf-args.c: Likewise.
71599         * lib/printf-frexp.c: Likewise.
71600         * lib/printf-parse.c: Likewise.
71601         * lib/vasnprintf.c: Likewise.
71602         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
71603         * m4/intl.m4: Likewise.
71604         * m4/isnanl.m4: Likewise.
71605         * m4/printf.m4: Likewise.
71606         * m4/printf-frexpl.m4: Likewise.
71607         * m4/vasnprintf.m4: Likewise.
71608         * modules/allocsa (Files): Remove m4/longdouble.m4.
71609         * modules/gettext (Files): Likewise.
71610         * modules/relocatable-prog-wrapper (Files): Likewise.
71611         * modules/vasnprintf (Files): Likewise.
71612         * modules/isnanl (Files): Likewise.
71613         (Include): Simplify.
71614         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
71615         (Include): Simplify.
71616         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
71617         (Include): Simplify.
71618         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
71619         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71620         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
71621         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71622         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
71623         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71624         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
71625         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71626         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
71627         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71628         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
71629         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71630         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
71631         * tests/test-isnanl.c: Likewise.
71632         * tests/test-snprintf-posix.h: Likewise.
71633         * tests/test-sprintf-posix.h: Likewise.
71634         * tests/test-vasnprintf-posix.c: Likewise.
71635         * tests/test-vasnprintf-posix2.c: Likewise.
71636         * tests/test-vasprintf-posix.c: Likewise.
71637
71638 2007-04-06  Bruno Haible  <bruno@clisp.org>
71639
71640         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
71641         * lib/math_.h [__DECC]: Include the overridden include file through
71642         #include_next, outside the double-inclusion guard.
71643         * lib/stdio_.h [__DECC]: Likewise.
71644         * lib/stdlib_.h [__DECC]: Likewise.
71645         * lib/string_.h [__DECC]: Likewise.
71646         * lib/time_.h [__DECC]: Likewise.
71647         * lib/wchar_.h [__DECC]: Likewise.
71648         * lib/wctype_.h [__DECC]: Likewise.
71649         * lib/inttypes_.h [__DECC]: Likewise.
71650         Reported by Albert Chin <china@thewrittenword.com> in
71651         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
71652
71653 2007-04-04  Eric Blake  <ebb9@byu.net>
71654
71655         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
71656         1.5.x.
71657
71658 2007-04-04  Bruno Haible  <bruno@clisp.org>
71659
71660         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
71661         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
71662
71663 2007-04-04  Bruno Haible  <bruno@clisp.org>
71664
71665         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
71666         results for "%010a" of Infinity and NaN.
71667         * tests/test-vasprintf-posix.c (test_function): Likewise.
71668         * tests/test-snprintf-posix.h (test_function): Likewise.
71669         * tests/test-sprintf-posix.h (test_function): Likewise.
71670         * tests/test-fprintf-posix.h (test_function): Remove these tests.
71671         * tests/test-printf-posix.h (test_function): Likewise.
71672         * tests/test-fprintf-posix.out: Update.
71673         Needed for FreeBSD 6.1.
71674
71675 2007-04-04  Bruno Haible  <bruno@clisp.org>
71676
71677         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
71678         directly used by the gnulib modules nor by gnulib-tool.
71679
71680 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
71681
71682         * DEPENDENCIES: Give overall description of version dependency
71683         desirability.  Use more-typical names for apps.
71684         Add shell, coreutils, diffutils, grep, tar, gzip.
71685
71686 2007-04-04  Simon Josefsson  <simon@josefsson.org>
71687
71688         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
71689
71690 2007-04-04  Karl Berry  <karl@gnu.org>
71691
71692         * MODULES.html.sh (func_module): missing '.
71693
71694 2007-04-03  Bruno Haible  <bruno@clisp.org>
71695
71696         * modules/argmatch-tests (Makefile.am): New variable
71697         test_argmatch_LDADD.
71698         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
71699         * modules/array-list-tests (Makefile.am): New variable
71700         test_array_list_LDADD.
71701         * modules/array-oset-tests (Makefile.am): New variable
71702         test_array_oset_LDADD.
71703         * modules/avltree-list-tests (Makefile.am): New variable
71704         test_avltree_list_LDADD.
71705         * modules/avltree-oset-tests (Makefile.am): New variable
71706         test_avltree_oset_LDADD.
71707         * modules/avltreehash-list-tests (Makefile.am): New variable
71708         test_avltreehash_list_LDADD.
71709         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
71710         test_canonicalize_lgpl_LDADD.
71711         * modules/carray-list-tests (Makefile.am): New variable
71712         test_carray_list_LDADD.
71713         * modules/dirname-tests (Makefile.am): New variable
71714         test_dirname_LDADD.
71715         * modules/linked-list-tests (Makefile.am): New variable
71716         test_linked_list_LDADD.
71717         * modules/linkedhash-list-tests (Makefile.am): New variable
71718         test_linkedhash_list_LDADD.
71719         * modules/rbtree-list-tests (Makefile.am): New variable
71720         test_rbtree_list_LDADD.
71721         * modules/rbtree-oset-tests (Makefile.am): New variable
71722         test_rbtree_oset_LDADD.
71723         * modules/rbtreehash-list-tests (Makefile.am): New variable
71724         test_rbtreehash_list_LDADD.
71725         * modules/xvasprintf-tests (Makefile.am): New variable
71726         test_xvasprintf_LDADD.
71727         Reported by Eric Blake.
71728
71729 2007-04-03  Eric Blake  <ebb9@byu.net>
71730
71731         * DEPENDENCIES: Weaken m4 requirements.
71732
71733 2007-04-03  Bruno Haible  <bruno@clisp.org>
71734
71735         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
71736         * modules/isnanl-tests (configure.ac): Likewise.
71737
71738 2007-04-03  Ben Pfaff  <blp@gnu.org>
71739
71740         * modules/iconv_open: Add $(srcdir)/ to source directory
71741         references in Makefile fragments that call gperf, to fix VPATH
71742         builds.
71743
71744 2007-04-03  Bruno Haible  <bruno@clisp.org>
71745
71746         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
71747         * lib/ldexpl.c: Undo last change.
71748
71749 2007-04-03  Bruno Haible  <bruno@clisp.org>
71750
71751         * modules/printf-frexpl (Depends-on): Undo last change.
71752         (Files): Add m4/ldexpl.m4.
71753
71754 2007-04-03  Bruno Haible  <bruno@clisp.org>
71755
71756         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
71757         * modules/isnanl (Link): New section.
71758
71759         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
71760         * modules/frexp (Link): New section.
71761
71762         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
71763         * modules/frexpl (Link): New section.
71764
71765         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
71766         * modules/ldexpl (Link): New section.
71767
71768 2007-04-03  Bruno Haible  <bruno@clisp.org>
71769
71770         * modules/TEMPLATE-EXTENDED: New file.
71771         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
71772
71773 2007-04-03  Bruno Haible  <bruno@clisp.org>
71774
71775         * DEPENDENCIES: New file.
71776         Suggested by Simon Josefsson.
71777
71778 2007-04-03  Bruno Haible  <bruno@clisp.org>
71779
71780         * doc/gnulib.texi: Escape @.
71781
71782 2007-04-03  James Youngman  <jay@gnu.org>
71783         and Paul Eggert  <eggert@cs.ucla.edu>
71784
71785         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
71786         birthtime on all systems that have birthtime, not just those which
71787         use st_birthtimensec rather than st_birthtim.  Putting zero in
71788         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
71789         that the birth time is not available for files on an NFS mount.
71790
71791 2007-04-03  Simon Josefsson  <simon@josefsson.org>
71792
71793         * modules/memxor: Move back from crypto/, suggested by Bruno.
71794         * modules/crypto/hmac-sha1: Fix memxor dependency.
71795
71796         * modules/crypto/gc: Moved from ../.
71797
71798 2007-04-02  Eric Blake  <ebb9@byu.net>
71799
71800         * lib/ldexpl.c (includes): Avoid libm.
71801
71802         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
71803
71804 2007-04-02  Bruno Haible  <bruno@clisp.org>
71805
71806         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
71807         on IRIX.
71808
71809 2007-04-02  Bruno Haible  <bruno@clisp.org>
71810
71811         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
71812         x86 or x86_64 platforms running MacOS X.
71813         Reported by Ryan Schmidt <@ryandesign.com>.
71814
71815 2007-04-02  Bruno Haible  <bruno@clisp.org>
71816
71817         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
71818         i386.
71819
71820 2007-04-01  Simon Josefsson  <simon@josefsson.org>
71821
71822         * modules/crypto/arcfour: Moved from ../.
71823         * modules/crypto/arcfour-tests: Moved from ../.
71824         * modules/crypto/arctwo: Moved from ../.
71825         * modules/crypto/arctwo-tests: Moved from ../.
71826         * modules/crypto/des: Moved from ../.
71827         * modules/crypto/des-tests: Moved from ../.
71828         * modules/crypto/gc-arcfour: Moved from ../.
71829         * modules/crypto/gc-arcfour-tests: Moved from ../.
71830         * modules/crypto/gc-arctwo: Moved from ../.
71831         * modules/crypto/gc-arctwo-tests: Moved from ../.
71832         * modules/crypto/gc-des: Moved from ../.
71833         * modules/crypto/gc-des-tests: Moved from ../.
71834         * modules/crypto/gc-hmac-md5: Moved from ../.
71835         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
71836         * modules/crypto/gc-hmac-sha1: Moved from ../.
71837         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
71838         * modules/crypto/gc-md2: Moved from ../.
71839         * modules/crypto/gc-md2-tests: Moved from ../.
71840         * modules/crypto/gc-md4: Moved from ../.
71841         * modules/crypto/gc-md4-tests: Moved from ../.
71842         * modules/crypto/gc-md5: Moved from ../.
71843         * modules/crypto/gc-md5-tests: Moved from ../.
71844         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
71845         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
71846         * modules/crypto/gc-random: Moved from ../.
71847         * modules/crypto/gc-rijndael: Moved from ../.
71848         * modules/crypto/gc-rijndael-tests: Moved from ../.
71849         * modules/crypto/gc-sha1: Moved from ../.
71850         * modules/crypto/gc-sha1-tests: Moved from ../.
71851         * modules/crypto/gc-tests: Moved from ../.
71852         * modules/crypto/hmac-md5: Moved from ../.
71853         * modules/crypto/hmac-md5-tests: Moved from ../.
71854         * modules/crypto/hmac-sha1: Moved from ../.
71855         * modules/crypto/hmac-sha1-tests: Moved from ../.
71856         * modules/crypto/md2: Moved from ../.
71857         * modules/crypto/md2-tests: Moved from ../.
71858         * modules/crypto/md4: Moved from ../.
71859         * modules/crypto/md4-tests: Moved from ../.
71860         * modules/crypto/md5: Moved from ../.
71861         * modules/crypto/md5-tests: Moved from ../.
71862         * modules/crypto/memxor: Moved from ../.
71863         * modules/crypto/rijndael: Moved from ../.
71864         * modules/crypto/rijndael-tests: Moved from ../.
71865         * modules/crypto/sha1: Moved from ../.
71866
71867 2007-03-30  James Youngman  <jay@gnu.org>
71868
71869         * tests/test-stat-time.c (prepare_test): use chmod() rather than
71870         rename() to change the ctime of a file (because ctime is unaffected
71871         by rename on jfs2 on AIX 5.1).
71872         (main): Start by doing cleanup, in case a previous run failed leaving
71873         test files behind.
71874
71875 2007-03-31  Bruno Haible  <bruno@clisp.org>
71876
71877         Support old proprietary implementations of iconv.
71878         * modules/iconv_open: New file.
71879         * lib/iconv_.h: New file.
71880         * m4/iconv_h.m4: New file.
71881         * lib/iconv_open.c: New file.
71882         * lib/iconv_open-aix.gperf: New file.
71883         * lib/iconv_open-hpux.gperf: New file.
71884         * lib/iconv_open-irix.gperf: New file.
71885         * lib/iconv_open-osf.gperf: New file.
71886         * m4/iconv_open.m4: New file.
71887         * modules/linebreak (Depends-on): Add iconv_open.
71888         * modules/striconv (Depends-on): Likewise.
71889         * modules/striconveh (Depends-on): Likewise.
71890         * modules/unicodeio (Depends-on): Likewise.
71891         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
71892         (iconv_t)(-1).
71893         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
71894         conversion if cd is (iconv_t)(-1).
71895         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
71896         is not possible.
71897
71898 2007-03-31  Bruno Haible  <bruno@clisp.org>
71899
71900         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
71901         work on Solaris either. Protect also second use of "autodetect_jp".
71902
71903 2007-03-31  Bruno Haible  <bruno@clisp.org>
71904
71905         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
71906         the function is not present.
71907
71908 2007-03-31  Bruno Haible  <bruno@clisp.org>
71909
71910         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
71911         the function is not present.
71912
71913 2007-03-31  Bruno Haible  <bruno@clisp.org>
71914
71915         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
71916         a bug in HP-UX iconv_open().
71917
71918 2007-03-31  Bruno Haible  <bruno@clisp.org>
71919
71920         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
71921         (Mathematics <math.h>): New section, add fpieee.
71922         (Input/output <stdio.h>): Add fseterr.
71923         (Mathematics <math.h>): New section, add printf-frexp.
71924         (Container data structures): Add sublist.
71925         (Core language properties): Add fpucw, inline.
71926         (Functions for greatest-width integer types <inttypes.h>): Add
71927         imaxabs, imaxdiv, inttypes.
71928         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
71929         isnanl-nolibm, ldexp.
71930         (Mathematics <math.h>): New section, add printf-frexpl.
71931         (Support for systems lacking POSIX:2001): Add fprintf-posix,
71932         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
71933         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
71934         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
71935         (Unicode string functions): Add unistr/u*-mbtoucr.
71936         (Java): Add javacomp-script, javaexec-script.
71937         (C#): Add csharpcomp-script, csharpexec-script.
71938         (Support for building libraries and executables): Add havelib,
71939         relocatable-*.
71940         (Support for maintaining and releasing projects): Renamed from
71941         'Support for maintaining and release projects'. Add announce-gen.
71942
71943 2007-03-31  Bruno Haible  <bruno@clisp.org>
71944
71945         * README: Talk primarily about git.
71946         (git and CVS): Renamed from CVS.
71947         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
71948         gnulib is available through git.
71949         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
71950
71951 2007-03-30  Bruno Haible  <bruno@clisp.org>
71952
71953         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
71954         * lib/poll_.h: Likewise.
71955         * lib/stat_.h: Likewise.
71956         * lib/sys_time_.h: Likewise.
71957         * lib/sysexit_.h: Likewise.
71958         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
71959         * lib/stdbool_.h: Likewise.
71960         * lib/byteswap_.h: Add double-inclusion guard.
71961
71962 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
71963
71964         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
71965
71966 2007-03-30  Karl Berry  <karl@gnu.org>
71967
71968         * config/srclist-update: double space after USA in the license
71969         substitution, since that's how it's usually (?) written.
71970
71971 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
71972
71973         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
71974         reported by Bruno Haible.
71975
71976 2007-03-29  Bruno Haible  <bruno@clisp.org>
71977
71978         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
71979         a bug in AIX iconv().
71980
71981 2007-03-29  Bruno Haible  <bruno@clisp.org>
71982
71983         * modules/ldexpl-tests: New file.
71984         * tests/test-ldexpl.c: New file.
71985
71986 2007-03-29  Bruno Haible  <bruno@clisp.org>
71987
71988         * lib/ldexpl.c: Include fpucw.h.
71989         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
71990         multiplication.
71991         * modules/ldexpl (Depends-on): Add fpucw.
71992
71993 2007-03-29  Bruno Haible  <bruno@clisp.org>
71994
71995         * modules/ldexpl: New file.
71996         * m4/ldexpl.m4: New file.
71997         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
71998         set.
71999         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
72000         REPLACE_LDEXPL.
72001         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
72002         REPLACE_LDEXPL.
72003         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
72004         gl_FUNC_LDEXPL_WORKS.
72005         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
72006         * modules/mathl (Files): Remove lib/ldexpl.c.
72007         (Depends-on): Add ldexpl.
72008
72009 2007-03-29  Bruno Haible  <bruno@clisp.org>
72010
72011         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
72012
72013 2007-03-29  Bruno Haible  <bruno@clisp.org>
72014
72015         * tests/test-striconveh.c (main): Don't assume that a direct conversion
72016         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
72017         and possibly also HP-UX.
72018         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
72019         work on AIX, IRIX, HP-UX, OSF/1.
72020         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
72021         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
72022         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
72023         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
72024         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
72025         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
72026
72027 2007-03-29  Bruno Haible  <bruno@clisp.org>
72028
72029         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
72030
72031 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
72032
72033         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
72034         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
72035
72036 2007-03-29  Eric Blake  <ebb9@byu.net>
72037
72038         * lib/acl-internal.h: Remove redundant include.
72039         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
72040         Cygwin when a file is locked.
72041
72042 2007-03-29  Bruno Haible  <bruno@clisp.org>
72043
72044         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
72045         file.
72046         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
72047
72048 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
72049
72050         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
72051         try to remove a parent directory if the child couldn't be removed
72052         (except for the first rmdir, which could fail because the child
72053         doesn't exist).  Problem reported by Jeff Blaine in
72054         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
72055
72056 2007-03-28  Bruno Haible  <bruno@clisp.org>
72057
72058         * lib/striconveh.c (utf8conv_carefully): New function.
72059         (mem_cd_iconveh_internal): Invoke it.
72060
72061 2007-03-28  Bruno Haible  <bruno@clisp.org>
72062
72063         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
72064         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
72065         input.
72066         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
72067         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
72068         unistr/u8-uctomb.
72069
72070 2007-03-28  Bruno Haible  <bruno@clisp.org>
72071
72072         * modules/unistr/u8-mbtoucr: New file.
72073         * lib/unistr/u8-mbtoucr.c: New file.
72074         * modules/unistr/u16-mbtoucr: New file.
72075         * lib/unistr/u16-mbtoucr.c: New file.
72076         * modules/unistr/u16-mbtoucr: New file.
72077         * lib/unistr/u16-mbtoucr.c: New file.
72078         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
72079
72080 2007-03-27  Simon Josefsson  <simon@josefsson.org>
72081             Bruno Haible  <bruno@clisp.org>
72082
72083         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
72084         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
72085         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
72086
72087         * m4/stdio_h.m4: Add stubs for vasprintf too.
72088
72089         * modules/stdio: Support vasprintf in sed command.
72090
72091         * modules/vasprintf: Depend on stdio for prototypes.  Remove
72092         vasprintf.h.  Add stdio module indicator.
72093
72094         * lib/stdio_.h: Declare asprintf and vasprintf, based on
72095         vasprintf.h.
72096
72097         * lib/vasprintf.h: File removed.
72098
72099         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
72100         * lib/vasprintf.c: Ditto.
72101         * lib/xvasprintf.c: Ditto.
72102         * tests/test-vasprintf-posix.c: Ditto.
72103         * tests/test-vasprintf.c: Ditto.
72104
72105 2007-03-27  Bruno Haible  <bruno@clisp.org>
72106
72107         Make vasnprintf multithread-safe.
72108         * lib/vasnprintf.c (decimal_point_char): New function.
72109         (VASNPRINTF): Use it.
72110         Suggested by Simon Josefsson.
72111
72112 2007-03-27  Eric Blake  <ebb9@byu.net>
72113
72114         Support sub-second birthtime on cygwin.
72115         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
72116         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
72117         (get_stat_birthtime): Also work with st_birthtim.
72118
72119 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
72120
72121         * lib/stat-time.h (USE_BIRTHTIME): Remove.
72122         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
72123         (get_stat_birthtime_ns): Do not try to use "spare" fields.
72124         (get_stat_birthtime_ns): Simplify compile-time tests.
72125         (get_stat_birthtime): Change the API to look like
72126         get_stat_mtime etc., except return a negative tv_nsec on error.
72127         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
72128         Don't check for "spare" fields.
72129         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
72130         or for struct stat.st_birthtime, as these tests aren't used.
72131         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
72132
72133 2007-03-27  Bruno Haible  <bruno@clisp.org>
72134
72135         * lib/stat-time.h: Include <sys/stat.h>.
72136
72137 2007-03-27  James Youngman  <jay@gnu.org>
72138
72139         * lib/stat-time.h (get_stat_birthtime): New function for
72140           retrieving st_birthtime as provided by UFS2 (hence *BSD).
72141         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
72142           and its variants.
72143         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
72144         * modules/stat-time-test: New file.
72145         * tests/test-stat-time.c: New test, devised by Bruno Haible.
72146
72147 2007-03-26  Bruno Haible  <bruno@clisp.org>
72148
72149         Better support of signalling NaNs.
72150         * lib/atanl.c: Include isnanl.h.
72151         (atanl): Perform test for NaN at the beginning of the function and
72152         through a call to isnanl.
72153         * lib/cosl.c: Include isnanl.h.
72154         (cosl): Perform test for NaN at the beginning of the function and
72155         through a call to isnanl.
72156         * lib/ldexpl.c: Include isnanl.h.
72157         (ldexpl): Perform test for NaN through a call to isnanl.
72158         * lib/logl.c: Include isnanl.h.
72159         (logl): Perform test for NaN at the beginning of the function and
72160         through a call to isnanl.
72161         * lib/sinl.c: Include isnanl.h.
72162         (sinl): Perform test for NaN at the beginning of the function and
72163         through a call to isnanl.
72164         * lib/sqrtl.c: Include isnanl.h.
72165         (sqrtl): Perform test for NaN at the beginning of the function and
72166         through a call to isnanl.
72167         * lib/tanl.c: Include isnanl.h.
72168         (tanl): Perform test for NaN at the beginning of the function and
72169         through a call to isnanl.
72170         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
72171         * modules/mathl (Depends-on): Add isnanl.
72172
72173 2007-03-26  Eric Blake  <ebb9@byu.net>
72174
72175         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
72176         regression in logic sense of previous patch.
72177
72178 2007-03-26  Bruno Haible  <bruno@clisp.org>
72179
72180         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
72181         unportable shell command "if ! ...".
72182         Reported by Ralf Wildenhues.
72183
72184 2007-03-25  Bruno Haible  <bruno@clisp.org>
72185
72186         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
72187         <sysexits.h> file, and only add EX_CONFIG.
72188         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
72189         absolute file name and whether it is sufficient. Substitute also
72190         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
72191         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
72192         ABSOLUTE_SYSEXITS_H into sysexits.h.
72193
72194 2007-03-25  Bruno Haible  <bruno@clisp.org>
72195
72196         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
72197         hints is NULL.
72198
72199 2007-03-25  Bruno Haible  <bruno@clisp.org>
72200
72201         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
72202         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
72203
72204 2007-03-25  Bruno Haible  <bruno@clisp.org>
72205
72206         * lib/vasnprintf.c: Include langinfo.h.
72207         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
72208         multithread-safe.
72209         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
72210         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
72211         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
72212         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
72213         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
72214         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
72215         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
72216         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
72217         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
72218         Reported by Simon Josefsson.
72219
72220 2007-03-25  Bruno Haible  <bruno@clisp.org>
72221
72222         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
72223         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
72224         * modules/vasnprintf (Depends-on): Add stdint.
72225
72226 2007-03-25  Bruno Haible  <bruno@clisp.org>
72227
72228         * modules/fpieee: New file.
72229         * m4/fpieee.m4: New file.
72230         * modules/isnan-nolibm (Depends-on): Add fpieee.
72231         * modules/isnanl-nolibm (Depends-on): Add fpieee.
72232         * modules/isnanl (Depends-on): Add fpieee.
72233
72234 2007-03-25  Bruno Haible  <bruno@clisp.org>
72235
72236         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
72237
72238 2007-03-25  Bruno Haible  <bruno@clisp.org>
72239
72240         Avoid test failures on IRIX 6.5.
72241         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
72242         (main): Use it.
72243         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
72244         macros.
72245         (main): Use them.
72246
72247 2007-03-25  Bruno Haible  <bruno@clisp.org>
72248
72249         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
72250         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
72251         exists but doesn't work.
72252         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
72253         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
72254         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
72255         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
72256         math.h.
72257
72258 2007-03-25  Bruno Haible  <bruno@clisp.org>
72259
72260         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
72261         returns inf. Needed on IRIX 6.5.
72262
72263 2007-03-25  Bruno Haible  <bruno@clisp.org>
72264
72265         * tests/test-frexpl.c: Include isnanl-nolibm.h.
72266         (main): Use isnanl instead of x != x idiom.
72267         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
72268
72269         * tests/test-frexp.c: Include isnan.h.
72270         (main): Use isnan instead of x != x idiom.
72271         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
72272
72273 2007-03-25  Bruno Haible  <bruno@clisp.org>
72274
72275         * tests/test-frexp.c (NaN): New function/macro.
72276         (main): Use it instead of 0.0 / 0.0.
72277         * tests/test-isnan.c (NaN): New function/macro.
72278         (main): Use it instead of 0.0 / 0.0.
72279         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
72280         (test_function): Use it instead of 0.0 / 0.0.
72281         * tests/test-vasprintf-posix.c (NaN): New function/macro.
72282         (test_function): Use it instead of 0.0 / 0.0.
72283         * tests/test-snprintf-posix.h (NaN): New function/macro.
72284         (test_function): Use it instead of 0.0 / 0.0.
72285         * tests/test-sprintf-posix.h (NaN): New function/macro.
72286         (test_function): Use it instead of 0.0 / 0.0.
72287         * tests/test-fprintf-posix.h (NaN): New function/macro.
72288         (test_function): Use it instead of 0.0 / 0.0.
72289         * tests/test-printf-posix.h (NaN): New function/macro.
72290         (test_function): Use it instead of 0.0 / 0.0.
72291
72292         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
72293
72294 2007-03-25  Bruno Haible  <bruno@clisp.org>
72295
72296         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
72297
72298 2007-03-25  Bruno Haible  <bruno@clisp.org>
72299
72300         * lib/regexec.c (merge_state_with_log): Make static.
72301
72302 2007-03-25  Bruno Haible  <bruno@clisp.org>
72303
72304         * lib/trigl.c (kernel_rem_pio2): Make static.
72305
72306 2007-03-25  Bruno Haible  <bruno@clisp.org>
72307
72308         * lib/sincosl.c (sincosl_table): Make static.
72309
72310 2007-03-25  Bruno Haible  <bruno@clisp.org>
72311
72312         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
72313         if the compiler does not support C99.
72314
72315 2007-03-25  Bruno Haible  <bruno@clisp.org>
72316
72317         * modules/time (Makefile.am): Ensure all rule action lines start with a
72318         tab.
72319
72320 2007-03-24  Bruno Haible  <bruno@clisp.org>
72321
72322         * modules/tsearch-tests: New file.
72323         * tests/test-tsearch.sh: New file.
72324         * tests/test-tsearch.c: New file, mostly copied from glibc.
72325
72326         * modules/search-tests: New file.
72327         * tests/test-search.c: New file.
72328
72329         * modules/search: New file.
72330         * lib/search_.h: New file, incorporating lib/tsearch.h.
72331         * m4/search_h.m4: New file.
72332         * lib/tsearch.h: Remove file.
72333         * lib/tsearch.c: Include search.h instead of tsearch.h.
72334         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
72335         HAVE_TSEARCH.
72336         * modules/tsearch (Files): Remove lib/tsearch.h.
72337         (Depends-on): Add search.
72338         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
72339         (Include): Change tsearch.h into search.h.
72340
72341 2007-03-24  Bruno Haible  <bruno@clisp.org>
72342
72343         * modules/fpucw: New file.
72344         * lib/fpucw.h: New file.
72345         * lib/frexp.c: Include fpucw.h.
72346         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
72347         (FUNC): Use them.
72348         * lib/printf-frexp.c: Include fpucw.h.
72349         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
72350         (FUNC): Use them.
72351         * lib/vasnprintf.c: Include fpucw.h.
72352         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
72353         'long double' calculations.
72354         * tests/test-frexpl.c: Include fpucw.h.
72355         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
72356         * tests/test-printf-frexpl.c: Include fpucw.h.
72357         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
72358         * modules/frexpl (Depends-on): Add fpucw.
72359         * modules/printf-frexpl (Depends-on): Likewise.
72360         * modules/fprintf-posix (Depends-on): Likewise.
72361         * modules/snprintf-posix (Depends-on): Likewise.
72362         * modules/sprintf-posix (Depends-on): Likewise.
72363         * modules/vasnprintf-posix (Depends-on): Likewise.
72364         * modules/vasprintf-posix (Depends-on): Likewise.
72365         * modules/vfprintf-posix (Depends-on): Likewise.
72366         * modules/vsnprintf-posix (Depends-on): Likewise.
72367         * modules/vsprintf-posix (Depends-on): Likewise.
72368         * modules/frexpl-tests (Depends-on): Likewise.
72369         * modules/printf-frexpl-tests (Depends-on): Likewise.
72370
72371 2007-03-24  Bruno Haible  <bruno@clisp.org>
72372
72373         * lib/float+.h: New file.
72374         * lib/isnan.c: Include float+.h.
72375         (SIZE): New macro.
72376         (FUNC): Compare only SIZE bytes of the value.
72377         * lib/vasnprintf.c: Include float+.h.
72378         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
72379         SIZEOF_LDBL or SIZEOF_DBL bytes.
72380         * modules/isnan-nolibm (Files): Add lib/float+.h.
72381         * modules/isnanl-nolibm (Files): Add lib/float+.h.
72382         * modules/isnanl (Files): Add lib/float+.h.
72383         * modules/vasnprintf (Files): Add lib/float+.h.
72384
72385 2007-03-24  Bruno Haible  <bruno@clisp.org>
72386
72387         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
72388         include isnanl-nolibm.h.
72389
72390 2007-03-24  Bruno Haible  <bruno@clisp.org>
72391
72392         * tests/test-read-file.c (main): Don't produce spurious output for
72393         expected situations. Make the test fail if it encountered unexpected
72394         results.
72395
72396 2007-03-24  Bruno Haible  <bruno@clisp.org>
72397
72398         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
72399         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
72400
72401 2007-03-24  Bruno Haible  <bruno@clisp.org>
72402
72403         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
72404
72405 2007-03-24  Bruno Haible  <bruno@clisp.org>
72406
72407         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
72408         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
72409
72410         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
72411         * modules/utf8-ucs4: Turn into a symbolic link to module
72412         unistr/u8-mbtouc.
72413
72414         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
72415         utf8-ucs4-unsafe.
72416         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
72417         unistr/u8-mbtouc-unsafe.
72418
72419         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
72420         * modules/utf16-ucs4: Turn into a symbolic link to module
72421         unistr/u16-mbtouc.
72422
72423         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
72424         utf16-ucs4-unsafe.
72425         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
72426         unistr/u16-mbtouc-unsafe.
72427
72428         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
72429         * modules/ucs4-utf8: Turn into a symbolic link to module
72430         unistr/u8-ubtomb.
72431
72432         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
72433         * modules/ucs4-utf16: Turn into a symbolic link to module
72434         unistr/u16-ubtomb.
72435
72436 2007-03-24  Bruno Haible  <bruno@clisp.org>
72437
72438         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
72439         Enable the function only if HAVE_INLINE.
72440         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
72441         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
72442         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
72443         Enable the function only if HAVE_INLINE.
72444         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
72445         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
72446         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
72447         Enable the function only if HAVE_INLINE.
72448         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
72449         Enable the function only if HAVE_INLINE.
72450         * modules/utf8-ucs4: Update.
72451         * modules/utf8-ucs4-unsafe: Update.
72452         * modules/utf16-ucs4: Update.
72453         * modules/utf16-ucs4-unsafe: Update.
72454         * modules/ucs4-utf8: Update.
72455         * modules/ucs4-utf16: Update.
72456
72457 2007-03-24  Bruno Haible  <bruno@clisp.org>
72458
72459         * lib/utf8-ucs4.h: Remove file.
72460         * lib/utf8-ucs4-unsafe.h: Remove file.
72461         * lib/utf16-ucs4.h: Remove file.
72462         * lib/utf16-ucs4-unsafe.h: Remove file.
72463         * lib/ucs4-utf8.h: Remove file.
72464         * lib/ucs4-utf16.h: Remove file.
72465         * lib/unistr.h: Include their previous contents.
72466         * m4/utf-ucs4.m4: Remove file.
72467         * m4/ucs4-utf.m4: Remove file.
72468         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
72469         (Depends-on): Add unistr/base.
72470         (configure.ac): Remove gl_UTF_UCS4.
72471         (Makefile.am): Update.
72472         (Include): Change to unistr.h.
72473         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
72474         (Depends-on): Add unistr/base.
72475         (configure.ac): Remove gl_UTF_UCS4.
72476         (Makefile.am): Update.
72477         (Include): Change to unistr.h.
72478         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
72479         (Depends-on): Add unistr/base.
72480         (configure.ac): Remove gl_UTF_UCS4.
72481         (Makefile.am): Update.
72482         (Include): Change to unistr.h.
72483         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.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/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
72489         (Depends-on): Add unistr/base.
72490         (configure.ac): Remove gl_UCS4_UTF.
72491         (Makefile.am): Update.
72492         (Include): Change to unistr.h.
72493         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
72494         (Depends-on): Add unistr/base.
72495         (configure.ac): Remove gl_UCS4_UTF.
72496         (Makefile.am): Update.
72497         (Include): Change to unistr.h.
72498         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
72499         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
72500         utf8-ucs4-unsafe.h.
72501         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
72502         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
72503         utf16-ucs4-unsafe.h.
72504         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
72505         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
72506         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
72507         * lib/unistr/u8-strchr.c: Likewise.
72508         * lib/unistr/u8-strrchr.c: Likewise.
72509         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
72510         * lib/unistr/u16-strchr.c: Likewise.
72511         * lib/unistr/u16-strrchr.c: Likewise.
72512         * lib/striconveh.c: Update.
72513         * lib/linebreak.c: Update.
72514
72515 2007-03-24  Bruno Haible  <bruno@clisp.org>
72516
72517         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
72518         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
72519
72520 2007-03-22  Bruno Haible  <bruno@clisp.org>
72521
72522         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
72523
72524 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
72525
72526         * MODULES.html.sh (File system functions): New module write-any-file.
72527         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
72528         * m4/write-any-file.m4: New files.
72529
72530 2007-03-23  Eric Blake  <ebb9@byu.net>
72531
72532         * gnulib-tool: Rearrange space-tab sequences, since some editors
72533         like to eat them.
72534
72535 2007-03-23  Eric Blake  <ebb9@byu.net>
72536
72537         * lib/version-etc.c (version_etc_va): Update license wording to
72538         be more concise.  Recommended by Richard Stallman.
72539
72540 2007-03-22  Bruno Haible  <bruno@clisp.org>
72541
72542         * lib/poll.c (MSG_PEEK): New fallback definition.
72543
72544 2007-03-22  Bruno Haible  <bruno@clisp.org>
72545
72546         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
72547         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
72548         (main): Update.
72549         Fixes a compilation error on BeOS.
72550
72551 2007-03-22  Bruno Haible  <bruno@clisp.org>
72552
72553         * modules/frexpl-tests: New file.
72554         * tests/test-frexpl.c: New file.
72555
72556         * modules/frexpl: New file.
72557         * m4/frexpl.m4: New file.
72558         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
72559         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
72560         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
72561         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
72562         (Depends-on): Add frexpl. Remove isnanl-nolibm.
72563         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
72564
72565 2007-03-22  Bruno Haible  <bruno@clisp.org>
72566
72567         * lib/frexpl.c: Share code with lib/frexp.c.
72568         * modules/mathl (Files): Add lib/frexp.c.
72569         (Depends-on): Add isnanl-nolibm.
72570
72571 2007-03-22  Bruno Haible  <bruno@clisp.org>
72572
72573         * modules/printf-frexp (Files): Add m4/frexp.m4.
72574         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
72575         only if the found frexp function actually works.
72576
72577 2007-03-22  Bruno Haible  <bruno@clisp.org>
72578
72579         * lib/frexp.c: Remove older implementation that uses divisions.
72580
72581 2007-03-21  Bruno Haible  <bruno@clisp.org>
72582
72583         * modules/frexp-tests: New file.
72584         * tests/test-frexp.c: New file.
72585
72586         * modules/frexp: New file.
72587         * lib/frexp.c: New file.
72588         * m4/frexp.m4: New file.
72589         * lib/math_.h (frexp): New declaration.
72590         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
72591         REPLACE_FREXP.
72592         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
72593
72594 2007-03-21  Bruno Haible  <bruno@clisp.org>
72595
72596         * modules/isnanl-tests: New file.
72597         * tests/test-isnanl.c: New file.
72598
72599         * modules/isnanl: New file.
72600         * lib/isnanl.h: New file.
72601         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
72602         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
72603         gl_FUNC_ISNANL_WORKS.
72604         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
72605         New macros.
72606
72607 2007-03-21  Bruno Haible  <bruno@clisp.org>
72608
72609         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
72610         lib/isnanl.h.
72611         (Include): Update.
72612         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
72613         * lib/vasnprintf.c: Update.
72614         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
72615         tests/test-isnanl.h, remove tests/test-isnanl.c.
72616         (Makefile.am): Update.
72617         * tests/test-isnanl-nolibm.c: New file.
72618         * tests/test-isnanl.h: New file.
72619         * tests/test-isnanl.c: Remove file.
72620
72621 2007-03-21  Jim Meyering  <jim@meyering.net>
72622
72623         When trying to open ".", treat ESTALE like EACCES.
72624         * lib/savewd.c (savewd_save): Resort to forking not just upon
72625         failure with EACCES, but also when errno is ESTALE.
72626
72627 2007-03-20  Bruno Haible  <bruno@clisp.org>
72628
72629         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
72630         Needed on AIX 5.1. Reported by Matthew Woehlke.
72631
72632 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
72633
72634         Suggestions by Bruno Haible:
72635         * lib/acl-internal.h: Include "gettext.h" rather than rolling
72636         our own.
72637         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
72638         * modules/acl (Depends-on): Add gettext.
72639
72640 2007-03-19  Bruno Haible  <bruno@clisp.org>
72641
72642         * modules/iconvme: Remove file.
72643         * lib/iconvme.h: Remove file.
72644         * lib/iconvme.c: Remove file.
72645         * m4/iconvme.m4: Remove file.
72646
72647 2007-03-19  Bruno Haible  <bruno@clisp.org>
72648
72649         * doc/relocatable-maint.texi: Break long shell script line.
72650         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
72651
72652 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
72653
72654         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
72655         handle file_has_acl.
72656         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
72657         * lib/acl.c: Move header inclusions and related macro defns into
72658         lib/acl-internal.h.
72659         (S_ISLNK): Remove defn, since that's now done for us.
72660         (file_has_acl): Move to lib/file-has-acl.c.
72661         Call acl_trivial if available.  This is the crucial part of the fix.
72662         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
72663         shared within the library.  Rewrite a bit, partly to make it compatible
72664         with the GNU coding style.
72665         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
72666         Remove unnecessary double-quotes.
72667         Don't test for acl_to_text; the build will catch that.
72668         Replace acl_entries if it doesn't exist and it is needed.
72669         Check for -lsec and acl_trivial (as used on Solaris 10).
72670         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
72671         lib/file-has-acl.c.
72672         (Depends-on): Add sys_stat, for S_ISLNK.
72673
72674 2007-03-19  Ben Pfaff  <blp@gnu.org>
72675
72676         * doc/gnulib.texi: Fix typos.
72677         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
72678
72679 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
72680
72681         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
72682         If size is zero here, buf must be zero.
72683
72684 2007-03-19  Simon Josefsson  <simon@josefsson.org>
72685
72686         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
72687         <bruno@clisp.org>.
72688
72689 2007-03-18  Bruno Haible  <bruno@clisp.org>
72690
72691         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
72692         Suggested by Eric Blake.
72693
72694 2007-03-18  Ben Pfaff  <blp@gnu.org>
72695
72696         * doc/relocatable.texi: Recommend using as prefix a directory
72697         that does not exist and will never be created.  Based on
72698         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
72699         and others.
72700
72701 2007-03-17  Bruno Haible  <bruno@clisp.org>
72702
72703         * lib/fchownat.c: Include lchown.h.
72704
72705 2007-03-17  Bruno Haible  <bruno@clisp.org>
72706
72707         Fix endless loop when the given allocated size was > INT_MAX.
72708         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
72709         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
72710         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
72711         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
72712         * lib/sprintf.c (sprintf): Likewise.
72713
72714 2007-03-17  Bruno Haible  <bruno@clisp.org>
72715
72716         * tests/test-argp-2.sh (func_compare): Output a context diff.
72717
72718 2007-03-17  Bruno Haible  <bruno@clisp.org>
72719
72720         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
72721         locale's decimal-point character.
72722
72723 2007-03-17  Bruno Haible  <bruno@clisp.org>
72724
72725         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
72726         before comparing it. Needed because on some platforms (e.g. x86) a
72727         'long double' occupies less bytes than sizeof (long double).
72728
72729 2007-03-17  Bruno Haible  <bruno@clisp.org>
72730
72731         * tests/test-crc.c (main): Make printf statements 64-bit clean.
72732         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
72733         * tests/test-getaddrinfo.c (simple): Likewise.
72734         * tests/test-read-file.c (main): Likewise.
72735
72736 2007-03-17  Bruno Haible  <bruno@clisp.org>
72737
72738         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
72739
72740 2007-03-17  Bruno Haible  <bruno@clisp.org>
72741
72742         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
72743         unused variable.
72744
72745 2007-03-17  Bruno Haible  <bruno@clisp.org>
72746
72747         * tests/test-c-strcasecmp.c: Include c-strcase.h.
72748         * tests/test-c-strncasecmp.c: Likewise.
72749
72750 2007-03-17  Bruno Haible  <bruno@clisp.org>
72751
72752         * modules/stdlib (Depends-on): Add unistd.
72753         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
72754         Needed for MacOS X 10.3.
72755
72756 2007-03-17  Bruno Haible  <bruno@clisp.org>
72757
72758         * lib/unistr/u-strdup.h: Include <stdlib.h>.
72759
72760 2007-03-17  Bruno Haible  <bruno@clisp.org>
72761
72762         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
72763
72764 2007-03-17  Bruno Haible  <bruno@clisp.org>
72765
72766         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
72767         to reflect files copied from gnulib (with or without modifications).
72768         Suggested by Jim Meyering.
72769
72770 2007-03-17  Eric Blake  <ebb9@byu.net>
72771
72772         * NEWS: Document stdlib change from 2007-02-18.
72773
72774 2007-03-17  Jim Meyering  <jim@meyering.net>
72775
72776         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
72777         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
72778         someone uses a name containing shell meta-characters.
72779         Reported by Alfred M. Szmidt.
72780
72781         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
72782
72783 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
72784
72785         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
72786         and copy gettext configuration files only if configure.ac contains
72787         a use of AM_GNU_GETTEXT_VERSION.
72788
72789 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
72790
72791         * build-aux/bootstrap (gnulib_name): New variable.
72792         (gnulib_tool_options): Use it.
72793
72794 2007-03-13  Simon Josefsson  <simon@josefsson.org>
72795
72796         * tests/test-des.c: Use new namespace.
72797
72798 2007-03-15  Bruno Haible  <bruno@clisp.org>
72799
72800         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
72801         Reported by James Youngman <jay@gnu.org>.
72802
72803 2007-03-15  Bruno Haible  <bruno@clisp.org>
72804
72805         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
72806         declared prototype. Needed with cc on OSF/1 5.1.
72807
72808 2007-03-15  Bruno Haible  <bruno@clisp.org>
72809
72810         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
72811         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
72812         (struct gl_list_implementation): Add dispose_fn argument to the
72813         'create_empty', 'create' methods.
72814         (struct gl_list_impl_base): Add field 'dispose_fn'.
72815         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
72816         argument.
72817         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
72818         dispose_fn argument.
72819         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
72820         dispose_fn on the dropped values.
72821         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
72822         dispose_fn argument.
72823         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
72824         dropped values.
72825         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
72826         (gl_tree_remove_node): Call dispose_fn on the dropped value.
72827         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
72828         (gl_tree_remove_node): Call dispose_fn on the dropped value.
72829         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
72830         argument.
72831         (gl_tree_list_free): Call dispose_fn on the dropped values.
72832         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
72833         the dropped values.
72834         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
72835         Add dispose_fn argument.
72836         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
72837         Call dispose_fn on the dropped values.
72838         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
72839         Add dispose_fn argument.
72840         (gl_sublist_create): Initialize the 'dispose_fn' field.
72841         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
72842         * tests/test-array_list.c (main): Update.
72843         * tests/test-carray_list.c (main): Update.
72844         * tests/test-avltree_list.c (main): Update.
72845         * tests/test-rbtree_list.c (main): Update.
72846         * tests/test-avltreehash_list.c (main): Update.
72847         * tests/test-rbtreehash_list.c (main): Update.
72848         * tests/test-linked_list.c (main): Update.
72849         * tests/test-linkedhash_list.c (main): Update.
72850         * tests/test-array_oset.c (main): Update.
72851
72852 2007-03-15  Bruno Haible  <bruno@clisp.org>
72853
72854         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
72855         (gl_oset_create_empty): Add dispose_fn argument.
72856         (struct gl_oset_implementation): Add dispose_fn argument to
72857         'create_empty' method.
72858         (struct gl_oset_impl_base): Add dispose_fn field.
72859         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
72860         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
72861         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
72862         values.
72863         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
72864         (gl_tree_oset_free): Call dispose_fn on the dropped values.
72865         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
72866         dropped value.
72867         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
72868         dropped value.
72869         * tests/test-array_oset.c (main): Update.
72870         * tests/test-avltree_oset.c (main): Update.
72871         * tests/test-rbtree_oset.c (main): Update.
72872         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
72873
72874 2007-03-13  Bruno Haible  <bruno@clisp.org>
72875
72876         * tests/test-stdbool.c (i): Update after last patch.
72877
72878 2007-03-12  Bruno Haible  <bruno@clisp.org>
72879
72880         * lib/quotearg.c: Include <wctype.h> early, before the definition of
72881         the iswprint macro. Needed on Solaris 2.5.1.
72882
72883 2007-03-12  Bruno Haible  <bruno@clisp.org>
72884
72885         * tests/test-printf-frexp.c (main): Declare x as volatile.
72886
72887 2007-03-12  Simon Josefsson  <simon@josefsson.org>
72888
72889         * doc/gnulib.texi (Build robot for gnulib): New section.
72890
72891 2007-03-12  Jim Meyering  <jim@meyering.net>
72892
72893         * build-aux/bootstrap: New file.
72894         * build-aux/bootstrap.conf: New file, from coreutils.
72895
72896 2007-03-11  Bruno Haible  <bruno@clisp.org>
72897
72898         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
72899
72900 2007-03-12  Simon Josefsson  <simon@josefsson.org>
72901
72902         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
72903         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
72904         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
72905
72906 2007-03-11  Bruno Haible  <bruno@clisp.org>
72907
72908         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
72909         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
72910
72911 2007-03-11  Bruno Haible  <bruno@clisp.org>
72912
72913         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
72914         formula. Needed for SunPRO C 5.0.
72915
72916 2007-03-11  Bruno Haible  <bruno@clisp.org>
72917
72918         * modules/long-options (Depends-on): Add getopt.
72919
72920 2007-03-11  Bruno Haible  <bruno@clisp.org>
72921
72922         * modules/modechange (Depends-on): Add stdbool.
72923
72924 2007-03-11  Bruno Haible  <bruno@clisp.org>
72925
72926         * modules/i-ring (Depends-on): Add stdbool.
72927
72928 2007-03-11  Bruno Haible  <bruno@clisp.org>
72929
72930         * modules/gc-des (Depends-on): Add stdbool.
72931
72932 2007-03-11  Bruno Haible  <bruno@clisp.org>
72933
72934         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
72935
72936 2007-03-11  Bruno Haible  <bruno@clisp.org>
72937
72938         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
72939
72940 2007-03-11  Bruno Haible  <bruno@clisp.org>
72941
72942         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
72943
72944 2007-03-11  Bruno Haible  <bruno@clisp.org>
72945
72946         * lib/vasnprintf.c (sprintf): Undefine.
72947
72948 2007-03-11  Bruno Haible  <bruno@clisp.org>
72949
72950         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
72951         initializers in SunPRO C and Compaq C compilers.
72952
72953 2007-03-11  Bruno Haible  <bruno@clisp.org>
72954
72955         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
72956         decrementing code ANSI C compliant.
72957
72958 2007-03-11  Bruno Haible  <bruno@clisp.org>
72959
72960         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
72961         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
72962
72963 2007-03-11  Bruno Haible  <bruno@clisp.org>
72964
72965         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
72966         <stdbool.h> substitute doesn't pass.
72967
72968 2007-03-11  Bruno Haible  <bruno@clisp.org>
72969
72970         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
72971
72972 2007-03-11  Bruno Haible  <bruno@clisp.org>
72973
72974         * gnulib-tool (func_create_megatestdir): Create also an autobuild
72975         script, for submission to autobuild.josefsson.org.
72976
72977 2007-03-10  Bruno Haible  <bruno@clisp.org>
72978
72979         * modules/canonicalize-lgpl-tests: New file.
72980         * tests/test-canonicalize-lgpl.sh: New file.
72981         * tests/test-canonicalize-lgpl.c: New file.
72982
72983         * modules/c-strcase-tests: New file.
72984         * tests/test-c-strcase.sh: New file.
72985         * tests/test-c-strcasecmp.c: New file.
72986         * tests/test-c-strncasecmp.c: New file.
72987
72988         * modules/atexit-tests: New file.
72989         * tests/test-atexit.sh: New file.
72990         * tests/test-atexit.c: New file.
72991
72992 2007-03-10  Bruno Haible  <bruno@clisp.org>
72993
72994         * tests/test-binary-io.sh: Use temporary filenames that are not so
72995         likely to clash with those of other tests (in a parallel make).
72996         * tests/test-binary-io.c: Likewise.
72997
72998 2007-03-10  Bruno Haible  <bruno@clisp.org>
72999
73000         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
73001         fallback; use #error instead.
73002         Suggested by Simon Josefsson.
73003
73004 2007-03-10  Bruno Haible  <bruno@clisp.org>
73005
73006         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
73007         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
73008         first and the last.
73009
73010 2007-03-10  Bruno Haible  <bruno@clisp.org>
73011
73012         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
73013
73014 2007-03-10  Bruno Haible  <bruno@clisp.org>
73015
73016         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
73017         "make distcheck".
73018         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
73019         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
73020         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
73021
73022 2007-03-10  Bruno Haible  <bruno@clisp.org>
73023
73024         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
73025         variable.
73026         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
73027         variable.
73028
73029 2007-03-09  Eric Blake  <ebb9@byu.net>
73030         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
73031
73032         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
73033         types are not being provided by gnulib.
73034         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
73035         types are supported.
73036
73037 2007-03-10  Bruno Haible  <bruno@clisp.org>
73038
73039         * lib/stdio_.h (__attribute__): New macro.
73040         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
73041         vsprintf): Specify __attribute__ __format__ for GCC.
73042         Suggested by Eric Blake.
73043
73044 2007-03-09  Bruno Haible  <bruno@clisp.org>
73045
73046         * modules/printf-posix-tests: New file.
73047         * tests/test-printf-posix.sh: New file.
73048         * tests/test-printf-posix.c: New file.
73049
73050         * modules/printf-posix: New file.
73051         * lib/printf.c: New file.
73052         * m4/printf-posix-rpl.m4: New file.
73053         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
73054         REPLACE_PRINTF.
73055         * lib/stdio_.h (printf): New declaration.
73056         (format, __format__, ____printf____, ____scanf____, ____strftime____,
73057         ____strfmon____): New macros.
73058         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
73059         REPLACE_PRINTF.
73060
73061 2007-03-09  Bruno Haible  <bruno@clisp.org>
73062
73063         * tests/test-vasnprintf-posix2.sh: New file.
73064         * tests/test-vasnprintf-posix2.c: New file.
73065         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
73066         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
73067         (Makefile.am): Activate test-vasnprintf-posix2.sh.
73068
73069         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
73070         a locale dependent decimal point, rather than always '.'.
73071
73072 2007-03-09  Eric Blake  <ebb9@byu.net>
73073
73074         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
73075         spite of platforms like Tandem/NSK that define it to -1.
73076
73077 2007-03-08  Bruno Haible  <bruno@clisp.org>
73078
73079         * modules/vprintf-posix-tests: New file.
73080         * tests/test-vprintf-posix.sh: New file.
73081         * tests/test-vprintf-posix.c: New file.
73082         * tests/test-printf-posix.h: New file.
73083
73084         * modules/vprintf-posix: New file.
73085         * lib/vprintf.c: New file.
73086         * m4/vprintf-posix.m4: New file.
73087         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
73088         REPLACE_VPRINTF.
73089         * lib/stdio_.h (vprintf): New declaration.
73090         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
73091         REPLACE_VPRINTF.
73092
73093 2007-03-08  Bruno Haible  <bruno@clisp.org>
73094
73095         * modules/fprintf-posix-tests: New file.
73096         * tests/test-fprintf-posix.sh: New file.
73097         * tests/test-fprintf-posix.c: New file.
73098
73099         * modules/fprintf-posix: New file.
73100         * lib/fprintf.c: New file.
73101         * m4/fprintf-posix.m4: New file.
73102         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
73103         REPLACE_FPRINTF.
73104         * lib/stdio_.h (fprintf): New declaration.
73105         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
73106         REPLACE_FPRINTF.
73107
73108 2007-03-08  Bruno Haible  <bruno@clisp.org>
73109
73110         * modules/vfprintf-posix-tests: New file.
73111         * tests/test-vfprintf-posix.sh: New file.
73112         * tests/test-vfprintf-posix.c: New file.
73113         * tests/test-fprintf-posix.h: New file.
73114         * tests/test-fprintf-posix.out: New file.
73115
73116         * modules/vfprintf-posix: New file.
73117         * lib/vfprintf.c: New file.
73118         * m4/vfprintf-posix.m4: New file.
73119         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
73120         REPLACE_VFPRINTF.
73121         * lib/stdio_.h (vfprintf): New declaration.
73122         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
73123         REPLACE_VFPRINTF.
73124
73125 2007-03-08  Bruno Haible  <bruno@clisp.org>
73126
73127         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
73128
73129 2007-03-08  Bruno Haible  <bruno@clisp.org>
73130
73131         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
73132         instead of 'expr' invocations.
73133         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
73134         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
73135         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
73136         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
73137         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
73138         Suggested by Paul Eggert.
73139
73140 2007-03-08  Bruno Haible  <bruno@clisp.org>
73141
73142         * modules/fseterr-tests: New file.
73143         * tests/test-fseterr.c: New file.
73144
73145         * modules/fseterr: New file.
73146         * lib/fseterr.h: New file.
73147         * lib/fseterr.c: New file.
73148
73149 2007-03-08  Bruno Haible  <bruno@clisp.org>
73150
73151         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
73152         * lib/getopt_.h: Likewise.
73153         * lib/mbswidth.h: Likewise.
73154         * lib/setenv.h: Likewise.
73155         * lib/vasnprintf.h: Likewise.
73156         * lib/vasprintf.h: Likewise.
73157         * lib/verror.h: Likewise.
73158         * lib/xsetenv.h: Likewise.
73159         * lib/xvasprintf.h: Likewise.
73160
73161 2007-03-08  Jim Meyering  <jim@meyering.net>
73162
73163         * users.txt: Add parted.
73164
73165         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
73166
73167 2007-03-07  Bruno Haible  <bruno@clisp.org>
73168
73169         * m4/printf.m4: Make the shell script snippets copy&pastable.
73170
73171 2007-03-02  Bruno Haible  <bruno@clisp.org>
73172
73173         * lib/netinet_in_.h: New file.
73174         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
73175         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
73176         * modules/netinet_in (Files): Add lib/netinet_in_.h.
73177         (Depends-on): Add absolute-header.
73178         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
73179         into netinet/in.h.
73180
73181 2007-03-03  Bruno Haible  <bruno@clisp.org>
73182
73183         * lib/sys_select_.h: New file.
73184         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
73185         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
73186         * modules/sys_select (Files): Add lib/sys_select_.h.
73187         (Depends-on): Add absolute-header.
73188         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
73189         into sys/select.h.
73190
73191 2007-03-02  Bruno Haible  <bruno@clisp.org>
73192
73193         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
73194         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
73195         values.
73196         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
73197         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
73198         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
73199         * modules/sys_socket (Depends-on): Add absolute-header.
73200         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
73201         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
73202         (Include): Remove requirement of inclusion of <sys/types.h>.
73203
73204 2007-03-02  Bruno Haible  <bruno@clisp.org>
73205
73206         * lib/byteswap_.h (bswap_32): Fix formula.
73207
73208 2007-03-06  Bruno Haible  <bruno@clisp.org>
73209
73210         * modules/sprintf-posix-tests: New file.
73211         * tests/test-sprintf-posix.c: New file.
73212
73213         * modules/sprintf-posix: New file.
73214         * lib/sprintf.c: New file.
73215         * m4/sprintf-posix.m4: New file.
73216         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
73217         REPLACE_SPRINTF.
73218         * lib/stdio_.h (sprintf): New declaration.
73219         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
73220         REPLACE_SPRINTF.
73221
73222 2007-03-06  Bruno Haible  <bruno@clisp.org>
73223
73224         * modules/vsprintf-posix-tests: New file.
73225         * tests/test-vsprintf-posix.c: New file.
73226         * tests/test-sprintf-posix.h: New file.
73227
73228         * modules/vsprintf-posix: New file.
73229         * lib/vsprintf.c: New file.
73230         * m4/vsprintf-posix.m4: New file.
73231         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
73232         REPLACE_VSPRINTF.
73233         * lib/stdio_.h (vsprintf): New declaration.
73234         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
73235         REPLACE_VSPRINTF.
73236
73237 2007-03-06  Bruno Haible  <bruno@clisp.org>
73238
73239         * modules/vsnprintf (Depend-on): Remove minmax.
73240
73241 2007-03-06  Bruno Haible  <bruno@clisp.org>
73242
73243         * modules/snprintf-posix-tests: New file.
73244         * tests/test-snprintf-posix.c: New file.
73245
73246         * modules/snprintf-posix: New file.
73247         * m4/snprintf-posix.m4: New file.
73248         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
73249         gl_FUNC_SNPRINTF.
73250         (gl_FUNC_SNPRINTF): Invoke it.
73251         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
73252         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
73253         is set.
73254         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
73255
73256 2007-03-06  Bruno Haible  <bruno@clisp.org>
73257
73258         * modules/vsnprintf-posix-tests: New file.
73259         * tests/test-vsnprintf-posix.c: New file.
73260         * tests/test-snprintf-posix.h: New file.
73261
73262         * modules/vsnprintf-posix: New file.
73263         * m4/vsnprintf-posix.m4: New file.
73264         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
73265         gl_FUNC_VSNPRINTF.
73266         (gl_FUNC_VSNPRINTF): Invoke it.
73267         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
73268         * lib/stdio_.h (vsnprintf): Define as a replacement if
73269         REPLACE_VSNPRINTF is set.
73270         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
73271
73272 2007-03-06  Bruno Haible  <bruno@clisp.org>
73273
73274         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
73275         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
73276
73277 2007-03-06  Bruno Haible  <bruno@clisp.org>
73278
73279         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
73280         (asinl): Declare also if HAVE_DECL_ASINL is set.
73281         (atanl): Declare also if HAVE_DECL_ATANL is set.
73282         (ceill): Declare also if HAVE_DECL_CEILL is set.
73283         (cosl): Declare also if HAVE_DECL_COSL is set.
73284         (expl): Declare also if HAVE_DECL_EXPL is set.
73285         (floorl): Declare also if HAVE_DECL_FLOORL is set.
73286         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
73287         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
73288         (logl): Declare also if HAVE_DECL_LOGL is set.
73289         (sinl): Declare also if HAVE_DECL_SINL is set.
73290         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
73291         (tanl): Declare also if HAVE_DECL_TANL is set.
73292         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
73293         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
73294         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
73295         declaration of frexpl, ldexpl.
73296         * modules/printf-frexpl (Depends-on): Add math.
73297         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
73298
73299 2007-03-05  Bruno Haible  <bruno@clisp.org>
73300
73301         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
73302         frexpl and ldexpl are declared.
73303         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
73304
73305 2007-03-05  Bruno Haible  <bruno@clisp.org>
73306
73307         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
73308         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
73309
73310 2007-03-05  Bruno Haible  <bruno@clisp.org>
73311
73312         * lib/stdio_.h: Include <stddef.h>.
73313
73314 2007-03-05  Bruno Haible  <bruno@clisp.org>
73315
73316         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
73317
73318 2007-03-05  Bruno Haible  <bruno@clisp.org>
73319
73320         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
73321         NetBSD 4, from Ralf Wildenhues.
73322
73323 2007-03-04  Bruno Haible  <bruno@clisp.org>
73324
73325         * lib/vasprintf.h: Update #if logic for the case when the functions
73326         exist but are overridden.
73327
73328 2007-03-04  Bruno Haible  <bruno@clisp.org>
73329
73330         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
73331         implementations: glibc-2.4 and MacOS X 10.3.
73332         * tests/test-vasnprintf-posix.c (test_function): Test also the case
73333         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
73334         * tests/test-vasprintf-posix.c (test_function): Likewise.
73335
73336 2007-03-04  Bruno Haible  <bruno@clisp.org>
73337
73338         * modules/vasprintf-posix-tests: New file.
73339         * tests/test-vasprintf-posix.c: New file.
73340
73341         * modules/vasprintf-posix: New file.
73342         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
73343         defined.
73344         * m4/vasprintf-posix.m4: New file.
73345         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
73346         gl_FUNC_VASPRINTF.
73347         (gl_FUNC_VASPRINTF): Invoke it.
73348         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
73349         here.
73350         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
73351
73352 2007-03-04  Bruno Haible  <bruno@clisp.org>
73353
73354         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
73355         REPLACE_GETTIMEOFDAY.
73356         * modules/sys_time (Makefile.am): Likewise.
73357         * m4/sys_time_h.m4: Likewise.
73358         * m4/gettimeofday.m4: Likewise.
73359
73360 2007-03-04  Bruno Haible  <bruno@clisp.org>
73361
73362         * modules/vasnprintf-posix-tests: New file.
73363         * tests/test-vasnprintf-posix.c: New file.
73364
73365         * modules/vasnprintf-posix: New file.
73366         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
73367         printf-frexpl.h.
73368         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
73369         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
73370         REPLACE_VASNPRINTF is defined.
73371         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
73372         gl_FUNC_VASNPRINTF.
73373         (gl_FUNC_VASNPRINTF): Invoke it.
73374         * m4/vasnprintf-posix.m4: New file.
73375         * m4/printf.m4: New file.
73376
73377 2007-03-04  Bruno Haible  <bruno@clisp.org>
73378
73379         Compile progreloc.c only if --enable-relocatable is specified.
73380         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
73381         if --enable-relocatable was specified.
73382         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
73383         lib_SOURCES.
73384
73385 2007-03-04  Jim Meyering  <jim@meyering.net>
73386
73387         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
73388         Use it consistently, rather than enumerating errno constants.
73389
73390 2007-03-04  Bruno Haible  <bruno@clisp.org>
73391
73392         * modules/xvasprintf-tests: New file.
73393         * tests/test-xvasprintf.c: New file.
73394
73395         * modules/vasprintf-tests: New file.
73396         * tests/test-vasprintf.c: New file.
73397
73398         * modules/vasnprintf-tests: New file.
73399         * tests/test-vasnprintf.c: New file.
73400
73401         * modules/vsnprintf-tests: New file.
73402         * tests/test-vsnprintf.c: New file.
73403
73404         * modules/snprintf-tests: New file.
73405         * tests/test-snprintf.c: New file.
73406
73407 2007-03-04  Bruno Haible  <bruno@clisp.org>
73408
73409         Compile relocatable.c only if --enable-relocatable is specified.
73410         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
73411         gl_RELOCATABLE_LIBRARY.
73412         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
73413         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
73414         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
73415         gl_RELOCATABLE_LIBRARY.
73416         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
73417         (Makefile.am): Remove lib_SOURCES.
73418         * modules/relocatable-lib-lgpl (configure.ac): Invoke
73419         gl_RELOCATABLE_LIBRARY.
73420         (Makefile.am): Remove lib_SOURCES.
73421         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
73422         always.
73423         * modules/relocatable-prog-wrapper (configure.ac): Invoke
73424         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
73425
73426 2007-03-04  Bruno Haible  <bruno@clisp.org>
73427
73428         * modules/argmatch-tests: New file.
73429         * tests/test-argmatch.c: New file.
73430
73431         * tests/test-allocsa.c (main): Halve the number of loop runs.
73432
73433         * modules/alloca-opt-tests: New file.
73434         * tests/test-alloca-opt.c: New file.
73435
73436 2007-03-04  Jim Meyering  <jim@meyering.net>
73437
73438         Work around difference between Linux ACLs and Solaris 10 ZFS.
73439         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
73440         for EINVAL.
73441
73442 2007-03-03  Bruno Haible  <bruno@clisp.org>
73443
73444         * modules/relocatable-prog (Depends-on): Add back progreloc's
73445         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
73446
73447 2007-03-03  Bruno Haible  <bruno@clisp.org>
73448
73449         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
73450         * modules/relocatable-lib: New file.
73451
73452 2007-03-03  Bruno Haible  <bruno@clisp.org>
73453
73454         * modules/relocatable-prog: Renamed from modules/relocatable.
73455         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
73456
73457 2007-03-03  Bruno Haible  <bruno@clisp.org>
73458
73459         * modules/relocatable-script (Files): Add doc/relocatable.texi,
73460         m4/relocatable-lib.m4.
73461         (Depends-on): Remove 'relocatable'.
73462         (configure.ac): Add gl_RELOCATABLE_NOP.
73463
73464 2007-03-03  Bruno Haible  <bruno@clisp.org>
73465
73466         * modules/relocatable-prog-wrapper: New file.
73467         * modules/relocatable (Depends-on): Add it. Remove all other
73468         dependencies except progname.
73469         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
73470
73471         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
73472         (gl_FUNC_STRERROR): Nop.
73473         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
73474
73475         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
73476         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
73477
73478         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
73479         (gl_FUNC_READLINK): Update.
73480
73481         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
73482
73483 2007-03-03  Bruno Haible  <bruno@clisp.org>
73484
73485         * lib/xreadlink.c: Include <unistd.h> unconditionally.
73486         * modules/xreadlink (Depends-on): Add unistd.
73487         * modules/xreadlink-with-size (Depends-on): Likewise.
73488
73489 2007-03-03  Bruno Haible  <bruno@clisp.org>
73490
73491         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
73492         extracted from gt_FUNC_SETENV.
73493         (gt_FUNC_SETENV): Remove macro.
73494         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
73495         remove gt_FUNC_SETENV.
73496
73497 2007-03-03  Bruno Haible  <bruno@clisp.org>
73498
73499         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
73500         ENABLE_RELOCATABLE here.
73501         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
73502
73503 2007-03-03  Bruno Haible  <bruno@clisp.org>
73504
73505         * modules/rbtreehash-list-tests (Depends-on): Add progname.
73506         * tests/test-rbtreehash_list.c: Include progname.h.
73507         (main): Call set_program_name.
73508
73509         * modules/rbtree-oset-tests (Depends-on): Add progname.
73510         * tests/test-rbtree_oset.c: Include progname.h.
73511         (main): Call set_program_name.
73512
73513         * modules/rbtree-list-tests (Depends-on): Add progname.
73514         * tests/test-rbtree_list.c: Include progname.h.
73515         (main): Call set_program_name.
73516
73517         * modules/linked-list-tests (Depends-on): Add progname.
73518         * tests/test-linked_list.c: Include progname.h.
73519         (main): Call set_program_name.
73520
73521 2007-03-03  Bruno Haible  <bruno@clisp.org>
73522
73523         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
73524         All uses of __restrict changed to _Restrict_.
73525         * lib/glob_.h (__restrict): Remove macro.
73526
73527 2007-03-02  Bruno Haible  <bruno@clisp.org>
73528
73529         * modules/gettext (configure.ac): Require gettext infrastructure
73530         from version 0.16.1.
73531
73532 2007-03-02  Bruno Haible  <bruno@clisp.org>
73533
73534         * modules/linkedhash-list-tests (Depends-on): Add progname.
73535         * tests/test-linkedhash_list.c: Include progname.h.
73536         (main): Call set_program_name.
73537
73538         * modules/carray-list-tests (Depends-on): Add progname.
73539         * tests/test-carray_list.c: Include progname.h.
73540         (main): Call set_program_name.
73541
73542         * modules/avltreehash-list-tests (Depends-on): Add progname.
73543         * tests/test-avltreehash_list.c: Include progname.h.
73544         (main): Call set_program_name.
73545
73546         * modules/avltree-oset-tests (Depends-on): Add progname.
73547         * tests/test-avltree_oset.c: Include progname.h.
73548         (main): Call set_program_name.
73549
73550         * modules/avltree-list-tests (Depends-on): Add progname.
73551         * tests/test-avltree_list.c: Include progname.h.
73552         (main): Call set_program_name.
73553
73554         * modules/array-oset-tests (Depends-on): Add progname.
73555         * tests/test-array_oset.c: Include progname.h.
73556         (main): Call set_program_name.
73557
73558         * modules/array-list-tests (Depends-on): Add progname.
73559         * tests/test-array_list.c: Include progname.h.
73560         (main): Call set_program_name.
73561
73562         * modules/argp-tests (Depends-on): Add progname.
73563         * tests/test-argp.c: Include argp.h first. Include progname.h.
73564         (main): Call set_program_name.
73565
73566 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
73567
73568         * doc/gnulib-tool.texi (Initial import): Reword description of
73569         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
73570         limited effect even if defined after the first system include.
73571
73572 2007-03-01  Bruno Haible  <bruno@clisp.org>
73573
73574         * build-aux/config.libpath: Update to libtool-1.5.22.
73575         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
73576
73577 2007-03-01  Bruno Haible  <bruno@clisp.org>
73578
73579         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
73580         foo_CFLAGS.
73581         Reported by Ralf Wildenhues.
73582
73583 2007-03-01  Bruno Haible  <bruno@clisp.org>
73584
73585         * build-aux/install-reloc: Remove object files left over by some
73586         compilers.
73587         Reported by Ralf Wildenhues.
73588
73589 2007-03-01  Bruno Haible  <bruno@clisp.org>
73590
73591         * build-aux/install-reloc: Break long lines.
73592
73593 2007-03-01  Bruno Haible  <bruno@clisp.org>
73594
73595         * doc/relocatable.texi: Document that it may not work on OpenBSD.
73596         Reported by Ralf Wildenhues.
73597
73598 2007-03-01  Bruno Haible  <bruno@clisp.org>
73599
73600         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
73601         include ordering constraints.
73602
73603 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
73604
73605         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
73606         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
73607         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
73608         as another example.
73609         * lib/time_.h: Fix misspelling.
73610         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
73611         Require gl_HEADER_TIME_H_DEFAULTS.
73612         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
73613         * m4/time_r.m4 (gl_TIME_R): Likewise.
73614         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
73615
73616 2007-03-01  Bruno Haible  <bruno@clisp.org>
73617
73618         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
73619         * m4/utimens.m4 (gl_UTIMENS): Likewise.
73620
73621 2007-03-01  Jim Meyering  <jim@meyering.net>
73622
73623         * modules/xreadlink (Maintainer): Add my name.
73624         * modules/xreadlink-with-size (Depends-on): Alphabetize.
73625
73626 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
73627             Bruno Haible  <bruno@clisp.org>
73628
73629         * build-aux/install-reloc: Compile also c-ctype.c.
73630         * build-aux/relocatable.sh.in: New file.
73631         * doc/relocatable.texi: New file.
73632         * doc/relocatable-maint.texi: New file.
73633         * doc/gnulib.texi: Include relocatable-maint.texi.
73634         * lib/progreloc.c: Include unistd.h unconditionally.
73635         * lib/relocwrapper.c: Include unistd.h unconditionally.
73636         Include c-ctype.h.
73637         (add_dotbin): Use c_tolower.
73638         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
73639         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
73640         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
73641         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
73642         to m4/relocatable-lib.m4.
73643         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
73644         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
73645         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
73646         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
73647         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
73648         * modules/relocatable: New file.
73649         * modules/relocatable-lib: New file.
73650         * modules/relocatable-script: New file.
73651
73652 2007-02-28  Bruno Haible  <bruno@clisp.org>
73653
73654         Import --enable-relocatable infrastructure.
73655         * build-aux/config.libpath: New file, from GNU gettext.
73656         * build-aux/install-reloc: New file, from GNU gettext.
73657         * build-aux/reloc-ldflags: New file, from GNU gettext.
73658         * lib/relocatable.h: New file, from GNU gettext.
73659         * lib/relocatable.c: New file, from GNU gettext.
73660         * lib/relocwrapper.c: New file, from GNU gettext.
73661         * m4/relocatable.m4: New file, from GNU gettext.
73662
73663 2007-02-28  Bruno Haible  <bruno@clisp.org>
73664
73665         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
73666
73667         * modules/xreadlink: New file, from GNU gettext with modifications.
73668         * lib/xreadlink.c: New file, from GNU gettext.
73669         * lib/xreadlink.h: Add comments.
73670         (xreadlink): New declaration.
73671
73672         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
73673         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
73674         lib/xreadlink-with-size.c.
73675         (configure.ac): Remove gl_XREADLINK invocation.
73676         (Makefile.am): Augment lib_SOURCES.
73677         * m4/xreadlink.m4: Remove file.
73678         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
73679         (xreadlink_with_size): Renamed from xreadink.
73680         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
73681         * modules/canonicalize (Depends-on): Replace xreadlink with
73682         xreadlink-with-size.
73683         * lib/canonicalize.c (canonicalize_filename_mode): Update.
73684
73685 2007-02-25  Jim Meyering  <jim@meyering.net>
73686
73687         * build-aux/announce-gen: When complaining about excess arguments,
73688         list them.
73689
73690 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
73691
73692         * README: Document signed integer overflow situation more
73693         accurately.
73694
73695 2007-02-25  Bruno Haible  <bruno@clisp.org>
73696
73697         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
73698         'a' or 'A' conversion.
73699
73700 2007-02-25  Bruno Haible  <bruno@clisp.org>
73701
73702         * modules/filename: Renamed from modules/pathname.
73703         (Files): Replace lib/pathname.h with lib/filename.h. Replace
73704         lib/concatpath.c with lib/concat-filename.c.
73705         (Makefile.am): Update.
73706         (Include): Replace pathname.h with filename.h.
73707         * lib/filename.h: Renamed from lib/pathname.h.
73708         (concatenated_filename): Renamed from concatenated_pathname.
73709         * lib/concat-filename.c: Renamed from lib/concatpath.c.
73710         (concatenated_filename): Renamed from concatenated_pathname.
73711         * lib/findprog.c: Include filename.h instead of pathname.h.
73712         (find_in_path): Update.
73713         * lib/javacomp.c: Include filename.h instead of pathname.h.
73714         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
73715         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
73716         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
73717         is_oldgcj_14_13_usable, is_javac_usable): Update.
73718         * lib/javaexec.c: Include filename.h instead of pathname.h.
73719         (execute_java_class): Update.
73720         * modules/findprog: Update.
73721         * modules/javacomp: Update.
73722         * modules/javaexec: Update.
73723         * MODULES.html.sh (File system functions): Add 'filename', remove
73724         'pathname'.
73725
73726 2007-02-25  Bruno Haible  <bruno@clisp.org>
73727
73728         * modules/printf-frexpl-tests: New file.
73729         * tests/test-printf-frexpl.c: New file.
73730
73731         * modules/printf-frexpl: New file.
73732         * lib/printf-frexpl.h: New file.
73733         * lib/printf-frexpl.c: New file.
73734         * m4/printf-frexpl.m4: New file.
73735
73736 2007-02-25  Bruno Haible  <bruno@clisp.org>
73737
73738         * modules/printf-frexp-tests: New file.
73739         * tests/test-printf-frexp.c: New file.
73740
73741         * modules/printf-frexp: New file.
73742         * lib/printf-frexp.h: New file.
73743         * lib/printf-frexp.c: New file.
73744         * m4/printf-frexp.m4: New file.
73745
73746 2007-02-25  Bruno Haible  <bruno@clisp.org>
73747
73748         Assume automake >= 1.10 for the tests.
73749         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
73750         * modules/arctwo-tests: Likewise.
73751         * modules/argp-tests: Likewise.
73752         * modules/avltree-list-tests: Likewise.
73753         * modules/avltree-oset-tests: Likewise.
73754         * modules/avltreehash-list-tests: Likewise.
73755         * modules/carray-list-tests: Likewise.
73756         * modules/crc-tests: Likewise.
73757         * modules/des-tests: Likewise.
73758         * modules/gc-arcfour-tests: Likewise.
73759         * modules/gc-arctwo-tests: Likewise.
73760         * modules/gc-des-tests: Likewise.
73761         * modules/gc-hmac-md5-tests: Likewise.
73762         * modules/gc-hmac-sha1-tests: Likewise.
73763         * modules/gc-md2-tests: Likewise.
73764         * modules/gc-md4-tests: Likewise.
73765         * modules/gc-md5-tests: Likewise.
73766         * modules/gc-pbkdf2-sha1-tests: Likewise.
73767         * modules/gc-rijndael-tests: Likewise.
73768         * modules/gc-sha1-tests: Likewise.
73769         * modules/gc-tests: Likewise.
73770         * modules/getaddrinfo-tests: Likewise.
73771         * modules/hmac-md5-tests: Likewise.
73772         * modules/hmac-sha1-tests: Likewise.
73773         * modules/linked-list-tests: Likewise.
73774         * modules/linkedhash-list-tests: Likewise.
73775         * modules/lock-tests: Likewise.
73776         * modules/md2-tests: Likewise.
73777         * modules/md4-tests: Likewise.
73778         * modules/md5-tests: Likewise.
73779         * modules/rbtree-list-tests: Likewise.
73780         * modules/rbtree-oset-tests: Likewise.
73781         * modules/rbtreehash-list-tests: Likewise.
73782         * modules/read-file-tests: Likewise.
73783         * modules/rijndael-tests: Likewise.
73784         * modules/stdint-tests: Likewise.
73785         * modules/tls-tests: Likewise.
73786
73787 2007-02-24  Bruno Haible  <bruno@clisp.org>
73788
73789         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
73790         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
73791         function; instead check whether isnan with a double argument links.
73792         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
73793         function; instead check whether isnan with a 'long double' argument
73794         links.
73795         Reported by Eric Blake <ebb9@byu.net>.
73796
73797 2007-02-24  Bruno Haible  <bruno@clisp.org>
73798
73799         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
73800         defined.
73801         * lib/isnanl.c: Remove all code. Just include isnan.c.
73802         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
73803
73804 2007-02-25  Jim Meyering  <jim@meyering.net>
73805
73806         Avoid conflicting types for 'unsetenv' on FreeBSD.
73807         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
73808         conflicting with FreeBSD's (5.0 and 6.1) function declaration
73809         in stdlib.h.
73810
73811 2007-02-24  Bruno Haible  <bruno@clisp.org>
73812
73813         * modules/isnanl-nolibm-tests: New file.
73814         * tests/test-isnanl.c: New file.
73815
73816         * modules/isnanl-nolibm: New file.
73817         * lib/isnanl.h: New file.
73818         * lib/isnanl.c: New file.
73819         * m4/isnanl.m4: New file.
73820
73821 2007-02-24  Bruno Haible  <bruno@clisp.org>
73822
73823         * modules/isnan-nolibm-tests: New file.
73824         * tests/test-isnan.c: New file.
73825
73826         * modules/isnan-nolibm: New file.
73827         * lib/isnan.h: New file.
73828         * lib/isnan.c: New file.
73829         * m4/isnan.m4: New file.
73830
73831 2007-02-24  Bruno Haible  <bruno@clisp.org>
73832
73833         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
73834         assume that an exponent fits in 20 bits.
73835
73836 2007-02-24  Jim Meyering  <jim@meyering.net>
73837
73838         * m4/regex.m4: Update the description of the configure-time option,
73839         --without-included-regex, to state accurately what the defaults are,
73840         and perhaps to give people an idea why using this option is risky.
73841
73842 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
73843
73844         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
73845         loops on small arguments.  This attempts to avoid the problem
73846         Bruno Haible reported for AIX 4.3.2 in
73847         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
73848
73849 2007-02-23  Bruno Haible  <bruno@clisp.org>
73850
73851         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
73852         Needed for help2man.
73853
73854 2007-02-23  Karl Berry  <karl@gnu.org>
73855
73856         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
73857         exists, foo.h should be cvs-ignored, not committed.
73858
73859 2007-02-23  Eric Blake  <ebb9@byu.net>
73860
73861         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
73862         * lib/stat-time.h (includes): Likewise.
73863         * lib/utimecmp.c (includes): Likewise.
73864         * lib/utimens.h (includes): Likewise.
73865         * lib/getdate.y (includes): Also include "timespec.h" for use
73866         internal to the module.
73867         * modules/utimens (Depends-on): Revert yesterday's patch.
73868         * modules/nanosleep (Depends-on): Add missing dependency.
73869
73870 2007-02-22  Bruno Haible  <bruno@clisp.org>
73871
73872         * lib/glob.c: Don't include getlogin_r.h.
73873
73874 2007-02-22  Jim Meyering  <jim@meyering.net>
73875
73876         * modules/utimens (Depends-on): Add timespec, required for
73877         utimens.h's inclusion of timespec.h.
73878
73879 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
73880
73881         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
73882         long unreadable paths in GNU/Linux.  Problem reported by Andreas
73883         Schwab in
73884         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
73885         I'll try to think of a better way to fix the Solaris problem.
73886
73887         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
73888         like glibc; on Solaris 10, it fails with errno == EINVAL.
73889         POSIX says the behavior is unspecified if the first argument is NULL,
73890         so play it safe and never pass NULL to the system getcwd.
73891
73892 2007-02-21  Jim Meyering  <jim@meyering.net>
73893
73894         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
73895         of gettimeofday.  It would conflict with the one now always
73896         provided via sys_time_.h.  Reported by Matthew Woehlke, as
73897         an IRIX 6.5 build failure.
73898
73899 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
73900
73901         Minor fixups to port to Solaris 10 with Sun C 5.8.
73902         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
73903         * modules/getcwd (Depends-on): Add dirfd.
73904         * lib/putenv.c (putenv): #undef it.
73905         (rpl_putenv): New decl.
73906         (malloc, free): Include <stdlib.h> rather than prototyping separately.
73907
73908 2007-02-20  Bruno Haible  <bruno@clisp.org>
73909
73910         * modules/stdio-tests: New file.
73911         * tests/test-stdio.c: New file.
73912
73913         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
73914         (Depends-on): Add stdio.
73915         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
73916         (Include): Use <stdio.h> instead of vsnprintf.h.
73917         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
73918         HAVE_DECL_VSNPRINTF.
73919         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
73920
73921         * modules/snprintf (Files): Remove lib/snprintf.h.
73922         (Depends-on): Add stdio.
73923         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
73924         (Include): Use <stdio.h> instead of snprintf.h.
73925         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
73926         HAVE_DECL_SNPRINTF.
73927         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
73928         * lib/getaddrinfo.c: Likewise.
73929
73930         * modules/stdio: New file.
73931         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
73932         * lib/snprintf.h: Remove file.
73933         * lib/vsnprintf.h: Remove file.
73934         * lib/.cppi-disable: Remove snprintf.h.
73935         * m4/stdio_h.m4: New file.
73936         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
73937
73938 2007-02-20  Jim Meyering  <jim@meyering.net>
73939
73940         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
73941         used by e.g., mingw.  From Bruno Haible.
73942
73943 2007-02-19  Bruno Haible  <bruno@clisp.org>
73944
73945         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
73946         warnings.
73947         Reported by Ben Pfaff <blp@cs.stanford.edu>.
73948
73949 2007-02-19  Bruno Haible  <bruno@clisp.org>
73950
73951         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
73952         from mingw users.
73953
73954 2007-02-19  Bruno Haible  <bruno@clisp.org>
73955
73956         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
73957         warnings.
73958         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
73959
73960 2007-02-19  Jim Meyering  <jim@meyering.net>
73961
73962         Don't use FD after a successful "fdopendir (fd)".
73963         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
73964         Reset it by calling dirfd on the just-obtained DIR*.
73965
73966         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
73967         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
73968
73969 2007-02-18  Bruno Haible  <bruno@clisp.org>
73970
73971         * lib/readlink.c: Include <unistd.h>.
73972         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
73973         HAVE_READLINK.
73974         * modules/readlink (Depends-on): Add unistd.
73975         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73976         (Include): Add <unistd.h>.
73977
73978         * lib/getlogin_r.h: Remove file.
73979         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
73980         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
73981         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
73982         HAVE_DECL_GETLOGIN_R.
73983         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
73984         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73985         (Include): Use <unistd.h> instead of getlogin_r.h.
73986
73987         * lib/getcwd.h: Remove file.
73988         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
73989         * lib/xgetcwd.c: Likewise.
73990         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
73991         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
73992         * modules/getcwd (Files): Remove lib/getcwd.h.
73993         (Depends-on): Add unistd.
73994         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73995         (Include): Use <unistd.h> instad of getcwd.h.
73996
73997         * lib/ftruncate.c: Include <unistd.h> first.
73998         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
73999         Set HAVE_FTRUNCATE.
74000         * modules/ftruncate (Depends-on): Add unistd.
74001         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
74002
74003         * lib/fchdir.c: Include <unistd.h> first.
74004         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
74005         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
74006         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
74007         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
74008         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
74009
74010         * lib/dup2.c: Include <unistd.h> first.
74011         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
74012         HAVE_DUP2.
74013         * modules/dup2 (Depends-on): Add unistd.
74014         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
74015
74016         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
74017         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
74018         REPLACE_CHOWN. Don't define chown as a macro here.
74019         * modules/chown (Depends-on): Add unistd.
74020         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
74021
74022         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
74023         Add definition for GL_LINK_WARNING.
74024         (chown, dup2): New declarations.
74025         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
74026         link warning.
74027         (ftruncate): New declaration.
74028         (getcwd): New declaration, taken from old getcwd.h.
74029         (getlogin_r): New declaration, taken from old getlogin_r.h.
74030         (readlink): New declaration.
74031         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
74032         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
74033         (gl_PREREQ_UNISTD): Remove macro.
74034         (gl_UNISTD_MODULE_INDICATOR): New macro.
74035         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
74036         many new variables. Don't set UNISTD_H.
74037         * modules/unistd (Description): Change.
74038         (Depends-on): Add link-warning.
74039         (configure.ac): Update.
74040         (Makefile.am): Create unistd.h always. Substitute many new variables
74041         into it.
74042
74043 2007-02-18  Bruno Haible  <bruno@clisp.org>
74044
74045         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
74046         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
74047         HAVE_GETSUBOPT.
74048         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
74049         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
74050         * lib/getsubopt.h: Remove file.
74051         * modules/getsubopt (Files): Remove lib/getsubopt.h.
74052         (Depends-on): Add stdlib.
74053         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
74054         (Includes): Use <stdlib.h> instead of getsubopt.h.
74055         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
74056         Set HAVE_GETSUBOPT.
74057         * lib/getsubopt.c: Don't include getsubopt.h.
74058
74059 2007-02-18  Bruno Haible  <bruno@clisp.org>
74060
74061         * modules/fchdir (Depends-on): Add dup2.
74062
74063 2007-02-18  Bruno Haible  <bruno@clisp.org>
74064
74065         * lib/stdlib_.h: Handle glibc's special invocation convention
74066         specially.
74067
74068 2007-02-18  Bruno Haible  <bruno@clisp.org>
74069
74070         * modules/stdlib-tests: New file.
74071         * tests/test-stdlib.c: New file.
74072
74073         * modules/mkstemp (Files): Remove lib/mkstemp.h.
74074         (Depends-on): Add stdlib.
74075         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
74076         (Includes): Use <stdlib.h> instead of mkstemp.h.
74077         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
74078         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
74079         * lib/mkstemp.c: Don't include mkstemp.h.
74080         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
74081         * lib/stdlib--.h: Don't include mkstemp.h.
74082
74083         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
74084         (Depends-on): Add stdlib.
74085         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
74086         (Includes): Use <stdlib.h> instead of mkdtemp.h.
74087         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
74088         HAVE_MKDTEMP.
74089         * lib/mkdtemp.c: Don't include mkdtemp.h.
74090         * lib/clean-temp.c: Don't include mkdtemp.h.
74091
74092         * modules/exit (Files): Remove lib/exit.h.
74093         (Depends-on): Add stdlib.
74094         (Makefile.am): Remove lib_SOURCES.
74095         (Include): Use <stdlib.h> instead of exit.h.
74096         * lib/argmatch.c: Don't include exit.h.
74097         * lib/execute.c: Likewise.
74098         * lib/pagealign_alloc.c: Likewise.
74099         * lib/pipe.c: Likewise.
74100         * lib/wait-process.c: Likewise.
74101         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
74102         * lib/exitfail.c: Likewise.
74103         * lib/savewd.c: Likewise.
74104         * lib/xsetenv.c: Likewise.
74105
74106         * modules/stdlib: New file.
74107         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
74108         and extra comments about mkstemp().
74109         * lib/exit.h: Remove file.
74110         * lib/mkdtemp.h: Remove file.
74111         * lib/mkstemp.h: Remove file.
74112         * m4/stdlib_h.m4: New file.
74113         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
74114
74115 2007-02-18  Bruno Haible  <bruno@clisp.org>
74116
74117         * modules/math-tests: New file.
74118         * tests/test-math.c: New file.
74119
74120         * modules/math: New file.
74121         * modules/mathl (Files): Remove lib/mathl.h.
74122         (Depends-on): Add math.
74123         (Makefile.am): Don't mention mathl.h.
74124         (Include): Use <math.h> instead of mathl.h.
74125         * lib/math_.h: New file.
74126         * lib/mathl.h: Remove file.
74127         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
74128         mathl.h.
74129         * lib/asinl.c: Likewise.
74130         * lib/atanl.c: Likewise.
74131         * lib/ceill.c: Likewise.
74132         * lib/cosl.c: Likewise.
74133         * lib/expl.c: Likewise.
74134         * lib/floorl.c: Likewise.
74135         * lib/frexpl.c: Likewise.
74136         * lib/ldexpl.c: Likewise.
74137         * lib/logl.c: Likewise.
74138         * lib/sincosl.c: Likewise.
74139         * lib/sinl.c: Likewise.
74140         * lib/sqrtl.c: Likewise.
74141         * lib/tanl.c: Likewise.
74142         * lib/trigl.c: Likewise.
74143         * m4/math_h.m4: New file.
74144         * MODULES.html.sh (Mathematics): Add math.
74145
74146 2007-02-17  Bruno Haible  <bruno@clisp.org>
74147
74148         * modules/wctype-tests: New file.
74149         * tests/test-wctype.c: New file.
74150
74151         * modules/wchar-tests: New file.
74152         * tests/test-wchar.c: New file.
74153
74154         * modules/unistd-tests: New file.
74155         * tests/test-unistd.c: New file.
74156
74157         * modules/time-tests: New file.
74158         * tests/test-time.c: New file.
74159
74160         * modules/sysexits-tests: New file.
74161         * tests/test-sysexits.c: New file.
74162
74163         * modules/sys_time-tests: New file.
74164         * tests/test-sys_time.c: New file.
74165
74166         * modules/sys_stat-tests: New file.
74167         * tests/test-sys_stat.c: New file.
74168
74169         * modules/sys_socket-tests: New file.
74170         * tests/test-sys_socket.c: New file.
74171
74172         * modules/sys_select-tests: New file.
74173         * tests/test-sys_select.c: New file.
74174
74175         * modules/string-tests: New file.
74176         * tests/test-string.c: New file.
74177
74178         * modules/stdbool-tests: New file.
74179         * tests/test-stdbool.c: New file.
74180
74181         * modules/netinet_in-tests: New file.
74182         * tests/test-netinet_in.c: New file.
74183
74184         * modules/inttypes-tests: New file.
74185         * tests/test-inttypes.c: New file.
74186
74187         * modules/fcntl-tests: New file.
74188         * tests/test-fcntl.c: New file.
74189
74190         * modules/byteswap-tests: New file.
74191         * tests/test-byteswap.c: New file.
74192
74193         * modules/arpa_inet-tests: New file.
74194         * tests/test-arpa_inet.c: New file.
74195
74196 2007-02-17  Bruno Haible  <bruno@clisp.org>
74197
74198         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
74199         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
74200         if the corresponding module is not enabled. Emit link warnings if
74201         the function is used nevertheless.
74202         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
74203         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
74204         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
74205         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
74206         * modules/inttypes (Depends-on): Add link-warning.
74207         (Makefile.am): Copy the contents of build-aux/link-warning.h into
74208         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
74209         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
74210         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
74211         * modules/imaxdiv (configure.ac): Likewise.
74212         * modules/strtoimax (configure.ac): Likewise.
74213         * modules/strtoumax (configure.ac): Likewise.
74214
74215 2007-02-17  Bruno Haible  <bruno@clisp.org>
74216
74217         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
74218         gl_STRING_MODULE_INDICATOR_DEFAULTS.
74219         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
74220         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
74221
74222 2007-02-17  Bruno Haible  <bruno@clisp.org>
74223
74224         * modules/link-warning: New file.
74225         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
74226         * lib/string_.h (GL_LINK_WARNING): Remove definition.
74227         * modules/string (Depends-on): Add link-warning.
74228         (Makefile.am): Copy the contents of build-aux/link-warning.h into
74229         string.h.
74230         * MODULES.html.sh (Support for building libraries and executables): Add
74231         link-warning.
74232
74233 2007-02-17  Bruno Haible  <bruno@clisp.org>
74234
74235         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
74236         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
74237         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
74238         long lines.
74239
74240 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
74241             Bruno Haible  <bruno@clisp.org>
74242
74243         * modules/tmpfile: New file.
74244         * lib/tmpfile.c: New file.
74245         * m4/tmpfile.m4: New file.
74246         * MODULES.html.sh (func_all_modules): New section "Input/output".
74247
74248 2007-02-15  Bruno Haible  <bruno@clisp.org>
74249
74250         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
74251         (supports_delete_on_close): New function.
74252         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
74253
74254 2007-02-14  Bruno Haible  <bruno@clisp.org>
74255
74256         * modules/mbspcasecmp-tests: New file.
74257         * tests/test-mbspcasecmp.sh: New file.
74258         * tests/test-mbspcasecmp.c: New file.
74259
74260         New module mbspcasecmp.
74261         * modules/mbspcasecmp: New file.
74262         * lib/mbspcasecmp.c: New file.
74263         * lib/string_.h (strncasecmp): Change warning message.
74264         (mbspcasecmp): New declaration.
74265         * m4/mbspcasecmp.m4: New file.
74266         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74267         GNULIB_MBSPCASECMP.
74268         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
74269         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
74270
74271 2007-02-14  Bruno Haible  <bruno@clisp.org>
74272
74273         * modules/mbsncasecmp-tests: New file.
74274         * tests/test-mbsncasecmp.sh: New file.
74275         * tests/test-mbsncasecmp.c: New file.
74276
74277         New module mbsncasecmp.
74278         * modules/mbsncasecmp: New file.
74279         * lib/mbsncasecmp.c: New file.
74280         * lib/string_.h (mbsncasecmp): New declaration.
74281         * m4/mbsncasecmp.m4: New file.
74282         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74283         GNULIB_MBSNCASECMP.
74284         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
74285         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
74286
74287 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
74288
74289         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
74290         Verify that it doesn't overlap with our flags.
74291         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
74292         do not have the desired effect in multibyte locales; instead, use
74293         mbscasecmp.
74294         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
74295         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
74296         we don't require GNU fnmatch ourselves (if our users require it, they
74297         should do so explicitly).
74298
74299         Fix regex code so it doesn't rely on strcasecmp.
74300         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
74301         Otherwise, include gnulib's langinfo.h.
74302         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
74303         undesirable behavior in non-C locales.  Instead, rely on localecharset.
74304         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
74305         * modules/regex (FILES): Remove m4/codeset.m4.
74306         (Depends-on): Add localcharset.  Remove strcase.
74307
74308 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74309
74310         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
74311         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
74312
74313 2007-02-13  Bruno Haible  <bruno@clisp.org>
74314
74315         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
74316         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74317
74318 2007-02-12  Bruno Haible  <bruno@clisp.org>
74319
74320         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
74321         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
74322         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
74323         time warning rather than a link error.
74324
74325 2007-02-12  Bruno Haible  <bruno@clisp.org>
74326
74327         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
74328         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
74329         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74330
74331 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
74332
74333         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
74334         args, not 2.
74335
74336 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
74337
74338         New module 'time', so that apps can include <time.h> as per
74339         POSIX and GNU instead of separate include files like time_r.h
74340         and timegm.h.  This implementation tries out a simpler approach
74341         for replacing decls in standard include files (as compared to
74342         the string module), somewhat as an experiment.
74343
74344         * config/srclist.txt: Comment out mktime.c for now.
74345         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
74346         since it doesn't apply any more.  Use generic wording instead.
74347         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
74348         'time'.
74349         * lib/time_.h, m4/time_h.m4, modules/time: New files.
74350         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
74351         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
74352         Don't include <sys/types.h>; no longer needed since we assume C89.
74353         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
74354         * lib/strftime.c: Likewise.
74355         * lib/time_r.c: Likewise.
74356         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
74357         * lib/nanosleep.c: Include <time.h> first, to check interface.
74358         * lib/strptime.c: Likewise.
74359         * lib/time_r.c: Likewise.
74360         * lib/timegm.c: Likewise.
74361         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
74362         needed.
74363         * lib/timegm.c: Don't include timegm.h; no longer needed.
74364         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
74365         time.h now handles any problems in that area.
74366         (struct timespec, nanosleep): Remove; time.h now arranges for these.
74367         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
74368         that time.h defines struct timespec.
74369         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
74370         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
74371         handles that.
74372         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
74373         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
74374         needed.  Set REPLACE_LOCALTIME.
74375         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
74376         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
74377         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
74378         nanosleep; time_h.m4 now does that.  Don't require
74379         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
74380         module handles this now.
74381         * modules/getdate (Depends-on): Remove timespec.  Add time.
74382         * modules/nanosleep (Depends-on): Likewise.
74383         * modules/stat-time (Depends-on): Likewise.
74384         * modules/nanosleep (Include): Include time.h, not timespec.h.
74385         * modules/strptime (Files): Remove lib/strptime.h.
74386         (Depends-on): Add extensions, time.
74387         (Include): Include time.h, not strptime.h.
74388         * modules/time_r (Files): Remove lib/time_r.h.
74389         (Depends-on): Add time.
74390         (Include): Include time.h, not time_r.h.
74391         * modules/timegm: Likewise.
74392         * modules/timespec (Description): Now does timespec-related decls
74393         of our own, instead of struct timespec itself.
74394         (Depends-on): Add time; remove extensions.
74395         (Maintainer): Add self.
74396         * modules/utimecmp (Depends-on): Add time; remove timespec.
74397         * modules/utimens (Depends-on): Likewise.
74398         * modules/xnanosleep (Depends-on): Likewise.
74399
74400 2007-02-11  Bruno Haible  <bruno@clisp.org>
74401
74402         * lib/c-strstr.c: Include allocsa.h.
74403         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
74404         * lib/c-strcasestr.c: Include allocsa.h.
74405         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
74406         * lib/strcasestr.c: Include allocsa.h.
74407         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
74408         * lib/mbsstr.c: Include allocsa.h.
74409         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
74410         allocsa/freesa instead of malloc/free.
74411         * lib/mbscasestr.c: Include allocsa.h.
74412         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
74413         allocsa/freesa instead of malloc/free.
74414         * modules/c-strstr (Depends-on): Add allocsa.
74415         * modules/c-strcasestr (Depends-on): Likewise.
74416         * modules/strcasestr (Depends-on): Likewise.
74417         * modules/mbsstr (Depends-on): Likewise.
74418         * modules/mbscasestr (Depends-on): Likewise.
74419
74420 2007-02-11  Bruno Haible  <bruno@clisp.org>
74421
74422         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
74423
74424         * modules/mbsspn-tests: New file.
74425         * tests/test-mbsspn.sh: New file.
74426         * tests/test-mbsspn.c: New file.
74427
74428 2007-02-11  Bruno Haible  <bruno@clisp.org>
74429
74430         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
74431
74432         * modules/mbspbrk-tests: New file.
74433         * tests/test-mbspbrk.sh: New file.
74434         * tests/test-mbspbrk.c: New file.
74435
74436 2007-02-11  Bruno Haible  <bruno@clisp.org>
74437
74438         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
74439         unneeded cast.
74440
74441         * modules/mbscspn-tests: New file.
74442         * tests/test-mbscspn.sh: New file.
74443         * tests/test-mbscspn.c: New file.
74444
74445 2007-02-11  Bruno Haible  <bruno@clisp.org>
74446
74447         * modules/mbscasecmp-tests: New file.
74448         * tests/test-mbscasecmp.sh: New file.
74449         * tests/test-mbscasecmp.c: New file.
74450
74451 2007-02-11  Bruno Haible  <bruno@clisp.org>
74452
74453         Ensure O(n) worst-case complexity of mbscasestr.
74454         * lib/mbscasestr.c: Include stdbool.h.
74455         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
74456         functions.
74457         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
74458         the bookkeeping indicates that it's worth it.
74459         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
74460
74461         * modules/mbscasestr-tests: New file.
74462         * tests/test-mbscasestr1.c: New file.
74463         * tests/test-mbscasestr2.sh: New file.
74464         * tests/test-mbscasestr2.c: New file.
74465         * tests/test-mbscasestr3.sh: New file.
74466         * tests/test-mbscasestr3.c: New file.
74467         * tests/test-mbscasestr4.sh: New file.
74468         * tests/test-mbscasestr4.c: New file.
74469         * m4/locale-tr.m4: New file.
74470
74471 2007-02-11  Bruno Haible  <bruno@clisp.org>
74472
74473         Ensure O(n) worst-case complexity of mbsstr.
74474         * lib/mbsstr.c: Include stdbool.h.
74475         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
74476         functions.
74477         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
74478         bookkeeping indicates that it's worth it.
74479         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
74480
74481         * modules/mbsstr-tests: New file.
74482         * tests/test-mbsstr1.c: New file.
74483         * tests/test-mbsstr2.sh: New file.
74484         * tests/test-mbsstr2.c: New file.
74485         * tests/test-mbsstr3.sh: New file.
74486         * tests/test-mbsstr3.c: New file.
74487         * m4/locale-fr.m4: New file.
74488
74489 2007-02-11  Bruno Haible  <bruno@clisp.org>
74490
74491         * lib/mbsrchr.c (mbsrchr): Fix bug.
74492
74493         * modules/mbsrchr-tests: New file.
74494         * tests/test-mbsrchr.sh: New file.
74495         * tests/test-mbsrchr.c: New file.
74496
74497 2007-02-11  Bruno Haible  <bruno@clisp.org>
74498
74499         * lib/mbschr.c (mbschr): Fix bug.
74500
74501         * modules/mbschr-tests: New file.
74502         * tests/test-mbschr.sh: New file.
74503         * tests/test-mbschr.c: New file.
74504         * m4/locale-zh.m4: New file.
74505
74506 2007-02-11  Bruno Haible  <bruno@clisp.org>
74507
74508         Support for copying multibyte string iterators.
74509         * lib/mbiter.h: Include <string.h>.
74510         (mbiter_multi_copy): New function.
74511         (mbi_copy): New macro.
74512         * lib/mbuiter.h: Include <string.h>.
74513         (mbuiter_multi_copy): New function.
74514         (mbui_copy): New macro.
74515
74516 2007-02-11  Bruno Haible  <bruno@clisp.org>
74517
74518         New module mbslen.
74519         * modules/mbslen: New file.
74520         * lib/mbslen.c: New file.
74521         * lib/string_.h (mbslen): New declaration.
74522         * m4/mbslen.m4: New file.
74523         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74524         GNULIB_MBSLEN.
74525         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
74526         * MODULES.html.sh (Internationalization functions): Add mbslen.
74527
74528 2007-02-11  Bruno Haible  <bruno@clisp.org>
74529
74530         Ensure O(n) worst-case complexity of strcasestr substitute.
74531         * lib/strcasestr.c: Include stdbool.h.
74532         (knuth_morris_pratt): New function.
74533         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
74534         bookkeeping indicates that it's worth it.
74535         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
74536
74537         * modules/strcasestr-tests: New file.
74538         * tests/test-strcasestr.c: New file.
74539
74540 2007-02-11  Bruno Haible  <bruno@clisp.org>
74541
74542         Ensure O(n) worst-case complexity of c_strcasestr.
74543         * lib/c-strcasestr.c: Include stdbool.h, string.h.
74544         (knuth_morris_pratt): New function.
74545         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
74546         the bookkeeping indicates that it's worth it.
74547         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
74548
74549         * modules/c-strcasestr-tests: New file.
74550         * tests/test-c-strcasestr.c: New file.
74551
74552 2007-02-11  Bruno Haible  <bruno@clisp.org>
74553
74554         Ensure O(n) worst-case complexity of c_strstr.
74555         * lib/c-strstr.c: Include stdbool.h, string.h.
74556         (knuth_morris_pratt): New function.
74557         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
74558         bookkeeping indicates that it's worth it.
74559         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
74560
74561         * lib/c-strstr.c: Complete rewrite for maintainability.
74562
74563         * modules/c-strstr-tests: New file.
74564         * tests/test-c-strstr.c: New file.
74565
74566 2007-02-11  Bruno Haible  <bruno@clisp.org>
74567
74568         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
74569         5.2.1 and earlier, whereby \055 was treated just like the range
74570         delimiter '-'.
74571         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
74572
74573 2007-02-08  Bruno Haible  <bruno@clisp.org>
74574
74575         * modules/regex (Depends-on): Add stdbool.
74576         Reported by Dalibor Topic <robilad@kaffe.org>.
74577
74578 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
74579
74580         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
74581         Prefer returning from main to exiting from it.
74582         Remove unnecessary parens after sizeof.
74583
74584 2007-02-05  Bruno Haible  <bruno@clisp.org>
74585
74586         New module mbssep.
74587         * modules/mbssep: New file.
74588         * lib/mbssep.c: New file.
74589         * lib/string_.h (strsep): Add a conditional link warning.
74590         (mbssep): New declaration.
74591         * m4/mbssep.m4: New file.
74592         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74593         GNULIB_MBSSEP.
74594         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
74595         * MODULES.html.sh (Internationalization functions): Add mbssep.
74596
74597 2007-02-05  Bruno Haible  <bruno@clisp.org>
74598
74599         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
74600         Optimize search in case of 1 delimiter.
74601
74602 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
74603
74604         * lib/acl.h: Include sys/types.h before sys/acl.h.
74605
74606 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
74607
74608         Merge upstream fix for glibc bugzilla #3957:
74609
74610         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
74611
74612         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
74613         bit for RE_HAT_LISTS_NOT_NEWLINE.
74614         (build_charclass_op): Remove bogus comment.
74615
74616 2007-02-05  Simon Josefsson  <simon@josefsson.org>
74617
74618         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
74619
74620 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
74621
74622         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
74623         * lib/memmem.c [!defined _LIBC]: Include config.h.
74624
74625 2007-02-04  Bruno Haible  <bruno@clisp.org>
74626
74627         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
74628         warning message.
74629
74630 2007-02-04  Bruno Haible  <bruno@clisp.org>
74631
74632         New module mbstok_r.
74633         * modules/mbstok_r: New file.
74634         * lib/mbstok_r.c: New file.
74635         * lib/string_.h (strtok_r): Change argument names to match the
74636         comments. Add a conditional link warning.
74637         (mbstok_r): New declaration.
74638         * m4/mbstok_r.m4: New file.
74639         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74640         GNULIB_MBSTOK_R.
74641         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
74642         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
74643
74644 2007-02-04  Bruno Haible  <bruno@clisp.org>
74645
74646         New module mbsspn.
74647         * modules/mbsspn: New file.
74648         * lib/mbsspn.c: New file.
74649         * lib/string_.h (strspn): Add a conditional link warning.
74650         (mbsspn): New declaration.
74651         * m4/mbsspn.m4: New file.
74652         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74653         GNULIB_MBSSPN.
74654         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
74655         * MODULES.html.sh (Internationalization functions): Add mbsspn.
74656
74657 2007-02-04  Bruno Haible  <bruno@clisp.org>
74658
74659         New module mbspbrk.
74660         * modules/mbspbrk: New file.
74661         * lib/mbspbrk.c: New file.
74662         * lib/string_.h (strpbrk): Add a conditional link warning.
74663         (mbspbrk): New declaration.
74664         * m4/mbspbrk.m4: New file.
74665         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74666         GNULIB_MBSPBRK.
74667         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
74668         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
74669
74670 2007-02-04  Bruno Haible  <bruno@clisp.org>
74671
74672         New module mbscspn.
74673         * modules/mbscspn: New file.
74674         * lib/mbscspn.c: New file.
74675         * lib/string_.h (strcspn): Add a conditional link warning.
74676         (mbscspn): New declaration.
74677         * m4/mbscspn.m4: New file.
74678         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74679         GNULIB_MBSCSPN.
74680         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
74681         * MODULES.html.sh (Internationalization functions): Add mbscspn.
74682
74683 2007-02-04  Bruno Haible  <bruno@clisp.org>
74684
74685         New module mbscasestr, reduced goal of strcasestr.
74686         * modules/mbscasestr: New file.
74687         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
74688         (mbscasestr): Renamed from strcasestr.
74689         * lib/strcasestr.c: Don't include mbuiter.h.
74690         (strcasestr): Remove support for multibyte locales.
74691         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
74692         Change the conditional link warning.
74693         (mbscasestr): New declaration.
74694         * m4/mbscasestr.m4: New file.
74695         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
74696         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
74697         REPLACE_STRCASESTR.
74698         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
74699         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
74700         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
74701         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
74702         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
74703         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
74704         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
74705         (Depends-on): Remove mbuiter.
74706         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
74707
74708 2007-02-04  Bruno Haible  <bruno@clisp.org>
74709
74710         Simplify handling of strncasecmp.
74711         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
74712         the conditional link warning.
74713         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
74714         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
74715         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
74716         * modules/strcase (configure.ac): Don't invoke
74717         gl_STRING_MODULE_INDICATOR.
74718         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
74719
74720 2007-02-04  Bruno Haible  <bruno@clisp.org>
74721
74722         New module mbscasecmp, reduced goal of strcasecmp.
74723         * modules/mbscasecmp: New file.
74724         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
74725         (mbscasecmp): Renamed from strcasecmp.
74726         * lib/strcasecmp.c: Don't include mbuiter.h.
74727         (strcasecmp): Remove support for multibyte locales.
74728         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
74729         Change the conditional link warning.
74730         (mbscasecmp): New declaration.
74731         * m4/mbscasecmp.m4: New file.
74732         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
74733         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
74734         REPLACE_STRCASECMP.
74735         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
74736         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74737         GNULIB_MBSCASECMP.
74738         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
74739         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
74740         * modules/strcase (Files): Remove m4/mbrtowc.m4.
74741         (Depends-on): Remove mbuiter.
74742         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
74743
74744 2007-02-04  Bruno Haible  <bruno@clisp.org>
74745
74746         New module mbsstr. Remove module strstr.
74747         * modules/mbsstr: New file.
74748         * modules/strstr: Remove file.
74749         * lib/mbsstr.c: Renamed from lib/strstr.c.
74750         (mbsstr): Renamed from strstr.
74751         * lib/string_.h (strstr): Remove declaration. Change the conditional
74752         link warning.
74753         (mbsstr): New declaration.
74754         * m4/mbsstr.m4: New file.
74755         * m4/strstr.m4: Remove file.
74756         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
74757         REPLACE_STRSTR.
74758         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
74759         Don't initialize GNULIB_STRSTR.
74760         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
74761         substitute GNULIB_STRSTR and REPLACE_STRSTR.
74762         * MODULES.html.sh (Internationalization functions): Add mbsstr.
74763         (Support for systems lacking ANSI C 89): Remove strstr.
74764
74765 2007-02-04  Bruno Haible  <bruno@clisp.org>
74766
74767         New module mbsrchr.
74768         * modules/mbsrchr: New file.
74769         * lib/mbsrchr.c: New file.
74770         * lib/string_.h (strrchr): Add a conditional link warning.
74771         (mbsrchr): New declaration.
74772         * m4/mbsrchr.m4: New file.
74773         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74774         GNULIB_MBSRCHR.
74775         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
74776         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
74777
74778 2007-02-04  Bruno Haible  <bruno@clisp.org>
74779
74780         New module mbschr.
74781         * modules/mbschr: New file.
74782         * lib/mbschr.c: New file.
74783         * lib/string_.h (strchr): Add a conditional link warning.
74784         (mbschr): New declaration.
74785         * m4/mbschr.m4: New file.
74786         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74787         GNULIB_MBSCHR.
74788         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
74789         * MODULES.html.sh (Internationalization functions): Add mbschr.
74790
74791 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
74792
74793         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
74794
74795         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
74796
74797 2007-02-04  Bruno Haible  <bruno@clisp.org>
74798
74799         New module description section 'configure.ac-early'.
74800         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
74801         (func_get_autoconf_early_snippet): New function.
74802         (func_import, func_create_testdir): Use it. Remove special cases for
74803         modules 'extensions' and 'lock'.
74804         * modules/extensions (configure.ac-early): Require
74805         gl_USE_SYSTEM_EXTENSIONS.
74806         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
74807
74808 2007-02-04  Bruno Haible  <bruno@clisp.org>
74809
74810         Make use of gcj-4.3's -fsource and -ftarget option.
74811         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
74812         and if so try the options -fsource and -ftarget.
74813         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
74814         source_version, ftarget_option, target_version arguments.
74815         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
74816         (is_envjavac_oldgcj_14_14_usable): Renamed from
74817         is_envjavac_gcj_14_14_usable.
74818         (is_envjavac_oldgcj_14_13_usable): Renamed from
74819         is_envjavac_gcj_14_13_usable.
74820         (is_gcj_present): Update.
74821         (is_gcj_43, is_gcj43_usable): New functions.
74822         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
74823         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
74824         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
74825         try the options -fsource and -ftarget.
74826
74827 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
74828
74829         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
74830         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
74831         larger value.
74832
74833 2007-02-03  Jim Meyering  <jim@meyering.net>
74834
74835         Give tools a better chance to allocate space for very large buffers.
74836         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
74837
74838         Make pwd and readlink work also when run with an unreadable parent dir
74839         on systems with openat support.
74840         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
74841         provided getcwd function, even when we have openat support.
74842         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
74843
74844 2007-02-02  Bruno Haible  <bruno@clisp.org>
74845
74846         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
74847         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
74848         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
74849         portability problems if one of these functions is only used on specific
74850         platforms.
74851         Reported by Paul Eggert.
74852
74853 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
74854
74855         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
74856         is causing more trouble than it's curing.
74857         * lib/regex_internal.h (__mempcpy): Remove.
74858         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
74859         (and make the code a tad smaller to boot).
74860         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
74861
74862 2007-02-02  Jim Meyering  <jim@meyering.net>
74863
74864         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
74865         section, not in the Makefile.am: one.
74866
74867 2007-02-02  Eric Blake  <ebb9@byu.net>
74868
74869         * lib/strchrnul.c: Always include config.h first.
74870
74871         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
74872         gnulib strstr is not necessary here.
74873
74874 2007-02-02  Simon Josefsson  <simon@josefsson.org>
74875
74876         * m4/socklen.m4: Fix typo.
74877
74878 2007-02-02  Eric Blake  <ebb9@byu.net>
74879
74880         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
74881         * modules/netinet_in (Makefile.am): Likewise.
74882
74883 2007-02-01  Bruno Haible  <bruno@clisp.org>
74884
74885         * lib/string_.h (GL_LINK_WARNING): New macro.
74886         (strcasecmp, strstr, strcasestr): If provided by the system,
74887         conditionally define as a macro that leads to a warning instead of to
74888         an error.
74889         (strncasecmp): Conditionally define as a macro that leads to a warning.
74890
74891 2007-02-01  Karl Berry  <karl@gnu.org>
74892
74893         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
74894
74895 2007-02-01  Bruno Haible  <bruno@clisp.org>
74896
74897         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
74898         renamings.
74899
74900 2007-02-01  Eric Blake  <ebb9@byu.net>
74901
74902         * modules/regex (Depends-on): Revert dependence on mempcpy.
74903         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
74904         module's definition of mempcpy.
74905         Reported by Paul Eggert.
74906
74907 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
74908
74909         * lib/string_.h: If the gnulib module XYZ is not present, undefine
74910         the symbol XYZ before redefining it.  This fixes a problem with
74911         programs that don't use XYZ, when compiled on systems that define
74912         XYZ to something else.
74913
74914 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
74915
74916         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
74917         occurs when "mkdir -m foo" creates a setgid directory that is (1)
74918         writeable to group or other and (2) is intended to have a special
74919         mode bit that is set or cleared.  In such a case, the directory
74920         should be neither group- nor other-writeable until the special
74921         mode bits are right.
74922
74923 2007-01-31  Eric Blake  <ebb9@byu.net>
74924
74925         * modules/mountlist (Depends-on): Add strstr.
74926
74927         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
74928         bug.
74929         * modules/string (Makefile.am): Remove redundant replacement.
74930         * modules/regex (Depends-on): Add mempcpy.
74931
74932 2007-01-31  Bruno Haible  <bruno@clisp.org>
74933
74934         New module description field 'Link'.
74935         * gnulib-tool (func_usage): Document --extract-link-directive.
74936         (sed_extract_prog): Recognize 'Link' directive.
74937         (func_get_link_directive): New function.
74938         (func_import): Show summary of link directives.
74939         Handle --extract-link-directive option.
74940         * modules/acl (Link): New section.
74941         * modules/clock-time (Link): New section.
74942         * modules/euidaccess (Link): New section.
74943         * modules/gettext (Link): New section.
74944         * modules/iconv (Link): New section.
74945         * modules/lock (Link): New section.
74946         * modules/nanosleep (Link): New section.
74947         * modules/readline (Link): New section.
74948
74949 2007-01-27  Bruno Haible  <bruno@clisp.org>
74950
74951         Enforce the use of gnulib modules for unportable <string.h> functions.
74952         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
74953         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
74954         (gl_HEADER_STRING_H_BODY): Require it.
74955         * lib/string_.h: If the gnulib module XYZ is not present, redefine
74956         the symbol XYZ to one that gives a link error.
74957         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
74958         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
74959         * modules/mempcpy (configure.ac): Likewise.
74960         * modules/memrchr (configure.ac): Likewise.
74961         * modules/stpcpy (configure.ac): Likewise.
74962         * modules/stpncpy (configure.ac): Likewise.
74963         * modules/strcase (configure.ac): Likewise.
74964         * modules/strcasestr (configure.ac): Likewise.
74965         * modules/strchrnul (configure.ac): Likewise.
74966         * modules/strdup (configure.ac): Likewise.
74967         * modules/strndup (configure.ac): Likewise.
74968         * modules/strnlen (configure.ac): Likewise.
74969         * modules/strpbrk (configure.ac): Likewise.
74970         * modules/strsep (configure.ac): Likewise.
74971         * modules/strstr (configure.ac): Likewise.
74972         * modules/strtok_r (configure.ac): Likewise.
74973
74974 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
74975
74976         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
74977
74978 2007-01-30  Jim Meyering  <jim@meyering.net>
74979
74980         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
74981
74982 2007-01-29  Bruno Haible  <bruno@clisp.org>
74983
74984         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
74985         * lib/execute.c: Likewise.
74986         * lib/pipe.c: Likewise.
74987         * lib/printf-args.h: Likewise.
74988         * lib/printf-args.c: Likewise.
74989         * lib/printf-parse.c: Likewise.
74990         * lib/vasnprintf.c: Likewise.
74991
74992 2007-01-29  Eric Blake  <ebb9@byu.net>
74993
74994         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
74995         declaration.
74996
74997 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
74998
74999         * lib/strptime.h (strptime): Use 'restrict' for args where
75000         POSIX requires this.
75001         * lib/strptime.c (strptime): Likewise.
75002         Change license notice from LGPL to GPL, since gnulib-tool will
75003         change this as needed.
75004         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
75005         defined.
75006         Include "strptime.h" first, to check interface.
75007         Do not #undef _LIBC and _NL_CURRENT.
75008         Do not include <stdlib.h>; no longer needed.
75009         Include "time_r.h" and declare ptime_locale_status
75010         only if _LIBC is not defined.
75011         (__P): Remove unused macro.
75012         (match_string): Bring back glibc version, but use it only if _LIBC
75013         is defined.
75014         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
75015         Remove unnecessary assertion and abort() call.
75016         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
75017         * m4/strptime.m4: Fix serial number comment.
75018         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
75019         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
75020         (Depends-on): Add time_r.
75021
75022 2007-01-29  Bruno Haible  <bruno@clisp.org>
75023
75024         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75025         strptime.
75026         * modules/strptime (Depends-on): Add stdbool.
75027         * lib/strptime.h: Include <time.h> always. Add comments.
75028
75029 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75030
75031         * modules/strptime: New file.
75032         * lib/strptime.h: New file.
75033         * lib/strptime.c: New file.
75034         * m4/strptime.m4: New file.
75035
75036 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
75037
75038         * MODULES.html.sh: New module mpsort.
75039         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
75040
75041         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
75042         a circularity problem with HP-UX ia64 reported by Bob Proulx in
75043         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
75044         All uses changed.
75045         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
75046         All uses changed.
75047         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
75048         to _Restrict_.
75049         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
75050         the parameter matches the prototype.
75051
75052 2007-01-28  Jim Meyering  <jim@meyering.net>
75053
75054         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
75055         sys/time.h here, reverting that part of the previous patch:
75056         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
75057
75058 2007-01-28  Bruno Haible  <bruno@clisp.org>
75059
75060         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
75061         value of $(SYS_TIME_H).
75062         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
75063         remove it conditionally, too. [added by Jim Meyering]
75064         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
75065         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
75066         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
75067         GETTIMEOFDAY_REPLACEMENT to 1.
75068
75069 2007-01-28  Bruno Haible  <bruno@clisp.org>
75070
75071         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
75072         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
75073         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
75074         Set UNISTD_H instead of UNISTD_H2.
75075         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
75076
75077 2007-01-28  Bruno Haible  <bruno@clisp.org>
75078
75079         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
75080         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
75081
75082 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75083
75084         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
75085         (func_create_testdir): Ensure C locale for `grep' and `tr'
75086         character ranges.
75087         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
75088         ACLOCAL_AMFLAGS parsing state machine.
75089
75090 2007-01-27  Bruno Haible  <bruno@clisp.org>
75091
75092         * modules/unistr/base: Update.
75093
75094 2007-01-27  Bruno Haible  <bruno@clisp.org>
75095
75096         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
75097         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
75098         * modules/unistr/u32-mbtouc-unsafe: Renamed from
75099         modules/unistr/u32-mbtouc.
75100         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
75101         * lib/unistr.h: Update.
75102         * lib/linebreak.c: Update.
75103         * modules/unistr/u32-mbtouc: Renamed from
75104         modules/unistr/u32-mbtouc-safe.
75105         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
75106         * lib/unistr.h: Update.
75107         * lib/unistr/u32-to-u8.c: Update.
75108         * lib/unistr/u32-to-u16.c: Update.
75109
75110 2007-01-27  Bruno Haible  <bruno@clisp.org>
75111
75112         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
75113         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
75114         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
75115         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
75116         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
75117         * modules/unistr/u16-mbtouc-unsafe: Renamed from
75118         modules/unistr/u16-mbtouc.
75119         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
75120         * lib/unistr.h: Update.
75121         * lib/linebreak.c: Update.
75122         * modules/linebreak: Update.
75123         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
75124         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
75125         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
75126         * modules/unistr/u16-mbtouc: Renamed from
75127         modules/unistr/u16-mbtouc-safe.
75128         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
75129         * lib/unistr.h: Update.
75130         * lib/unistr/u16-to-u8.c: Update.
75131         * modules/unistr/u16-to-u8: Update.
75132         * lib/unistr/u16-to-u32.c: Update.
75133         * modules/unistr/u16-to-u32: Update.
75134
75135 2007-01-27  Bruno Haible  <bruno@clisp.org>
75136
75137         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
75138         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
75139         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
75140         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
75141         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
75142         * modules/unistr/u8-mbtouc-unsafe: Renamed from
75143         modules/unistr/u8-mbtouc.
75144         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
75145         * lib/unistr.h: Update.
75146         * lib/striconveh.c: Update.
75147         * modules/striconveh: Update.
75148         * lib/linebreak.c: Update.
75149         * modules/linebreak: Update.
75150         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
75151         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
75152         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
75153         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
75154         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
75155         * lib/unistr.h: Update.
75156         * lib/striconveh.c: Update.
75157         * modules/striconveh: Update.
75158         * lib/unistr/u8-to-u16.c: Update.
75159         * modules/unistr/u8-to-u16: Update.
75160         * lib/unistr/u8-to-u32.c: Update.
75161         * modules/unistr/u8-to-u32: Update.
75162
75163 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75164
75165         Sync from Libtool.
75166         * lib/argz.c: Do not include strings.h nor memory.h, include
75167         string.h unconditionally.  Patch by Simon Josefsson.
75168
75169 2007-01-27  Bruno Haible  <bruno@clisp.org>
75170
75171         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
75172         from gl_HEADER_STRING_H_BODY.
75173         (gl_HEADER_STRING_H_BODY): Require it.
75174         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
75175         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
75176         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
75177         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
75178         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
75179         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
75180         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
75181         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
75182         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
75183         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
75184         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
75185         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
75186         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
75187         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
75188         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
75189
75190 2007-01-27  Bruno Haible  <bruno@clisp.org>
75191
75192         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
75193         check_PROGRAMS into noinst_PROGRAMS.
75194         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
75195         check_PROGRAMS in this case.
75196         (func_import): Set for_test to false.
75197         (func_create_testdir): Set for_test to true.
75198
75199 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
75200             Bruno Haible  <bruno@clisp.org>
75201
75202         * modules/strcasestr (Files): Remove lib/strcasestr.h.
75203         (Depends-on): Add string.
75204         (Includes): Use <string.h> instead of strcasestr.h.
75205         * modules/string (Makefile.am): Also substitute the value of
75206         REPLACE_STRCASESTR.
75207         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
75208         assume strcasestr is declared in <string.h> not <strings.h>. Also
75209         set REPLACE_STRCASESTR.
75210         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
75211         REPLACE_STRCASESTR.
75212         * lib/strcasestr.h: Remove file.
75213         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
75214         * lib/string_.h (strcasestr): New declaration.
75215
75216 2007-01-27  Bruno Haible  <bruno@clisp.org>
75217
75218         * lib/string_.h: Use 'extern'.
75219
75220 2007-01-27  Jim Meyering  <jim@meyering.net>
75221
75222         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
75223         of set-but-not-used local, "q".
75224
75225         * lib/mempcpy.c: Include <config.h> before <string.h>.
75226         This fixes a compilation error on HP-UX, due to the system's
75227         "restrict"-using mempcpy prototype.
75228
75229 2007-01-26  Bruno Haible  <bruno@clisp.org>
75230
75231         Small optimization.
75232         * lib/javacomp.c: Include c-strstr.h.
75233          (is_envjavac_gcj): Use c_strstr instead of strstr.
75234         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
75235
75236 2007-01-26  Bruno Haible  <bruno@clisp.org>
75237
75238         * MODULES.html.sh (Unicode string functions): Add the new modules.
75239
75240         * modules/uniconv/u32-strconv-to-locale: New file.
75241         * lib/uniconv/u32-strconv-to-locale.c: New file.
75242
75243         * modules/uniconv/u16-strconv-to-locale: New file.
75244         * lib/uniconv/u16-strconv-to-locale.c: New file.
75245
75246         * modules/uniconv/u8-strconv-to-locale: New file.
75247         * lib/uniconv/u8-strconv-to-locale.c: New file.
75248
75249         * modules/uniconv/u32-strconv-from-locale: New file.
75250         * lib/uniconv/u32-strconv-from-locale.c: New file.
75251
75252         * modules/uniconv/u16-strconv-from-locale: New file.
75253         * lib/uniconv/u16-strconv-from-locale.c: New file.
75254
75255         * modules/uniconv/u8-strconv-from-locale: New file.
75256         * lib/uniconv/u8-strconv-from-locale.c: New file.
75257
75258         * modules/uniconv/u32-strconv-to-enc: New file.
75259         * lib/uniconv/u32-strconv-to-enc.c: New file.
75260         * modules/uniconv/u32-strconv-to-enc-tests: New file.
75261         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
75262
75263         * modules/uniconv/u16-strconv-to-enc: New file.
75264         * lib/uniconv/u16-strconv-to-enc.c: New file.
75265         * lib/uniconv/u-strconv-to-enc.h: New file.
75266         * modules/uniconv/u16-strconv-to-enc-tests: New file.
75267         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
75268
75269         * modules/uniconv/u8-strconv-to-enc: New file.
75270         * lib/uniconv/u8-strconv-to-enc.c: New file.
75271         * modules/uniconv/u8-strconv-to-enc-tests: New file.
75272         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
75273
75274         * modules/uniconv/u32-strconv-from-enc: New file.
75275         * lib/uniconv/u32-strconv-from-enc.c: New file.
75276         * modules/uniconv/u32-strconv-from-enc-tests: New file.
75277         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
75278
75279         * modules/uniconv/u16-strconv-from-enc: New file.
75280         * lib/uniconv/u16-strconv-from-enc.c: New file.
75281         * modules/uniconv/u16-strconv-from-enc-tests: New file.
75282         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
75283
75284         * modules/uniconv/u8-strconv-from-enc: New file.
75285         * lib/uniconv/u8-strconv-from-enc.c: New file.
75286         * lib/uniconv/u-strconv-from-enc.h: New file.
75287         * modules/uniconv/u8-strconv-from-enc-tests: New file.
75288         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
75289
75290         * modules/uniconv/u32-conv-from-enc: New file.
75291         * lib/uniconv/u32-conv-from-enc.c: New file.
75292         * modules/uniconv/u32-conv-from-enc-tests: New file.
75293         * tests/uniconv/test-u32-conv-from-enc.c: New file.
75294
75295         * modules/uniconv/u16-conv-from-enc: New file.
75296         * lib/uniconv/u16-conv-from-enc.c: New file.
75297         * lib/uniconv/u-conv-from-enc.h: New file.
75298         * modules/uniconv/u16-conv-from-enc-tests: New file.
75299         * tests/uniconv/test-u16-conv-from-enc.c: New file.
75300
75301         * modules/uniconv/u8-conv-from-enc: New file.
75302         * lib/uniconv/u8-conv-from-enc.c: New file.
75303         * modules/uniconv/u8-conv-from-enc-tests: New file.
75304         * tests/uniconv/test-u8-conv-from-enc.c: New file.
75305
75306         * modules/uniconv/base: New file.
75307         * lib/uniconv.h: New file.
75308
75309 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
75310
75311         * doc/gnulib-tool.texi (Initial import): Update to match current
75312         behavior with strdup module.
75313         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
75314         * lib/memmem.h: Remove; all uses removed.  This is now done
75315         by <string.h>.
75316         * lib/mempcpy.h: Likewise.
75317         * lib/memrchr.h: Likewise.
75318         * lib/stpcpy.h: Likewise.
75319         * lib/stpncpy.h: Likewise.
75320         * lib/strcase.h: Likewise.
75321         * lib/strchrnul.h: Likewise.
75322         * lib/strdup.h: Likewise.
75323         * lib/strndup.h: Likewise.
75324         * lib/strnlen.h: Likewise.
75325         * lib/strpbrk.h: Likewise.
75326         * lib/strsep.h: Likewise.
75327         * lib/strstr.h: Likewise.
75328         * lib/strtok_r.h: Likewise.
75329         * lib/string_.h: New file.
75330         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
75331         Rely on <string.h> instead.
75332         * lib/canon-host.c: Likewise.
75333         * lib/chdir-long.c: Likewise.
75334         * lib/concatpath.c: Likewise.
75335         * lib/exclude.c: Likewise.
75336         * lib/fchdir.c: Likewise.
75337         * lib/getaddrinfo.c: Likewise.
75338         * lib/getcwd.c: Likewise.
75339         * lib/getsubopt.c: Likewise.
75340         * lib/glob.c: Likewise.
75341         * lib/hard-locale.c: Likewise.
75342         * lib/iconvme.c: Likewise.
75343         * lib/javacomp.c: Likewise.
75344         * lib/mempcpy.c: Likewise.
75345         * lib/memrchr.c: Likewise.
75346         * lib/regex_internal.h: Likewise.
75347         * lib/stpncpy.c: Likewise.
75348         * lib/strcasecmp.c: Likewise.
75349         * lib/strchrnul.c: Likewise.
75350         * lib/strdup.c: Likewise.
75351         * lib/striconv.c: Likewise.
75352         * lib/striconveh.c: Likewise.
75353         * lib/striconveha.c: Likewise.
75354         * lib/strncasecmp.c: Likewise.
75355         * lib/strndup.c: Likewise.
75356         * lib/strnlen.c: Likewise.
75357         * lib/strsep.c: Likewise.
75358         * lib/strstr.c: Likewise.
75359         * lib/strtok_r.c: Likewise.
75360         * lib/userspec.c: Likewise.
75361         * lib/w32spawn.h: Likewise.
75362         * lib/xstrndup.c: Likewise.
75363         * lib/mountlist.c (strstr): Remove decl.
75364         * m4/string_h.m4: New file.
75365         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
75366         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
75367         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
75368         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
75369         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
75370         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
75371         Set REPLACE_STRCASECMP if necessary.
75372         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
75373         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
75374         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
75375         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
75376         HAVE_DECL_STRDUP if necessary.
75377         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
75378         since gl_FUNC_STRNDUP does that now.
75379         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
75380         Check for decl here...
75381         (gl_PREREQ_STRNLEN): ... not here.
75382         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
75383         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
75384         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
75385         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
75386         necessary.
75387         * modules/string: New file.
75388         * modules/memmem (Files): Remove special-purpose include file.
75389         (Depends-on): Add string.
75390         (Include): Include <string.h>, not the removed file.
75391         * modules/mempcpy: Likewise.
75392         * modules/memrchr: Likewise.
75393         * modules/stpcpy: Likewise.
75394         * modules/stpncpy: Likewise.
75395         * modules/strcase: Likewise.
75396         * modules/strchrnul: Likewise.
75397         * modules/strdup: Likewise.
75398         * modules/strndup: Likewise.
75399         * modules/strnlen: Likewise.
75400         * modules/strpbrk: Likewise.
75401         * modules/strsep: Likewise.
75402         * modules/strstr: Likewise.
75403         * modules/strtok_r: Likewise.
75404         * tests/test-dirname.c: Don't include "strdup.h", since
75405         <string.h> now suffices.
75406         * tests/test-memmem.c: Don't include "memmem.h", since
75407         <string.h> now suffices.
75408
75409 2007-01-25  Bruno Haible  <bruno@clisp.org>
75410
75411         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
75412         *resultp is 0.
75413
75414         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
75415         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
75416         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
75417         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
75418
75419         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
75420         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
75421         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
75422         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
75423         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
75424         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
75425
75426 2007-01-24  Bruno Haible  <bruno@clisp.org>
75427
75428         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
75429         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
75430         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
75431         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
75432         gl_FUNC_FTS_CORE.
75433         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
75434         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
75435         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
75436         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
75437         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
75438         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
75439         gl_FUNC_FCHOWNAT.
75440         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
75441         gl_FUNC_STRFTIME.
75442         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
75443         Reported by Ralf Wildenhues.
75444
75445 2007-01-24  Bruno Haible  <bruno@clisp.org>
75446
75447         Drop AC_REQUIRE calls that are redundant with the module dependencies.
75448         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
75449         gl_GETADDRINFO.
75450         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
75451         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
75452         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
75453
75454 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
75455
75456         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
75457         Don't use 'exit'; just return from 'main'.
75458         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
75459
75460         * lib/fnmatch_.h: Readjust white space and comments to match
75461         glibc, to avoid spurious diffs.
75462
75463 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
75464
75465         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
75466         2004-12-01 change by Jakub Jelinek, since this code won't compile
75467         if !LIBC.  Problem reported by Bob Proulx.
75468
75469 2007-01-23  Bruno Haible  <bruno@clisp.org>
75470
75471         * lib/striconveh.c: Include c-strcaseeq.h.
75472         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
75473         * modules/striconveh (Depends-on): Add c-strcaseeq.
75474
75475 2007-01-23  Bruno Haible  <bruno@clisp.org>
75476
75477         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
75478
75479         * modules/c-strcaseeq: New file.
75480         * lib/c-strcaseeq.h: New file.
75481
75482         * modules/streq: New file.
75483         * lib/streq.h: New file.
75484
75485 2007-01-23  Bruno Haible  <bruno@clisp.org>
75486
75487         * modules/striconveha-tests: New file.
75488         * tests/test-striconveha.c: New file.
75489
75490         * lib/striconveha.h: Include <stdbool.h>.
75491         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
75492         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
75493         (mem_iconveha_notranslit): Renamed from mem_iconveha.
75494         (mem_iconveha): New function.
75495         (str_iconveha_notranslit): Renamed from str_iconveha.
75496         (str_iconveha): New function.
75497         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
75498         c-strcase.
75499
75500 2007-01-23  Bruno Haible  <bruno@clisp.org>
75501
75502         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
75503         encodings without forgiving before trying any encoding with handler.
75504         (str_iconveha): Try all encodings without forgiving before trying any
75505         encoding with handler.
75506
75507 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
75508
75509         Import the following changes from libc.
75510
75511         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
75512
75513         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
75514
75515         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
75516
75517         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
75518         normal_bracket label.
75519
75520         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
75521
75522         [BZ #361]
75523         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
75524         to normal_bracket after fetching the next character.
75525
75526 2007-01-22  Bruno Haible  <bruno@clisp.org>
75527
75528         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
75529         argument.
75530         * lib/striconveh.c (iconv_carefully_1): New function.
75531         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
75532         argument.
75533         (str_cd_iconveh): Update.
75534         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
75535         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
75536         * tests/test-striconveh.c (MAGIC): New macro.
75537         (new_offsets): New function.
75538         (main): Test call with and without offsets.
75539
75540 2007-01-22  Bruno Haible  <bruno@clisp.org>
75541
75542         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
75543         * modules/sys_select (Makefile.am): Likewise.
75544         * modules/sys_socket (Makefile.am): Likewise.
75545         * modules/sys_time (Makefile.am): Likewise.
75546
75547 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
75548
75549         * modules/gettimeofday (License): Change from GPL to LGPL, since
75550         gettimeofday is a library function.
75551
75552 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75553
75554         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
75555
75556 2007-01-21  Bruno Haible  <bruno@clisp.org>
75557
75558         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
75559
75560 2007-01-21  Bruno Haible  <bruno@clisp.org>
75561
75562         * modules/striconveha: New file.
75563         * lib/striconveha.h: New file.
75564         * lib/striconveha.c: New file.
75565         * MODULES.html.sh (Internationalization functions): Add striconveha.
75566         * lib/striconv.c (str_iconv): Optimize the case of an empty input
75567         string.
75568         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
75569
75570 2007-01-21  Bruno Haible  <bruno@clisp.org>
75571
75572         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
75573         * lib/striconveh.c (str_iconveh): Likewise.
75574
75575 2007-01-21  Bruno Haible  <bruno@clisp.org>
75576
75577         * lib/striconveh.h (mem_iconveh): New declaration.
75578         * lib/striconveh.c (mem_iconveh): New function.
75579         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
75580
75581 2007-01-21  Bruno Haible  <bruno@clisp.org>
75582
75583         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
75584
75585         * lib/striconveh.h (mem_cd_iconveh): Change specification.
75586         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
75587         original result buffer.
75588         (str_cd_iconveh): Update.
75589         * tests/test-striconveh.c (main): Update.
75590
75591         * lib/striconv.h (mem_cd_iconv): Change specification.
75592         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
75593         result buffer.
75594         (str_cd_iconv): Update.
75595         * tests/test-striconv.c (main): Update.
75596
75597 2007-01-21  Bruno Haible  <bruno@clisp.org>
75598
75599         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
75600
75601 2007-01-20  Jim Meyering  <jim@meyering.net>
75602
75603         * lib/userspec.c (parse_with_separator): If a user or group string
75604         starts with "+", skip the corresponding name-to-ID look-up, since
75605         such a look-up must fail: user and group names may not include "+".
75606
75607 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
75608
75609         * lib/poll.c: Include sys/time.h and time.h unconditionally,
75610         since we now assume the sys_time module.
75611         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
75612         check for sys/time.h; no longer needed.
75613         * modules/poll (Depends-on): Depend on sys_time.
75614
75615 2007-01-18  Bruno Haible  <bruno@clisp.org>
75616
75617         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
75618         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
75619
75620         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
75621         gettimeofday.
75622
75623         * tests/test-gettimeofday.c: Include <time.h>.
75624         (dummy): Remove variable.
75625
75626         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
75627         gl_HEADER_SYS_TIME_H.
75628         (gl_HEADER_SYS_TIME_H): New macro.
75629
75630         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
75631         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75632         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
75633         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
75634         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75635         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
75636         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
75637         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75638         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
75639         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
75640         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75641
75642         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
75643         last change; it caused a compilation error when cross-compiling to
75644         Cygwin.
75645
75646 2007-01-18  Jim Meyering  <jim@meyering.net>
75647
75648         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
75649         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
75650         than the race-prone "test -d sys || mkdir sys".
75651         (configure.ac): Use AC_PROG_MKDIR_P.
75652         * modules/sys_select: Likewise.
75653         * modules/sys_socket: Likewise.
75654         * modules/sys_time: Likewise.
75655
75656 2007-01-18  Eric Blake  <ebb9@byu.net>
75657
75658         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
75659         replace gettimeofday.
75660         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
75661         name, to avoid infinite recursion.
75662
75663 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
75664
75665         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
75666         module sys_time.
75667         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
75668         assume timespec.h defines struct timeval.
75669         * lib/settime.c: Likewise.
75670         * lib/utimens.c: Likewise.
75671         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
75672         since we now assume the gettimeofday module.
75673         * lib/tempname.c (__gen_tempname): Likewise.
75674         * lib/gettimeofday.h: Remove.
75675         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
75676         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
75677         Include <time.h>, for 'time()'.
75678         (localtime_buffer_addr): Also use this workaround if
75679         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
75680         to simplify the uses.  All uses changed.
75681         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
75682         that #undef is inside {}, and 'const' follows type name consistently.
75683         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
75684         (gettimeofday): Do not use the maximum possible value for
75685         tv->tv_usec, since that might break usages other than ls.c.
75686         Instead, we'll leave ls.c alone.  This undoes today's patch
75687         by Bruno.  Add a compile-time warning for 1s-clock resolution;
75688         we've never observed the problem but might as well keep the
75689         canary.
75690         * lib/nanosleep.c: Include timespec.h first, for interface check.
75691         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
75692         now assume the sys_time module.
75693         * lib/tempname.c: Likewise.
75694         * lib/timespec.h: Likewise.
75695         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
75696         needed.
75697         * lib/strftime.c: Likewise.
75698         * lib/timespec.h: Likewise.
75699         * lib/posixtm.c: Include posixtm.h first, for interface check.
75700         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
75701         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
75702         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
75703         * lib/sys_time_.h: New file.
75704         * lib/timespec.h (struct timespec): Use long int, not long.
75705         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
75706         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
75707         Remove obsolescent call to AC_HEADER_TIME.
75708         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
75709         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
75710         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
75711         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
75712         Likewise.
75713         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
75714         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
75715         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
75716         into the sys_time module.  Check for gettimeofday just once.
75717         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
75718         for gettimeofday signature to just check the signature.  Merely
75719         compile it, since linking doesn't test signature.  Improve test for
75720         whether gettimeofday.o is actually needed.
75721         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
75722         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
75723         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
75724         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75725         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
75726         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
75727         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
75728         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
75729         than worrying about sys/time.h.
75730         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
75731         Don't bother worrying about TIME_WITH_SYS_TIME.
75732         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
75733         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
75734         * m4/sys_time_h.m4: New file.
75735         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
75736         Don't include sys/time.h.  Return from main rather than exiting.
75737         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
75738         all uses changed.
75739         * modules/gethrxtime (Depends-on): Add sys_time.
75740         * modules/gettime (Depends-on): Likewise.
75741         * modules/gettimeofday (Depends-on): Likewise.
75742         * modules/nanosleep (Depends-on): Likewise.
75743         * modules/settime (Depends-on): Likewise.
75744         * modules/tempname (Depends-on): Likewise.
75745         * modules/utimens (Depends-on): Likewise.
75746         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
75747         (Include): Change back to <sys/time.h>.
75748         (Maintainer): Add self.
75749         * modules/sys_time: New file.
75750         * modules/tempname (Depends-on): Add gettimeofday.
75751         * tests/test-gettimeofday.c: Include <sys/time.h>
75752         rather than gettimeofday.h.
75753
75754 2007-01-17  Bruno Haible  <bruno@clisp.org>
75755
75756         * gnulib-tool (func_get_license): Revert last patch. Instead, let
75757         the license default to GPL.
75758         (func_create_testdir): Don't complain if a module is LGPL and its
75759         tests module depends on GPLed modules.
75760
75761 2007-01-17  Bruno Haible  <bruno@clisp.org>
75762
75763         * lib/gettimeofday.c (gettimeofday): Add code for the case
75764         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
75765         maximum possible value for tv->tv_usec, rather than the minimum one.
75766
75767 2005-10-08  Martin Lambers  <marlam@marlam.de>
75768 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
75769 2007-01-16  Bruno Haible  <bruno@clisp.org>
75770
75771         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
75772         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
75773         gl_FUNC_GETTIMEOFDAY.
75774         (Include): Add gettimeofday.h.
75775         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
75776         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
75777         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
75778         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
75779         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
75780         * lib/gettimeofday.h: New file.
75781         * lib/gettimeofday.c: Include <sys/timeb.h>.
75782         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
75783         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75784         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
75785         fall back on time().
75786
75787         * tests/test-gettimeofday.c: New file.
75788         * modules/gettimeofday-tests: New file.
75789
75790 2007-01-16  Eric Blake  <ebb9@byu.net>
75791
75792         * modules/fnmatch (Depends-on): Depend on wchar.
75793         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
75794         * m4/fnmatch.m4: Likewise.
75795         * modules/mbchar (Makefile.am): Assume <wchar.h>.
75796         * m4/mbchar.m4: Likewise.
75797         * modules/mbswidth (Depends-on): Depend on wchar.
75798         * lib/mbswidth.c: Assume <wchar.h>.
75799         * m4/mbswidth.m4: Likewise.
75800         * modules/quotearg (Depends-on): Depend on wchar.
75801         * lib/quotearg.c: Assume <wchar.h>.
75802         * m4/quotearg.m4: Likewise.
75803         * modules/regex (Depends-on): Depend on wchar.
75804         * lib/regex_internal.h: Assume <wchar.h>.
75805         * m4/regex.m4: Likewise.
75806         * modules/stdint (Depends-on): Depend on wchar.
75807         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
75808         * m4/stdint.m4: Likewise.
75809         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
75810         * modules/strftime (Depends-on): Depend on wchar.
75811         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
75812         * modules/strtol (Depends-on): Depend on wchar.
75813         * lib/strtol.c: Assume <wchar.h>.
75814         * modules/wcwidth (Depends-on): Depend on wchar.
75815         * lib/wcwidth.h: Assume <wchar.h>.
75816         * m4/wcwidth.m4: Likewise.
75817
75818 2007-01-16  Bruno Haible  <bruno@clisp.org>
75819
75820         * modules/csharpexec-script: New, created from...
75821         * modules/csharpexec: ... this.
75822
75823 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
75824
75825         * modules/javaexec-script: New, created from...
75826         * modules/javaexec: ... this.
75827
75828 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75829
75830         * modules/poll (Dependencies): Add sys_select.
75831
75832 2007-01-15  Jim Meyering  <jim@meyering.net>
75833
75834         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
75835         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
75836         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
75837         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
75838
75839 2007-01-15  Bruno Haible  <bruno@clisp.org>
75840
75841         * modules/striconveh: New file.
75842         * lib/striconveh.h: New file.
75843         * lib/striconveh.c: New file.
75844         * MODULES.html.sh (Internationalization functions): Add striconveh.
75845
75846         * modules/striconveh-tests: New file.
75847         * tests/test-striconveh.c: New file.
75848
75849 2007-01-15  Bruno Haible  <bruno@clisp.org>
75850
75851         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
75852         not from GNU libiconv or GNU libc.
75853
75854 2007-01-15  Bruno Haible  <bruno@clisp.org>
75855
75856         * doc/gnulib-intro.texi (Copyright): Explain the different license
75857         terms for module descriptions, autoconf macros, tests, documentation.
75858
75859 2007-01-14  Bruno Haible  <bruno@clisp.org>
75860
75861         * modules/striconv-tests: New file.
75862         * tests/test-striconv.c: New file.
75863
75864 2007-01-14  Bruno Haible  <bruno@clisp.org>
75865
75866         * modules/iconv-tests: New file.
75867         * tests/test-iconv.c: New file.
75868
75869 2007-01-14  Bruno Haible  <bruno@clisp.org>
75870
75871         * gnulib-tool (func_get_license): For test modules, use the license of
75872         the main module.
75873
75874 2007-01-14  Bruno Haible  <bruno@clisp.org>
75875
75876         * modules/iconv (Include): Clarify that <iconv.h> can only be included
75877         if iconv is found to exist.
75878
75879 2007-01-14  Bruno Haible  <bruno@clisp.org>
75880
75881         * modules/c-ctype-tests: New file.
75882         * tests/test-c-ctype.c: New file.
75883
75884 2007-01-14  Bruno Haible  <bruno@clisp.org>
75885
75886         * modules/binary-io-tests: New file.
75887         * tests/test-binary-io.sh: New file.
75888         * tests/test-binary-io.c: New file.
75889
75890 2007-01-14  Bruno Haible  <bruno@clisp.org>
75891
75892         * modules/array-oset-tests: New file.
75893         * tests/test-array_oset.c: New file.
75894
75895 2007-01-14  Bruno Haible  <bruno@clisp.org>
75896
75897         * modules/array-list-tests: New file.
75898         * tests/test-array_list.c: New file.
75899
75900 2007-01-14  Bruno Haible  <bruno@clisp.org>
75901
75902         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
75903         and make.
75904         Reported by Simon Josefsson in
75905         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
75906
75907 2007-01-14  Bruno Haible  <bruno@clisp.org>
75908
75909         * modules/allocsa-tests: New file.
75910         * tests/test-allocsa.c: New file.
75911
75912 2007-01-14  Bruno Haible  <bruno@clisp.org>
75913
75914         * modules/fchdir (Depends-on): Add absolute-header.
75915         * modules/unistd (Depends-on): Likewise.
75916
75917 2006-12-30  Bruno Haible  <bruno@clisp.org>
75918
75919         * modules/fchdir: New file.
75920         * modules/unistd (Files): Add lib/unistd_.h.
75921         (Makefile.am): Generate unistd.h from unistd_.h.
75922         * lib/fchdir.c: New file.
75923         * lib/dirent_.h: New file.
75924         * lib/unistd_.h: New file.
75925         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
75926         * m4/fchdir.m4: New file.
75927         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
75928         (gl_HEADER_UNISTD): Invoke it.
75929         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
75930         function.
75931         * lib/backupfile.c (opendir, closedir): Undefine.
75932         * lib/chown.c (open, close): Undefine.
75933         * lib/clean-temp.c (open, close): Undefine.
75934         * lib/copy-file.c (open, close): Undefine.
75935         * lib/execute.c (open, close): Undefine.
75936         * lib/fsusage.c (open, close): Undefine.
75937         * lib/gc-gnulib.c (open, close): Undefine.
75938         * lib/getcwd.c (opendir, closedir): Undefine.
75939         * lib/glob.c (opendir, closedir): Undefine.
75940         * lib/javacomp.c (open, close): Undefine.
75941         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
75942         * lib/openat-proc.c (open, close): Undefine.
75943         * lib/pagealign_alloc.c (open, close): Undefine.
75944         * lib/pipe.c (open, close): Undefine.
75945         * lib/progreloc.c (open, close): Undefine.
75946         * lib/savedir.c (opendir, closedir): Undefine.
75947         * lib/utime.c (open, close): Undefine.
75948         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
75949
75950 2007-01-10  Bruno Haible  <bruno@clisp.org>
75951
75952         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
75953
75954 2007-01-12  Eric Blake  <ebb9@byu.net>
75955
75956         Provide a robust <wchar.h>.  Further simplifications are now
75957         possible in other modules, but not included here.
75958         * modules/wchar: New module.
75959         * m4/wchar.m4: New file.
75960         * lib/wchar_.h: Likewise.
75961         * modules/mbchar (Depends-on): Depend on wchar, as the first use
75962         of the new module.
75963         * MODULES.html.sh (Extended multibyte and wide character utilities):
75964         New section.
75965
75966 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
75967
75968         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
75969         to a reasonable default for memory allocation.
75970         (xreadlink): Don't allocate a huge buffer, to work around a buggy
75971         file system that reports garbage st_size values for symlinks.
75972         Problem reported by Liyang Hu.
75973
75974 2007-01-11  Simon Josefsson  <simon@josefsson.org>
75975
75976         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
75977         Emacs .#* auto-save files).
75978
75979 2007-01-11  Bruno Haible  <bruno@clisp.org>
75980
75981         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
75982         directory.
75983
75984 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
75985
75986         Use @...@ consistently in lib/wctype_.h.
75987         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
75988         on it being set to 1 or 0.
75989         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
75990         go back to AC_SUBSTing it.
75991         * modules/wctype (Makefile.am): Undo previous change.
75992
75993 2007-01-10  Eric Blake  <ebb9@byu.net>
75994
75995         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
75996         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
75997         * modules/wctype (Makefile.am): Likewise.
75998         Reported by Chris McGuire.
75999
76000 2007-01-10  Jim Meyering  <jim@meyering.net>
76001
76002         fts.c: a small readability/maintainability improvement
76003         * lib/fts.c (fts_read): Make this code slightly more readable and
76004         maintainable by hoisting the "sp->fts_cur = p" assignments to
76005         immediately follow the statements that set P.  Derived from
76006         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
76007
76008 2007-01-10  Eric Blake  <ebb9@byu.net>
76009
76010         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
76011         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
76012         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
76013         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
76014         Reported by Chris McGuire.
76015
76016 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76017
76018         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
76019         in sed script.
76020
76021 2007-01-09  Bruno Haible  <bruno@clisp.org>
76022
76023         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
76024         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
76025         variables.
76026         (func_module): Use them.
76027
76028 2007-01-09  Bruno Haible  <bruno@clisp.org>
76029
76030         * modules/unistr/base: New file.
76031         * lib/unistr.h: New file.
76032
76033         * modules/unistr/u8-to-u16: New file.
76034         * lib/unistr/u8-to-u16.c: New file.
76035
76036         * modules/unistr/u8-to-u32: New file.
76037         * lib/unistr/u8-to-u32.c: New file.
76038
76039         * modules/unistr/u16-to-u8: New file.
76040         * lib/unistr/u16-to-u8.c: New file.
76041
76042         * modules/unistr/u16-to-u32: New file.
76043         * lib/unistr/u16-to-u32.c: New file.
76044
76045         * modules/unistr/u32-to-u8: New file.
76046         * lib/unistr/u32-to-u8.c: New file.
76047
76048         * modules/unistr/u32-to-u16: New file.
76049         * lib/unistr/u32-to-u16.c: New file.
76050
76051         * modules/unistr/u8-check: New file.
76052         * modules/unistr/u16-check: New file.
76053         * modules/unistr/u32-check: New file.
76054         * lib/unistr/u8-check.c: New file.
76055         * lib/unistr/u16-check.c: New file.
76056         * lib/unistr/u32-check.c: New file.
76057
76058         * modules/unistr/u8-chr: New file.
76059         * modules/unistr/u16-chr: New file.
76060         * modules/unistr/u32-chr: New file.
76061         * lib/unistr/u8-chr.c: New file.
76062         * lib/unistr/u16-chr.c: New file.
76063         * lib/unistr/u32-chr.c: New file.
76064
76065         * modules/unistr/u8-cmp: New file.
76066         * modules/unistr/u16-cmp: New file.
76067         * modules/unistr/u32-cmp: New file.
76068         * lib/unistr/u8-cmp.c: New file.
76069         * lib/unistr/u16-cmp.c: New file.
76070         * lib/unistr/u32-cmp.c: New file.
76071
76072         * modules/unistr/u8-cpy: New file.
76073         * modules/unistr/u16-cpy: New file.
76074         * modules/unistr/u32-cpy: New file.
76075         * lib/unistr/u8-cpy.c: New file.
76076         * lib/unistr/u16-cpy.c: New file.
76077         * lib/unistr/u32-cpy.c: New file.
76078         * lib/unistr/u-cpy.h: New file.
76079
76080         * modules/unistr/u8-cpy-alloc: New file.
76081         * modules/unistr/u16-cpy-alloc: New file.
76082         * modules/unistr/u32-cpy-alloc: New file.
76083         * lib/unistr/u8-cpy-alloc.c: New file.
76084         * lib/unistr/u16-cpy-alloc.c: New file.
76085         * lib/unistr/u32-cpy-alloc.c: New file.
76086         * lib/unistr/u-cpy-alloc.h: New file.
76087
76088         * modules/unistr/u8-endswith: New file.
76089         * modules/unistr/u16-endswith: New file.
76090         * modules/unistr/u32-endswith: New file.
76091         * lib/unistr/u8-endswith.c: New file.
76092         * lib/unistr/u16-endswith.c: New file.
76093         * lib/unistr/u32-endswith.c: New file.
76094         * lib/unistr/u-endswith.h: New file.
76095
76096         * modules/unistr/u8-mblen: New file.
76097         * modules/unistr/u16-mblen: New file.
76098         * modules/unistr/u32-mblen: New file.
76099         * lib/unistr/u8-mblen.c: New file.
76100         * lib/unistr/u16-mblen.c: New file.
76101         * lib/unistr/u32-mblen.c: New file.
76102
76103         * modules/unistr/u8-mbtouc: New file.
76104         * modules/unistr/u16-mbtouc: New file.
76105         * modules/unistr/u32-mbtouc: New file.
76106         * lib/unistr/u8-mbtouc.c: New file.
76107         * lib/unistr/u16-mbtouc.c: New file.
76108         * lib/unistr/u32-mbtouc.c: New file.
76109
76110         * modules/unistr/u8-mbtouc-safe: New file.
76111         * modules/unistr/u16-mbtouc-safe: New file.
76112         * modules/unistr/u32-mbtouc-safe: New file.
76113         * lib/unistr/u8-mbtouc-safe.c: New file.
76114         * lib/unistr/u16-mbtouc-safe.c: New file.
76115         * lib/unistr/u32-mbtouc-safe.c: New file.
76116
76117         * modules/unistr/u8-move: New file.
76118         * modules/unistr/u16-move: New file.
76119         * modules/unistr/u32-move: New file.
76120         * lib/unistr/u8-move.c: New file.
76121         * lib/unistr/u16-move.c: New file.
76122         * lib/unistr/u32-move.c: New file.
76123         * lib/unistr/u-move.h: New file.
76124
76125         * modules/unistr/u8-next: New file.
76126         * modules/unistr/u16-next: New file.
76127         * modules/unistr/u32-next: New file.
76128         * lib/unistr/u8-next.c: New file.
76129         * lib/unistr/u16-next.c: New file.
76130         * lib/unistr/u32-next.c: New file.
76131
76132         * modules/unistr/u8-prev: New file.
76133         * modules/unistr/u16-prev: New file.
76134         * modules/unistr/u32-prev: New file.
76135         * lib/unistr/u8-prev.c: New file.
76136         * lib/unistr/u16-prev.c: New file.
76137         * lib/unistr/u32-prev.c: New file.
76138
76139         * modules/unistr/u8-set: New file.
76140         * modules/unistr/u16-set: New file.
76141         * modules/unistr/u32-set: New file.
76142         * lib/unistr/u8-set.c: New file.
76143         * lib/unistr/u16-set.c: New file.
76144         * lib/unistr/u32-set.c: New file.
76145         * lib/unistr/u-set.h: New file.
76146
76147         * modules/unistr/u8-startswith: New file.
76148         * modules/unistr/u16-startswith: New file.
76149         * modules/unistr/u32-startswith: New file.
76150         * lib/unistr/u8-startswith.c: New file.
76151         * lib/unistr/u16-startswith.c: New file.
76152         * lib/unistr/u32-startswith.c: New file.
76153         * lib/unistr/u-startswith.h: New file.
76154
76155         * modules/unistr/u8-stpcpy: New file.
76156         * modules/unistr/u16-stpcpy: New file.
76157         * modules/unistr/u32-stpcpy: New file.
76158         * lib/unistr/u8-stpcpy.c: New file.
76159         * lib/unistr/u16-stpcpy.c: New file.
76160         * lib/unistr/u32-stpcpy.c: New file.
76161         * lib/unistr/u-stpcpy.h: New file.
76162
76163         * modules/unistr/u8-stpncpy: New file.
76164         * modules/unistr/u16-stpncpy: New file.
76165         * modules/unistr/u32-stpncpy: New file.
76166         * lib/unistr/u8-stpncpy.c: New file.
76167         * lib/unistr/u16-stpncpy.c: New file.
76168         * lib/unistr/u32-stpncpy.c: New file.
76169         * lib/unistr/u-stpncpy.h: New file.
76170
76171         * modules/unistr/u8-strcat: New file.
76172         * modules/unistr/u16-strcat: New file.
76173         * modules/unistr/u32-strcat: New file.
76174         * lib/unistr/u8-strcat.c: New file.
76175         * lib/unistr/u16-strcat.c: New file.
76176         * lib/unistr/u32-strcat.c: New file.
76177         * lib/unistr/u-strcat.h: New file.
76178
76179         * modules/unistr/u8-strchr: New file.
76180         * modules/unistr/u16-strchr: New file.
76181         * modules/unistr/u32-strchr: New file.
76182         * lib/unistr/u8-strchr.c: New file.
76183         * lib/unistr/u16-strchr.c: New file.
76184         * lib/unistr/u32-strchr.c: New file.
76185
76186         * modules/unistr/u8-strcmp: New file.
76187         * modules/unistr/u16-strcmp: New file.
76188         * modules/unistr/u32-strcmp: New file.
76189         * lib/unistr/u8-strcmp.c: New file.
76190         * lib/unistr/u16-strcmp.c: New file.
76191         * lib/unistr/u32-strcmp.c: New file.
76192
76193         * modules/unistr/u8-strcpy: New file.
76194         * modules/unistr/u16-strcpy: New file.
76195         * modules/unistr/u32-strcpy: New file.
76196         * lib/unistr/u8-strcpy.c: New file.
76197         * lib/unistr/u16-strcpy.c: New file.
76198         * lib/unistr/u32-strcpy.c: New file.
76199         * lib/unistr/u-strcpy.h: New file.
76200
76201         * modules/unistr/u8-strcspn: New file.
76202         * modules/unistr/u16-strcspn: New file.
76203         * modules/unistr/u32-strcspn: New file.
76204         * lib/unistr/u8-strcspn.c: New file.
76205         * lib/unistr/u16-strcspn.c: New file.
76206         * lib/unistr/u32-strcspn.c: New file.
76207         * lib/unistr/u-strcspn.h: New file.
76208
76209         * modules/unistr/u8-strdup: New file.
76210         * modules/unistr/u16-strdup: New file.
76211         * modules/unistr/u32-strdup: New file.
76212         * lib/unistr/u8-strdup.c: New file.
76213         * lib/unistr/u16-strdup.c: New file.
76214         * lib/unistr/u32-strdup.c: New file.
76215         * lib/unistr/u-strdup.h: New file.
76216
76217         * modules/unistr/u8-strlen: New file.
76218         * modules/unistr/u16-strlen: New file.
76219         * modules/unistr/u32-strlen: New file.
76220         * lib/unistr/u8-strlen.c: New file.
76221         * lib/unistr/u16-strlen.c: New file.
76222         * lib/unistr/u32-strlen.c: New file.
76223         * lib/unistr/u-strlen.h: New file.
76224
76225         * modules/unistr/u8-strmblen: New file.
76226         * modules/unistr/u16-strmblen: New file.
76227         * modules/unistr/u32-strmblen: New file.
76228         * lib/unistr/u8-strmblen.c: New file.
76229         * lib/unistr/u16-strmblen.c: New file.
76230         * lib/unistr/u32-strmblen.c: New file.
76231
76232         * modules/unistr/u8-strmbtouc: New file.
76233         * modules/unistr/u16-strmbtouc: New file.
76234         * modules/unistr/u32-strmbtouc: New file.
76235         * lib/unistr/u8-strmbtouc.c: New file.
76236         * lib/unistr/u16-strmbtouc.c: New file.
76237         * lib/unistr/u32-strmbtouc.c: New file.
76238
76239         * modules/unistr/u8-strncat: New file.
76240         * modules/unistr/u16-strncat: New file.
76241         * modules/unistr/u32-strncat: New file.
76242         * lib/unistr/u8-strncat.c: New file.
76243         * lib/unistr/u16-strncat.c: New file.
76244         * lib/unistr/u32-strncat.c: New file.
76245         * lib/unistr/u-strncat.h: New file.
76246
76247         * modules/unistr/u8-strncmp: New file.
76248         * modules/unistr/u16-strncmp: New file.
76249         * modules/unistr/u32-strncmp: New file.
76250         * lib/unistr/u8-strncmp.c: New file.
76251         * lib/unistr/u16-strncmp.c: New file.
76252         * lib/unistr/u32-strncmp.c: New file.
76253
76254         * modules/unistr/u8-strncpy: New file.
76255         * modules/unistr/u16-strncpy: New file.
76256         * modules/unistr/u32-strncpy: New file.
76257         * lib/unistr/u8-strncpy.c: New file.
76258         * lib/unistr/u16-strncpy.c: New file.
76259         * lib/unistr/u32-strncpy.c: New file.
76260         * lib/unistr/u-strncpy.h: New file.
76261
76262         * modules/unistr/u8-strnlen: New file.
76263         * modules/unistr/u16-strnlen: New file.
76264         * modules/unistr/u32-strnlen: New file.
76265         * lib/unistr/u8-strnlen.c: New file.
76266         * lib/unistr/u16-strnlen.c: New file.
76267         * lib/unistr/u32-strnlen.c: New file.
76268         * lib/unistr/u-strnlen.h: New file.
76269
76270         * modules/unistr/u8-strpbrk: New file.
76271         * modules/unistr/u16-strpbrk: New file.
76272         * modules/unistr/u32-strpbrk: New file.
76273         * lib/unistr/u8-strpbrk.c: New file.
76274         * lib/unistr/u16-strpbrk.c: New file.
76275         * lib/unistr/u32-strpbrk.c: New file.
76276         * lib/unistr/u-strpbrk.h: New file.
76277
76278         * modules/unistr/u8-strrchr: New file.
76279         * modules/unistr/u16-strrchr: New file.
76280         * modules/unistr/u32-strrchr: New file.
76281         * lib/unistr/u8-strrchr.c: New file.
76282         * lib/unistr/u16-strrchr.c: New file.
76283         * lib/unistr/u32-strrchr.c: New file.
76284
76285         * modules/unistr/u8-strspn: New file.
76286         * modules/unistr/u16-strspn: New file.
76287         * modules/unistr/u32-strspn: New file.
76288         * lib/unistr/u8-strspn.c: New file.
76289         * lib/unistr/u16-strspn.c: New file.
76290         * lib/unistr/u32-strspn.c: New file.
76291         * lib/unistr/u-strspn.h: New file.
76292
76293         * modules/unistr/u8-strstr: New file.
76294         * modules/unistr/u16-strstr: New file.
76295         * modules/unistr/u32-strstr: New file.
76296         * lib/unistr/u8-strstr.c: New file.
76297         * lib/unistr/u16-strstr.c: New file.
76298         * lib/unistr/u32-strstr.c: New file.
76299         * lib/unistr/u-strstr.h: New file.
76300
76301         * modules/unistr/u8-strtok: New file.
76302         * modules/unistr/u16-strtok: New file.
76303         * modules/unistr/u32-strtok: New file.
76304         * lib/unistr/u8-strtok.c: New file.
76305         * lib/unistr/u16-strtok.c: New file.
76306         * lib/unistr/u32-strtok.c: New file.
76307         * lib/unistr/u-strtok.h: New file.
76308
76309         * modules/unistr/u8-uctomb: New file.
76310         * modules/unistr/u16-uctomb: New file.
76311         * modules/unistr/u32-uctomb: New file.
76312         * lib/unistr/u8-uctomb.c: New file.
76313         * lib/unistr/u16-uctomb.c: New file.
76314         * lib/unistr/u32-uctomb.c: New file.
76315
76316         * MODULES.html.sh (Unicode string functions): Add the new modules.
76317
76318 2007-01-08  Bruno Haible  <bruno@clisp.org>
76319
76320         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
76321         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
76322         subdirectories.
76323
76324 2007-01-08  Karl Berry  <karl@gnu.org>
76325
76326         * doc/error.texi: mention that main() fns must set program_name
76327         when progname is used.
76328
76329 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
76330
76331         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
76332         WCTYPE_H is empty, for the benefit of builds from non-distclean
76333         directories.  Problem reported by Eric Blake in
76334         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
76335
76336 2007-01-08  Bruno Haible  <bruno@clisp.org>
76337
76338         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
76339         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
76340         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
76341         PROVIDE_CANONICALIZE_FILENAME_MODE.
76342         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
76343
76344 2007-01-08  Bruno Haible  <bruno@clisp.org>
76345
76346         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
76347         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
76348         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
76349         * lib/fts.c: Likewise.
76350         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
76351
76352 2006-12-25  Bruno Haible  <bruno@clisp.org>
76353
76354         * modules/utf8-ucs4-safe: New file.
76355         * lib/utf8-ucs4-safe.h: New file.
76356         * lib/unistr/utf8-ucs4-safe.c: New file.
76357
76358         * modules/utf16-ucs4-safe: New file.
76359         * lib/utf16-ucs4-safe.h: New file.
76360         * lib/unistr/utf16-ucs4-safe.c: New file.
76361
76362         * MODULES.html.sh (Unicode string functions): Add the new modules.
76363
76364 2007-01-08  Bruno Haible  <bruno@clisp.org>
76365
76366         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
76367         (Depends-on): Add unitypes.
76368         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
76369         (u8_mbtouc_aux): Move out to separate file.
76370         (u8_mbtouc): Use ucs4_t, uint8_t types.
76371         * lib/unistr/utf8-ucs4.c: New file.
76372
76373         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
76374         (Depends-on): Add unitypes.
76375         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
76376         (u16_mbtouc_aux): Move out to separate file.
76377         (u16_mbtouc): Use ucs4_t, uint16_t types.
76378         * lib/unistr/utf16-ucs4.c: New file.
76379
76380         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
76381         (Depends-on): Add unitypes.
76382         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
76383         (u8_uctomb_aux): Move out to separate file.
76384         (u8_uctomb): Use ucs4_t, uint8_t types.
76385         * lib/unistr/ucs4-utf8.c: New file.
76386
76387         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
76388         (Depends-on): Add unitypes.
76389         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
76390         (u16_uctomb_aux): Move out to separate file.
76391         (u16_uctomb): Use ucs4_t, uint16_t types.
76392         * lib/unistr/ucs4-utf16.c: New file.
76393
76394 2006-12-25  Bruno Haible  <bruno@clisp.org>
76395
76396         * modules/unitypes: New file.
76397         * lib/unitypes.h: New file.
76398         * MODULES.html.sh (func_all_modules): New section "Unicode string
76399         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
76400         this section. Add unitypes.
76401
76402 2007-01-08  Bruno Haible  <bruno@clisp.org>
76403
76404         Avoid variable names that conflict with those from libtool.
76405         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
76406         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
76407         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
76408         library_names_spec to acl_library_names_spec, hardcode_* to
76409         acl_hardcode_*.
76410         Reported by Ralf Wildenhues.
76411
76412 2007-01-08  Bruno Haible  <bruno@clisp.org>
76413
76414         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
76415         definition.
76416         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
76417         definition.
76418         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
76419         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
76420         definition.
76421         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
76422         definition.
76423         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
76424         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
76425         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
76426         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
76427         definition.
76428         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
76429         definition.
76430         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
76431         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
76432         GC_USE_<algorithm>.
76433         * lib/gc-libgcrypt.c: Likewise.
76434         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
76435         * modules/gc-arctwo (configure.ac): Likewise.
76436         * modules/gc-des (configure.ac): Likewise.
76437         * modules/gc-hmac-md5 (configure.ac): Likewise.
76438         * modules/gc-hmac-sha1 (configure.ac): Likewise.
76439         * modules/gc-md2 (configure.ac): Likewise.
76440         * modules/gc-md4 (configure.ac): Likewise.
76441         * modules/gc-md5 (configure.ac): Likewise.
76442         * modules/gc-random (configure.ac): Likewise.
76443         * modules/gc-rijndael (configure.ac): Likewise.
76444         * modules/gc-sha1 (configure.ac): Likewise.
76445
76446 2007-01-08  Bruno Haible  <bruno@clisp.org>
76447
76448         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
76449         macro definition.
76450         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
76451         definition.
76452         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
76453         definition.
76454         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
76455         * modules/fcntl-safer (configure.ac): Likewise.
76456         * modules/fopen-safer (configure.ac): Likewise.
76457         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
76458         GNULIB_FWRITEERROR macro definition.
76459
76460 2007-01-08  Bruno Haible  <bruno@clisp.org>
76461
76462         * m4/gnulib-common.m4: New file.
76463         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
76464         (func_get_filelist): Add m4/gnulib-common.m4.
76465
76466 2007-01-08  Bruno Haible  <bruno@clisp.org>
76467
76468         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
76469         command.
76470
76471 2007-01-08  Jim Meyering  <jim@meyering.net>
76472
76473         Use a more robust test for a "can't happen" condition.
76474         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
76475         narrowed the st_size value.  Presuming the "can't happen" condition
76476         is true, that narrowing could conceivably convert an invalid st_size
76477         value into a valid one.  Instead, use a change based on Matthew
76478         Woehlke's original patch.
76479
76480         Slight readability improvement: use an assert-like macro
76481         in place of literal "abort ()" uses.
76482         * lib/fts.c (fts_assert): Define.
76483         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
76484         Use this macro instead of a bare 'abort'.
76485
76486 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
76487
76488         Don't worry about using IRIX 5.3's wctype.h broken definitions;
76489         simply work around them.
76490         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
76491         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
76492         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
76493         declaring.
76494         Don't bother to define as macros, since the standard doesn't require it.
76495         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
76496         longer worry about IRIX 5.3.
76497         (HAVE_WCTYPE_CTMP_BUG): Remove.
76498
76499 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
76500
76501         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
76502         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
76503         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
76504         Problems reported by Georg Schwarz for IRIX 5.3.
76505
76506         * gnulib-tool (autoconf_minversion): Take the maximum version number
76507         found, not the minimum.  Problem reported by James Youngman.
76508
76509 2007-01-03  Karl Berry  <karl@gnu.org>
76510
76511         * doc/error.texi: new file, explaining interaction with progname.
76512         * doc/gnulib.texi: include it.  Update copyright.
76513
76514 2007-01-03  Simon Josefsson  <simon@josefsson.org>
76515
76516         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
76517         AC_CANONICAL_HOST, to improve autobuild outputs.
76518
76519 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
76520             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
76521
76522         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
76523         sockets, server sockets, and other file descriptors.  Count errors
76524         to compute the return value.  Reorder the code a bit to be easier
76525         to follow.  Don't set event bits that were not requested (except
76526         POLLERR and POLLHUP).
76527
76528 2007-01-01  Bruno Haible  <bruno@clisp.org>
76529
76530         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
76531
76532 2007-01-03  Jim Meyering  <jim@meyering.net>
76533
76534         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
76535
76536 2007-01-02  Bruno Haible  <bruno@clisp.org>
76537
76538         * modules/settime (Include): Require timespec.h.
76539         * modules/nanosleep (Include): Likewise.
76540
76541 2007-01-01  Bruno Haible  <bruno@clisp.org>
76542
76543         * gnulib-tool (func_emit_copyright_notice): Bump year.
76544         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
76545
76546 2007-01-01  Bruno Haible  <bruno@clisp.org>
76547
76548         Improve support for OpenBSD.
76549         * build-aux/config.rpath (libname_spec): Export.
76550         (library_names_spec): New variable. Export.
76551         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
76552         library_names_spec from the config.rpath output. Locate shared library
76553         through the name pattern in library_names_spec.
76554
76555 2007-01-01  Eric Blake  <ebb9@byu.net>
76556
76557         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
76558
76559 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
76560
76561         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
76562         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
76563         assume the C locale, and avoid an "eval" that could cause trouble.
76564         Problem with SORT reported by Bob Proulx.
76565
76566         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
76567         Define.  Trivial patch from Henning Nielsen Lund, originally
76568         sent to bug-grep@gnu.org today.
76569
76570 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
76571
76572         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
76573         struct stat.  Problem reported by Henning Nielsen Lund.
76574         * lib/acl.c: Include acl.h first, to check interface.  Don't
76575         bother to include sys/types.h and sys/stat.h again.
76576
76577 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
76578
76579         Import the following change from libc; problem reported by
76580         Sven Verdoolaege.
76581
76582         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
76583
76584         [BZ #1373]
76585         * lib/argp.h: Remove __NTH for __argp_usage inline function.
76586
76587 2006-12-28  Jim Meyering  <jim@meyering.net>
76588
76589         * build-aux/announce-gen: Do not assume that the package
76590         builds any of tar.gz, tar.bz2, and .xdelta files.
76591         Suggestion from Simon Josefsson.
76592
76593 2006-12-28  Simon Josefsson  <simon@josefsson.org>
76594
76595         * modules/announce-gen: New file.
76596
76597 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
76598
76599         * lib/mbchar.h: Just include <wctype.h>; the wctype module
76600         handles its gotchas now.
76601         * lib/mbswidth.c: Likewise.
76602         * lib/wcwidth.h: Likewise.
76603         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
76604         and iswcntrl; the wctype module does this stuff now.
76605         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
76606         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
76607         * modules/mbchar (Depends-on): Add wctype.
76608         * modules/mbswidth (Depends-on): Likewise.
76609         * modules/wcwidth (Depends-on): Likewise.
76610
76611 2006-12-27  Eric Blake  <ebb9@byu.net>
76612
76613         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
76614         module uses more than what <wctype.h> is required to provide.
76615
76616 2006-12-26  Eric Blake  <ebb9@byu.net>
76617
76618         * gnulib-tool (sed_extract_prog): Avoid space-tab.
76619
76620 2006-12-26  Eric Blake  <ebb9@byu.net>
76621
76622         * modules/absolute-header: New module.
76623         * modules/fcntl (Depends-on): Depend on it.
76624         * modules/inttypes (Depends-on): Likewise.
76625         * modules/stdint (Depends-on): Likewise.
76626         * modules/sys_stat (Depends-on): Likewise.
76627         * modules/wctype (Depends-on): Likewise.
76628         * MODULES.html.sh (Support for building libraries and
76629         executables): Document it.
76630
76631 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
76632
76633         * gnulib-tool (SED): Remove, undoing previous change.
76634         The problem was that it broke coreutils on Solaris, because
76635         "sed --posix" leaked into a makefile.
76636         (sed): New alias, if 'alias' and GNU sed.
76637
76638 2006-12-24  Jim Meyering  <jim@meyering.net>
76639
76640         Work around an fchownat bug in glibc-2.4:
76641         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
76642         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
76643         in spite of the -P option.
76644         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
76645         New macros.
76646         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
76647         * modules/openat (Files): Add lib/fchownat.c.
76648         * lib/openat.c (fchownat): Don't define here.  Move to...
76649         * lib/fchownat.c: ...this new file.
76650
76651 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
76652
76653         Fix bug reported by Bruno Haible in
76654         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
76655         where quotearg.c didn't compile on Mac OS X 10.2 because it
76656         lacks <wchar.h> and wint_t.
76657         * lib/wctype_.h (__wctype_wint_t): New type.
76658         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
76659         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
76660         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
76661         Arg is now of type __wctype_wint_t, not wint_t.
76662         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
76663         substitute HAVE_WINT_T.
76664         * modules/wctype (Files): Add m4/wint_t.m4.
76665         (wctype.h): Substitute HAVE_WINT_T.
76666
76667 2006-12-23  Bruno Haible  <bruno@clisp.org>
76668
76669         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
76670
76671 2006-12-23  Bruno Haible  <bruno@clisp.org>
76672
76673         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
76674         S_ISLNK.
76675         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
76676         mingw.
76677
76678 2006-12-22  Bruno Haible  <bruno@clisp.org>
76679
76680         * lib/copy-file.c: Include acl.h.
76681         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
76682         Close the file descriptors only after being done with copy_acl.
76683         * modules/copy-file (Depends-on): Add acl.
76684
76685 2006-12-22  Bruno Haible  <bruno@clisp.org>
76686
76687         * gnulib-tool (SED): New variable.
76688         Use $SED instead of sed everywhere.
76689
76690 2006-12-22  Bruno Haible  <bruno@clisp.org>
76691
76692         * modules/no-c++: New file.
76693         * m4/no-c++.m4: New file.
76694         * MODULES.html.sh (Support for building libraries and executables):
76695         Add no-c++.
76696
76697 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
76698
76699         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
76700         Include <limits.h>, and use its INT_MAX to rewrite the
76701         j loop so that it does not overflow 'int'.  Problem reported by
76702         Ralf Wildenhues in
76703         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
76704         Play it safe by shifting left by 1 rather than multiplying by 2,
76705         as GCC is less likely to optimize this away when the value
76706         is signed (when it assumes overflow leads to undefined behavior).
76707         Also, don't assume time_t uses two's complement.
76708
76709 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
76710
76711         * MODULES.html.sh: New module wctype.
76712         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
76713         * lib/fnmatch.c: Don't bother to include <wchar.h> before
76714         <wctype.h>, since the new wctype module should fix this.
76715         * lib/quotearg.c: Include <wctype.h> unconditionally, since
76716         the wctype module should arrange for it.
76717         * lib/regex_internal.h: Likewise.
76718         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
76719         since the wctype module should handle this now.
76720         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
76721         * modules/fnmatch (Depends-on): Add wctype.
76722         * modules/quotearg (Depends-on): Likewise.
76723         * modules/regex (Depends-on): Likewise.
76724
76725 2006-12-19  Bruno Haible  <bruno@clisp.org>
76726
76727         * lib/strdup.h [C++]: Wrap definitions in extern "C".
76728         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
76729
76730 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76731
76732         * modules/savewd (Depends-on): Fix dependency on fcntl.
76733
76734 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
76735
76736         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
76737         conforms to C99, rather than relying on the user's environment
76738         setting of STDINT_H.
76739
76740 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
76741         and Eric Blake  <ebb9@byu.net>
76742
76743         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
76744         This is more consistent with the other defines here.
76745         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
76746         Port to z/OS.  Problem reported by Paul Gilmartin.
76747         Change local vars to use gl_ prefix rather than ac_.
76748         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
76749         with other defines.
76750         * modules/double-slash-root: New module.
76751         * modules/dirname (Files): Remove m4/double-slash-root.m4.
76752         (Depends-on): Add double-slash-root.
76753         * MODULES.html.sh (File system functions): Mention new module.
76754
76755 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
76756
76757         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
76758         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
76759         This is for the benefit of gzip, which doesn't do i18n.
76760
76761 2006-12-12  Jim Meyering  <jim@meyering.net>
76762
76763         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
76764         Reported by Andreas Schwab <schwab@suse.de>.
76765
76766 2006-12-12  Bruno Haible  <bruno@clisp.org>
76767
76768         Merge these changes.
76769         2006-09-05  Bruno Haible  <bruno@clisp.org>
76770         * lib/iconvme.c (iconv_string): No need to save and restore errno when
76771         iconv_alloc succeeded.
76772         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
76773         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
76774         test for " && dest " at the end - dest is always != NULL there. Call
76775         iconv with 4xNULL arguments initially, to reset the state. Call iconv
76776         with 2xNULL arguments, also to flush the state storage. Handle the
76777         IRIX iconv behaviour. Realloc the final result, to throw away unused
76778         memory.
76779
76780 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
76781
76782         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
76783         and fchmodat unconditionally, since glibc 2.4 has them.
76784         Problem reported by Arkadiusz Miskiewicz.
76785
76786 2006-12-10  Bruno Haible  <bruno@clisp.org>
76787
76788         * gnulib-tool (func_import): Show the include files only for those
76789         modules that are copied and specified.
76790         Reported by Karl Berry.
76791
76792 2006-12-08  Jim Meyering  <jim@meyering.net>
76793
76794         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
76795         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
76796
76797         * build-aux/announce-gen: Add two new options, both optional:
76798         --bootstrap-tools=TOOL_LIST
76799               a comma-separated list of tools, e.g.,
76800               autoconf,automake,bison,gnulib
76801         --gnulib-snapshot-date=DATE
76802               if gnulib is in the bootstrap tool list,
76803               then report this as the snapshot date.
76804               If not specified, use the current date/time.
76805               If you specify a date here, be sure it's UTC.
76806
76807 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76808
76809         * tests/test-argp-2.sh: Fix test to match actual output.
76810         (func_compare): Fix sed script to be portable.
76811
76812 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
76813
76814         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
76815         workaround for this case.  It is not autoconfigured now; offhand
76816         it's hard to see how to autoconfigure it.
76817
76818 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
76819
76820         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
76821         a directory that is about to be chowned.  Such a directory's
76822         initial file permissions should permit the owner only and this
76823         should not be changed until after the chown, since the group and
76824         other bits would be incorrect if they granted permission before
76825         the chown.
76826
76827         Fix porting problem for iswctype reported by Georg Schwarz in:
76828         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
76829         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
76830         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
76831         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
76832         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
76833
76834 2006-12-03  Jim Meyering  <jim@meyering.net>
76835
76836         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
76837         p->fts_statp may not yet be defined.
76838         (fts_read): Instead, set it in the caller, once p->fts_statp is
76839         sure to be defined, and corresponds to a top-level directory.
76840         This bug made du -x fail.  Here's the coreutils test case:
76841         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
76842         Reported by Mike Frysinger.
76843
76844 2006-12-01  Jim Meyering  <jim@meyering.net>
76845
76846         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
76847         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
76848         Reported by Simon Josefsson.
76849
76850 2006-11-30  Jim Meyering  <jim@meyering.net>
76851
76852         * m4/warning.m4: Use the all-permissive copyright notice
76853         recommended by RMS (rather than LGPL).
76854         * m4/vararrays.m4: Likewise.
76855         * m4/flexmember.m4: Likewise.
76856
76857 2006-11-29  Bruno Haible  <bruno@clisp.org>
76858
76859         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
76860         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
76861         using +=.
76862         Reported by Simon Josefsson <simon@josefsson.org>.
76863
76864 2006-11-28  James Youngman <jay@gnu.org>
76865
76866         * README: Advise users that they might find the bug-gnulib@gnu.org
76867         and autotools-announce@gnu.org mailing lists useful.
76868
76869 2006-11-28  Bruno Haible  <bruno@clisp.org>
76870
76871         * m4/ptrdiff_max.m4: Remove file.
76872
76873 2006-11-21  Bruno Haible  <bruno@clisp.org>
76874
76875         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
76876         _AC_COMPUTE_INT.
76877         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
76878         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
76879         _AC_COMPUTE_INT.
76880         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
76881         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
76882         _AC_COMPUTE_INT.
76883         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
76884
76885 2006-11-28  Jim Meyering  <jim@meyering.net>
76886
76887         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
76888         warning from "gcc -Wshadow" about shadowing the builtin.
76889
76890 2006-11-27  Bruno Haible  <bruno@clisp.org>
76891
76892         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
76893         _AC_COMPUTE_INT.
76894         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
76895
76896 2006-11-27  Bruno Haible  <bruno@clisp.org>
76897             Paul Eggert  <eggert@cs.ucla.edu>
76898
76899         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
76900
76901 2006-11-26  Bruno Haible  <bruno@clisp.org>
76902
76903         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
76904         noinst_LTLIBRARIES.
76905
76906 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
76907             Bruno Haible  <bruno@clisp.org>
76908
76909         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
76910         if compiling with "gcc -ansi".
76911
76912 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
76913
76914         Fix some incompatibilities with gcc -ansi -pedantic.
76915         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
76916         if compiling pedantically with GCC, unless it's C99 or later.
76917         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
76918         it mishandles gcc -ansi -pedantic as well.
76919         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
76920         if gcc -pedantic.
76921         * lib/regexec.c (check_node_accept_bytes): Don't use auto
76922         initializers for struct if -pedantic, unless it's C99 or later.
76923
76924 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
76925
76926         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
76927         Don't close an fd more than once. Identical atimes indicate
76928         success, not failure.
76929
76930 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
76931
76932         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
76933
76934 2006-11-23  Jim Meyering  <jim@meyering.net>
76935
76936         * build-aux/announce-gen: New file.  From coreutils.
76937
76938 2006-11-22  Jim Meyering  <jim@meyering.net>
76939
76940         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
76941         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
76942         (fts_read): Use a temporary to narrow the overused st_size member
76943         before using it in a switch statement.  Reported by Matthew Woehlke.
76944
76945         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
76946         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
76947
76948 2006-11-20  Bruno Haible  <bruno@clisp.org>
76949
76950         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
76951         changequote instead of pairs of brackets.
76952         Reported by Andreas Schwab <schwab@suse.de>.
76953
76954 2006-11-21  Jim Meyering  <jim@meyering.net>
76955
76956         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
76957         so as to remain compatible with older compilers.
76958         Patch from Michael Deutschmann.
76959
76960 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
76961
76962         * MODULES.html.sh (File system functions): Add openat.
76963
76964         * lib/openat.h (rpl_fstatat): New macro, if
76965         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
76966         (fstatat): Define to rpl_fstatat under the same conditions,
76967         unless COMPILING_FSTATAT.
76968         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
76969         seems to have the bug.
76970         * lib/fstatat.c: New file.
76971         * modules/openat (Files): Add it.
76972
76973 2006-11-20  Bruno Haible  <bruno@clisp.org>
76974
76975         * Makefile: New file.
76976
76977 2006-11-20  Jim Meyering  <jim@meyering.net>
76978
76979         The beginnings of syntax-related checks for gnulib.
76980         * lib/Makefile: New file.
76981         * lib/t-idcache: New script.  Ensure that the two halves of
76982         idcache.c stay in sync.
76983
76984         * lib/idcache.c: Adjust comments in user- and group- portions to
76985         be more accurate, and to be consistent with one another.
76986
76987 2006-11-20  Jim Meyering  <jim@meyering.net>
76988
76989         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
76990         continue using the flexible array member (thus, this module performs
76991         half as many malloc calls), with the addition that...
76992         (getgroup, getuser): Consistently record a non-match via an empty
76993         "name" string, and map an empty string match to a NULL return value.
76994         * modules/idcache (Depends-on): Re-add flexmember.
76995
76996         * lib/idcache.c (getuser): Remove all uses of the register keyword.
76997         (getuidbyname, getgroup, getgidbyname): Likewise.
76998
76999         Use cleaner syntax: NULL rather than 0.
77000         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
77001
77002 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
77003
77004         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
77005         It mishandled the case where the group was missing.
77006         Problem reported by Greg Schafer.
77007         * modules/idcache: Likewise.
77008
77009 2006-11-18  Jim Meyering  <jim@meyering.net>
77010
77011         * check-module (%exempt_header): Add exception for some
77012         conditionally-included headers.
77013
77014         * modules/i-ring (Depends-on): Add verify.
77015         (License): Change to LGPL.
77016
77017 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
77018
77019         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
77020         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
77021         and inttostr.h.  Use snprintf rather than uinttostr, so that
77022         LGPLed code doesn't depend on GPLed.
77023
77024 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
77025
77026         * modules/inline (License): Change from GPL to LGPL.
77027
77028 2006-11-17  Jim Meyering  <jim@meyering.net>
77029
77030         * modules/d-type (License): Switch to LGPL.
77031
77032 2006-11-15  Bruno Haible  <bruno@clisp.org>
77033
77034         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
77035
77036 2006-11-15  Eric Blake  <ebb9@byu.net>
77037
77038         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
77039         the module dependency.
77040
77041 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77042             Bruno Haible  <bruno@clisp.org>
77043
77044         * gnulib-tool (func_create_testdir): Add license consistency check.
77045
77046 2006-11-15  Eric Blake  <ebb9@byu.net>
77047
77048         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
77049         random "(cached)" in configure output.
77050
77051 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77052
77053         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
77054         test for conforming inttypes.h is both announced and cached.
77055
77056         * MODULES.html.sh (seen_modules, seen_files): New variables.
77057         (func_module): Rewrite to use a few less gnulib-tool and sed
77058         invocations.  Avoid a couple of quadratic algorithms for ...
77059         (missed_modules, missed_files): ... these, with ...
77060         (func_append, func_tmpdir): ... these new functions, from
77061         gnulib-tool.  Analogously, install traps for cleanup.
77062
77063         * tests/test-gc.c (main): Remove unused variables.
77064         * tests/test-read-file.c: Include stdlib.h, for 'free'.
77065
77066 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
77067
77068         * modules/inttostr (License): Change to LGPL.
77069
77070 2006-11-14  Eric Blake  <ebb9@byu.net>
77071
77072         * modules/tempname (License): Change to LGPL.
77073
77074 2006-11-14  Eric Blake  <ebb9@byu.net>
77075
77076         * doc/functions.texi (Function Portability): *printf functions on
77077         Cygwin now understand all POSIX size specifiers.
77078
77079 2006-11-14  Bruno Haible  <bruno@clisp.org>
77080
77081         * modules/c-ctype (License): Change to LGPL.
77082
77083 2006-11-12  Bruno Haible  <bruno@clisp.org>
77084
77085         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
77086         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
77087         for GNOME libraries, for which the include files are installed in
77088         subdirectories of $prefix/include.
77089
77090 2006-11-12  Bruno Haible  <bruno@clisp.org>
77091
77092         * m4/lib-link.m4: Require at least autoconf-2.54.
77093         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
77094         name to underscores for the --with option.
77095
77096 2006-11-13  Bruno Haible  <bruno@clisp.org>
77097
77098         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
77099         the tests directory.
77100         Reported by Ralf Wildenhues.
77101
77102 2006-11-13  Bruno Haible  <bruno@clisp.org>
77103
77104         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
77105         (func_emit_initmacro_end): Undo the override here.
77106         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
77107         Works around the famous automake error in coreutils.
77108
77109 2006-11-13  Eric Blake  <ebb9@byu.net>
77110
77111         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
77112         element, not its node.
77113
77114 2006-11-12  Bruno Haible  <bruno@clisp.org>
77115
77116         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
77117         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
77118
77119 2006-11-12  Bruno Haible  <bruno@clisp.org>
77120
77121         * gnulib-tool: New option --local-symlink.
77122         (func_usage): Document it.
77123         (lsymbolic): New variable.
77124         (func_import, func_create_testdir): If --symlink was not specified,
77125         test whether --local-symlink was specified and the file comes from
77126         the local_gnulib_dir.
77127
77128 2006-11-12  Bruno Haible  <bruno@clisp.org>
77129
77130         * gnulib-tool (func_ln): New function.
77131         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
77132
77133 2006-11-12  Bruno Haible  <bruno@clisp.org>
77134
77135         Finish support for source files in subdirectories.
77136         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
77137         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
77138         AUTOMAKE_OPTIONS.
77139         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
77140
77141 2006-11-12  Bruno Haible  <bruno@clisp.org>
77142
77143         * gnulib-tool (func_get_automake_snippet): Synthesize also an
77144         EXTRA_lib_SOURCES augmentation.
77145         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
77146
77147 2006-11-12  Jim Meyering  <jim@meyering.net>
77148
77149         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
77150         file descriptors.  This also averts a failure on systems with
77151         native openat support when a traversed directory lacks "x" access.
77152         * lib/fts_.h: Include "i-ring.h"
77153         (struct FTS) [fts_fd_ring]: New member.
77154         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
77155         (FCHDIR): Add parentheses.
77156         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
77157         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
77158         When descending, rather than simply closing the previous
77159         fts_cwd_fd value, push that file descriptor onto the ring.
77160         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
77161         (fts_open): Initialize the new fd_ring member.
77162         (fts_close): Clear the ring.
77163         (fts_safe_changedir): When possible, use our new fd_ring to skip
77164         the diropen and fstat and dev/ino comparison that would normally
77165         accompany a virtual `chdir ("..")'.
77166
77167         * modules/fts (Depends-on): Add i-ring.
77168         * modules/i-ring: New module.
77169         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
77170         * m4/i-ring.m4: New file.
77171
77172 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77173
77174         * gnulib-tool (func_create_testdir): Fix replacement of
77175         `build-aux' in configure.ac.  Run autotools in gltests
77176         subdirectory.
77177         (func_create_testdir, func_create_megatestdir, test): There is
77178         no need for '--force' in most autotool invocations in a new
77179         tree.  Actually fail the whole test if any of the tools, or the
77180         configure or make stages fail.
77181
77182         Sync from Automake.
77183         * build-aux/gnupload: Revert last change.  Add pointer to upload
77184         instructions of the GNU Maintenance Instructions.
77185         Suggestion by Karl Berry.
77186
77187 2006-11-10  Jim Meyering  <jim@meyering.net>
77188
77189         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
77190
77191 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
77192
77193         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
77194         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
77195         (bind_textdomain_codeset) [! ENABLE_NLS]:
77196         Evaluate all the arguments.  That way, callers get compatible behavior
77197         if the arguments have side effects.  Also, it avoids some GCC
77198         diagnostics in some cases; Joel E. Denny reported problems when Bison
77199         was configured with --enable-gcc-warnigs.
77200
77201 2006-11-10  Jim Meyering  <jim@meyering.net>
77202
77203         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
77204         relevant options in CFLAGS (like -O, -fno-inline) are taken into
77205         account.
77206
77207 2006-11-10  Jim Meyering  <jim@meyering.net>
77208
77209         * modules/inline: New file/module.
77210         * modules/xalloc (Files): Remove m4/inline.m4.
77211         (Depends-on): Add inline, instead.
77212         * modules/oset: Likewise.
77213         * modules/list: Likewise.
77214
77215 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
77216
77217         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
77218         Problem reported by Matthew Woehlke.
77219
77220 2006-11-09  Bruno Haible  <bruno@clisp.org>
77221
77222         * lib/tempname.c (gen_tempname): Remove variant that invokes
77223         __gen_tempname.
77224         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
77225         __gen_tempname.
77226
77227 2006-11-08  Bruno Haible  <bruno@clisp.org>
77228
77229         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
77230         to 'yes' instead of 'cross-compiling'.
77231
77232 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
77233
77234         * lib/quotearg.h (quotearg_free): New decl.
77235         * lib/quotearg.c (quotearg_free): New function.
77236         (slot0, nslots, slotvec0, slotvec):
77237         Now file-scope so that quotearg_free can get at them.
77238
77239 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77240
77241         Sync from Automake.
77242         * build-aux/gnupload: Add missing 'gnu' to example URL.
77243         Report by Karl Berry.
77244
77245 2006-11-08  Bruno Haible  <bruno@clisp.org>
77246
77247         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
77248         Suggested by Paul Eggert.
77249
77250 2006-11-08  Jim Meyering  <jim@meyering.net>
77251
77252         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
77253         It's already included if !_LIBC.
77254         (fts_safe_changedir): Add a comment.
77255
77256 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
77257
77258         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
77259         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
77260         Matthew Woehlke.
77261
77262         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
77263         definitions up, to avoid colliding with change below.
77264         (static_inline) [HAVE_INLINE]: New macro.
77265         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
77266         Provide extern decls when !HAVE_INLINE.  Do not define unless
77267         static_inline is defined, either by us or by xmalloc.c.  Use
77268         static_inline rather than static inline.
77269         (XCALLOC): Optimize sizeof(T) = 1 case.
77270         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
77271
77272 2006-11-07  Bruno Haible  <bruno@clisp.org>
77273
77274         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
77275         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
77276         AC_C_INLINE.
77277         * modules/xalloc (Files): Add m4/inline.m4.
77278
77279 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77280
77281         * README: Fix typo.
77282         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
77283         (Miscellanous Notes): ...from this.
77284
77285 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
77286
77287         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
77288         Mention that offsetof should be used instead of sizeof.
77289         From Bruno Haible.
77290
77291 2006-11-07  Bruno Haible  <bruno@clisp.org>
77292
77293         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
77294
77295 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
77296
77297         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
77298         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
77299         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
77300         (gl_tree_add_before, gl_tree_add_after):
77301         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
77302         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
77303         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
77304         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
77305         (gl_linked_add_after, gl_linked_add_at): Likewise.
77306         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
77307         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
77308         (gl_tree_add_before, gl_tree_add_after): Likewise.
77309         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
77310         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
77311         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
77312
77313 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77314
77315         * lib/gl_oset.h: Use C comment style, not C++ comment style.
77316
77317 2006-11-06  Bruno Haible  <bruno@clisp.org>
77318
77319         * m4/inline.m4: New file.
77320         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
77321         * modules/list (Files): Add m4/inline.m4.
77322         * modules/oset (Files): Likewise.
77323
77324 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
77325
77326         * lib/idcache.c: Include <stddef.h>, for offsetof.
77327         (struct userid.name): Change from char * to a flexible array member.
77328         All uses changed.
77329         * modules/idcache (Depends-on): Add flexmember.
77330
77331         * MODULES.html.sh (Core language properties): New module flexmember.
77332         * modules/flexmember, m4/flexmember.m4: New files.
77333
77334         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
77335         inline functions that are identical with the old xnmalloc_inline,
77336         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
77337         that we can avoid some unnecessary integer multiplications and
77338         divisions in the common case where the element size is known at
77339         compile time.
77340         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
77341         needed.
77342         (xnboundedmalloc): Remove.
77343         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
77344         arguments, for consistency with rest of this header.
77345         (xcharalloc): Rewrite using XNMALLOC.
77346         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
77347         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
77348         versions have been moved to lib/xalloc.h and renamed to be the
77349         non-*_inline versions.
77350         (xmalloc, xrealloc): Implement without reference to the xnmalloc
77351         and xnrealloc functions, since those functions are now inline and
77352         now call us.
77353         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
77354         renaming described above.
77355         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
77356         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
77357         captures the dependency in AC_C_INLINE.
77358
77359         New module canonicalize-lgpl, proposed by Charles Wilson in
77360         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
77361         with a few small changes afterwards.
77362         * MODULES.html.sh (File system functions): New module
77363         canonicalize-lgpl.
77364         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
77365         and canonicalize_file_name.
77366         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
77367         * modules/canonicalize-lgpl: New files.
77368
77369 2006-11-05  Bruno Haible  <bruno@clisp.org>
77370
77371         * gnulib-tool (func_import, func_create_testdir): Create directories
77372         also for files in subdirectories of lib/.
77373
77374 2006-11-05  Bruno Haible  <bruno@clisp.org>
77375
77376         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
77377         ANSI C compliant.
77378
77379 2006-11-03  Bruno Haible  <bruno@clisp.org>
77380
77381         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
77382         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
77383         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
77384         (xnboundedmalloc): New inline function.
77385         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
77386         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
77387         xmalloc.
77388         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
77389         xmalloc.
77390         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
77391         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
77392         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
77393         xmalloc.
77394         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
77395         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
77396         xmalloc.
77397         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
77398         gl_tree_add_after): Use XMALLOC instead of xmalloc.
77399         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
77400         xmalloc.
77401         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
77402         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
77403         gl_tree_add_after): Use XMALLOC instead of xmalloc.
77404         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
77405         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
77406         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
77407         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
77408
77409 2006-11-03  Bruno Haible  <bruno@clisp.org>
77410
77411         * lib/c-ctype.h [C++]: Define functions without name mangling.
77412         * lib/fwriteerror.h [C++]: Likewise.
77413         * lib/gcd.h [C++]: Likewise.
77414         * lib/linebreak.h [C++]: Likewise.
77415
77416 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
77417
77418         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
77419         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
77420         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
77421         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
77422         Check for functions and headers just once.
77423         Check for declaration of canonicalize_file_name.
77424         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
77425
77426 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
77427
77428         * gnulib-tool (func_import): Fix typo in actioncmd.
77429
77430 2006-11-02  Bruno Haible  <bruno@clisp.org>
77431
77432         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
77433         newline sequence in the Makefile.am snippet as a space, like "make"
77434         does.
77435         Reported by Roger Persson <perrog@gmail.com>.
77436
77437 2006-11-01  Bruno Haible  <bruno@clisp.org>
77438
77439         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
77440         already declared in <string.h>.
77441         * lib/strcase.h (strncasecmp): Don't declare it if yes.
77442
77443 2006-11-01  Bruno Haible  <bruno@clisp.org>
77444
77445         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
77446         * lib/strcase.h: Include <string.h>.
77447         (strcasecmp): Define to rpl_strcasecmp here.
77448
77449 2006-11-01  Bruno Haible  <bruno@clisp.org>
77450
77451         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
77452
77453 2006-11-01  Eric Blake  <ebb9@byu.net>
77454
77455         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
77456
77457         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
77458
77459 2006-10-29  Bruno Haible  <bruno@clisp.org>
77460
77461         Make it compile in C++ mode.
77462         * lib/full-write.c (full_rw): Add a cast.
77463
77464 2006-11-01  Bruno Haible  <bruno@clisp.org>
77465
77466         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
77467         be POSIX compliant.
77468         Reported by Roger Persson <perrog@gmail.com>.
77469
77470 2006-11-01  Eric Blake  <ebb9@byu.net>
77471
77472         * lib/getopt_.h: Fix comments.
77473
77474 2006-10-31  Eric Blake  <ebb9@byu.net>
77475
77476         * modules/tmpdir (Depends-on): Add sys_stat.
77477         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
77478         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
77479         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
77480         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
77481         tempname.
77482
77483 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
77484
77485         Avoid some C++ diagnostics reported by Bruno Haible.
77486         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
77487         xmalloc.
77488         (quotearg_alloc): Use xcharalloc rather than xmalloc.
77489         (struct slotvec): Move to top level.
77490         (quotearg_n_options): Rewrite to avoid xmalloc.
77491         * lib/xalloc.h (xcharalloc): New function.
77492         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
77493         [defined __cplusplus]: Add function template that provides result
77494         type propagation.  This part of the change is from Bruno Haible.
77495
77496 2006-10-29  Bruno Haible  <bruno@clisp.org>
77497
77498         Make it compile in C++ mode.
77499         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
77500         * lib/strnlen1.c (strnlen1): Cast memchr result.
77501         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
77502         * lib/clean-temp.c (string_equals, string_hash): Add casts.
77503         (create_temp_dir): Rename local variable 'template'.
77504         (compile_csharp_using_sscli): Add cast.
77505         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
77506         * lib/findprog.c (find_in_path): Likewise.
77507         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
77508         * lib/wait-process.c (register_slave_subprocess): Likewise.
77509
77510 2006-10-22  Bruno Haible  <bruno@clisp.org>
77511
77512         * modules/tsearch: New file.
77513         * lib/tsearch.h: New file.
77514         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
77515         * m4/tsearch.m4: New file.
77516         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
77517
77518 2006-10-29  Eric Blake  <ebb9@byu.net>
77519
77520         * lib/arcfour.c: Assume config.h.
77521         * lib/arctwo.c: Likewise.
77522         * lib/base64.c: Likewise.
77523         * lib/check-version.c: Likewise.
77524         * lib/crc.c: Likewise.
77525         * lib/des.c: Likewise.
77526         * lib/gc-gnulib.c: Likewise.
77527         * lib/gc-libgcrypt.c: Likewise.
77528         * lib/gc-pbkdf2-sha1.c: Likewise.
77529         * lib/getaddrinfo.c: Likewise.
77530         * lib/getdelim.c: Likewise.
77531         * lib/getline.c: Likewise.
77532         * lib/hmac-md5.c: Likewise.
77533         * lib/hmac-sha1.c: Likewise.
77534         * lib/iconvme.c: Likewise.
77535         * lib/md2.c: Likewise.
77536         * lib/md4.c: Likewise.
77537         * lib/memxor.c: Likewise.
77538         * lib/read-file.c: Likewise.
77539         * lib/readline.c: Likewise.
77540         * lib/rijndael-alg-fst.c: Likewise.
77541         * lib/rijndael-api-fst.c: Likewise.
77542         * lib/xgetdomainname.c: Likewise.
77543
77544 2006-10-28  Eric Blake  <ebb9@byu.net>
77545
77546         * lib/xstrndup.c: Assume config.h.
77547
77548 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
77549
77550         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
77551         stat-macros.h is now for our own macros, whereas stat_h is for
77552         macros in the <sys/stat.h> name space.
77553         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
77554         (STAT_MACROS_H): Remove.
77555         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
77556         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
77557         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
77558         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
77559         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
77560         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
77561         Move these macros to ...
77562         * lib/stat_.h: here.  Don't include stat-macros.h.
77563         * lib/canonicalize.c: Don't include stat-macros.h.
77564         * lib/chown.c: Likewise.
77565         * lib/euidaccess.c: Likewise.
77566         * lib/file-type.c: Likewise.
77567         * lib/filemode.c: Likewise.
77568         * lib/glob.c: Likewise.
77569         * lib/isapipe.c: Likewise.
77570         * lib/lchown.c: Likewise.
77571         * lib/lstat.c: Likewise.
77572         * lib/mkdir-p.c: Likewise.
77573         * lib/rmdir.c: Likewise.
77574         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
77575         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
77576         unless mkdir isn't declared, to speed up 'configure'.
77577         Always create sys/stat.h, since it's unlikely any real sys/stat.h
77578         would define all the S_* symbols.
77579         * modules/canonicalize (Depends-on):
77580         Depend on sys_stat, not stat-macros.
77581         * modules/chown: Likewise.
77582         * modules/euidaccess: Likewise.
77583         * modules/filemode: Likewise.
77584         * modules/file-type: Likewise.
77585         * modules/glob: Likewise.
77586         * modules/isapipe: Likewise.
77587         * modules/lchown: Likewise.
77588         * modules/lstat: Likewise.
77589         * modules/mkancesdirs: Likewise.
77590         * modules/rmdir: Likewise.
77591         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
77592         * modules/modechange: Likewise.
77593         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
77594         (configure.ac): Remove gl_STAT_MACROS.
77595         * modules/sys_stat (Depends-on): Remove stat-macros.
77596
77597 2006-10-27  Bruno Haible  <bruno@clisp.org>
77598
77599         * m4/signed.m4: Remove file.
77600         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
77601         invocation.
77602         * modules/vasnprintf (Files): Remove m4/signed.m4.
77603
77604 2006-10-27  Bruno Haible  <bruno@clisp.org>
77605
77606         Update to GNU gettext 0.16.
77607         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
77608         m4/inttypes-h.m4, m4/signed.m4.
77609         * m4/gettext.m4: Update to GNU gettext 0.16.
77610         * m4/intl.m4: New file, from GNU gettext.
77611         * m4/intldir.m4: New file, from GNU gettext.
77612         * config/srclist.txt: Update
77613
77614 2006-10-27  Eric Blake  <ebb9@byu.net>
77615
77616         * MODULES.html.sh: Document tempname.
77617         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
77618         dependencies.
77619         (Files): Move lib/tempname.c...
77620         * modules/tempname: ...to this new module.
77621         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
77622         (gl_PREREQ_TEMPNAME): Move...
77623         * m4/tempname.m4: ...to this new file.
77624         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
77625         * modules/sys_stat (Depends-on): Add stat-macros.
77626         * lib/stat_.h (includes): Pick up stat macros.
77627         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
77628         if stat macros are broken.
77629         * lib/tempname.c (includes): No need to include "stat-macros.h".
77630         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
77631         (direxists, __path_search) [!_LIBC]: Don't compile these in
77632         gnulib; the tmpdir module covers that.
77633         * lib/tempname.h: New file.
77634
77635 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
77636
77637         * COPYING: Explain how gnulib-tool converts licence headers.
77638         Almost all wording by Eric Blake.
77639
77640 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
77641
77642         * lib/mbchar.h (is_basic_table): Make read-only.
77643         * lib/mbchar.c (is_basic_table): Likewise.
77644         Reported by John Darrington.
77645
77646 2006-10-25  Bruno Haible  <bruno@clisp.org>
77647
77648         * lib/progname.h (set_program_name): Undefine before defining.
77649
77650 2006-10-25  Bruno Haible  <bruno@clisp.org>
77651
77652         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
77653         false for non-gcc C++ compilers.
77654         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
77655
77656 2006-10-24  Bruno Haible  <bruno@clisp.org>
77657
77658         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
77659         iconv implementations like Irix iconv.
77660
77661 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
77662
77663         * modules/vararrays: New file.
77664         * m4/vararrays.m4: New file, taken from diffutils.
77665         * MODULES.html.sh: New module vararrays.
77666
77667 2006-10-24  Karl Berry  <karl@gnu.org>
77668
77669         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
77670         Don't call GNU Unix.
77671
77672 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77673
77674         * users.txt: Add Libtool.
77675
77676         Sync from Libtool:
77677
77678         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
77679
77680         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
77681         to gnulib's policy of including config.h unconditionally.
77682
77683 2006-10-24  Bruno Haible  <bruno@clisp.org>
77684
77685         * modules/wcwidth (Files): Add m4/wint_t.m4.
77686         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
77687         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
77688
77689 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
77690
77691         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
77692         to pacify GCC with some -W flags enabled.  Problem reported by
77693         Bruno Haible.
77694
77695 2006-10-24  Jim Meyering  <jim@meyering.net>
77696
77697         * MODULES.html.sh: Remove uinttostr.  It's not a module.
77698         Reported by Karl Berry.
77699
77700 2006-10-23  Bruno Haible  <bruno@clisp.org>
77701
77702         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
77703
77704 2006-10-24  Bruno Haible  <bruno@clisp.org>
77705
77706         * lib/gl_list.h: Use C comment style, not C++ comment style.
77707
77708 2006-10-23  Eric Blake  <ebb9@byu.net>
77709
77710         * lib/getaddrinfo.c (includes): Add missing include.
77711
77712 2006-10-23  Bruno Haible  <bruno@clisp.org>
77713             Paul Eggert  <eggert@cs.ucla.edu>
77714
77715         Ability to rename obstack_free.
77716         * lib/obstack.h (__obstack_free): New macro. Declare instead of
77717         obstack_free.
77718         (obstack_free): Invoke the __obstack_free macro.
77719         * lib/obstack.c (obstack_free): Use __obstack_free macro.
77720
77721 2006-10-23  Bruno Haible  <bruno@clisp.org>
77722             Paul Eggert  <eggert@cs.ucla.edu>
77723
77724         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
77725         __argc, __argv from the declaration. (They are defined as macros on
77726         mingw.)
77727
77728 2006-10-22  Bruno Haible  <bruno@clisp.org>
77729
77730         * doc/gnulib-intro.texi: New file.
77731         * doc/gnulib.texi: Include it.
77732
77733 2006-10-21  Bruno Haible  <bruno@clisp.org>
77734
77735         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
77736         "Introduction", "Miscellanous Notes", "Particular Modules".
77737
77738 2006-10-21  Bruno Haible  <bruno@clisp.org>
77739
77740         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
77741         Change mostlyclean-local rule to avoid sh syntax error from bash
77742         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
77743
77744 2006-10-23  Jim Meyering  <jim@meyering.net>
77745
77746         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
77747         in place of snprintf.
77748
77749         * modules/inttostr (Files): Add lib/uinttostr.c.
77750         * lib/uinttostr.c (inttostr): New file/function.
77751         * lib/inttostr.h (uinttostr): Declare.
77752         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
77753         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
77754         Add uinttostr.
77755         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
77756
77757 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
77758
77759         * lib/canonicalize.c (ELOOP): Define if not already defined.
77760         Problem reported by Bruno Haible in
77761         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
77762
77763 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
77764
77765         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
77766         Problem reported by Perry Smith and Ville Laurikari.
77767
77768         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
77769         uses.
77770
77771 2006-10-19  Bruno Haible  <bruno@clisp.org>
77772
77773         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
77774         for mingw.
77775
77776 2006-10-19  Bruno Haible  <bruno@clisp.org>
77777
77778         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
77779         Needed for mingw.
77780
77781 2006-10-19  Bruno Haible  <bruno@clisp.org>
77782
77783         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
77784
77785 2006-10-19  Bruno Haible  <bruno@clisp.org>
77786
77787         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
77788         it.
77789
77790 2006-10-19  Bruno Haible  <bruno@clisp.org>
77791
77792         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
77793         invocation.
77794
77795 2006-10-19  Bruno Haible  <bruno@clisp.org>
77796
77797         * gnulib-tool (func_create_testdir): Don't include ftruncate and
77798         mountlist by default.
77799
77800 2006-10-16  Bruno Haible  <bruno@clisp.org>
77801
77802         * lib/c-strstr.c: Include c-strstr.h.
77803
77804 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
77805
77806         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
77807         in a slash.
77808
77809 2006-10-18  Bruno Haible  <bruno@clisp.org>
77810
77811         * lib/lock.h [C++]: Wrap definitions in extern "C".
77812
77813 2006-10-18  Bruno Haible  <bruno@clisp.org>
77814
77815         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
77816         gl_LIBOBJS list.
77817
77818 2006-10-18  Bruno Haible  <bruno@clisp.org>
77819
77820         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
77821
77822 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
77823
77824         * lib/xstrtol.h: Include gettext.h.
77825         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
77826         Problem reported by Eric Blake.
77827         * modules/xstrtol (Depends-on): Add gettext-h.
77828
77829 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
77830
77831         * lib/strftime.c (advance): New macro.
77832         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
77833         incomplete type, so you can't add 0 to it.  Problem and patch
77834         reported by Eelco Dolstra for dietlibc.
77835
77836 2006-10-18  Jim Meyering  <jim@meyering.net>
77837
77838         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
77839         type for a local, and rename it: s/up/user_proc/.
77840
77841 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
77842
77843         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
77844         READ_UTMP_USER_PROCESS.
77845         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
77846
77847 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
77848
77849         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
77850         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
77851
77852 2006-10-17  Eric Blake  <ebb9@byu.net>
77853
77854         * lib/sigprocmask.c (sigprocmask): Fix typo.
77855
77856         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
77857
77858         * modules/clean-temp (Makefile.am): Don't add to make output...
77859         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
77860         config.h.
77861
77862 2006-10-17  Bruno Haible  <bruno@clisp.org>
77863
77864         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
77865         differently if DEFAULT_TEXT_DOMAIN is set.
77866
77867 2006-10-16  Bruno Haible  <bruno@clisp.org>
77868
77869         * lib/clean-temp.c: Include fwriteerror.h.
77870
77871 2006-10-16  Bruno Haible  <bruno@clisp.org>
77872
77873         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
77874
77875 2006-10-16  Bruno Haible  <bruno@clisp.org>
77876
77877         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
77878         * lib/sigprocmask.h: Include <sys/types.h>.
77879         (sigset_t): Use the system's definition if present.
77880
77881 2006-10-17  Eric Blake  <ebb9@byu.net>
77882
77883         * lib/xvasprintf.c (includes): Assume config.h.
77884         * lib/xasprintf.c (includes): Likewise.
77885
77886 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
77887
77888         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
77889         at least as wide as intmax_t.
77890
77891 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
77892
77893         (Imported from Automake.)
77894         * build-aux/gnupload: Update to version 1.1 of directive file.
77895
77896 2006-10-16  Eric Blake  <ebb9@byu.net>
77897
77898         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
77899         match Automake 1.10a.
77900
77901 2006-10-14  Bruno Haible  <bruno@clisp.org>
77902
77903         * modules/sigprocmask: New file.
77904         * lib/sigprocmask.h: New file.
77905         * lib/sigprocmask.c: New file.
77906         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
77907         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
77908         request sigprocmask.o.
77909         (gl_PREREQ_SIGPROCMASK): New macro.
77910         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
77911         (Depends-on): Add sigprocmask.
77912         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
77913         gt_SIGNALBLOCKING. Test for 'raise' only once.
77914         * lib/fatal-signal.c: Include sigprocmask.h.
77915         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
77916         unblock_fatal_signals): Define always.
77917         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77918         sigprocmask.
77919
77920 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
77921
77922         Sync from Automake.
77923         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
77924         which incorrectly sets the mode of an existing destination
77925         directory.  In some cases the unpatched install-sh could do the
77926         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
77927         system.  We hope this is rare in practice, but it's clearly worth
77928         fixing.  Problem reported by Alex Unleashed in
77929         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
77930         Also, don't bother to check for -m bugs unless we're using -m;
77931         suggested by Stepan Kasal.
77932
77933 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77934
77935         Sync from Automake.
77936         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
77937         `-c' flag, so they appear at the same position as in %FASTDEP%
77938         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
77939         which ignores unknown options only after the first non-option.
77940         Bug report against M4 by Nelson H. F. Beebe.
77941
77942 2006-10-13  Jim Meyering  <jim@meyering.net>
77943
77944         Fix a bug in yesterday's change.
77945         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
77946         p->fts_statp->st_dev would be used uninitialized.
77947         Ensures that we always call fts_stat on the very first entry.
77948         Miklos Szeredi reported that find -xdev stopped working.
77949
77950 2006-10-12  Bruno Haible  <bruno@clisp.org>
77951
77952         * gnulib-tool (func_get_automake_snippet): Append an automatically
77953         computed EXTRA_DIST augmentation.
77954         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
77955         * modules/alloca-opt (Makefile.am): Likewise.
77956         * modules/allocsa (Makefile.am): Likewise.
77957         * modules/arcfour (Makefile.am): Likewise.
77958         * modules/arctwo (Makefile.am): Likewise.
77959         * modules/argmatch (Makefile.am): Likewise.
77960         * modules/argz (Makefile.am): Likewise.
77961         * modules/atexit (Makefile.am): Likewise.
77962         * modules/backupfile (Makefile.am): Likewise.
77963         * modules/byteswap (Makefile.am): Likewise.
77964         * modules/c-strtod (Makefile.am): Likewise.
77965         * modules/c-strtold (Makefile.am): Likewise.
77966         * modules/calloc (Makefile.am): Likewise.
77967         * modules/canon-host (Makefile.am): Likewise.
77968         * modules/canonicalize (Makefile.am): Likewise.
77969         * modules/chdir-long (Makefile.am): Likewise.
77970         * modules/chdir-safer (Makefile.am): Likewise.
77971         * modules/check-version (Makefile.am): Likewise.
77972         * modules/chown (Makefile.am): Likewise.
77973         * modules/cloexec (Makefile.am): Likewise.
77974         * modules/close-stream (Makefile.am): Likewise.
77975         * modules/closeout (Makefile.am): Likewise.
77976         * modules/crc (Makefile.am): Likewise.
77977         * modules/csharpexec (Makefile.am): Likewise.
77978         * modules/cycle-check (Makefile.am): Likewise.
77979         * modules/des (Makefile.am): Likewise.
77980         * modules/dev-ino (Makefile.am): Likewise.
77981         * modules/dirfd (Makefile.am): Likewise.
77982         * modules/dirname (Makefile.am): Likewise.
77983         * modules/dup2 (Makefile.am): Likewise.
77984         * modules/eealloc (Makefile.am): Likewise.
77985         * modules/error (Makefile.am): Likewise.
77986         * modules/euidaccess (Makefile.am): Likewise.
77987         * modules/exclude (Makefile.am): Likewise.
77988         * modules/exitfail (Makefile.am): Likewise.
77989         * modules/fcntl-safer (Makefile.am): Likewise.
77990         * modules/fcntl (Makefile.am): Likewise.
77991         * modules/file-type (Makefile.am): Likewise.
77992         * modules/fileblocks (Makefile.am): Likewise.
77993         * modules/filemode (Makefile.am): Likewise.
77994         * modules/filenamecat (Makefile.am): Likewise.
77995         * modules/fnmatch (Makefile.am): Likewise.
77996         * modules/fopen-safer (Makefile.am): Likewise.
77997         * modules/fpending (Makefile.am): Likewise.
77998         * modules/fprintftime (Makefile.am): Likewise.
77999         * modules/free (Makefile.am): Likewise.
78000         * modules/fsusage (Makefile.am): Likewise.
78001         * modules/ftruncate (Makefile.am): Likewise.
78002         * modules/fts (Makefile.am): Likewise.
78003         * modules/gc-arcfour (Makefile.am): Likewise.
78004         * modules/gc-des (Makefile.am): Likewise.
78005         * modules/gc-hmac-md5 (Makefile.am): Likewise.
78006         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
78007         * modules/gc-md4 (Makefile.am): Likewise.
78008         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
78009         * modules/gc-sha1 (Makefile.am): Likewise.
78010         * modules/gc (Makefile.am): Likewise.
78011         * modules/getaddrinfo (Makefile.am): Likewise.
78012         * modules/getcwd (Makefile.am): Likewise.
78013         * modules/getdelim (Makefile.am): Likewise.
78014         * modules/getdomainname (Makefile.am): Likewise.
78015         * modules/getgroups (Makefile.am): Likewise.
78016         * modules/gethostname (Makefile.am): Likewise.
78017         * modules/gethrxtime (Makefile.am): Likewise.
78018         * modules/getline (Makefile.am): Likewise.
78019         * modules/getloadavg (Makefile.am): Likewise.
78020         * modules/getlogin_r (Makefile.am): Likewise.
78021         * modules/getndelim2 (Makefile.am): Likewise.
78022         * modules/getopt (Makefile.am): Likewise.
78023         * modules/getpagesize (Makefile.am): Likewise.
78024         * modules/getpass-gnu (Makefile.am): Likewise.
78025         * modules/getpass (Makefile.am): Likewise.
78026         * modules/getsubopt (Makefile.am): Likewise.
78027         * modules/gettime (Makefile.am): Likewise.
78028         * modules/gettimeofday (Makefile.am): Likewise.
78029         * modules/getugroups (Makefile.am): Likewise.
78030         * modules/getusershell (Makefile.am): Likewise.
78031         * modules/glob (Makefile.am): Likewise.
78032         * modules/group-member (Makefile.am): Likewise.
78033         * modules/hard-locale (Makefile.am): Likewise.
78034         * modules/hash (Makefile.am): Likewise.
78035         * modules/hmac-md5 (Makefile.am): Likewise.
78036         * modules/hmac-sha1 (Makefile.am): Likewise.
78037         * modules/human (Makefile.am): Likewise.
78038         * modules/idcache (Makefile.am): Likewise.
78039         * modules/imaxabs (Makefile.am): Likewise.
78040         * modules/imaxdiv (Makefile.am): Likewise.
78041         * modules/inet_ntop (Makefile.am): Likewise.
78042         * modules/inet_pton (Makefile.am): Likewise.
78043         * modules/intprops (Makefile.am): Likewise.
78044         * modules/inttostr (Makefile.am): Likewise.
78045         * modules/inttypes (Makefile.am): Likewise.
78046         * modules/isapipe (Makefile.am): Likewise.
78047         * modules/javaversion (Makefile.am): Likewise.
78048         * modules/lchmod (Makefile.am): Likewise.
78049         * modules/lchown (Makefile.am): Likewise.
78050         * modules/localcharset (Makefile.am): Likewise.
78051         * modules/long-options (Makefile.am): Likewise.
78052         * modules/lstat (Makefile.am): Likewise.
78053         * modules/malloc (Makefile.am): Likewise.
78054         * modules/mathl (Makefile.am): Likewise.
78055         * modules/mbchar (Makefile.am): Likewise.
78056         * modules/md2 (Makefile.am): Likewise.
78057         * modules/md4 (Makefile.am): Likewise.
78058         * modules/md5 (Makefile.am): Likewise.
78059         * modules/memcasecmp (Makefile.am): Likewise.
78060         * modules/memchr (Makefile.am): Likewise.
78061         * modules/memcmp (Makefile.am): Likewise.
78062         * modules/memcoll (Makefile.am): Likewise.
78063         * modules/memcpy (Makefile.am): Likewise.
78064         * modules/memmem (Makefile.am): Likewise.
78065         * modules/memmove (Makefile.am): Likewise.
78066         * modules/mempcpy (Makefile.am): Likewise.
78067         * modules/memrchr (Makefile.am): Likewise.
78068         * modules/memset (Makefile.am): Likewise.
78069         * modules/memxor (Makefile.am): Likewise.
78070         * modules/mkancesdirs (Makefile.am): Likewise.
78071         * modules/mkdir-p (Makefile.am): Likewise.
78072         * modules/mkdir (Makefile.am): Likewise.
78073         * modules/mkdtemp (Makefile.am): Likewise.
78074         * modules/mkstemp (Makefile.am): Likewise.
78075         * modules/mktime (Makefile.am): Likewise.
78076         * modules/modechange (Makefile.am): Likewise.
78077         * modules/mountlist (Makefile.am): Likewise.
78078         * modules/nanosleep (Makefile.am): Likewise.
78079         * modules/obstack (Makefile.am): Likewise.
78080         * modules/openat (Makefile.am): Likewise.
78081         * modules/pagealign_alloc (Makefile.am): Likewise.
78082         * modules/pathmax (Makefile.am): Likewise.
78083         * modules/physmem (Makefile.am): Likewise.
78084         * modules/poll (Makefile.am): Likewise.
78085         * modules/posixtm (Makefile.am): Likewise.
78086         * modules/posixver (Makefile.am): Likewise.
78087         * modules/putenv (Makefile.am): Likewise.
78088         * modules/quote (Makefile.am): Likewise.
78089         * modules/quotearg (Makefile.am): Likewise.
78090         * modules/raise (Makefile.am): Likewise.
78091         * modules/read-file (Makefile.am): Likewise.
78092         * modules/readline (Makefile.am): Likewise.
78093         * modules/readlink (Makefile.am): Likewise.
78094         * modules/readtokens (Makefile.am): Likewise.
78095         * modules/readutmp (Makefile.am): Likewise.
78096         * modules/realloc (Makefile.am): Likewise.
78097         * modules/regex (Makefile.am): Likewise.
78098         * modules/rename-dest-slash (Makefile.am): Likewise.
78099         * modules/rename (Makefile.am): Likewise.
78100         * modules/rijndael (Makefile.am): Likewise.
78101         * modules/rmdir (Makefile.am): Likewise.
78102         * modules/rpmatch (Makefile.am): Likewise.
78103         * modules/safe-read (Makefile.am): Likewise.
78104         * modules/safe-write (Makefile.am): Likewise.
78105         * modules/same-inode (Makefile.am): Likewise.
78106         * modules/same (Makefile.am): Likewise.
78107         * modules/save-cwd (Makefile.am): Likewise.
78108         * modules/savedir (Makefile.am): Likewise.
78109         * modules/setenv (Makefile.am): Likewise.
78110         * modules/settime (Makefile.am): Likewise.
78111         * modules/sha1 (Makefile.am): Likewise.
78112         * modules/sig2str (Makefile.am): Likewise.
78113         * modules/snprintf (Makefile.am): Likewise.
78114         * modules/stat-macros (Makefile.am): Likewise.
78115         * modules/stat-time (Makefile.am): Likewise.
78116         * modules/stdbool (Makefile.am): Likewise.
78117         * modules/stdint (Makefile.am): Likewise.
78118         * modules/stdlib-safer (Makefile.am): Likewise.
78119         * modules/stpcpy (Makefile.am): Likewise.
78120         * modules/stpncpy (Makefile.am): Likewise.
78121         * modules/strcase (Makefile.am): Likewise.
78122         * modules/strcasestr (Makefile.am): Likewise.
78123         * modules/strchrnul (Makefile.am): Likewise.
78124         * modules/strcspn (Makefile.am): Likewise.
78125         * modules/strdup (Makefile.am): Likewise.
78126         * modules/strerror (Makefile.am): Likewise.
78127         * modules/strftime (Makefile.am): Likewise.
78128         * modules/strndup (Makefile.am): Likewise.
78129         * modules/strnlen (Makefile.am): Likewise.
78130         * modules/strpbrk (Makefile.am): Likewise.
78131         * modules/strsep (Makefile.am): Likewise.
78132         * modules/strstr (Makefile.am): Likewise.
78133         * modules/strtod (Makefile.am): Likewise.
78134         * modules/strtoimax (Makefile.am): Likewise.
78135         * modules/strtok_r (Makefile.am): Likewise.
78136         * modules/strtol (Makefile.am): Likewise.
78137         * modules/strtoll (Makefile.am): Likewise.
78138         * modules/strtoul (Makefile.am): Likewise.
78139         * modules/strtoull (Makefile.am): Likewise.
78140         * modules/strtoumax (Makefile.am): Likewise.
78141         * modules/strverscmp (Makefile.am): Likewise.
78142         * modules/sys_socket (Makefile.am): Likewise.
78143         * modules/sys_stat (Makefile.am): Likewise.
78144         * modules/sysexits (Makefile.am): Likewise.
78145         * modules/time_r (Makefile.am): Likewise.
78146         * modules/timegm (Makefile.am): Likewise.
78147         * modules/timespec (Makefile.am): Likewise.
78148         * modules/tmpfile-safer (Makefile.am): Likewise.
78149         * modules/trim (Makefile.am): Likewise.
78150         * modules/unistd-safer (Makefile.am): Likewise.
78151         * modules/unlinkdir (Makefile.am): Likewise.
78152         * modules/unlocked-io (Makefile.am): Likewise.
78153         * modules/userspec (Makefile.am): Likewise.
78154         * modules/utime (Makefile.am): Likewise.
78155         * modules/utimecmp (Makefile.am): Likewise.
78156         * modules/utimens (Makefile.am): Likewise.
78157         * modules/vasnprintf (Makefile.am): Likewise.
78158         * modules/vasprintf (Makefile.am): Likewise.
78159         * modules/vsnprintf (Makefile.am): Likewise.
78160         * modules/xalloc (Makefile.am): Likewise.
78161         * modules/xgetcwd (Makefile.am): Likewise.
78162         * modules/xnanosleep (Makefile.am): Likewise.
78163         * modules/xreadlink (Makefile.am): Likewise.
78164         * modules/xstrtod (Makefile.am): Likewise.
78165         * modules/xstrtol (Makefile.am): Likewise.
78166         * modules/xstrtold (Makefile.am): Likewise.
78167         * modules/yesno (Makefile.am): Likewise.
78168         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
78169
78170 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
78171
78172         * modules/error (Makefile.am): Distribute files through
78173         EXTRA_DIST, not lib_SOURCES.
78174
78175 2006-10-12  Eric Blake  <ebb9@byu.net>
78176
78177         * modules/error (Makefile.am): Distribute files in /lib.
78178         * modules/obstack (Makefile.am): Likewise.
78179
78180 2006-10-12  Bruno Haible  <bruno@clisp.org>
78181
78182         * modules/acl (Makefile.am): Distribute all files in lib/ through
78183         EXTRA_DIST.
78184         * modules/arcfour (Makefile.am): Likewise.
78185         * modules/arctwo (Makefile.am): Likewise.
78186         * modules/argmatch (Makefile.am): Likewise.
78187         * modules/argz (Makefile.am): Likewise.
78188         * modules/atexit (Makefile.am): Likewise.
78189         * modules/backupfile (Makefile.am): Likewise.
78190         * modules/c-strtod (Makefile.am): Likewise.
78191         * modules/c-strtold (Makefile.am): Likewise.
78192         * modules/calloc (Makefile.am): Likewise.
78193         * modules/canon-host (Makefile.am): Likewise.
78194         * modules/canonicalize (Makefile.am): Likewise.
78195         * modules/chdir-long (Makefile.am): Likewise.
78196         * modules/chdir-safer (Makefile.am): Likewise.
78197         * modules/check-version (Makefile.am): Likewise.
78198         * modules/chown (Makefile.am): Likewise.
78199         * modules/cloexec (Makefile.am): Likewise.
78200         * modules/close-stream (Makefile.am): Likewise.
78201         * modules/closeout (Makefile.am): Likewise.
78202         * modules/crc (Makefile.am): Likewise.
78203         * modules/cycle-check (Makefile.am): Likewise.
78204         * modules/des (Makefile.am): Likewise.
78205         * modules/dirfd (Makefile.am): Likewise.
78206         * modules/dirname (Makefile.am): Likewise.
78207         * modules/dup2 (Makefile.am): Likewise.
78208         * modules/euidaccess (Makefile.am): Likewise.
78209         * modules/exclude (Makefile.am): Likewise.
78210         * modules/exitfail (Makefile.am): Likewise.
78211         * modules/fcntl-safer (Makefile.am): Likewise.
78212         * modules/file-type (Makefile.am): Likewise.
78213         * modules/fileblocks (Makefile.am): Likewise.
78214         * modules/filemode (Makefile.am): Likewise.
78215         * modules/filenamecat (Makefile.am): Likewise.
78216         * modules/fnmatch (Makefile.am): Likewise.
78217         * modules/fopen-safer (Makefile.am): Likewise.
78218         * modules/fpending (Makefile.am): Likewise.
78219         * modules/fprintftime (Makefile.am): Likewise.
78220         * modules/free (Makefile.am): Likewise.
78221         * modules/fsusage (Makefile.am): Likewise.
78222         * modules/ftruncate (Makefile.am): Likewise.
78223         * modules/fts (Makefile.am): Likewise.
78224         * modules/gc (Makefile.am): Likewise.
78225         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
78226         * modules/getaddrinfo (Makefile.am): Likewise.
78227         * modules/getcwd (Makefile.am): Likewise.
78228         * modules/getdelim (Makefile.am): Likewise.
78229         * modules/getdomainname (Makefile.am): Likewise.
78230         * modules/getgroups (Makefile.am): Likewise.
78231         * modules/gethostname (Makefile.am): Likewise.
78232         * modules/gethrxtime (Makefile.am): Likewise.
78233         * modules/getline (Makefile.am): Likewise.
78234         * modules/getloadavg (Makefile.am): Likewise.
78235         * modules/getlogin_r (Makefile.am): Likewise.
78236         * modules/getopt (Makefile.am): Likewise.
78237         * modules/getpass (Makefile.am): Likewise.
78238         * modules/getpass-gnu (Makefile.am): Likewise.
78239         * modules/getsubopt (Makefile.am): Likewise.
78240         * modules/gettime (Makefile.am): Likewise.
78241         * modules/gettimeofday (Makefile.am): Likewise.
78242         * modules/getugroups (Makefile.am): Likewise.
78243         * modules/getusershell (Makefile.am): Likewise.
78244         * modules/glob (Makefile.am): Likewise.
78245         * modules/group-member (Makefile.am): Likewise.
78246         * modules/hard-locale (Makefile.am): Likewise.
78247         * modules/hash (Makefile.am): Likewise.
78248         * modules/hmac-md5 (Makefile.am): Likewise.
78249         * modules/hmac-sha1 (Makefile.am): Likewise.
78250         * modules/human (Makefile.am): Likewise.
78251         * modules/idcache (Makefile.am): Likewise.
78252         * modules/imaxabs (Makefile.am): Likewise.
78253         * modules/imaxdiv (Makefile.am): Likewise.
78254         * modules/inet_ntop (Makefile.am): Likewise.
78255         * modules/inet_pton (Makefile.am): Likewise.
78256         * modules/inttostr (Makefile.am): Likewise.
78257         * modules/isapipe (Makefile.am): Likewise.
78258         * modules/lchown (Makefile.am): Likewise.
78259         * modules/long-options (Makefile.am): Likewise.
78260         * modules/lstat (Makefile.am): Likewise.
78261         * modules/malloc (Makefile.am): Likewise.
78262         * modules/mathl (Makefile.am): Likewise.
78263         * modules/mbchar (Makefile.am): Likewise.
78264         * modules/md2 (Makefile.am): Likewise.
78265         * modules/md4 (Makefile.am): Likewise.
78266         * modules/md5 (Makefile.am): Likewise.
78267         * modules/memcasecmp (Makefile.am): Likewise.
78268         * modules/memchr (Makefile.am): Likewise.
78269         * modules/memcmp (Makefile.am): Likewise.
78270         * modules/memcoll (Makefile.am): Likewise.
78271         * modules/memcpy (Makefile.am): Likewise.
78272         * modules/memmem (Makefile.am): Likewise.
78273         * modules/memmove (Makefile.am): Likewise.
78274         * modules/mempcpy (Makefile.am): Likewise.
78275         * modules/memrchr (Makefile.am): Likewise.
78276         * modules/memset (Makefile.am): Likewise.
78277         * modules/memxor (Makefile.am): Likewise.
78278         * modules/mkancesdirs (Makefile.am): Likewise.
78279         * modules/mkdir (Makefile.am): Likewise.
78280         * modules/mkdir-p (Makefile.am): Likewise.
78281         * modules/mkdtemp (Makefile.am): Likewise.
78282         * modules/mkstemp (Makefile.am): Likewise.
78283         * modules/mktime (Makefile.am): Likewise.
78284         * modules/modechange (Makefile.am): Likewise.
78285         * modules/mountlist (Makefile.am): Likewise.
78286         * modules/nanosleep (Makefile.am): Likewise.
78287         * modules/openat (Makefile.am): Likewise.
78288         * modules/pagealign_alloc (Makefile.am): Likewise.
78289         * modules/physmem (Makefile.am): Likewise.
78290         * modules/poll (Makefile.am): Likewise.
78291         * modules/posixtm (Makefile.am): Likewise.
78292         * modules/posixver (Makefile.am): Likewise.
78293         * modules/putenv (Makefile.am): Likewise.
78294         * modules/quote (Makefile.am): Likewise.
78295         * modules/quotearg (Makefile.am): Likewise.
78296         * modules/raise (Makefile.am): Likewise.
78297         * modules/read-file (Makefile.am): Likewise.
78298         * modules/readline (Makefile.am): Likewise.
78299         * modules/readlink (Makefile.am): Likewise.
78300         * modules/readtokens (Makefile.am): Likewise.
78301         * modules/readutmp (Makefile.am): Likewise.
78302         * modules/realloc (Makefile.am): Likewise.
78303         * modules/regex (Makefile.am): Likewise.
78304         * modules/rename (Makefile.am): Likewise.
78305         * modules/rename-dest-slash (Makefile.am): Likewise.
78306         * modules/rijndael (Makefile.am): Likewise.
78307         * modules/rmdir (Makefile.am): Likewise.
78308         * modules/rpmatch (Makefile.am): Likewise.
78309         * modules/safe-read (Makefile.am): Likewise.
78310         * modules/safe-write (Makefile.am): Likewise.
78311         * modules/same (Makefile.am): Likewise.
78312         * modules/save-cwd (Makefile.am): Likewise.
78313         * modules/savedir (Makefile.am): Likewise.
78314         * modules/setenv (Makefile.am): Likewise.
78315         * modules/settime (Makefile.am): Likewise.
78316         * modules/sha1 (Makefile.am): Likewise.
78317         * modules/sig2str (Makefile.am): Likewise.
78318         * modules/snprintf (Makefile.am): Likewise.
78319         * modules/stdlib-safer (Makefile.am): Likewise.
78320         * modules/stpcpy (Makefile.am): Likewise.
78321         * modules/stpncpy (Makefile.am): Likewise.
78322         * modules/strcase (Makefile.am): Likewise.
78323         * modules/strcasestr (Makefile.am): Likewise.
78324         * modules/strchrnul (Makefile.am): Likewise.
78325         * modules/strcspn (Makefile.am): Likewise.
78326         * modules/strdup (Makefile.am): Likewise.
78327         * modules/strerror (Makefile.am): Likewise.
78328         * modules/strftime (Makefile.am): Likewise.
78329         * modules/strndup (Makefile.am): Likewise.
78330         * modules/strnlen (Makefile.am): Likewise.
78331         * modules/strpbrk (Makefile.am): Likewise.
78332         * modules/strsep (Makefile.am): Likewise.
78333         * modules/strstr (Makefile.am): Likewise.
78334         * modules/strtod (Makefile.am): Likewise.
78335         * modules/strtoimax (Makefile.am): Likewise.
78336         * modules/strtok_r (Makefile.am): Likewise.
78337         * modules/strtol (Makefile.am): Likewise.
78338         * modules/strtoll (Makefile.am): Likewise.
78339         * modules/strtoul (Makefile.am): Likewise.
78340         * modules/strtoull (Makefile.am): Likewise.
78341         * modules/strtoumax (Makefile.am): Likewise.
78342         * modules/strverscmp (Makefile.am): Likewise.
78343         * modules/time_r (Makefile.am): Likewise.
78344         * modules/timegm (Makefile.am): Likewise.
78345         * modules/tmpfile-safer (Makefile.am): Likewise.
78346         * modules/unistd-safer (Makefile.am): Likewise.
78347         * modules/unlinkdir (Makefile.am): Likewise.
78348         * modules/userspec (Makefile.am): Likewise.
78349         * modules/utime (Makefile.am): Likewise.
78350         * modules/utimecmp (Makefile.am): Likewise.
78351         * modules/utimens (Makefile.am): Likewise.
78352         * modules/vasnprintf (Makefile.am): Likewise.
78353         * modules/vasprintf (Makefile.am): Likewise.
78354         * modules/vsnprintf (Makefile.am): Likewise.
78355         * modules/xalloc (Makefile.am): Likewise.
78356         * modules/xgetcwd (Makefile.am): Likewise.
78357         * modules/xnanosleep (Makefile.am): Likewise.
78358         * modules/xreadlink (Makefile.am): Likewise.
78359         * modules/xstrtod (Makefile.am): Likewise.
78360         * modules/xstrtol (Makefile.am): Likewise.
78361         * modules/xstrtold (Makefile.am): Likewise.
78362         * modules/yesno (Makefile.am): Likewise.
78363
78364 2006-10-12  Jim Meyering  <jim@meyering.net>
78365
78366         * m4/getloadavg.m4: Revert the change below.
78367
78368         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
78369         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
78370         fail with a symlink, which is what coreutils' ./bootstrap now
78371         creates by default.
78372
78373 2006-10-12  Bruno Haible  <bruno@clisp.org>
78374
78375         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
78376         mingw.
78377         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
78378         MSVC and mingw explicitly.
78379
78380 2006-10-11  Simon Josefsson  <jas@extundo.com>
78381             Bruno Haible  <bruno@clisp.org>
78382
78383         Add support for multiple gnulib-tool invocations in the scope of a
78384         single configure.ac file.
78385         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
78386         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
78387         with the same contents as the _LIBADD variable.
78388         (func_emit_initmacro_start, func_emit_initmacro_end,
78389         func_emit_initmacro_done): New functions.
78390         (func_import, func_create_testdir): Invoke them. Allow the identifiers
78391         gl_LIBOBJS and gl_LTLIBOBJS.
78392
78393 2006-10-11  Bruno Haible  <bruno@clisp.org>
78394
78395         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
78396         (func_create_testdir): Don't create po/Makefile.am, don't invoke
78397         autoreconf. Instead, invoke autopoint explicitly but move back the
78398         *.m4 files from gnulib.
78399
78400 2006-10-11  Bruno Haible  <bruno@clisp.org>
78401
78402         * gnulib-tool (func_usage): Make module names after --create-testdir
78403         optional.
78404         (func_create_testdir): If no module was specified, use nearly all
78405         modules.
78406
78407 2006-10-12  Jim Meyering  <jim@meyering.net>
78408
78409         Big performance improvement for fts-based tools that use FTS_NOSTAT.
78410         Avoid spurious inode-mismatch problems on non-POSIX file systems.
78411         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
78412         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
78413         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
78414         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
78415         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
78416         (fts_set_stat_required): New function.
78417         (fts_open): Defer the calls to fts_stat, if possible or requested.
78418         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
78419         into fts_stat itself.
78420         (fts_read): Perform any required (deferred) fts_stat call.
78421         (fts_build): Likewise, for the directory we're about to open and read.
78422         In the readdir loop, carefully decide whether each entry will require
78423         an eventual call to fts_stat, using dirent.d_type info if available.
78424         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
78425         a command line argument into this function.  Update all callers.
78426         Map a return value of FTS_DOT to FTS_D for a command line argument.
78427         * modules/fts (Depends-on): Add d-type.  Alphabetize.
78428         Thanks to Miklos Szeredi for his tenacity and for the initial
78429         bug report about "find" failing on a FUSE-based file system.
78430
78431         * lib/fts.c (fts_open): Use consistent indentation.
78432
78433 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
78434
78435         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
78436         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
78437         reported by Jim Meyering.  All uses of cache variables renamed
78438         to match Autoconf's.
78439         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
78440         the other one.
78441
78442         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
78443         Fix misspelling in diagnostic.
78444
78445 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
78446
78447         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
78448         defined.  Problem reported by Matthew Woehlke.
78449
78450         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
78451         Add support for Tandem NonStop R series.
78452         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
78453         Use new macro.
78454
78455         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
78456         (has_trailing_slash): Omit size arg; all callers changed.
78457         Omit 'inline', since it doesn't help performance and we'd
78458         need to configure it.
78459         Don't count //, ///, etc. as having a trailing slash.
78460         As a side effect, this removes a C99ism reported by Matthew Woehlke.
78461         (rpl_rename_dest_slash): On failure, use rename's errno rather
78462         than (in some cases) an incorrect or junk errno.
78463         Simplify code by removing need to compute length; this does
78464         cause it to make two passes instead of one over the file name,
78465         but it's worth it.
78466
78467         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
78468         change, since Autoconf's version may no longer be appropriate now
78469         that we are using CVS Autoconf's version.  Add support for Tandem.
78470
78471 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
78472             Bruno Haible  <bruno@clisp.org>
78473
78474         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
78475         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
78476         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
78477         gl_AC_TYPE_LONG_LONG.
78478
78479         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
78480         instead of HAVE_LONG_LONG.
78481         * lib/printf-args.c (printf_fetchargs): Likewise.
78482         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
78483         * lib/vasnprintf.c (VASNPRINTF): Likewise.
78484         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
78485         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
78486         gl_AC_TYPE_LONG_LONG.
78487
78488 2006-10-11  Bruno Haible  <bruno@clisp.org>
78489
78490         * m4/longlong.m4: Add comments.
78491         * m4/ulonglong.m4: Likewise.
78492
78493 2006-10-10  Bruno Haible  <bruno@clisp.org>
78494
78495         Make it possible to #define stpcpy, strdup to aliases.
78496         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
78497         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
78498
78499 2006-10-10  Bruno Haible  <bruno@clisp.org>
78500
78501         Make it possible to #define gcd to an alias.
78502         * lib/gcd.c: Include config.h.
78503
78504 2006-10-10  Bruno Haible  <bruno@clisp.org>
78505
78506         Make it possible to #define c_isascii to an alias.
78507         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
78508         defined. Undefine the macros before defining them, to avoid gcc
78509         warnings.
78510         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
78511         define NO_C_CTYPE_MACROS early.
78512
78513 2006-10-10  Bruno Haible  <bruno@clisp.org>
78514
78515         Make it possible to #define set_program_name to an alias.
78516         * lib/progname.c: Don't undefine set_program_name; instead, undefine
78517         ENABLE_RELOCATABLE early.
78518
78519 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
78520
78521         Port to Tandem NSK OSS, which has 64-bit signed int but at most
78522         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
78523         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
78524         More generally, don't assume that 64-bit signed int is available
78525         if unsigned int is, and vice versa.
78526         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
78527         unsigned symbols, not on their signed counterparts.
78528         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
78529         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
78530         (UINT64_C, UINTMAX_C):
78531         Likewise.
78532         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
78533         unsigned counterparts.
78534         (Have_long_long, Unsigned): New macros.
78535         (Int): Renamed from INT.
78536         (strtoimax): Use the new macros.
78537         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
78538         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
78539         * modules/inttypes (inttypes.h): Substitute
78540         HAVE_UNSIGNED_LONG_LONG_INT.
78541         * modules/stdint (stdint.h): Likewise.
78542         (Files): Add m4/ulonglong.m4.
78543
78544 2006-10-10  Bruno Haible  <bruno@clisp.org>
78545
78546         Fix a gcc -Wshadow warning.
78547         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
78548         to 'bucket'.
78549         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
78550         gl_linked_indexof_from_to): Likewise.
78551         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
78552         Likewise.
78553         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
78554         Likewise.
78555         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
78556         Reported by Eric Blake.
78557
78558 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
78559
78560         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
78561         for NetBSD.  Problem reported by Bruno Haible.
78562
78563 2006-10-09  Jim Meyering  <jim@meyering.net>
78564
78565         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
78566         Patch from Bruno Haible.
78567
78568 2006-10-09  Jim Meyering  <jim@meyering.net>
78569
78570         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
78571         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
78572         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
78573
78574 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
78575
78576         Don't include <config.h> twice; this doesn't work in some cases,
78577         e.g., when config.h has "#define intmax_t long long int" and
78578         we include <config.h>, <inttypes.h>, <config.h> in that order.
78579         Problem reported by Matthew Woehlke in:
78580         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
78581         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
78582         * lib/fts-cycle.c: Don't include config.h.
78583         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
78584         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
78585         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
78586         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
78587         inttypes.h.
78588         * lib/xstrtoumax.c: Likewise.
78589         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
78590         __strtol and the like, so that this module is more like its siblings.
78591         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
78592         Remove; no longer needed now that we assume gnulib inttypes.h.
78593
78594 2006-10-08  Bruno Haible  <bruno@clisp.org>
78595
78596         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
78597         option.
78598
78599 2006-10-07  Jim Meyering  <jim@meyering.net>
78600
78601         * modules/inttypes (inttypes.h): Revert what seems to have been
78602         an inadvertent part of today's change: use "|", not "/" in the
78603         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
78604
78605 2006-10-07  Bruno Haible  <bruno@clisp.org>
78606
78607         * modules/sublist: New file.
78608
78609 2006-10-07  Bruno Haible  <bruno@clisp.org>
78610
78611         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
78612         * modules/argz (argz.h): Likewise.
78613         * modules/arpa_inet (arpa/inet.h): Likewise.
78614         * modules/byteswap (byteswap.h): Likewise.
78615         * modules/configmake (configmake.h): Likewise.
78616         * modules/fcntl (fcntl.h): Likewise.
78617         * modules/fnmatch (fnmatch.h): Likewise.
78618         * modules/getopt (getopt.h): Likewise.
78619         * modules/glob (glob.h): Likewise.
78620         * modules/inttypes (inttypes.h): Likewise.
78621         * modules/netinet_in (netinet/in.h): Likewise.
78622         * modules/poll (poll.h): Likewise.
78623         * modules/stdbool (stdbool.h): Likewise.
78624         * modules/stdint (stdint.h): Likewise.
78625         * modules/sys_select (sys/select.h): Likewise.
78626         * modules/sys_socket (sys/socket.h): Likewise.
78627         * modules/sys_stat (sys/stat.h): Likewise.
78628         * modules/sysexits (sysexits.h): Likewise.
78629         * modules/unistd (unistd.h): Likewise.
78630         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78631         Add a "DO NOT EDIT" comment to the generated file.
78632         (func_import): Likewise for gnulib-comp.m4.
78633
78634 2006-10-07  Bruno Haible  <bruno@clisp.org>
78635
78636         * lib/gl_sublist.h: New file.
78637         * lib/gl_sublist.c: New file.
78638
78639 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
78640
78641         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
78642         name (relative to the original working directory) and the file
78643         name component (relative to the temporary working directory).  All
78644         callers changed.
78645         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
78646         * lib/mkdir-p.c (make_dir_parents): Likewise.
78647         * lib/mkdir-p.h (make_dir_parents): Likewise.
78648
78649 2006-10-06  Eric Blake  <ebb9@byu.net>
78650
78651         Define several macros for use by the clean-temp module.
78652         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
78653         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
78654         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
78655
78656         * lib/clean-temp.h (close_stream_temp): New declaration.
78657         * lib/clean-temp.c (includes): Pull in headers according to what
78658         other modules are in use.
78659         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
78660
78661 2006-10-06  Bruno Haible  <bruno@clisp.org>
78662
78663         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
78664         instead of fopen, fwriteerror.
78665
78666 2006-10-06  Bruno Haible  <bruno@clisp.org>
78667
78668         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
78669         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
78670         int.
78671         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
78672         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
78673         Return an error indicator.
78674         Suggested by Eric Blake.
78675
78676 2006-10-06  Bruno Haible  <bruno@clisp.org>
78677
78678         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
78679         Reported by Eric Blake.
78680
78681 2006-10-06  Bruno Haible  <bruno@clisp.org>
78682
78683         * modules/closeout (Description): Mention stderr too.
78684
78685 2006-10-06  Bruno Haible  <bruno@clisp.org>
78686         and Paul Eggert  <eggert@cs.ucla.edu>
78687
78688         * lib/closeout.c (close_stdout): Also close stderr.
78689         * lib/closeout.h: Update comment.
78690
78691 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
78692
78693         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
78694         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
78695         * lib/dirchownmod.c: Include lchown.h.
78696         * lib/lchown.c: Don't include files that lchown.h now includes.
78697         Don't declare chown, since lchown.h now does that.
78698         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
78699         (lchown): Define to rpl_chown if lchown is declared but
78700         does not exist.  Declare using a prototype if lchown is not
78701         declared.  Add a copyright notice.
78702         * lib/mkstemp.h: Include <unistd.h>.
78703         * lib/openat.c: Include lchown.h.
78704
78705         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
78706         we now test for that separately.
78707         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
78708         rather than O_NOFOLLOW, when testing whether it's possible to
78709         avoid a race condition reliably.
78710         * lib/savewd.c (savewd_chdir): Likewise.
78711
78712         Remove macros that are no longer needed now that stdint.h is
78713         reliable.
78714         * lib/fsusage.c (UINTMAX_MAX): Remove.
78715         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
78716         * lib/utimecmp.c (SIZE_MAX): Remove.
78717
78718         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
78719
78720         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
78721         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
78722         O_NOATIME works.
78723
78724 2006-10-05  Bruno Haible  <bruno@clisp.org>
78725
78726         * lib/gl_list.h (gl_sortedlist_search_from_to,
78727         gl_sortedlist_indexof_from_to): New declarations.
78728         (gl_list_implementation): New fields sortedlist_search_from_to,
78729         sortedlist_indexof_from_to.
78730         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
78731         inline functions.
78732         * lib/gl_list.c (gl_sortedlist_search_from_to,
78733         gl_sortedlist_indexof_from_to): New functions.
78734         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
78735         function.
78736         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
78737         (gl_array_sortedlist_search_from_to): New function.
78738         (gl_array_list_implementation): Update.
78739         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
78740         function.
78741         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
78742         (gl_carray_sortedlist_search_from_to): New function.
78743         (gl_carray_list_implementation): Update.
78744         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
78745         gl_linked_sortedlist_indexof_from_to): New functions.
78746         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
78747         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
78748         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
78749         gl_tree_sortedlist_indexof_from_to): New functions.
78750         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
78751         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
78752         Update.
78753         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
78754         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
78755         Update.
78756
78757 2006-10-05  Bruno Haible  <bruno@clisp.org>
78758
78759         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
78760         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
78761         (struct gl_list_implementation): Add fields search_from_to,
78762         indexof_from_to. Remove fields search, indexof.
78763         (gl_list_search): Use the search_from_to method.
78764         (gl_list_search_from, gl_list_search_from_to): New functions.
78765         (gl_list_indexof): Use the indexof_from_to method.
78766         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
78767         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
78768         (gl_list_search_from, gl_list_search_from_to): New functions.
78769         (gl_list_indexof): Use the indexof_from_to method.
78770         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
78771         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
78772         gl_array_indexof. Add start_index, end_index arguments.
78773         (gl_array_search_from_to): Renamed from gl_array_search. Add
78774         start_index, end_index arguments.
78775         (gl_array_remove, gl_array_list_implementation): Update.
78776         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
78777         gl_carray_indexof. Add start_index, end_index arguments.
78778         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
78779         start_index, end_index arguments.
78780         (gl_carray_remove, gl_carray_list_implementation): Update.
78781         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
78782         gl_linked_search. Add start_index, end_index arguments.
78783         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
78784         start_index, end_index arguments.
78785         (gl_linked_remove): Update.
78786         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
78787         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
78788         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
78789         field to 'size_t'.
78790         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
78791         gl_tree_search. Add start_index, end_index arguments.
78792         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
78793         start_index, end_index arguments.
78794         (gl_tree_remove): Update.
78795         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
78796         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
78797         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
78798         function.
78799         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
78800         gl_tree_search. Add start_index, end_index arguments.
78801         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
78802         start_index, end_index arguments.
78803         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
78804         Update.
78805         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
78806
78807 2006-10-05  Bruno Haible  <bruno@clisp.org>
78808
78809         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
78810
78811         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
78812         fwriteerror_temp): New declarations.
78813         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
78814         (descriptors): New variable.
78815         (cleanup): First, close the descriptors.
78816         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
78817         fclose_temp, fwriteerror_temp): New functions.
78818
78819 2006-10-04  Jim Meyering  <jim@meyering.net>
78820
78821         * lib/fts.c (fts_open): Tiny comment change.
78822
78823 2006-10-04  Bruno Haible  <bruno@clisp.org>
78824
78825         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
78826         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
78827         gl_LOCK_BODY.
78828         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
78829         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
78830         gl_LOCK_EARLY_BODY.
78831         (gl_LOCK): Require gl_LOCK_BODY.
78832
78833 2006-10-04  Bruno Haible  <bruno@clisp.org>
78834
78835         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
78836         (gl_oset_search_atleast): New declaration.
78837         (struct gl_oset_implementation): Add field 'search_atleast'.
78838         (gl_oset_search_atleast): New inline function.
78839         * lib/gl_oset.c (gl_oset_search_atleast): New function.
78840         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
78841         (gl_array_oset_implementation): Update.
78842         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
78843         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
78844         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
78845
78846 2006-10-04  Bruno Haible  <bruno@clisp.org>
78847
78848         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
78849
78850 2006-10-03  Bruno Haible  <bruno@clisp.org>
78851
78852         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
78853         from gl_avltreehash_list_implementation.
78854
78855 2006-10-03  Bruno Haible  <bruno@clisp.org>
78856
78857         * lib/gl_oset.c (gl_oset_add): Fix return type.
78858
78859 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
78860
78861         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
78862
78863 2006-10-02  Eric Blake  <ebb9@byu.net>
78864
78865         * modules/strnlen (Depends-on): Add extensions.
78866
78867 2006-10-02  Eric Blake  <ebb9@byu.net>
78868
78869         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
78870         definition in 2.60+.
78871
78872 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
78873
78874         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
78875         checks.
78876
78877 2006-10-02  Bruno Haible  <bruno@clisp.org>
78878
78879         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
78880         to the AUTOMAKE_OPTIONS.
78881         Reported by Jim Meyering.
78882
78883 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
78884
78885         Work around bug in Solaris 10 /proc file system:
78886         /proc/self/fd/NNN/.. isn't the parent directory of
78887         the directory whose file descriptor is NNN.  This needs to
78888         be worked around at run time, not compile time, since a
78889         program might be built on Solaris 8, where things work, and
78890         run on Solaris 10.
78891         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
78892         to use the following interface instead:
78893         (OPENAT_BUFFER_SIZE): New macro.
78894         (openat_proc_name): New function.
78895         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
78896         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
78897         Likewise.
78898         * lib/openat-proc.c: New file.
78899         * modules/openat (Files): Add lib/openat-proc.c.
78900         (Depends-on): Add same-inode, stdbool.
78901         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
78902
78903 2006-09-29  Bruno Haible  <bruno@clisp.org>
78904
78905         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
78906         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
78907         argument. Set stdout_closed before testing for ferror, not after.
78908         (fwriteerror, fwriteerror_no_ebadf): New functions.
78909
78910 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78911
78912         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
78913
78914 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
78915
78916         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
78917         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
78918
78919 2006-09-28  Jim Meyering  <jim@meyering.net>
78920
78921         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
78922         Include <unistd.h>.
78923
78924 2006-09-28  Bruno Haible  <bruno@clisp.org>
78925
78926         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
78927         * modules/linkedhash-list (Depends-on): Likewise.
78928         * modules/rbtreehash-list (Depends-on): Likewise.
78929
78930 2006-09-28  Bruno Haible  <bruno@clisp.org>
78931
78932         * lib/strndup.h: Simplify the redefinition of strndup.
78933         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
78934         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
78935
78936 2006-09-28  Bruno Haible  <bruno@clisp.org>
78937
78938         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
78939         * lib/gl_linkedhash_list.c: Likewise.
78940         * lib/gl_rbtreehash_list.c: Likewise.
78941
78942 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
78943
78944         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
78945         getaddrinfo.
78946
78947         * lib/__fpending.h: Don't include <stdio_ext.h> unless
78948         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
78949         it causes <stdio_ext.h> to cause a compile-time error.
78950         Problem reported by Nelson H. F. Beebe.
78951         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
78952         of HAVE_DECL___PENDING.
78953
78954         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
78955         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
78956         declaration.
78957
78958 2006-09-27  Jim Meyering  <jim@meyering.net>
78959
78960         This file could end up with a definition for a function
78961         named __strndup, rather than rpl_strndup on a system with
78962         incomplete weak_alias support.
78963         * lib/strndup.c (strndup): Rename from __strndup.
78964         Remove #defines that used to map __strndup to strndup.
78965         Don't use K&R prototypes.
78966         Remove LIBC-related code, since this file is not sync'd with glibc.
78967         * lib/strndup.h: Revamp, accordingly.
78968         * m4/strndup.m4: Modernize.
78969
78970 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
78971
78972         * modules/savewd (Depends-on): Add 'raise'.
78973         * lib/savewd.c: Include <signal.h>, for 'raise'.
78974
78975 2006-09-26  Jim Meyering  <jim@meyering.net>
78976
78977         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
78978         when we detect Darwin 8.7.0's acl_get_file bug.
78979         Rearrange to perform the new (below) run-test while $LIBS
78980         contains any acl-related library.  Set USE_ACL at the end.
78981         (gl_ACL_GET_FILE): New function.
78982
78983 2006-09-26  Eric Blake  <ebb9@byu.net>
78984
78985         * lib/verror.c: Include <config.h> unconditionally.
78986
78987 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
78988
78989         * modules/clock-time (Maintainer): Add self.
78990         * modules/getlogin_r (Depends-on): Add extensions.
78991
78992 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78993
78994         * modules/clock-time: New module.
78995         * modules/nanosleep (Depends-on): Add clock-time.
78996         * modules/gethrxtime (Depends-on): Likewise.
78997         * modules/gettime (Depends-on): Likewise.
78998         * modules/settime (Depends-on): Likewise.
78999
79000         * modules/fts-lgpl: Depend on openat.
79001         * modules/mkancesdirs: Depend on savewd.
79002         * modules/mkdir-p: Likewise.
79003
79004 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79005
79006         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
79007
79008         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
79009         `gl_have_arbitrary_file_name_length_limit' to
79010         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
79011         actually works between configure runs.
79012
79013 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79014             Bruno Haible  <bruno@clisp.org>
79015
79016         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
79017
79018 2006-09-25  Jim Meyering  <jim@meyering.net>
79019
79020         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
79021         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
79022
79023 2006-09-25  Eric Blake  <ebb9@byu.net>
79024
79025         * gnulib-tool (func_import, func_create_testdir): Fix typos in
79026         exec's in 2006-09-18 patch when shuffling fds.
79027
79028 2006-09-25  Bruno Haible  <bruno@clisp.org>
79029
79030         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
79031         Reported by Jim Meyering.
79032
79033 2006-09-24  Jim Meyering  <jim@meyering.net>
79034
79035         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
79036         compare a pointer against a literal "0".  That caused failures with
79037         at least HP-UX's hpcc.
79038
79039 2006-09-22  Simon Josefsson  <jas@extundo.com>
79040
79041         * modules/gc-sha1:
79042         * modules/gc-md4:
79043         * modules/gc-hmac-sha1:
79044         * modules/gc-hmac-md5:
79045         * modules/gc-des:
79046         * modules/gc-arcfour: Distribute more files.
79047
79048 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79049
79050         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
79051         (gl_linked_iterator_from_to): Initialize struct completely.
79052         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
79053         (gl_tree_iterator_from_to): Likewise
79054         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
79055         * lib/gl_array_list.c [lint] (gl_array_iterator)
79056         (gl_array_iterator_from_to): Likewise.
79057         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
79058         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
79059         (gl_carray_iterator_from_to): Likewise.
79060
79061         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
79062         * lib/md4.c (md4_process_block): Remove unused variable.
79063         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
79064         parentheses for clarity.
79065
79066 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79067
79068         * modules/bison-i18n (Depends-on): Add gettext.
79069
79070 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79071
79072         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
79073         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
79074         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
79075         also add missing comma that caused broken test.
79076         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
79077         stdlib.h, for `abort'.
79078         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
79079         variables.
79080         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
79081         include unistd.h if present, for `rmdir'.
79082         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
79083         variables.
79084         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
79085         in the process include standard headers for prototypes.
79086         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
79087         gets declared on GNU/Linux.
79088         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
79089         unistd.h, for `rmdir'.
79090         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
79091
79092         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
79093         always true.
79094         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
79095
79096         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
79097
79098 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79099
79100         * gnulib-tool (func_version): Create output all at once.  This
79101         may help avoid triggering unnecessary SIGPIPEs, and at any
79102         rate it doesn't hurt.
79103
79104 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79105             Bruno Haible  <bruno@clisp.org>
79106
79107         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
79108         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
79109         * m4/signed.m4 (bh_C_SIGNED): Likewise.
79110
79111         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
79112         (gl_FUNC_VASPRINTF): Invoke it.
79113
79114 2006-09-22  Bruno Haible  <bruno@clisp.org>
79115
79116         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
79117         getloadavg.c as first argument.
79118
79119 2006-09-22  Bruno Haible  <bruno@clisp.org>
79120
79121         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
79122         at the beginning of the gl_INIT macro.
79123         * modules/getloadavg (configure.ac): Pass $gl_source_base to
79124         gl_GETLOADAVG.
79125
79126 2006-09-22  Bruno Haible  <bruno@clisp.org>
79127
79128         * gnulib-tool (func_create_megatestdir): Don't include the config-h
79129         module.
79130         Suggested by Ralf Wildenhues.
79131
79132 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
79133
79134         Import this patch from libc:
79135
79136         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
79137
79138         * lib/regex_internal.c (re_string_reconstruct): Handle
79139         offset < pstr->valid_raw_len && pstr->offsets_needed case.
79140         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
79141         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
79142         re_string_context_at.
79143
79144         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
79145         now requires it.
79146         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
79147         gl_REGEX now does it for us.
79148         (gl_REGEX): Add test taken from
79149         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
79150
79151         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
79152         Check that large offsets work.  Modernize Autoconf usages.
79153         Prefer "yes" to mean a good thing rather than a bad.
79154         Don't put "#define mkstemp" in config.h, as this might interfere
79155         with standard system headers that "#define mkstemp mkstemp64".
79156
79157         * modules/mkstemp (Depends-on): Add extensions, so that
79158         mkstemp is visible on some platforms.
79159         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
79160         (Include): Change to "mkstemp.h" from <stdlib.h>.
79161         (Files): Add mkstemp.h.
79162
79163         * lib/mkstemp.h: New file, since some standard headers
79164         #define mkstemp.
79165         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
79166         Include "mkstemp.h".
79167         Make the _LIBC code resemble glibc original more,
79168         e.g., use K&R style.
79169         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
79170         (mkstemp): Remove, since mkstemp.h does this for us.
79171         * lib/stdlib--.h: Include mkstemp.h.
79172
79173         Import this patch from libc:
79174
79175         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
79176
79177         * lib/tempname.c (__gen_tempname): Change attempts_min
79178         into a macro.  Use preprocessor to decide how to initialize
79179         attempts [Coverity CID 67].
79180
79181 2006-09-20  Bruno Haible  <bruno@clisp.org>
79182
79183         * lib/mkdtemp.c: Import from libc.
79184         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
79185                 * sysdeps/posix/tempname.c (__gen_tempname): Change
79186                 attempts_min into a macro.  Use preprocessor to decide how to
79187                 initialize attempts [Coverity CID 67].
79188         2001-11-27  Paul Eggert  <eggert@twinsun.com>
79189                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
79190                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
79191
79192 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79193
79194         * gnulib-tool (func_exit): New function, to allow to pass the
79195         exit status portably through the trap.  Use everywhere.
79196         (--help, --version): Signal a write error.
79197         (trap): catch SIGPIPE, for write errors.
79198         Exit at the end of the trap, with the correct exit status.
79199
79200 2006-09-19  Karl Berry  <karl@gnu.org>
79201
79202         * doc/gnulib.texi: note about the license texinfo files.
79203
79204 2006-09-19  Eric Blake  <ebb9@byu.net>
79205
79206         * gnulib-tool: Avoid space-tab.
79207
79208 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
79209
79210         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
79211         that prevented coreutils 6.1 from building.  Problem reported
79212         by Petter Reinholdtsen.
79213
79214 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
79215
79216         * gnulib-tool (avoidlist): Fix typo that broke options like
79217         --avoid=lock that are used by coreutils bootstrap.
79218
79219 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
79220
79221         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
79222         more systematically.
79223
79224 2006-09-18  Jim Meyering  <jim@meyering.net>
79225
79226         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
79227
79228 2006-09-18  Bruno Haible  <bruno@clisp.org>
79229
79230         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
79231
79232 2006-09-18  Bruno Haible  <bruno@clisp.org>
79233
79234         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
79235         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
79236         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
79237         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
79238         * m4/gettext.m4: Require autoconf >= 2.52.
79239         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
79240         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
79241         of gl_cv_header_inttypes_h.
79242
79243 2006-09-18  Bruno Haible  <bruno@clisp.org>
79244
79245         * lib/javaversion.c: Include configmake.h.
79246
79247 2006-09-18  Bruno Haible  <bruno@clisp.org>
79248
79249         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
79250         avoid that the while loops be executed in a subshell.
79251
79252 2006-09-18  Bruno Haible  <bruno@clisp.org>
79253
79254         * MODULES.html.sh (func_module): Break long lines.
79255         Suggested by Bruce Korb <bkorb@gnu.org>.
79256
79257 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79258
79259         Speed up by a factor of 1.12.
79260         * gnulib-tool (nl): New variable.
79261         (func_import): Rewrite include directive extraction to only read each
79262         directive once.
79263
79264 2006-09-17  Bruno Haible  <bruno@clisp.org>
79265
79266         * modules/javaversion (Makefile.am): Remove DEFS setting.
79267         (Depends-on): Add configmake, for PKGDATADIR definition.
79268
79269 2006-09-17  Bruno Haible  <bruno@clisp.org>
79270
79271         * gnulib-tool (func_create_testdir): Rewrite all files at once.
79272
79273 2006-09-17  Bruno Haible  <bruno@clisp.org>
79274
79275         * gnulib-tool (func_append): New function, stolen from libtool.m4.
79276         (func_modules_transitive_closure, func_modules_add_dummy,
79277         func_modules_to_filelist, func_import, func_create_testdir,
79278         func_create_megatestdir, ...): Use it wherever possible.
79279         Suggested by Ralf Wildenhues.
79280
79281 2006-09-16  Karl Berry  <karl@gnu.org>
79282
79283         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
79284         to avoid sectioning errors.
79285         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
79286         [ifinfo]: blank line after @center-ed titles.
79287         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
79288         Spell FSF address consistently with others.
79289         (These changes approved by rms.)
79290
79291 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79292
79293         Speed up by a factor of 1.61.
79294         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
79295         already checked module names again.
79296
79297 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79298
79299         Speed up by a factor of 1.13.
79300         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
79301         for new_files, and the input to func_add_or_update.
79302
79303 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79304
79305         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
79306         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
79307
79308 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
79309
79310         * modules/mkancesdirs (Depends-on): Add fcntl.
79311         * modules/savewd: New file.
79312         * MODULES.html.sh (File system functions): Add savewd.
79313
79314         * modules/configmake (Makefile.am): Add support for the
79315         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
79316
79317 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
79318
79319         * m4/savewd.m4: New file.
79320
79321 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
79322
79323         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
79324         (dirchownmod): New arg FD.  All callers changed.
79325         Use FD rather than opening the directory ourself, as opening is
79326         now the caller's responsibility.
79327         * lib/dirchownmod.h: Likewise.
79328         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
79329         hosts that require <sys/types.h> before <sys/stat.h>.  Include
79330         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
79331         (test_dir): Remove.
79332         (mkancesdirs): Return length of prefix of FILE that has already
79333         been made, or -2 if there is a child doing the work.  Redo
79334         algorithm so that it is O(N) rather than O(N**2).  Optimize away
79335         ".", and treat ".." specially since it might stray back into
79336         already-created areas.  Use a subprocess if necessary.  New arg
79337         WD; all users changed.  MAKE_DIR function should now return 1
79338         if it creates a directory that is not readable.  Return -2 if
79339         a child process is spun off.
79340         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
79341         Adjust signature to match code.
79342         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
79343         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
79344         all users changed.
79345         * lib/savewd.c, lib/savewd.h: New files.
79346
79347 2006-09-15  Jim Meyering  <jim@meyering.net>
79348
79349         * modules/rename-dest-slash: New module.
79350         * MODULES.html.sh (posix_compat): Add it here.
79351
79352         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
79353
79354 2006-09-15  Jim Meyering  <jim@meyering.net>
79355
79356         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
79357         file.
79358
79359         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
79360
79361 2006-09-15  Jim Meyering  <jim@meyering.net>
79362
79363         * lib/rename-dest-slash.c (has_trailing_slash): Use
79364         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
79365         (rpl_rename_dest_slash): Perform the cheaper trailing slash
79366         test before testing whether SRC is a directory.
79367         Suggestions from Bruno Haible.
79368
79369         Avoid a warning about an unused variable.
79370         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
79371         into the #ifdef block where it's used.
79372
79373         * lib/rename-dest-slash.c: New file.
79374
79375 2006-09-14  Bruno Haible  <bruno@clisp.org>
79376
79377         * lib/allocsa.c: Include <config.h> unconditionally.
79378         * lib/asnprintf.c: Likewise.
79379         * lib/asprintf.c: Likewise.
79380         * lib/c-strcasecmp.c: Likewise.
79381         * lib/c-strcasestr.c: Likewise.
79382         * lib/c-strncasecmp.c: Likewise.
79383         * lib/c-strstr.c: Likewise.
79384         * lib/classpath.c: Likewise.
79385         * lib/clean-temp.c: Likewise.
79386         * lib/concatpath.c: Likewise.
79387         * lib/copy-file.c: Likewise.
79388         * lib/csharpcomp.c: Likewise.
79389         * lib/csharpexec.c: Likewise.
79390         * lib/execute.c: Likewise.
79391         * lib/fatal-signal.c: Likewise.
79392         * lib/findprog.c: Likewise.
79393         * lib/fwriteerror.c: Likewise.
79394         * lib/gl_array_list.c: Likewise.
79395         * lib/gl_array_oset.c: Likewise.
79396         * lib/gl_avltree_list.c: Likewise.
79397         * lib/gl_avltree_oset.c: Likewise.
79398         * lib/gl_avltreehash_list.c: Likewise.
79399         * lib/gl_carray_list.c: Likewise.
79400         * lib/gl_linked_list.c: Likewise.
79401         * lib/gl_linkedhash_list.c: Likewise.
79402         * lib/gl_list.c: Likewise.
79403         * lib/gl_oset.c: Likewise.
79404         * lib/gl_rbtree_list.c: Likewise.
79405         * lib/gl_rbtree_oset.c: Likewise.
79406         * lib/gl_rbtreehash_list.c: Likewise.
79407         * lib/imaxabs.c: Likewise.
79408         * lib/imaxdiv.c: Likewise.
79409         * lib/javacomp.c: Likewise.
79410         * lib/javaexec.c: Likewise.
79411         * lib/javaversion.c: Likewise.
79412         * lib/linebreak.c: Likewise.
79413         * lib/localcharset.c: Likewise.
79414         * lib/lock.c: Likewise.
79415         * lib/mbchar.c: Likewise.
79416         * lib/mbswidth.c: Likewise.
79417         * lib/mkdtemp.c: Likewise.
79418         * lib/pipe.c: Likewise.
79419         * lib/printf-args.c: Likewise.
79420         * lib/printf-parse.c: Likewise.
79421         * lib/progname.c: Likewise.
79422         * lib/progreloc.c: Likewise.
79423         * lib/readlink.c: Likewise.
79424         * lib/sh-quote.c: Likewise.
79425         * lib/stpcpy.c: Likewise.
79426         * lib/stpncpy.c: Likewise.
79427         * lib/strcasecmp.c: Likewise.
79428         * lib/strcasestr.c: Likewise.
79429         * lib/strcspn.c: Likewise.
79430         * lib/striconv.c: Likewise.
79431         * lib/strncasecmp.c: Likewise.
79432         * lib/strnlen1.c: Likewise.
79433         * lib/strstr.c: Likewise.
79434         * lib/strtok_r.c: Likewise.
79435         * lib/tls.c: Likewise.
79436         * lib/tmpdir.c: Likewise.
79437         * lib/unicodeio.c: Likewise.
79438         * lib/unsetenv.c: Likewise.
79439         * lib/vasnprintf.c: Likewise.
79440         * lib/vasprintf.c: Likewise.
79441         * lib/wait-process.c: Likewise.
79442         * lib/xallocsa.c: Likewise.
79443         * lib/xsetenv.c: Likewise.
79444         * lib/xstriconv.c: Likewise.
79445
79446 2006-09-13  Simon Josefsson  <jas@extundo.com>
79447
79448         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
79449         that internally, suggested by Ralf Wildenhues
79450         <Ralf.Wildenhues@gmx.de>.
79451
79452 2006-09-13  Simon Josefsson  <jas@extundo.com>
79453
79454         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
79455         @LIBOBJS@.
79456         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79457
79458 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
79459
79460         * lib/_fpending.c: Include <config.h> unconditionally, since we no
79461         longer worry about uses that don't define HAVE_CONFIG_H.
79462         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
79463         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
79464         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
79465         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
79466         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
79467         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
79468         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
79469         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
79470         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
79471         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
79472         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
79473         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
79474         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
79475         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
79476         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
79477         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
79478         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
79479         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
79480         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
79481         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
79482         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
79483         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
79484         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
79485         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
79486         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
79487         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
79488         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
79489         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
79490         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
79491         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
79492         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
79493         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
79494         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
79495         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
79496         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
79497         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
79498         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
79499         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
79500         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
79501         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
79502         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
79503         Likewise.
79504
79505 2006-09-13  Eric Blake  <ebb9@byu.net>
79506
79507         * lib/getopt.c: Fix typo in last commit.
79508
79509 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
79510
79511         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
79512         dgettext.
79513
79514 2006-09-12  Jim Meyering  <jim@meyering.net>
79515
79516         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
79517         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
79518         Reported by Nelson H. F. Beebe.
79519
79520 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
79521
79522         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
79523         program_invocation_name and program_invocation_short_name are
79524         initialized.
79525         * lib/argp-namefrob.h: Move declarations of program_invocation_name
79526         and program_invocation_short_name to argp.h, so they are visible
79527         to user programs.
79528         * lib/argp.h: Likewise
79529
79530 2006-09-10  Bruno Haible  <bruno@clisp.org>
79531
79532         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
79533         m4/inttypes_h.m4, m4/uintmax_t.m4.
79534
79535 2006-09-10  Bruno Haible  <bruno@clisp.org>
79536
79537         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
79538         gl_AC_TYPE_UINTMAX_T.
79539
79540 2006-09-10  Bruno Haible  <bruno@clisp.org>
79541
79542         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
79543
79544 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79545
79546         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
79547         convention.  Text proposed by Bruno Haible.
79548         (struct argp_option): Document the use of N_() wrappers.
79549
79550         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
79551         '\v', and translate the two parts separately, instead of feeding
79552         the whole string to gettext.  This allows to exclude
79553         '\v' from the strings visible to the translator by writing doc
79554         strings as N_("..") "\v" N_("..").
79555
79556 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
79557
79558         * config/srclist.txt: Undo latest change; the bug was fixed.
79559
79560 2006-09-09  Bruno Haible  <bruno@clisp.org>
79561
79562         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
79563         assignments if building a library without libtool.
79564         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
79565         in func_emit_lib_Makefile_am.
79566         (func_import): When building a static library libfoo.a, arrange to
79567         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
79568         (func_create_testdir): Likewise.
79569         * modules/gc (configure.ac, Makefile.am): If building statically,
79570         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
79571         * modules/iconvme (configure.ac, Makefile.am): Likewise.
79572         * modules/striconv (configure.ac, Makefile.am): Likewise.
79573         Based on a suggestion by Ralf Wildenhues.
79574
79575 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
79576
79577         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
79578         Check for unistd.h too, since Autoconf doesn't assume POSIX.
79579         Also:
79580
79581         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
79582         Add year_2050_test to catch glibc bug 2821
79583         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
79584
79585         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
79586         Prefer #ifdef to #if.
79587
79588         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
79589         Return from 'main' instead of calling 'exit'.
79590
79591 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
79592
79593         * lib/mktime.c (guess_time_tm): Fix bug where mktime
79594         returned the maximum time_t value rather than (time_t) -1.
79595         Problem originally reported by William Bardwell
79596         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
79597
79598         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
79599         Moved to here ...
79600         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
79601         ... from here.
79602
79603 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
79604
79605         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
79606         2821 is fixed.
79607
79608 2006-09-08  Jim Meyering  <jim@meyering.net>
79609
79610         Don't make generated files read-only.  That would bother too many
79611         people.  However, do retain the ability to work when targets are
79612         read-only: remove the destination and temporary files before writing
79613         them (when generated via sed or echo), or by using the -f option for
79614         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
79615         * modules/alloca-opt, modules/argz, modules/arpa_inet:
79616         * modules/byteswap, modules/configmake, modules/fcntl:
79617         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
79618         * modules/localcharset, modules/netinet_in, modules/poll:
79619         * modules/stdbool, modules/stdint, modules/sys_select:
79620         * modules/sys_socket, modules/sys_stat, modules/sysexits:
79621
79622 2006-09-08  Jim Meyering  <jim@meyering.net>
79623
79624         Avoid new build failure on FreeBSD 6.0.
79625         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
79626         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
79627         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
79628
79629 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79630
79631         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
79632
79633 2006-09-07  Jim Meyering  <jim@meyering.net>
79634
79635         Fix global typo in last change: use chmod u-w, not chmod u-x.
79636         Spotted by Paul Eggert and Bruce Korb.
79637         * modules/alloca-opt, modules/argz, modules/arpa_inet:
79638         * modules/byteswap, modules/configmake, modules/fcntl:
79639         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
79640         * modules/localcharset, modules/netinet_in, modules/poll:
79641         * modules/stdbool, modules/stdint, modules/sys_select:
79642         * modules/sys_socket, modules/sys_stat, modules/sysexits:
79643
79644 2006-09-06  Jim Meyering  <jim@meyering.net>
79645
79646         Make generated files be read-only.
79647         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
79648         Ensure that each generated file is now read-only.
79649         * modules/argz: Likewise.
79650         * modules/arpa_inet: Likewise.
79651         * modules/byteswap: Likewise.
79652         * modules/configmake: Likewise.
79653         * modules/fcntl: Likewise.
79654         * modules/fnmatch: Likewise.
79655         * modules/getopt: Likewise.
79656         * modules/glob: Likewise.
79657         * modules/inttypes: Likewise.
79658         * modules/netinet_in: Likewise.
79659         * modules/poll: Likewise.
79660         * modules/stdbool: Likewise.
79661         * modules/stdint: Likewise.
79662         * modules/sys_select: Likewise.
79663         * modules/sys_socket: Likewise.
79664         * modules/sys_stat: Likewise.
79665         * modules/sysexits: Likewise.
79666         * modules/localcharset: Same as above, but continue using temporary
79667         file named "t-$@" (why different?) rather than the "$@-t" used
79668         everywhere else.
79669
79670         * modules/sysexits (Makefile.am): Replace literal occurrences
79671         of "sysexit.h" more readable, and more consistent, "$@".
79672
79673 2006-09-06  Bruno Haible  <bruno@clisp.org>
79674
79675         * modules/striconv: New file.
79676         * modules/xstriconv: New file.
79677         * MODULES.html.sh (Internationalization functions): Add striconv,
79678         xstriconv.
79679
79680 2006-09-06  Bruno Haible  <bruno@clisp.org>
79681
79682         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
79683         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
79684         not using libtool correctly.
79685
79686 2006-09-06  Bruno Haible  <bruno@clisp.org>
79687
79688         * lib/striconv.h: New file.
79689         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
79690         iconvstring.c.
79691         * lib/xstriconv.h: New file.
79692         * lib/xstriconv.c: New file.
79693
79694 2006-09-06  Bruno Haible  <bruno@clisp.org>
79695
79696         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
79697         lib_..._LDFLAGS.
79698
79699 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79700
79701         * lib/argz_.h: Sync from Libtool.
79702
79703         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
79704                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
79705
79706         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
79707
79708 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
79709
79710         * modules/trim: New file.
79711
79712 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
79713
79714         * lib/trim.h: New file.
79715         * lib/trim.c: New file.
79716
79717 2006-09-05  Bruno Haible  <bruno@clisp.org>
79718
79719         * MODULES.html.sh (String handling): Add trim.
79720
79721 2006-09-04  Karl Berry  <karl@gnu.org>
79722
79723         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
79724         until next release.
79725
79726 2006-09-03  Bruno Haible  <bruno@clisp.org>
79727
79728         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
79729         correctly.
79730
79731 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
79732
79733         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
79734         not gl_GETLOADAVG.  Omit unneeded semicolons.
79735         Problems reported by Ralf Wildenhues in
79736         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
79737         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
79738         at the end, which is the usual gnulib style.
79739
79740         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
79741         of doing all the work ourselves.
79742         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
79743         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
79744
79745 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
79746
79747         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
79748         Problem reported by Ralf Wildenhues in
79749         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
79750
79751         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
79752         HAVE_STRUCT_STATFS_F_FSTYPENAME.
79753
79754 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
79755
79756         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
79757         yesterday's patch by changing test -n to test -z.
79758
79759 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
79760
79761         * modules/getloadavg (Files): Add m4/getloadavg.m4.
79762         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
79763         the former is now obsolescent.
79764
79765         * modules/chdir-long (Depends-on): Add fcntl.
79766
79767 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
79768
79769         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
79770         obsolescent, and programs should use gnulib instead.
79771         * m4/getloadavg.m4: New file, with contents taken from Autoconf
79772         but with prefixes changed.
79773
79774 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
79775
79776         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
79777         or stdbool.h, because they might not exist while configuring.
79778
79779         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
79780         Don't include unistd.h or limits.h; not needed, since chdir-long.h
79781         does that for us.
79782         (O_DIRECTORY): Remove.
79783
79784 2006-08-31  Eric Blake  <ebb9@byu.net>
79785
79786         * gnulib-tool: Don't let emacs change spaces to TAB.
79787
79788 2006-08-31  Bruno Haible  <bruno@clisp.org>
79789
79790         * gnulib-tool: When calling func_import more than once, do it in a
79791         subshell.
79792         Reported by Eric Blake <ebb9@byu.net>.
79793
79794 2006-08-31  Bruno Haible  <bruno@clisp.org>
79795
79796         * gnulib-tool (nl): Remove variable.
79797         (sed_transform_lib_file): Use more robust test for config-h module.
79798         (func_import): Fix typo in 2006-08-25 patch.
79799
79800 2006-08-31  Bruno Haible  <bruno@clisp.org>
79801
79802         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
79803         specified, augment Makefile.am variables instead of assigning them.
79804
79805 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
79806
79807         Work around a bug in both the Linux and SunOS 64-bit kernels:
79808         nanosleep mishandles sleeps for longer than 2**31 seconds.
79809         Problem reported by Frank v Waveren in
79810         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
79811         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
79812         Check for nanosleep bug.
79813         (LIB_NANOSLEEP): Append clock_gettime library if needed.
79814
79815 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
79816
79817         Work around a bug in both the Linux and SunOS 64-bit kernels:
79818         nanosleep mishandles sleeps for longer than 2**31 seconds.
79819         Problem reported by Frank v Waveren in
79820         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
79821         * lib/nanosleep.c (BILLION): New constant.
79822         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
79823         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
79824         implementation.
79825
79826 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
79827
79828         * modules/nanosleep (Depends-on): Add gettime.
79829
79830 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
79831         and Simon Josefsson  <jas@extundo.com>
79832         and Oskar Liljeblad  <oskar@osk.mine.nu>
79833
79834         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
79835         * gnulib-tool (func_import): New license type 'unmodifiable license
79836         text'.
79837         * modules/fdl: Use it.  Longer description.
79838         * module/gpl, module/lgpl: New files.
79839
79840 2006-08-30  Jim Meyering  <jim@meyering.net>
79841
79842         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
79843         shadowing the parameter.
79844
79845 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79846
79847         Sync from Libtool:
79848
79849         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79850
79851         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
79852         sharing with gnulib.  Report by Eric Blake.
79853
79854 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
79855
79856         * modules/isapipe: New file.
79857         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
79858
79859 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
79860
79861         * modules/configmake (Makefile.am): Add a comment, and omit
79862         the CONFIGMAKE_ prefix from generated macro names.  Suggested
79863         by Bruno Haible.
79864
79865 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
79866
79867         * m4/isapipe.m4: New file.
79868
79869 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
79870
79871         * lib/isapipe.c, lib/isapipe.h: New files.
79872
79873 2006-08-29  Jim Meyering  <jim@meyering.net>
79874
79875         * modules/configmake (Makefile.am): Make configmake.h depend on
79876         Makefile.  Otherwise, a stale configmake.h could hang around.
79877
79878 2006-08-29  Eric Blake  <ebb9@byu.net>
79879
79880         * lib/error.c (error_at_line, print_errno_message): Match libc, after
79881         resolution of upstream bug 3044.
79882
79883 2006-08-29  Bruno Haible  <bruno@clisp.org>
79884
79885         * modules/localcharset (Depends-on): Add configmake.
79886         (Makefile.am): Remove setting of LIBDIR through DEFS.
79887
79888 2006-08-29  Bruno Haible  <bruno@clisp.org>
79889
79890         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
79891         defined.
79892
79893 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
79894
79895         * modules/fcntl: New file.
79896         * modules/chdir-safer (Depends-on): Add fcntl.
79897         * modules/fts: Likewise.
79898         * modules/mkdir-p: Likewise.
79899
79900         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
79901         This undoes the most recent change, since we're now addressing the
79902         problem in a different way.
79903
79904         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
79905         into output, since the output might be called Makefile.am even
79906         if $makefile_name is something different.
79907         (func_import): Use $makefile_am rather than
79908         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
79909         empty.
79910
79911         * modules/inttypes (Files): Add m4/inttypes-h.m4.
79912
79913 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
79914
79915         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
79916         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
79917         recent change to stdint.m4, since we're now addressing the problem in a
79918         different way.
79919
79920 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
79921
79922         * m4/fcntl_h.m4: New file.
79923
79924 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
79925
79926         * lib/fcntl_.h: New file.
79927         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
79928         the fcntl module.
79929         * lib/dirchownmod.c: Likewise.
79930         * lib/fts.c: Likewise.
79931
79932         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
79933         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
79934         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
79935         just before including <inttypes.h>, to avoid circular inclusion.
79936
79937 2006-08-28  Jim Meyering  <jim@meyering.net>
79938
79939         * doc/visibility.texi: Actually read and correct the grammar of the
79940         sentence affected by yesterday's change.
79941
79942 2006-08-28  Eric Blake  <ebb9@byu.net>
79943
79944         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
79945         needs wrapper.
79946
79947 2006-08-28  Eric Blake  <ebb9@byu.net>
79948
79949         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
79950
79951 2006-08-28  Eric Blake  <ebb9@byu.net>
79952
79953         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
79954
79955 2006-08-28  Bruno Haible  <bruno@clisp.org>
79956
79957         * modules/c-strstr: New file, from GNU gettext.
79958         * MODULES.html.sh (String handling): Add c-strstr.
79959
79960 2006-08-28  Bruno Haible  <bruno@clisp.org>
79961
79962         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
79963         macros.
79964         Reported by Eric Blake.
79965
79966 2006-08-28  Bruno Haible  <bruno@clisp.org>
79967
79968         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
79969         (VASNPRINTF): Return a string of length > INT_MAX without failing.
79970         * lib/vasprintf.c: Include errno.h, limits.h.
79971         (EOVERFLOW): New fallback definition.
79972         (vasprintf): Test here whether the string length is > INT_MAX.
79973         * lib/vsnprintf.c: Include errno.h, limits.h.
79974         (EOVERFLOW): New fallback definition.
79975         (vsnprintf): Fix bug when generated string was too long for the buffer.
79976         Test here whether the string length is > INT_MAX.
79977
79978 2006-08-28  Bruno Haible  <bruno@clisp.org>
79979
79980         * lib/inttypes_.h (SCNX*): Remove definitions.
79981         Reported by Eric Blake.
79982
79983 2006-08-28  Bruno Haible  <bruno@clisp.org>
79984
79985         * lib/c-strstr.h: New file, from GNU gettext.
79986         * lib/c-strstr.c: New file, from GNU gettext.
79987
79988 2006-08-28  Bruno Haible  <bruno@clisp.org>
79989
79990         * gnulib-tool: Reorder some statements.
79991
79992 2006-08-28  Bruno Haible  <bruno@clisp.org>
79993
79994         * gnulib-tool: New option --makefile-name.
79995         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
79996         $makefile_name.
79997         (func_import): Write $makefile_name to the cache file, and read it from
79998         there unless explicitly specified. Use $makefile_name as file name
79999         instead of Makefile.am. Adjust the recommendations accordingly.
80000
80001 2006-08-28  Bruno Haible  <bruno@clisp.org>
80002
80003         * gnulib-tool (func_verify_module): Check against misapplying patch.
80004
80005 2006-08-28  Bruno Haible  <bruno@clisp.org>
80006
80007         * gnulib-tool (func_relativize, func_relconcat): New functions.
80008         Give an error if --local-dir is given with --update.
80009         Remove trailing slashes from $local_gnulib_dir.
80010         (func_import): Store the relativized $local_gnulib_dir in
80011         gnulib-cache.m4, and read it from there if not specified explicitly.
80012
80013 2006-08-28  Bruno Haible  <bruno@clisp.org>
80014
80015         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
80016         is the current directory. Respect also $local_gnulib_dir.
80017
80018 2006-08-28  Bruno Haible  <bruno@clisp.org>
80019             Simon Josefsson  <jas@extundo.com>
80020
80021         BeOS portability.
80022         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
80023
80024 2006-08-27  Jim Meyering  <jim@meyering.net>
80025
80026         * doc/visibility.texi: Remove duplicate word: "pointer".
80027
80028 2006-08-26  Bruno Haible  <bruno@clisp.org>
80029
80030         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
80031         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
80032         (Makefile.am): Create inttypes.h from inttypes_.h.
80033         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
80034
80035         * modules/imaxabs: New file.
80036
80037         * modules/imaxdiv: New file.
80038
80039 2006-08-26  Bruno Haible  <bruno@clisp.org>
80040
80041         * m4/inttypes.m4: New file.
80042         * m4/_inttypes_h.m4: Remove file.
80043         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
80044         PRI_MACROS_BROKEN.
80045         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
80046
80047         * m4/imaxabs.m4: New file.
80048
80049         * m4/imaxdiv.m4: New file.
80050
80051 2006-08-26  Bruno Haible  <bruno@clisp.org>
80052
80053         * lib/inttypes_.h: New file.
80054         * lib/inttypes.h: Remove file.
80055         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
80056
80057         * lib/imaxabs.c: New file.
80058
80059         * lib/imaxdiv.c: New file.
80060
80061 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80062
80063         New config-h module, so that "make" output needn't be cluttered
80064         by -DHAVE_CONFIG_H.
80065         * MODULES.html.sh (Support for building libraries and executables):
80066         Add config-h.
80067         * modules/config-h: New file.
80068         * gnulib-tool (nl, sed_transform_lib_file): New vars.
80069         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
80070         the config-h module is used.
80071
80072         New configmake module, so that "make" output needn't be cluttered
80073         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
80074         * MODULES.html.sh (Support for building libraries and executables):
80075         Add configmake.
80076         * modules/configmake: New file.
80077
80078 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80079
80080         * m4/config-h.m4: New file.
80081
80082 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
80083
80084         * config/srclist.txt: Add elisp-comp.
80085
80086 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
80087
80088         * MODULES.html.sh (Support for building libraries and executables):
80089         Add elisp-comp.
80090         * build-aux/elisp-comp: New file.
80091         * modules/elisp-comp: New file.
80092
80093 2006-08-24  Bruno Haible  <bruno@clisp.org>
80094
80095         * gnulib-tool (func_create_testdir): Use non-default values of
80096         sourcebase and m4base.
80097
80098 2006-08-24  Bruno Haible  <bruno@clisp.org>
80099
80100         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
80101         HTML structure.
80102
80103 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
80104
80105         * modules/openat (Depends-on): Add lchown.
80106
80107 2006-08-23  Bruno Haible  <bruno@clisp.org>
80108
80109         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
80110         of gl_LOCK_EARLY instead of gl_LOCK.
80111
80112 2006-08-23  Bruno Haible  <bruno@clisp.org>
80113
80114         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
80115         on OSF/1 to no.
80116         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
80117
80118 2006-08-23  Bruno Haible  <bruno@clisp.org>
80119
80120         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
80121         as unusable.
80122
80123         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
80124         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
80125         (gl_LOCK): New macro.
80126
80127 2006-08-22  Simon Josefsson  <jas@extundo.com>
80128
80129         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
80130         to md5 module.
80131
80132 2006-08-22  Simon Josefsson  <jas@extundo.com>
80133
80134         * MODULES.html.sh: Add "Support for maintaining and release
80135         projects".
80136
80137         * build-aux/gnupload: New file, from coreutils.
80138
80139 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
80140
80141         Avoid the need for AC_LIBSOURCES in m4 macros.
80142         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
80143         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
80144         * modules/check-version (EXTRA_DIST): Add check-version.h.
80145         * modules/crc (EXTRA_DIST): Add crc.h.
80146         * modules/des (EXTRA_DIST): Add des.h.
80147         * modules/gc (EXTRA_DIST): Add gc.h.
80148         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
80149         * modules/getline (EXTRA_DIST): Add getline.h.
80150         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
80151         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
80152         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
80153         * modules/md2 (EXTRA_DIST): Add md2.h.
80154         * modules/md4 (EXTRA_DIST): Add md4.h.
80155         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
80156         * modules/read-file (EXTRA_DIST): Add read-file.h.
80157         * modules/readline (EXTRA_DIST): Add readline.h.
80158         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
80159         rijndael-api-fst.h.
80160
80161 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
80162
80163         * m4/rijndael.m4 (gl_ARCFOUR):
80164         * m4/arctwo.m4 (gl_ARCTWO):
80165         * m4/check-version.m4 (gl_CHECK_VERSION):
80166         * m4/crc.m4 (gl_CRC):
80167         * m4/des.m4 (gl_DES):
80168         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
80169         * m4/gc.m4 (gl_GC):
80170         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
80171         * m4/getline.m4 (gl_FUNC_GETLINE):
80172         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
80173         * m4/hmac-md5.m4 (gl_HMAC_MD5):
80174         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
80175         * m4/md2.m4 (gl_MD2):
80176         * m4/md4.m4 (gl_MD4):
80177         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
80178         * m4/read-file.m4 (gl_FUNC_READ_FILE):
80179         * m4/readline.m4 (gl_FUNC_READLINE):
80180         * m4/rijndael.m4 (gl_RIJNDAEL):
80181         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
80182         to get the necessary .h files and whatnot.
80183
80184 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
80185
80186         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
80187         gnulib rather than the other way around.
80188         * config/srclistvars.sh (COREUTILS): Remove.
80189
80190 2006-08-22  Jim Meyering  <jim@meyering.net>
80191
80192         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
80193
80194         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
80195
80196 2006-08-22  Eric Blake  <ebb9@byu.net>
80197
80198         * modules/regexprops-generic: New file.
80199         * MODULES.html.sh (Support for building documentation): List it.
80200
80201 2006-08-22  Eric Blake  <ebb9@byu.net>
80202
80203         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
80204         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
80205         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
80206         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
80207
80208 2006-08-22  Bruno Haible  <bruno@clisp.org>
80209
80210         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
80211         and lib_LTLIBRARIES like the other lib_* variables.
80212
80213 2006-08-22  Bruno Haible  <bruno@clisp.org>
80214
80215         * build-aux/x-to-1.in: New file, from GNU gettext.
80216
80217 2006-08-22  Bruno Haible  <bruno@clisp.org>
80218
80219         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
80220         <utmpx.h> exists.
80221
80222 2006-08-22  Bruno Haible  <bruno@clisp.org>
80223
80224         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
80225         <utmpx.h> exists.
80226
80227 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
80228
80229         BeOS portability.
80230         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
80231         exist.
80232         Problem reported by Bruno Haible.
80233
80234 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
80235
80236         Avoid the need for AC_LIBSOURCES in m4 macros.
80237         * modules/acl (EXTRA_DIST): Add acl.h.
80238         * modules/argmatch (Files): Add m4/argmatch.m4.
80239         (configure.ac): Add gl_ARGMATCH.
80240         (EXTRA_DIST): Renamed from lib_SOURCES, for
80241         consistency with the other modules.  Remove argmatch.c.
80242         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
80243         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
80244         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
80245         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
80246         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
80247         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
80248         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
80249         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
80250         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
80251         * modules/closeout (EXTRA_DIST): Add closeout.h.
80252         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
80253         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
80254         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
80255         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
80256         dirname.h; remove basename.c and stripslash.c.
80257         * modules/exclude (EXTRA_DIST): Add exclude.h.
80258         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
80259         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
80260         * modules/file-type (EXTRA_DIST): Add file-type.h.
80261         * modules/filemode (EXTRA_DIST): Add filemode.h.
80262         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
80263         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
80264         * modules/fpending (EXTRA_DIST): Add __fpending.h.
80265         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
80266         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
80267         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
80268         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
80269         * modules/getdate (EXTRA_DIST): Add getdate.c.
80270         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
80271         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
80272         * modules/getpass (EXTRA_DIST): Add getpass.h.
80273         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
80274         * modules/group-member (EXTRA_DIST): Add group-member.h.
80275         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
80276         * modules/hash (EXTRA_DIST): Add hash.h.
80277         * modules/human (EXTRA_DIST): Add human.h.
80278         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
80279         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
80280         * modules/lchown (EXTRA_DIST): Add lchown.h.
80281         * modules/long-options (EXTRA_DIST): Add long-options.h.
80282         * modules/lstat (EXTRA_DIST): Add lstat.h.
80283         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
80284         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
80285         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
80286         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
80287         * modules/memxor (EXTRA_DIST): Add memxor.h.
80288         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
80289         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
80290         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
80291         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
80292         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
80293         * modules/physmem (EXTRA_DIST): Add physmem.h.
80294         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
80295         * modules/posixver (EXTRA_DIST): Add posixver.h.
80296         * modules/quote (EXTRA_DIST): Add quote.h.
80297         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
80298         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
80299         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
80300         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
80301         regex_internal.h regexec.c.
80302         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
80303         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
80304         * modules/same (EXTRA_DIST): Add same.h.
80305         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
80306         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
80307         * modules/savedir (EXTRA_DIST): Add savedir.h.
80308         * modules/sha1 (EXTRA_DIST): Add sha1.h.
80309         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
80310         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
80311         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
80312         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
80313         * modules/strdup (EXTRA_DIST): Add strdup.h.
80314         * modules/strftime (EXTRA_DIST): Add strftime.h.
80315         * modules/strndup (EXTRA_DIST): Add strndup.h.
80316         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
80317         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
80318         * modules/time_r (EXTRA_DIST): Add time_r.h.
80319         * modules/timespec (EXTRA_DIST): Add timespec.h.
80320         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
80321         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
80322         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
80323         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
80324         * modules/userspec (EXTRA_DIST): Add userspec.h.
80325         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
80326         * modules/utimens (EXTRA_DIST): Add utimens.h.
80327         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
80328         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
80329         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
80330         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
80331         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
80332         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
80333         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
80334         * modules/yesno (EXTRA_DIST): Add yesno.h.
80335
80336 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
80337
80338         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
80339
80340         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
80341         * m4/dev-ino.m4, same-inode.m4: Remove.
80342
80343         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
80344         * m4/acl.m4 (AC_FUNC_ACL):
80345         * m4/backupfile.m4 (gl_BACKUPFILE):
80346         * m4/c-strtod.m4 (gl_C99_STRTOLD):
80347         * m4/canon-host.m4 (gl_CANON_HOST):
80348         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
80349         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
80350         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
80351         * m4/cloexec.m4 (gl_CLOEXEC):
80352         * m4/close-stream.m4 (gl_CLOSE_STREAM):
80353         * m4/closeout.m4 (gl_CLOSEOUT):
80354         * m4/dirfd.m4 (gl_FUNC_DIRFD):
80355         * m4/dirname.m4 (gl_DIRNAME):
80356         * m4/exclude.m4 (gl_EXCLUDE):
80357         * m4/exitfail.m4 (gl_EXITFAIL):
80358         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
80359         * m4/file-type.m4 (gl_FILE_TYPE):
80360         * m4/filemode.m4 (gl_FILEMODE):
80361         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
80362         * m4/fpending.m4 (gl_FUNC_FPENDING):
80363         * m4/fprintftime.m4 (gl_FPRINTFTIME):
80364         * m4/fts.m4 (gl_FUNC_FTS):
80365         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
80366         * m4/getdate.m4 (gl_GETDATE):
80367         * m4/gethrxtime.m4 (gl_GETHRXTIME):
80368         * m4/getpagesize.m4 (gl_GETPAGESIZE):
80369         * m4/getpass.m4 (gl_FUNC_GETPASS):
80370         * m4/gettime.m4 (gl_GETTIME):
80371         * m4/getugroups.m4 (gl_GETUGROUPS):
80372         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
80373         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
80374         * m4/hard-locale.m4 (gl_HARD_LOCALE):
80375         * m4/hash.m4 (gl_HASH):
80376         * m4/idcache.m4 (gl_IDCACHE):
80377         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
80378         * m4/lchown.m4 (gl_FUNC_LCHOWN):
80379         * m4/long-options.m4 (gl_LONG_OPTIONS):
80380         * m4/lstat.m4 (gl_FUNC_LSTAT):
80381         * m4/md5.m4 (gl_MD5):
80382         * m4/memcasecmp.m4 (gl_MEMCASECMP):
80383         * m4/memcoll.m4 (gl_MEMCOLL):
80384         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
80385         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
80386         * m4/memxor.m4 (gl_MEMXOR):
80387         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
80388         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
80389         * m4/modechange.m4 (gl_MODECHANGE):
80390         * m4/mountlist.m4 (gl_MOUNTLIST):
80391         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
80392         * m4/openat.m4 (gl_FUNC_OPENAT):
80393         * m4/pathmax.m4 (gl_PATHMAX):
80394         * m4/physmem.m4 (gl_PHYSMEM):
80395         * m4/posixtm.m4 (gl_POSIXTM):
80396         * m4/posixver.m4 (gl_POSIXVER):
80397         * m4/quote.m4 (gl_QUOTE):
80398         * m4/quotearg.m4 (gl_QUOTEARG):
80399         * m4/readtokens.m4 (gl_READTOKENS):
80400         * m4/readutmp.m4 (gl_READUTMP):
80401         * m4/regex.m4 (gl_REGEX):
80402         * m4/safe-read.m4 (gl_SAFE_READ):
80403         * m4/safe-write.m4 (gl_SAFE_WRITE):
80404         * m4/same.m4 (gl_SAME):
80405         * m4/save-cwd.m4 (gl_SAVE_CWD):
80406         * m4/savedir.m4 (gl_SAVEDIR):
80407         * m4/settime.m4 (gl_SETTIME):
80408         * m4/sha1.m4 (gl_SHA1):
80409         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
80410         * m4/stat-macros.m4 (gl_STAT_MACROS):
80411         * m4/stat-time.m4 (gl_STAT_TIME):
80412         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
80413         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
80414         * m4/strdup.m4 (gl_FUNC_STRDUP):
80415         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
80416         * m4/strndup.m4 (gl_FUNC_STRNDUP):
80417         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
80418         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
80419         * m4/time_r.m4 (gl_TIME_R):
80420         * m4/timespec.m4 (gl_TIMESPEC):
80421         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
80422         * m4/unlinkdir.m4 (gl_UNLINKDIR):
80423         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
80424         * m4/userspec.m4 (gl_USERSPEC):
80425         * m4/utimecmp.m4 (gl_UTIMECMP):
80426         * m4/utimens.m4 (gl_UTIMENS):
80427         * m4/xalloc.m4 (gl_XALLOC):
80428         * m4/xgetcwd.m4 (gl_XGETCWD):
80429         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
80430         * m4/xreadlink.m4 (gl_XREADLINK):
80431         * m4/xstrtod.m4 (gl_XSTRTOD):
80432         * m4/yesno.m4 (gl_YESNO):
80433         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
80434         to get the necessary .h files and whatnot.
80435
80436 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
80437             Bruno Haible  <bruno@clisp.org>
80438
80439         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
80440         /bin/sh understanding of '!' conditional negation.
80441
80442 2006-08-21  Jim Meyering  <jim@meyering.net>
80443
80444         * modules/openat (Depends-on): Really alphabetize.
80445
80446         * modules/acl (Depends-on): Add error and quote.
80447
80448         * check-module (find_included_lib_files): Add at-func.c to the
80449         ok-to-include-more-than-once white list.
80450
80451         * modules/openat (Depends-on): Add lstat.  Alphabetize.
80452
80453 2006-08-21  Bruno Haible  <bruno@clisp.org>
80454
80455         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
80456         Emit a pkgdata_DATA variable only if some snippets add contents to it.
80457         Reported by Martin Lambers <marlam@marlam.de>.
80458
80459 2006-08-21  Bruno Haible  <bruno@clisp.org>
80460
80461         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
80462         specify an installation location, don't emit a noinst_LIBRARIES or
80463         noinst_LTLIBRARIES assignment.
80464
80465 2006-08-21  Bruno Haible  <bruno@clisp.org>
80466
80467         BeOS portability.
80468         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
80469         BeOS has mbrtowc() but no <wctype.h>.
80470
80471 2006-08-21  Bruno Haible  <bruno@clisp.org>
80472
80473         BeOS portability.
80474         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
80475         exist.
80476
80477 2006-08-21  Bruno Haible  <bruno@clisp.org>
80478
80479         BeOS portability.
80480         * lib/mbchar.h: Include <wctype.h> only if it exists.
80481
80482 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
80483
80484         Remove files that are no longer needed by their respective modules.
80485         * m4/obstack.m4: Remove.
80486         * m4/strerror_r.m4: Remove.
80487         * m4/uint32_t.m4: Remove.
80488         * m4/uintptr_t.m4: Remove.
80489         * m4/ullong_max.m4: Remove.
80490         * m4/xstrtoimax.m4: Remove.
80491         * m4/xstrtoumax.m4: Remove.
80492
80493         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
80494         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
80495         dependencies now capture this.
80496
80497         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
80498         Do not use AC_LIBSOURCES, since gnulib modules now do this.
80499         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
80500         * m4/human.m4 (gl_HUMAN): Likewise.
80501         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
80502         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
80503
80504         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
80505
80506         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
80507         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
80508         stdint.
80509         * m4/human.m4 (gl_HUMAN): Likewise.
80510         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
80511         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
80512         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
80513         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
80514         * m4/xstrtol (gl_XSTRTOL): Likewise.
80515
80516         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
80517         AC_TYPE_LONG_LONG_INT.
80518         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
80519         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
80520         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
80521         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
80522
80523         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
80524         on stdbool.
80525
80526         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
80527         (gl_PREREQ_XSTRTOUL): Remove.
80528
80529         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
80530
80531         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
80532         mode.
80533
80534 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
80535
80536         Add and change modules to make it easier for coreutils to use
80537         gnulib-tool.
80538         * modules/backupfile (Files): Remove m4/d-ino.m4.
80539         (Depends-on): Add d-ino.
80540         * modules/cycle-check (Depends-on): Add stdint.
80541         (lib_SOURCES): Add cycle-check.h.
80542         * modules/d-ino: New module.
80543         * modules/d-type: New module.
80544         * modules/error (Files): Remove m4/strerror_r.m4.
80545         * modules/filemode (Files): Add m4/st_dm_mode.m4.
80546         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
80547         m4/inttypes_h.m4, m4/uintmax_t.m4.
80548         (Depends-on): Add stdint.
80549         (lib_SOURCES): Add fsusage.h.
80550         * modules/getcwd (Files): Remove d-ino.m4.
80551         (Depends-on): Add d-ino.
80552         * modules/getndelim2 (Depends-on): Add stdint.
80553         * modules/glob (Files): Remove m4/d-type.m4.
80554         (Depends-on): Add d-type.
80555         * modules/host-os: New module.
80556         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
80557         m4/inttypes_h.m4, m4/uintmax_t.m4.
80558         * Depends-on: Add stdint.
80559         (lib_SOURCES): Add human.h.
80560         * modules/inttostr (Files): Remove m4/intmax_t.m4,
80561         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
80562         m4/uintmax_t.m4, m4/ulonglong.m4.
80563         (Depends-on): Add stdint.
80564         (EXTRA_DIST): Add inttostr.h.
80565         * modules/lchmod: New module.
80566         * modules/link-follow: New module.
80567         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
80568         (Depends-on): Add lchmod.
80569         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
80570         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
80571         (Depends-on): Add stdint.
80572         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
80573         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
80574         (Depends-on): Add stdint.
80575         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
80576         * modules/perl: New module.
80577         * modules/regex (Depends-on): Add stdint.
80578         * modules/rmdir-errno: New module.
80579         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
80580         m4/intmax_t.m4.
80581         (Depends-on): Add stdint.
80582         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
80583         m4/uintmax_t.m4.
80584         (Depends-on): Add stdint.
80585         * modules/unlink-busy: New module.
80586         * modules/utimecmp (Depends-on): Add stdint.
80587         * modules/uptime: New module.
80588         * modules/winsz-ioctl: New module.
80589         * modules/winsz-termios: New module.
80590         * modules/xnanosleep (Depends-on): Add nanosleep.
80591         * modules/ullong_max: Remove.
80592         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
80593         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
80594         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
80595         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
80596         (Depends-on): Add inttypes.
80597         (lib_SOURCES): Add xstrtol.h.
80598         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
80599         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
80600         * MODULES.html.sh: Move 'assert' into the assert section.
80601         Move 'dummy' into the linking section.
80602         Remove ullong_max.
80603         Add section for compatibility checks for POSIX:2001 functions,
80604         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
80605         winsz-ioctl, and winsz-termios into it.
80606         Add lchmod.
80607         Add top-level Misc section and put host-os, perl, and uptime
80608         into it.
80609
80610 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
80611
80612         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
80613         now assume the stdint module.  Do not include inttypes.h.
80614         * lib/fsusage.h: Likewise.
80615         * lib/getndelim2.c: Likewise.
80616         * lib/human.h: Likewise.
80617         * lib/inttostr.h: Likewise.
80618         * lib/obstack.c: Likewise.
80619         * lib/regex_internal.h: Likewise.
80620         * lib/tempname.c: Likewise.
80621         * lib/utimecmp.c: Likewise.
80622         * lib/xstrtol.h: Likewise.
80623
80624         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
80625
80626         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
80627         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
80628         * lib/xtime.h: Likewise.
80629
80630 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80631
80632         * modules/openat (Files): Add lib/fchmodat.c.
80633         Fixes problem reported by Jay Youngman.
80634
80635 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80636
80637         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
80638         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
80639
80640 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
80641             Bruno Haible  <bruno@clisp.org>
80642
80643         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
80644         and is a script that invokes bison. Tighten the code. Add comments.
80645
80646 2006-08-18  Jim Meyering  <jim@meyering.net>
80647
80648         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
80649         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
80650         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
80651         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
80652
80653 2006-08-18  Bruno Haible  <bruno@clisp.org>
80654
80655         * modules/bison-i18n: New file.
80656         * MODULES.html.sh (Internationalization functions): Add it.
80657
80658 2006-08-18  Bruno Haible  <bruno@clisp.org>
80659
80660         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
80661         sys/statvfs.h. When getmntinfo was found, check its declaration and
80662         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
80663
80664 2006-08-18  Bruno Haible  <bruno@clisp.org>
80665
80666         * m4/bison-i18n.m4: New file, from bison.
80667
80668 2006-08-18  Bruno Haible  <bruno@clisp.org>
80669
80670         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
80671         (ME_DUMMY): Treat "kernfs" as a dummy.
80672         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
80673
80674 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
80675
80676         Update from coreutils.
80677
80678         2006-08-15  Jim Meyering  <jim@meyering.net>
80679
80680         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
80681
80682         2006-01-17  Jim Meyering  <jim@meyering.net>
80683
80684         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
80685
80686         2006-01-11  Jim Meyering  <jim@meyering.net>
80687
80688         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
80689         Check for the lchmod function.
80690
80691 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
80692
80693         Update from coreutils.
80694
80695         * lib/__fpending.h: Add copyright notice.
80696         * lib/fprintftime.h: Likewise.
80697         * lib/savedir.c: Use (C) in copyright notice.
80698         * lib/savedir.h: Likewise.
80699
80700         2006-08-15  Jim Meyering  <jim@meyering.net>
80701
80702         * lib/at-func.c: New file, with the logic of all emulated at-functions.
80703         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
80704         in support of the EXPECTED_ERRNO macro.
80705         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
80706         definitions.  Instead, define the appropriate symbols and include
80707         "at-func.c".
80708         * lib/mkdirat.c (mkdirat): Likewise.
80709         * lib/fchmodat.c (fchmodat): Likewise.
80710         (ENOSYS): Remove definition.
80711         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
80712         it.  Don't include "unistd--.h" -- it wasn't ever used.
80713
80714         2006-01-17  Jim Meyering  <jim@meyering.net>
80715
80716         Rewrite fts.c not to change the current working directory,
80717         by using openat, fstatat, fdopendir, etc..
80718
80719         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
80720         (HAVE_OPENAT_SUPPORT): Define.
80721         [_LIBC] (fchdir): Don't undef or define; no longer used.
80722         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
80723         Now, this `function' always succeeds, and consumes its file descriptor
80724         parameter -- so callers must not close such FDs.  Update callers.
80725         (diropen_fd, opendirat, cwd_advance_fd): New functions.
80726         (diropen): Add parameter, SP.  Adjust all callers.
80727         Implement using diropen_fd, rather than open.
80728         (fts_open): Initialize new member, fts_cwd_fd.
80729         Remove fts_rft-setting code.
80730         (fts_close): Close fts_cwd_fd, if necessary.
80731         (__opendir2): Define in terms of opendir or opendirat,
80732         depending on whether the FST_NOCHDIR flag is set.
80733         (fts_build): Since fts_safe_changedir consumes its FD, and since
80734         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
80735         and close the dup'd file descriptor upon failure.
80736         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
80737         (fts_safe_changedir): Tweak semantics to reflect that this function
80738         now calls cwd_advance_fd and hence consumes its FD argument.
80739         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
80740         [struct FTS] (fts_rft): Remove now-unused member.
80741         [struct FTS] (fts_cycle.state): Improve comment.
80742
80743         * lib/openat.c (openat_needs_fchdir): New function.
80744         * lib/openat.h (openat_needs_fchdir): Declare it.
80745
80746 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
80747
80748         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
80749         Problem and fix reported by Pádraig Brady in
80750         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
80751
80752 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
80753
80754         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
80755
80756 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
80757
80758         * lib/memcoll.c (memcoll): Optimize for the common case where the
80759         arguments are bytewise equal.
80760
80761 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
80762
80763         * doc/regexprops-generic.texi: Add a copyright notice.
80764
80765 2006-08-15  Bruno Haible  <bruno@clisp.org>
80766
80767         * modules/tmpdir (License): Change to LGPL.
80768
80769 2006-08-15  Bruno Haible  <bruno@clisp.org>
80770
80771         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
80772         module.
80773
80774 2006-08-14  Simon Josefsson  <jas@extundo.com>
80775
80776         * config/srclist.txt: Add gnupload.
80777
80778 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
80779
80780         Change copyright notice from LGPL 2 to GPL 2, since that's the
80781         standard form used in the gnulib repository.
80782         * tests/test-lock.c: Likewise.
80783         * tests/test-stdint.c: Likewise.
80784         * tests/test-tls.c: Likewise.
80785
80786         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
80787         prelude-manager.  User shorter URLs for GNU projects, without '?'.
80788         Add copyright notice.
80789
80790         * check-module: Add copyright notice.  Output a copyright
80791         notice if "--version" is specified.
80792         * modules/COPYING: New file.
80793         * tests/test-getaddrinfo.c: Add copyright notice.
80794         * tests/test-verify.c: Likewise.
80795
80796 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
80797
80798         Change copyright notice from LGPL 2 to GPL 2, since that's the
80799         standard form used in the gnulib repository.
80800         * lib/lock.c: LGPL -> GPL.
80801         * lib/lock.h: Likewise.
80802         * lib/strnlen1.c: Likewise.
80803         * lib/strnlen1.h: Likewise.
80804         * lib/tls.c: Likewise.
80805         * lib/tls.h: Likewise.
80806         * lib/tmpdir.c: Likewise.
80807
80808         * lib/TODO: Remove; this belongs only in coreutils.
80809
80810 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
80811
80812         Add copyright notices to long-enough files that lack them, since
80813         otherwise the files aren't clearly free.  Use the same notice that
80814         getdate.texi already uses.
80815         * doc/alloca-opt.texi: Add copyright notice.
80816         * doc/alloca.texi: Likewise.
80817         * doc/ctime.texi: Likewise.
80818         * doc/functions.texi: Likewise.
80819         * doc/gcd.texi: Likewise.
80820         * doc/gnulib-tool.texi: Likewise.
80821         * doc/inet_ntoa.texi: Likewise.
80822         * doc/visibility.texi: Likewise.
80823
80824         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
80825         * doc/quote.texi: Add copyright notice.
80826
80827         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
80828         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
80829         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
80830         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
80831         is now obsolete, and give a pointer to the Sun list.
80832         Add copyright notice.
80833
80834 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
80835
80836         * config/srclistvars.sh: Add copyright notice.
80837
80838 2006-08-14  Eric Blake  <ebb9@byu.net>
80839
80840         Import the following change from libc:
80841
80842         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
80843
80844         Upstream bug 2997.
80845         * lib/misc/error.c: Add space between program name and message if file
80846         name is missing.
80847
80848 2006-08-12  Karl Berry  <karl@gnu.org>
80849
80850         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
80851         remove, these originate in gnulib now.
80852
80853 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80854
80855         * doc/Makefile (standards.info standards.html standards.dvi):
80856         Also depend on make-stds.texi.
80857
80858 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
80859
80860         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
80861         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
80862
80863         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
80864         in wchar_t.  Problem reported by Eric Blake.
80865
80866         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
80867         LEN is smaller than SIZE.  Suggested by Bruno Haible.
80868         Also, help the compiler to keep LEN in a register.
80869
80870 2006-08-11  Eric Blake  <ebb9@byu.net>
80871
80872         * users.txt: Sort.  Add tar.
80873
80874 2006-08-11  Bruno Haible  <bruno@clisp.org>
80875
80876         * users.txt: New file.
80877
80878 2006-08-11  Bruno Haible  <bruno@clisp.org>
80879
80880         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
80881         before <wchar.h>. Needed for OSF/1 and BSD/OS.
80882
80883 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
80884
80885         * modules/snprintf (Depends-on): Remove minmax.
80886         (Maintainer): Add self and Bruno.
80887
80888 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
80889
80890         * lib/.cppi-disable: Add snprintf.h, socket_.h.
80891         * lib/snprintf.c: Include <errno.h> and <limits.h>.
80892         (EOVERFLOW): Define if the system does not.
80893         Do not include "minmax.h"; it wasn't used.
80894         (snprintf): Don't assume size_t promotes to an unsigned type.
80895         Fix bug when generated string was too long for the buffer: the
80896         buffer's contents are supposed to be the initial prefix of the
80897         output.  Don't assume vasnprintf returns EOVERFLOW if the size
80898         exceeds INT_MAX; do the check ourselves.
80899
80900         Import the following changes from libc:
80901
80902         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
80903
80904         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
80905         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
80906         set wc to the byte which couldn't be converted.
80907         (re_string_reconstruct): Don't clear valid_raw_len before calling
80908         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
80909         tip_context using re_string_context_at.
80910
80911         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
80912
80913         * lib/posix/regex.h: g++ still cannot handled [restrict].
80914
80915         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
80916
80917         * lib/posix/regex.h: Remove special handling for VMS.
80918
80919 2006-08-10  Jim Meyering  <jim@meyering.net>
80920
80921         * modules/same-inode: New module.
80922         * modules/dev-ino: New module.
80923         * modules/cycle-check: Depend on these modules, rather than simply
80924         including their .h files.
80925         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
80926         required via m4/cycle-check.m4.
80927         * modules/same: Depend on new same-inode module, rather than
80928         including same-inode.h.
80929         * modules/chdir-safer: New file.
80930
80931         * modules/chown (Depends-on): Add stat-macros.
80932
80933 2006-08-10  Jim Meyering  <jim@meyering.net>
80934
80935         * m4/cycle-check.m4: New file.
80936         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
80937         * m4/dev-ino.m4, m4/same-inode.m4: New files.
80938
80939 2006-08-10  Eric Blake  <ebb9@byu.net>
80940
80941         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
80942         in from original proposal.
80943
80944 2006-08-10  Eric Blake  <ebb9@byu.net>
80945         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
80946
80947         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
80948         namespace.
80949
80950 2006-08-10  Bruno Haible  <bruno@clisp.org>
80951
80952         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
80953         as well.
80954
80955 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80956
80957         Sync from coreutils.
80958
80959         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
80960
80961         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
80962         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
80963
80964 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80965
80966         * modules/restrict: Remove; no longer needed now that we assume
80967         Autoconf 2.59 or later.
80968         * MODULES.html.sh: Remove 'restrict'.
80969         * modules/argp (Depends-on): Remove 'restrict'.
80970         * modules/base64 (Depends-on): Likewise.
80971         * modules/gc (Depends-on): Likewise.
80972         * modules/getaddrinfo (Depends-on): Likewise.
80973         * modules/glob (Depends-on): Likewise.
80974         * modules/inet_ntop (Depends-on): Likewise.
80975         * modules/inet_pton (Depends-on): Likewise.
80976         * modules/memxor (Depends-on): Likewise.
80977         * modules/regex (Depends-on): Likewise.
80978         * modules/strtok_r (Depends-on): Likewise.
80979         * modules/time_r (Depends-on): Likewise.
80980
80981 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80982
80983         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
80984         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
80985         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
80986         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
80987         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
80988         * m4/memxor.m4 (gl_MEMXOR): Likewise.
80989         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
80990         gl_C_RESTRICT replaced by AC_C_RESTRICT.
80991
80992         Merge from coreutils.
80993         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
80994         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
80995         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
80996         * m4/time_r.m4 (gl_TIME_R): Likewise.
80997
80998 2006-08-09  Karl Berry  <karl@gnu.org>
80999
81000         * config/srclist.txt: no more gettext-tools, per Bruno.
81001
81002 2006-08-08  Eric Blake  <ebb9@byu.net>
81003
81004         * modules/verror: New module.
81005         * MODULES.html.sh: Document it.
81006
81007 2006-08-08  Eric Blake  <ebb9@byu.net>
81008
81009         * lib/verror.h, lib/verror.c: New files.
81010
81011 2006-08-08  Eric Blake  <ebb9@byu.net>
81012
81013         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
81014         verror_at_line output complies with GNU Coding Standards even when
81015         file is NULL.
81016
81017 2006-08-07  Bruno Haible  <bruno@clisp.org>
81018
81019         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
81020         versions of AIX.
81021         Reported by Ralf Wildenhues.
81022
81023 2006-08-07  Bruno Haible  <bruno@clisp.org>
81024
81025         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
81026         in an AC_DEFUN. Needed so that the autoconf snippets can use
81027         AC_REQUIRE.
81028
81029 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81030
81031         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
81032         Initialize pkgdata_DATA.
81033         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
81034         overriding it.
81035
81036 2006-08-06  Eric Blake  <ebb9@byu.net>
81037
81038         * lib/error.h: Fold in some upstream changes from glibc.
81039         * lib/error.c: Likewise.
81040
81041 2006-08-04  Bruno Haible  <bruno@clisp.org>
81042
81043         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
81044         Make the mostlyclean-local rule depend on mostlyclean-generic.
81045         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
81046
81047 2006-07-31  Bruno Haible  <bruno@clisp.org>
81048
81049         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
81050         <stdlib.h>, <string.h>.
81051
81052 2006-07-30  Bruno Haible  <bruno@clisp.org>
81053
81054         * modules/readlink (License): Change to LGPL.
81055
81056 2006-07-30  Bruno Haible  <bruno@clisp.org>
81057
81058         * modules/javaversion (Makefile.am): Distribute javaversion.java and
81059         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
81060         set PKGDATADIR to point to it.
81061
81062 2006-07-30  Bruno Haible  <bruno@clisp.org>
81063
81064         * modules/csharpexec (configure.ac): Comment out macro invocation.
81065         * modules/javaexec (configure.ac): Likewise.
81066         * modules/javacomp-script (configure.ac): Likewise.
81067
81068         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
81069
81070 2006-07-30  Bruno Haible  <bruno@clisp.org>
81071
81072         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
81073         linked-list.
81074
81075 2006-07-30  Bruno Haible  <bruno@clisp.org>
81076
81077         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
81078
81079 2006-07-30  Bruno Haible  <bruno@clisp.org>
81080
81081         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
81082         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
81083         get removed.
81084
81085 2006-07-29  Bruno Haible  <bruno@clisp.org>
81086
81087         Make it possible for gnulib-tool to work with locally modified or
81088         augmented gnulib repositories.
81089         * gnulib-tool (func_usage): Document --local-dir option.
81090         (local_gnulib_dir): New variable.
81091         Handle --local-dir option.
81092         (func_lookup_file): New function.
81093         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
81094         (func_get_description, func_get_filelist, func_get_description,
81095         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
81096         func_get_automake_snippet, func_get_include_directive,
81097         func_get_license, func_get_maintainer): Use func_lookup_file.
81098         (func_import, func_create_testdir): Use func_lookup_file.
81099
81100 2006-07-29  Bruno Haible  <bruno@clisp.org>
81101
81102         * modules/setenv (Depends-on): Add unistd.
81103
81104 2006-07-29  Bruno Haible  <bruno@clisp.org>
81105
81106         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
81107
81108 2006-07-29  Bruno Haible  <bruno@clisp.org>
81109
81110         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
81111
81112 2006-07-29  Bruno Haible  <bruno@clisp.org>
81113
81114         * gnulib-tool (import, update): If there is no Makefile.am, look at
81115         aclocal.m4, instead of bailing out.
81116
81117 2006-07-29  Bruno Haible  <bruno@clisp.org>
81118
81119         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
81120         Categorize the options by when they are useful.
81121
81122 2006-07-29  Bruno Haible  <bruno@clisp.org>
81123
81124         * gnulib-tool (func_usage): Document option --no-libtool.
81125         Handle option --no-libtool.
81126         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
81127         for changed semantics of $libtool variable.
81128         (func_import): Likewise. If libtool is not used, show this through
81129         an option --no-libtool.
81130         (func_create_testdir): Update.
81131
81132 2006-07-29  Bruno Haible  <bruno@clisp.org>
81133
81134         * gnulib-tool (func_import): Extend error message about missing
81135         --doc-base.
81136
81137 2006-07-29  Bruno Haible  <bruno@clisp.org>
81138
81139         * gnulib-tool (func_import): Don't create the $docbase directory if
81140         there is no file to store there.
81141
81142 2006-07-29  Bruno Haible  <bruno@clisp.org>
81143
81144         * gnulib-tool (autoconf_minversion): If a --dir option is given and
81145         relevant, look for configure.ac there, not in the current directory.
81146         Also use a simple search for AC_PREREQ, not "autoconf --trace".
81147
81148 2006-07-29  Bruno Haible  <bruno@clisp.org>
81149
81150         * gnulib-tool (SORT): New variable.
81151         (func_usage): Undocument --assume-autoconf option.
81152         Remove --assume-autoconf option handling.
81153         (autoconf_minversion): Determine from the contents of configure.ac.
81154         (func_import): Remove autoconf_minversion handling.
81155         Suggested by Eric Blake.
81156
81157 2006-07-29  Bruno Haible  <bruno@clisp.org>
81158
81159         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
81160
81161 2006-07-29  Bruno Haible  <bruno@clisp.org>
81162
81163         * config/srclist.txt (*setenv.[ch]): Remove rules.
81164
81165 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81166
81167         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
81168
81169 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81170
81171         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
81172         arpa/inet.h.
81173
81174 2006-07-28  Simon Josefsson  <jas@extundo.com>
81175
81176         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
81177         * modules/inet_pton (Depends-on): Likewise.
81178
81179 2006-07-28  Simon Josefsson  <jas@extundo.com>
81180
81181         * m4/netinet_in_h.m4: New file.
81182
81183 2006-07-28  Simon Josefsson  <jas@extundo.com>
81184
81185         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
81186         #include's.
81187
81188 2006-07-28  Simon Josefsson  <jas@extundo.com>
81189
81190         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
81191         #include's.
81192
81193 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
81194
81195         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
81196         setgid on directories only if they set these bits.
81197         * lib/modechange.h: Remove obsolete comment about masks.
81198
81199 2006-07-28  Eric Blake  <ebb9@byu.net>
81200
81201         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
81202         macro expansion.
81203
81204 2006-07-28  Bruno Haible  <bruno@clisp.org>
81205
81206         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
81207
81208 2006-07-28  Bruno Haible  <bruno@clisp.org>
81209
81210         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
81211
81212 2006-07-28  Bruno Haible  <bruno@clisp.org>
81213
81214         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
81215         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
81216         Define fallbacks.
81217         Avoids link error on FreeBSD 4.x.
81218         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
81219
81220         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
81221         encoding.
81222         * lib/mbswidth.c (iswcntrl): Likewise.
81223
81224 2006-07-27  Bruno Haible  <bruno@clisp.org>
81225
81226         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
81227         test.
81228
81229 2006-07-27  Bruno Haible  <bruno@clisp.org>
81230
81231         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
81232         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
81233         defined.
81234
81235 2006-07-26  Eric Blake  <ebb9@byu.net>
81236
81237         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
81238
81239 2006-07-26  Eric Blake  <ebb9@byu.net>
81240
81241         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
81242         like mingw that lack mkstemp.
81243         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
81244         avoid compilation warning on mingw.
81245
81246 2006-07-26  Bruno Haible  <bruno@clisp.org>
81247
81248         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
81249         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
81250         INT_FAST*_MIN, INTPTR_MIN.
81251
81252 2006-07-25  Bruno Haible  <bruno@clisp.org>
81253
81254         * modules/version-etc (Depends-on): Add stdarg.
81255
81256 2006-07-25  Bruno Haible  <bruno@clisp.org>
81257
81258         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
81259         complex commands.
81260
81261 2006-07-25  Bruno Haible  <bruno@clisp.org>
81262
81263         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
81264         defined in <stdarg.h> or config.h.
81265
81266 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
81267
81268         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
81269         (gl_STDIO_SAFER): Remove.
81270
81271 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
81272
81273         * MODULES.html.sh (File stream based Input/Output):
81274         Add fopen-safer, tmpfile-safer; remove stdio-safer.
81275         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
81276         * modules/fopen-safer, modules/tmpfile-safer: New files.
81277         * modules/stdio-safer: Remove.
81278
81279 2006-07-24  Bruno Haible  <bruno@clisp.org>
81280
81281         * modules/tmpdir: New file.
81282         * MODULES.html.sh (File system functions): Add it.
81283
81284 2006-07-24  Bruno Haible  <bruno@clisp.org>
81285
81286         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
81287         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
81288
81289 2006-07-24  Bruno Haible  <bruno@clisp.org>
81290
81291         * modules/clean-temp: New file.
81292
81293 2006-07-24  Bruno Haible  <bruno@clisp.org>
81294
81295         * m4/tmpdir.m4: New file, from GNU gettext.
81296
81297 2006-07-24  Bruno Haible  <bruno@clisp.org>
81298
81299         * lib/tmpdir.h: New file, from GNU gettext.
81300         * lib/tmpdir.c: New file, from GNU gettext.
81301
81302 2006-07-24  Bruno Haible  <bruno@clisp.org>
81303
81304         * lib/clean-temp.h: New file, from GNU gettext.
81305         * lib/clean-temp.c: New file, from GNU gettext.
81306
81307 2006-07-23  Eric Blake  <ebb9@byu.net>
81308
81309         * modules/stdio-safer (Files): Add tmpfile-safer.c.
81310         (Depends-on): Add binary-io.
81311
81312 2006-07-23  Eric Blake  <ebb9@byu.net>
81313
81314         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
81315
81316 2006-07-23  Eric Blake  <ebb9@byu.net>
81317
81318         * lib/tmpfile-safer.c: New file.
81319         * lib/stdio-safer.h (fopen_safer): Add prototype.
81320         * lib/stdio--.h (tmpfile): Make safer.
81321
81322 2006-07-23  Bruno Haible  <bruno@clisp.org>
81323
81324         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
81325         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
81326         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
81327         gl_linked_remove_at): Use it.
81328
81329 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81330         and Simon Josefsson <jas@extundo.com>
81331
81332         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
81333
81334         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
81335
81336 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
81337
81338         * modules/close-stream: New file.
81339         * modules/closeout (Description): Make it clear that it exits
81340         with a diagnostic on error.
81341         (Depends-on): Add close-stream.  Remove fpending, stdbool.
81342         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
81343
81344 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
81345
81346         * m4/close-stream.m4: New file.
81347
81348 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
81349
81350         * lib/close-stream.c, lib/close-stream.h: New files.
81351
81352 2006-07-22  Bruno Haible  <bruno@clisp.org>
81353
81354         Merge from GNU gettext 0.15.
81355
81356         2006-05-01  Bruno Haible  <bruno@clisp.org>
81357
81358                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
81359
81360         2006-07-22  Bruno Haible  <bruno@clisp.org>
81361
81362                 * modules/javaversion: New file.
81363                 * MODULES.html.sh (Java): Add javaversion.
81364
81365         2006-03-12  Bruno Haible  <bruno@clisp.org>
81366
81367                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
81368
81369         2005-12-04  Bruno Haible  <bruno@clisp.org>
81370
81371                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
81372                 (untested).
81373
81374         2006-06-21  Bruno Haible  <bruno@clisp.org>
81375
81376                 Avoid warnings from recent versions of mcs.
81377                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
81378                 -o, -L, -r any more. Use options documented since mcs-1.0
81379                 instead. Similarly for -g.
81380
81381         2005-12-04  Bruno Haible  <bruno@clisp.org>
81382
81383                 * build-aux/csharpcomp.sh.in: Suffix for resources is
81384                 .resources, not .resource.
81385
81386         2005-07-09  Bruno Haible  <bruno@clisp.org>
81387
81388                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
81389                 add a .dll suffix.
81390                 Reported by Mark Junker <mjscod@gmx.de>.
81391
81392         2006-07-22  Bruno Haible  <bruno@clisp.org>
81393
81394                 * modules/gettext: Upgrade to gettext-0.15.
81395                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
81396                 m4/visibility.m4.
81397                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
81398
81399 2006-07-22  Bruno Haible  <bruno@clisp.org>
81400
81401         Merge from GNU gettext 0.15.
81402
81403         2006-03-25  Bruno Haible  <bruno@clisp.org>
81404
81405                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
81406
81407         2006-07-21  Bruno Haible  <bruno@clisp.org>
81408
81409                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
81410                 "1.1".
81411
81412         2006-05-09  Bruno Haible  <bruno@clisp.org>
81413
81414                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
81415                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
81416                 for the conftestver execution.
81417
81418         2006-05-01  Bruno Haible  <bruno@clisp.org>
81419
81420                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
81421                 optional target-version argument. Verify that the compiler
81422                 groks source of the specified source-version, or add -source
81423                 option as necessary. Verify that the compiler produces
81424                 bytecode in the specified target-version, or add -target and
81425                 -source options as necessary. Make the result of the test
81426                 available as variable CONF_JAVAC. Also log error output in
81427                 config.log.
81428
81429         2006-03-11  Bruno Haible  <bruno@clisp.org>
81430
81431                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
81432
81433         2006-05-09  Bruno Haible  <bruno@clisp.org>
81434
81435                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
81436                 CLASSPATH_SEPARATOR to a semicolon.
81437
81438         2006-03-12  Bruno Haible  <bruno@clisp.org>
81439
81440                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
81441                 available as variable CONF_JAVA, for subsequent autoconf
81442                 tests. Also log error output in config.log.
81443
81444         2006-07-19  Bruno Haible  <bruno@clisp.org>
81445
81446                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
81447                 that getline works on glibc2 systems. Needed to avoid trouble
81448                 in relocatable.c.
81449                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
81450
81451         2005-12-04  Bruno Haible  <bruno@clisp.org>
81452
81453                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
81454                 launcher (untested).
81455
81456         2005-12-04  Bruno Haible  <bruno@clisp.org>
81457
81458                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
81459
81460         2006-07-22  Bruno Haible  <bruno@clisp.org>
81461
81462                 * gettext.m4: Update from GNU gettext-0.15.
81463                 * nls.m4: Likewise.
81464                 * po.m4: Likewise.
81465                 * inttypes-pri.m4: Likewise.
81466                 * inttypes-h.m4: Renamed from inttypes.m4.
81467                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
81468
81469 2006-07-22  Bruno Haible  <bruno@clisp.org>
81470
81471         Merge from GNU gettext 0.15.
81472
81473         2005-07-05  Bruno Haible  <bruno@clisp.org>
81474
81475                 * printf-args.c (printf_fetchargs): Work around broken
81476                 definition of wint_t on mingw.
81477
81478         2005-02-12  Bruno Haible  <bruno@clisp.org>
81479
81480                 * xallocsa.h: Add extern "C" for C++.
81481
81482         2006-05-17  Bruno Haible  <bruno@clisp.org>
81483
81484                 Cygwin portability.
81485                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
81486
81487         2006-04-30  Bruno Haible  <bruno@clisp.org>
81488
81489                 * progreloc.c: Include <mach-o/dyld.h> if available.
81490                 (find_executable): Use _NSGetExecutablePath when possible.
81491
81492         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
81493
81494                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
81495                 function.
81496
81497         2005-12-29  Bruno Haible  <bruno@clisp.org>
81498
81499                 * progreloc.c (set_program_name_and_installdir): Fix
81500                 compilation error.
81501
81502         2005-12-04  Bruno Haible  <bruno@clisp.org>
81503
81504                 Cygwin portability.
81505                 * progreloc.c: Include <windows.h> also on Cygwin.
81506                 (find_executable): Add support for Cygwin.
81507                 (set_program_name_and_installdir): Handle also platforms with
81508                 nonempty EXEEXT.
81509
81510         2006-07-11  Bruno Haible  <bruno@clisp.org>
81511
81512                 * javacomp.c: Fix a comment.
81513                 Reported by Jim Meyering.
81514
81515         2006-04-30  Bruno Haible  <bruno@clisp.org>
81516
81517                 * javacomp.h (compile_java_class): Add source_version,
81518                 target_version arguments.
81519                 * javacomp.c: Rewritten to choose only a compiler that
81520                 respects the specified source_version and target_version.
81521
81522         2006-06-27  Bruno Haible  <bruno@clisp.org>
81523
81524                 Assume correct S_ISDIR macro.
81525                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
81526
81527         2006-07-22  Bruno Haible  <bruno@clisp.org>
81528
81529                 * javaversion.h: New file, from GNU gettext.
81530                 * javaversion.c: New file, from GNU gettext.
81531                 * javaversion.java: New file, from GNU gettext.
81532                 * javaversion.class: New file, from GNU gettext.
81533
81534         2006-05-17  Bruno Haible  <bruno@clisp.org>
81535
81536                 Cygwin portability.
81537                 * javaexec.c (execute_java_class): Test for jview program
81538                 also on Cygwin.
81539
81540         2006-04-09  Bruno Haible  <bruno@clisp.org>
81541
81542                 * fatal-signal.c: Don't include string.h.
81543                 (at_fatal_signal): Use a copying loop instead of memcpy.
81544
81545         2005-12-04  Bruno Haible  <bruno@clisp.org>
81546
81547                 * csharpexec.c: Add support for 'clix' launcher (untested).
81548                 (execute_csharp_using_sscli): New function.
81549                 (execute_csharp_program): Call it.
81550
81551         2006-06-21  Bruno Haible  <bruno@clisp.org>
81552
81553                 Avoid warnings from recent versions of mcs.
81554                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
81555                 -o, -L, -r any more. Use options documented since mcs-1.0
81556                 instead. Similarly for -g.
81557
81558         2005-07-09  Bruno Haible  <bruno@clisp.org>
81559
81560                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
81561                 add a .dll suffix.
81562                 Reported by Mark Junker <mjscod@gmx.de>.
81563
81564         2006-06-17  Bruno Haible  <bruno@clisp.org>
81565
81566                 * config.charset: Update for NetBSD 3.0.
81567
81568         2006-05-17  Bruno Haible  <bruno@clisp.org>
81569
81570                 Cygwin portability.
81571                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
81572
81573         2006-05-16  Bruno Haible  <bruno@clisp.org>
81574
81575                 * localcharset.c [CYGWIN]: Include <windows.h>.
81576                 (get_charset_aliases): For Cygwin, return the same CPxxx
81577                 aliases list as under WIN32.
81578                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
81579                 the environment variables. Fall back to GetACP().
81580
81581         2006-04-05  Bruno Haible  <bruno@clisp.org>
81582
81583                 * config.charset: Update Juan Manuel Guerrero's address.
81584
81585         2005-02-12  Bruno Haible  <bruno@clisp.org>
81586
81587                 * allocsa.h: Add extern "C" for C++.
81588
81589         2005-02-10  Bruno Haible  <bruno@clisp.org>
81590
81591                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
81592                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
81593
81594         2006-07-22  Bruno Haible  <bruno@clisp.org>
81595
81596                 * gettext.h: Update to GNU gettext-0.15.
81597
81598 2006-07-22  Bruno Haible  <bruno@clisp.org>
81599
81600         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
81601         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
81602         lib-prefix.m4, longdouble.m4, ssize_t.m4.
81603
81604 2006-07-21  Eric Blake  <ebb9@byu.net>
81605
81606         * modules/stdlib-safer: New file.
81607         * MODULES.html.sh (File stream based Input/Output): Add
81608         stdlib-safer.
81609
81610 2006-07-21  Eric Blake  <ebb9@byu.net>
81611
81612         * lib/stdlib-safer.h: New file from coreutils, required by
81613         stdlib--.h.
81614
81615 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
81616
81617         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
81618
81619 2006-07-20  Bruno Haible  <bruno@clisp.org>
81620
81621         * gnulib-tool: Recognize new option --assume-autoconf.
81622         (autoconf_minversion): New variable.
81623         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
81624
81625 2006-07-20  Bruno Haible  <bruno@clisp.org>
81626
81627         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
81628
81629 2006-07-19  Derek R. Price  <derek@ximbiot.com>
81630
81631         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
81632         Reindent and repaginate.
81633
81634 2006-07-19  Derek Price  <derek@ximbiot.com>
81635
81636         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
81637         Correct grammar.
81638
81639 2006-07-17  Bruno Haible  <bruno@clisp.org>
81640
81641         * modules/list: New file.
81642         * modules/array-list: New file.
81643         * modules/carray-list, modules/carray-list-tests: New files.
81644         * modules/linked-list, modules/linked-list-tests: New files.
81645         * modules/avltree-list, modules/avltree-list-tests: New files.
81646         * modules/rbtree-list, modules/rbtree-list-tests: New files.
81647         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
81648         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
81649         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
81650         * modules/oset: New file.
81651         * modules/array-oset: New file.
81652         * modules/avltree-oset, modules/avltree-oset-tests: New files.
81653         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
81654         * tests/test-carray_list.c: New file.
81655         * tests/test-linked_list.c: New file.
81656         * tests/test-avltree_list.c: New file.
81657         * tests/test-rbtree_list.c: New file.
81658         * tests/test-linkedhash_list.c: New file.
81659         * tests/test-avltreehash_list.c: New file.
81660         * tests/test-rbtreehash_list.c: New file.
81661         * tests/test-avltree_oset.c: New file.
81662         * tests/test-rbtree_oset.c: New file.
81663         * MODULES.html.sh (Container data structures): New section.
81664
81665 2006-07-17  Bruno Haible  <bruno@clisp.org>
81666
81667         * m4/gl_list.m4: New file.
81668
81669 2006-07-17  Bruno Haible  <bruno@clisp.org>
81670
81671         * lib/gl_list.h: New file.
81672         * lib/gl_list.c: New file.
81673         * lib/gl_array_list.h: New file.
81674         * lib/gl_array_list.c: New file.
81675         * lib/gl_carray_list.h: New file.
81676         * lib/gl_carray_list.c: New file.
81677         * lib/gl_linked_list.h: New file.
81678         * lib/gl_linked_list.c: New file.
81679         * lib/gl_anylinked_list1.h: New file.
81680         * lib/gl_anylinked_list2.h: New file.
81681         * lib/gl_avltree_list.h: New file.
81682         * lib/gl_avltree_list.c: New file.
81683         * lib/gl_anyavltree_list1.h: New file.
81684         * lib/gl_anyavltree_list2.h: New file.
81685         * lib/gl_rbtree_list.h: New file.
81686         * lib/gl_rbtree_list.c: New file.
81687         * lib/gl_anyrbtree_list1.h: New file.
81688         * lib/gl_anyrbtree_list2.h: New file.
81689         * lib/gl_anytree_list1.h: New file.
81690         * lib/gl_anytree_list2.h: New file.
81691         * lib/gl_linkedhash_list.h: New file.
81692         * lib/gl_linkedhash_list.c: New file.
81693         * lib/gl_anyhash_list1.h: New file.
81694         * lib/gl_anyhash_list2.h: New file.
81695         * lib/gl_avltreehash_list.h: New file.
81696         * lib/gl_avltreehash_list.c: New file.
81697         * lib/gl_rbtreehash_list.h: New file.
81698         * lib/gl_rbtreehash_list.c: New file.
81699         * lib/gl_anytreehash_list1.h: New file.
81700         * lib/gl_anytreehash_list2.h: New file.
81701
81702         * lib/gl_oset.h: New file.
81703         * lib/gl_oset.c: New file.
81704         * lib/gl_array_oset.h: New file.
81705         * lib/gl_array_oset.c: New file.
81706         * lib/gl_avltree_oset.h: New file.
81707         * lib/gl_avltree_oset.c: New file.
81708         * lib/gl_rbtree_oset.h: New file.
81709         * lib/gl_rbtree_oset.c: New file.
81710         * lib/gl_anytree_oset.h: New file.
81711
81712 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
81713
81714         * m4/mkancesdirs.m4: New file.
81715         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
81716         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
81717         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
81718         it.
81719
81720 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
81721
81722         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
81723         * lib/mkancesdirs.h: New files.
81724         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
81725         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
81726         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
81727         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
81728         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
81729         callers changed.  Revamp internals significantly, by not
81730         attempting to create directories that are temporarily more
81731         permissive than the final results.  Do not attempt to use
81732         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
81733         This removes some race conditions, fixes some bugs, and simplifies
81734         things.  Use new dirchownmod function to do owner and mode changes.
81735         * lib/mkdir-p.h: Likewise.
81736         * lib/modechange.c (octal_to_mode): New function.
81737         (struct mode_change): New member mentioned.
81738         (make_node_op_equals): New arg mentioned.  All callers changed.
81739         (mode_compile): Keep track of which mode bits the user has explicitly
81740         mentioned.
81741         (mode_adjust): New arg DIR, so that we implement the X op correctly.
81742         New arg PMODE_BITS, to keep track of which mode bits the user
81743         mentioned; it treats S_ISUID and S_ISGID speciall.
81744         All callers changed.
81745         * lib/modechange.h: Likewise.
81746
81747 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
81748
81749         * MODULES.html.sh: Add mkancestors.
81750         * modules/mkancesdirs: New module.
81751         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
81752         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
81753         The chdir-safer and afs files are now orphans; I'll remove them
81754         unless someone speaks up.
81755         Add lib/dirchownmod.c, lib/dirchownmod.h.
81756         (Depends-on): Remove alloca, chown, save-cwd, dirname.
81757         Add lchown, mkancesdirs.
81758         (Maintainer): Add self.
81759
81760 2006-07-15  Karl Berry  <karl@gnu.org>
81761
81762         * gnulib-tool: help message wording/arrangement.
81763
81764 2006-07-14  Simon Josefsson  <jas@extundo.com>
81765
81766         * doc/gnulib.texi (Libtool and Windows): New section.
81767
81768 2006-07-12  Simon Josefsson  <jas@extundo.com>
81769
81770         * modules/gendocs (License): Fix license, approved by Karl.
81771
81772 2006-07-12  Eric Blake  <ebb9@byu.net>
81773
81774         * MODULES.html.sh: Add gendocs.
81775
81776 2006-07-11  Eric Blake  <ebb9@byu.net>
81777
81778         * modules/fdl: New module, to install doc/fdl.texi.
81779         * MODULES.html.sh: Add new section for documentation modules.
81780         * gnulib-tool: Avoid space-tab.
81781         (--doc-base): New option, to manage files from doc.
81782
81783 2006-07-11  Eric Blake  <ebb9@byu.net>
81784
81785         * m4/absolute-header.m4: Fix comments to match recent change.
81786
81787 2006-07-11  Eric Blake  <ebb9@byu.net>
81788
81789         * gnulib-tool: List --doc-base before --tests-base.
81790
81791 2006-07-11  Derek R. Price  <derek@ximbiot.com>
81792
81793         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
81794
81795 2006-07-11  Bruno Haible  <bruno@clisp.org>
81796
81797         * README: Mention where to put documentation.
81798
81799 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81800
81801         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
81802
81803 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
81804
81805         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
81806         to stdint.m4.
81807
81808 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
81809
81810         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
81811         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
81812         "no/such/file/stdint.h" when there is no such file, so that
81813         the resulting C code can be parsed by dodgy compilers.
81814         Problems reported by Bob Proulx.
81815
81816 2006-07-10  Derek R. Price  <derek@ximbiot.com>
81817
81818         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
81819         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
81820         macros into the GNU _D_EXACT_NAMLEN.
81821         * lib/savedir.c:  Likewise.
81822         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
81823
81824 2006-07-10  Derek R. Price  <derek@ximbiot.com>
81825         and Paul Eggert  <eggert@cs.ucla.edu>
81826
81827         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
81828         * m4/savedir.m4:
81829         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
81830         macros into the GNU _D_EXACT_NAMLEN.
81831
81832 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
81833
81834         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
81835         around the absolute name, to work around a problem with the HP-UX
81836         11.23 native C compiler, reported by Bob Proulx.
81837
81838 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
81839
81840         * doc/maintain.texi, make-stds.texi: Sync from
81841         <http://savannah.gnu.org/projects/gnustandards>.
81842
81843 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
81844
81845         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
81846
81847 2006-07-09  Jim Meyering  <jim@meyering.net>
81848
81849         * m4/glob.m4: Remove a doubled word in a comment.
81850
81851 2006-07-09  Jim Meyering  <jim@meyering.net>
81852
81853         * lib/argp-pv.c: Remove a doubled word in a comment.
81854         * lib/check-version.c (check_version): Likewise.
81855         * lib/javacomp.c (compile_java_class): Likewise.
81856
81857 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
81858
81859         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
81860         for the benefit of people using Autoconf 2.60.  If you want to
81861         support older Autoconf versions you can copy m4/onceonly_2_57.m4
81862         (or m4/onceonly.m4, if pre-2.57) manually.
81863
81864 2006-07-08  Jim Meyering  <jim@meyering.net>
81865
81866         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
81867         comment.
81868         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
81869         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
81870         comment.
81871
81872 2006-07-08  Jim Meyering  <jim@meyering.net>
81873
81874         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
81875
81876 2006-07-07  Simon Josefsson  <jas@extundo.com>
81877
81878         * tests/test-crc.c: Change expected crc value, the test vector
81879         were probably computed using the old broken crc.c?
81880
81881 2006-07-06  Simon Josefsson  <jas@extundo.com>
81882
81883         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
81884         now the canonical place for the M4 file).
81885
81886         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
81887         from the sys_socket dependency now.
81888
81889         * modules/inet_pton (Files): Ditto.
81890
81891         * modules/inet_ntop (Files): Ditto.
81892
81893 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
81894
81895         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
81896         not gl_PREREQ_GETUSERSHELL.
81897
81898 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81899
81900         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
81901         with only one argument, for Autoconf 2.60.
81902         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
81903         expand to nothing, so add a shell command to avoid syntax error.
81904         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
81905
81906 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81907
81908         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
81909
81910 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
81911
81912         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
81913         no longer needed.  Check for isblank decl.
81914         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
81915         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
81916         of existence.
81917
81918 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
81919
81920         * lib/getloadavg.c: Use __VMS, not VMS.
81921         * lib/getopt.c: Likewise.
81922         * lib/getpagesize.h: Likewise.
81923         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
81924         and probably does not work.
81925
81926 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
81927
81928         * lib/.cppi-disable: Add wcwidth.
81929         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
81930         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
81931         (ISGRAPH): Remove.  All uses changed to isgraph.
81932         (FOLD) [!defined _LIBC]: Remove special case.
81933         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
81934         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
81935         HAVE_ISBLANK.
81936         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
81937         case.
81938
81939 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
81940
81941         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
81942         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
81943         brackets.  Other minor changes to suppress some compiler
81944         warnings.
81945
81946 2006-07-06  Derek R. Price  <derek@ximbiot.com>
81947         and Paul Eggert  <eggert@cs.ucla.edu>
81948
81949         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
81950         of invoking obsolescent AC_HEADER_DIRENT macro.
81951         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
81952         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
81953         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
81954         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
81955         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
81956         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
81957         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
81958         * m4/readdir.m4: Remove; no longer needed.
81959
81960 2006-07-06  Derek R. Price  <derek@ximbiot.com>
81961         and Paul Eggert  <eggert@cs.ucla.edu>
81962
81963         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
81964         Don't worry about this obsolete case any more.
81965         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
81966         directories.
81967         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
81968         worry about this obsolete case any more.
81969         * lib/fts.c: Likewise.
81970         * lib/getcwd.c: Likewise.
81971         * lib/glob.h: Likewise.
81972         * lib/savedir.c: Likewise.
81973
81974 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
81975
81976         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
81977         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
81978         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
81979         needed.
81980         All uses removed.
81981         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
81982         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
81983         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
81984         needed.
81985         * m4/getdate.m4 (gl_GETDATE): Likewise.
81986         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
81987         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
81988         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
81989         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
81990         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
81991         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
81992         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
81993         needed.
81994
81995 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
81996
81997         * lib/memcasecmp.c: Include <limits.h>.
81998         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
81999         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
82000         Don't assume isdigit succeeds only on '0' through '9'.
82001
82002 2006-07-05  Eric Blake  <ebb9@byu.net>
82003
82004         * modules/getaddrinfo (Depends-on): Add snprintf.
82005
82006 2006-07-05  Eric Blake  <ebb9@byu.net>
82007
82008         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
82009         to avoid 'header present but could not be compiled' on cygwin.
82010
82011 2006-07-05  Eric Blake  <ebb9@byu.net>
82012
82013         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
82014         missing from netdb.h.
82015         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
82016
82017 2006-07-05  Derek R. Price  <derek@ximbiot.com>
82018
82019         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
82020         no longer needed.
82021         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
82022         * m4/getdate.m4 (gl_GETDATE): Likewise.
82023         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
82024         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
82025         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
82026         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
82027         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
82028
82029 2006-07-05  Derek R. Price  <derek@ximbiot.com>
82030
82031         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
82032         All uses of is_space replaced by isspace.
82033         * lib/exit.h: Don't talk about STDC_HEADERS.
82034         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
82035         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
82036         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
82037         replaced by isprint etc.
82038         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
82039         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
82040         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
82041         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
82042         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
82043         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
82044
82045 2006-07-05  Bruno Haible  <bruno@clisp.org>
82046
82047         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
82048         the function exists, before testing against AIX.
82049         Reported by Martin Lambers <marlam@marlam.de>.
82050
82051 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
82052
82053         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
82054         From Mark D. Baushke.
82055
82056 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
82057
82058         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
82059         to the absolute name, not just one, to bypass Sun C 5.8's
82060         "warning: #include of /usr/include/... may be non-portable".
82061
82062 2006-07-04  Eric Blake  <ebb9@byu.net>
82063
82064         * modules/dirname-tests: New test module.
82065         * tests/test-dirname.c: New file, replacing dirname.c
82066         TEST_DIRNAME section that was recently deleted.
82067
82068 2006-07-04  Bruno Haible  <bruno@clisp.org>
82069
82070         Assume ANSI C header files and <ctype.h> functions.
82071         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
82072         (mbsnwidth): Use isprint, iscntrl instead.
82073
82074 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
82075
82076         Merge from coreutils.
82077         * MODULES.html.sh: Add xstrtold.
82078         * modules/xstrtold: New file.
82079         * modules/cycle-check (Files): Add lib/same-inode.h.
82080         * modules/dirname (Files): Add m4/double-slash-root.m4.
82081         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
82082         * modules/mkdir-p (Files): Add lib/same-inode.h.
82083         * modules/same (Files): Add lib/same-inode.h.
82084
82085 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
82086
82087         * m4/absolute-header.m4: Renamed from full-header-path.m4.
82088         This is to keep the terminology clean; POSIX talks about
82089         "absolute pathnames", not "full pathnames", but the GNU
82090         Coding Standards say to use "path" for something else;
82091         so use "absolute" to keep both sides happy.
82092         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
82093         Set gl_absolute_header, not gl_full_header_path.
82094         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
82095         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
82096         All uses changed.
82097
82098         Merge from coreutils.
82099
82100         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
82101
82102         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
82103         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
82104         want to require the building of c-strtod.o.
82105         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
82106         needs -lm directly.
82107         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
82108
82109         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
82110
82111         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
82112         --as-needed option if available.  Problem reported by Albert Chin in
82113         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
82114         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
82115         cc merely issues a bunch of annoying warnings for --as-needed
82116         (this problem was reported by Bob Proulx).  Also, try linking with
82117         -lm to detect a bug in binutils 2.16 (this problem was reported
82118         by Ralf Wildenhues).
82119
82120         2006-06-18  Jim Meyering  <jim@meyering.net>
82121
82122         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
82123         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
82124         macro.
82125         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
82126         also check for glibc-2.4's abort-inducing bug.
82127
82128         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
82129         Low-probability clean-up should be to use rmdir to get rid of
82130         the just-created directory, not unlink.
82131
82132         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
82133         configure fail, and request a bug report to inform us about it.
82134         Add a comment that, barring reports to the contrary, in 2007 we'll
82135         assume ftruncate is universally available.
82136
82137         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
82138
82139         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
82140
82141         2006-03-12  Jim Meyering  <jim@meyering.net>
82142
82143         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
82144         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
82145         * m4/same.m4 (gl_SAME): Likewise.
82146         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
82147
82148         2006-03-11  Eric Blake  <ebb9@byu.net>
82149
82150         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
82151         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
82152         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
82153         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
82154
82155 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
82156
82157         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
82158         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
82159         reported by Mark D. Baushke, one in
82160         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
82161
82162         Merge from coreutils.
82163
82164         * lib/.cppi-disable: Add stdint_.h.
82165         * lib/.cvsignore: Add stdint.h.
82166
82167         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
82168
82169         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
82170         both double and long double versions.
82171         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
82172         * lib/xstrtold.c: New file.
82173         * lib/xstrtod.h (xstrtold): New decl.
82174
82175         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
82176
82177         * lib/filemode.c (setst): Remove.
82178         (strmode): Rewrite to avoid setst.  This makes the code shorter,
82179         (arguably) clearer, and the generated code is a bit smaller on my
82180         Debian GNU/Linux stable x86 host.
82181
82182         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
82183
82184         * lib/filemode.c: Include "filemode.h" first, to test the interface.
82185         Assume that filemode.h includes sys/types.h and sys/stat.h.
82186         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
82187         (ftypelet): Reorder to put common cases first, for efficiency.
82188         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
82189         to do 'M'.
82190         (strmode): Renamed from mode_string, and now stores 12 bytes instead
82191         of 10, for compatibility with FreeBSD.  All callers changed.
82192         (filemodestring): Now stores 12 bytes instead of 10, and sets file
82193         types that can't be deduced solely from st_mode.  First arg is now a
82194         const pointer.
82195         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
82196         (strmode): Renamed from mode_string.
82197         (filemodestring): New decl.
82198         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
82199         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
82200         needed.
82201         (S_ISPORT, S_ISWHT): New macros, if not already defined.
82202
82203         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
82204
82205         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
82206         fsusage.h now does that.  Include fsusage.h first, to test interface.
82207         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
82208         at most one method (the old code could have generated decls that
82209         didn't conform to C89, not that this was ever exercised).
82210         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
82211
82212         2006-03-19  Jim Meyering  <jim@meyering.net>
82213
82214         Work even in a chroot where d_ino values for entries in "/"
82215         don't match the stat.st_ino values for the same names.
82216         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
82217         number, iterate through all entries again, using lstat instead.
82218         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
82219         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
82220
82221         * lib/getcwd.c (__getcwd): Clarify a comment.
82222         Use memcpy in place of a call to strcpy.
82223
82224         2006-03-12  Jim Meyering  <jim@meyering.net>
82225
82226         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
82227         matches that of the current directory (which we're about to chdir ".."
82228         out of), then save the dev-ino of the parent, instead.
82229
82230         * lib/same-inode.h (SAME_INODE): New file/macro.
82231         * lib/chdir-safer.c (SAME_INODE): Remove definition.
82232         Include "same-inode.h", instead.
82233         * lib/same.c: Likewise.
82234         * lib/cycle-check.h: Include "same-inode.h".
82235         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
82236         * lib/cycle-check.c (SAME_INODE): Remove definition.
82237         * lib/root-dev-ino.h: Include "same-inode.h".
82238
82239         2006-03-11  Eric Blake  <ebb9@byu.net>
82240
82241         * lib/same.c (same_name): s/base_name/last_component/
82242         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
82243         * lib/filenamecat.c (file_name_concat): Likewise.
82244
82245         2006-03-11  Eric Blake  <ebb9@byu.net>,
82246                     Paul Eggert  <eggert@cs.ucla.edu>
82247
82248         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
82249         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
82250         drive prefix.
82251         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
82252         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
82253         (last_component): New method.
82254         * lib/dirname.c (dir_len): Determine when drive letters need a
82255         subsequent slash.  Preserve // when it is special.
82256         (dir_name): Don't append dot when drive letter is absolute.
82257         [TEST_DIRNAME]: Move into a full-blown gnulib test.
82258         * lib/basename.c (base_name): New semantics - malloc the result.
82259         Preserve // when it is special.  Preserve relative files that look
82260         like drive letters.
82261         (base_len): Preserve // when it is special.
82262         (last_component): New method, similar to old base_name semantics.
82263         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
82264         base_name.  Strip redundant slashes from ///.
82265
82266 2006-07-03  Jim Meyering  <jim@meyering.net>
82267
82268         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
82269         macro is used before the first cycle_check call.
82270
82271 2006-07-03  Eric Blake  <ebb9@byu.net>
82272
82273         * modules/dirname (Depends-on): Add xstrndup.
82274
82275 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
82276
82277         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
82278         test cases, so that config.log is a bit easier to follow.
82279
82280 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
82281
82282         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
82283         both are 64 bits, since this seems to be the tradition, and this
82284         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
82285         we ever run into a host that prefers long long to long in this
82286         case, we'll need another configure-time test.  Problem reported by
82287         Jim Meyering.
82288
82289 2006-07-02  Eric Blake  <ebb9@byu.net>
82290
82291         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
82292
82293 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
82294
82295         * modules/inttypes (Depends-on): No longer depends on stdint.
82296         * modules/stdint (Description): Say more about assumptions.
82297         Say that the fast types might differ.  Say macros are used.
82298         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
82299         (Makefile.am): Revise list of substituted symbols to match
82300         new stdint.m4.
82301         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
82302         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
82303         * tests/test-stdint.c (verify_same_types)
82304         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
82305         the code conforms to C99/C89.
82306         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
82307         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
82308
82309 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
82310
82311         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
82312         but fix a bug, by requiring at least 64 bits.
82313         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
82314         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
82315         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
82316         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
82317
82318         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
82319         changes.  Make 2.59 a prerequisite.  Check and substitute for
82320         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
82321         inttypes.h.  Do not use special include files; just use the
82322         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
82323         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
82324         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
82325         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
82326         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
82327         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
82328         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
82329         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
82330         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
82331         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
82332         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
82333         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
82334         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
82335         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
82336         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
82337         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
82338         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
82339         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
82340         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
82341         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
82342         WINT_MAX.  Check for C99 conformance more strictly, by detecting
82343         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
82344         not check for things that C99 does not require, e.g., int8_t.  If
82345         a test isn't needed unless <stdint.h> isn't working, and is
82346         unlikely to be needed for any other reason, then don't do it
82347         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
82348         size_t, since we assume C89 freestanding at least.  Do not check
82349         for sig_atomic_t, wchar_t, or wint_t, since the code now does
82350         the right thing even if the types are not defined.  Instead use:
82351         (gl_STDINT_TYPE_PROPERTIES): New macro.
82352         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
82353         testing whether <sys/types.h> clashes, as Autoconf does this for
82354         us now.  All uses removed.
82355         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
82356         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
82357         (gl_CHECK_TYPE_SAME):
82358         Remove; no longer needed.
82359         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
82360         exists, since we'll return 0 anyway in that case.
82361         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
82362
82363 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
82364
82365         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
82366         possible collision with system files.
82367         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
82368         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
82369         WCHAR_MIN and WCHAR_MAX in this case.
82370         (<stddef.h>): Do not include; no longer needed.
82371         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
82372         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
82373         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
82374         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
82375         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
82376         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
82377         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
82378         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
82379         !defined(__c99))]: Include in this case too, since it's harmless
82380         now.
82381         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
82382         dangerous to do so.
82383         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
82384         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
82385         (_STDINT_MIN, _STDINT_MAX): New macros.
82386         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
82387         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
82388         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
82389         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
82390         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
82391         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
82392         macros, not typedefs; this simplifies things quite a bit.
82393         Use long int for all types narrower than int64_t.
82394         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
82395         Define in terms of long long int or int64_t or long int,
82396         not int64_t or int32_t.  This saves some compile-time testing.
82397         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
82398         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
82399         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
82400         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
82401         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
82402         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
82403         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
82404         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
82405         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
82406         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
82407         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
82408         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
82409         undef any previous version and define our own version, for
82410         simplicity and consistency with the new macros for types.
82411         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
82412         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
82413         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
82414         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
82415         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
82416         @WINT_T_SUFFIX@ to keep things simple here.
82417         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
82418         Simplify by assuming typical 8/16/32/64 host, since we're
82419         already doing that elsewhere anyway.
82420         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
82421         and assume long long int is 64 bits if available.  This
82422         speeds up 'configure'.
82423
82424 2006-07-01  Eric Blake  <ebb9@byu.net>
82425
82426         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
82427         Reported by Andreas Buening.
82428
82429 2006-07-01  Eric Blake  <ebb9@byu.net>
82430
82431         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
82432
82433 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
82434
82435         * lib/getaddrinfo.c: fixed typo
82436
82437 2006-06-29  Jim Meyering  <jim@meyering.net>
82438
82439         * modules/strftime (Maintainer): Add my name, since with the
82440         FPRINTFTIME changes strftime.c has forked from glibc.
82441
82442 2006-06-29  Eric Blake  <ebb9@byu.net>
82443
82444         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
82445
82446 2006-06-29  Eric Blake  <ebb9@byu.net>
82447
82448         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
82449
82450 2006-06-29  Eric Blake  <ebb9@byu.net>
82451
82452         * lib/stat_.h: New file.
82453
82454 2006-06-29  Eric Blake  <ebb9@byu.net>
82455
82456         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
82457         unused static function.
82458
82459 2006-06-29  Eric Blake  <ebb9@byu.net>
82460
82461         * doc/functions.texi (Function Portability): Document missing lstat
82462         on mingw.
82463
82464 2006-06-29  Eric Blake  <ebb9@byu.net>
82465
82466         * MODULES.html.sh: Add sys_stat.
82467         * modules/sys_stat: New module.
82468         * modules/mkstemp (Depends-on): Add sys_stat.
82469
82470 2006-06-29  Derek R. Price  <derek@ximbiot.com>
82471
82472         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
82473
82474 2006-06-29  Derek R. Price  <derek@ximbiot.com>
82475
82476         * m4/c-bs-a.m4: Removed.
82477
82478 2006-06-29  Derek R. Price  <derek@ximbiot.com>
82479
82480         * lib/strftime.c: Assume strftime() exists.
82481
82482 2006-06-29  Derek Price  <derek@ximbiot.com>
82483
82484         * modules/c-bs-a: Removed - \a is C89.
82485         * MODULES.html.sh: Remove c-bs-a.
82486
82487 2006-06-29  Bruno Haible  <bruno@clisp.org>
82488
82489         * modules/wcwidth (License): Change to LGPL.
82490
82491 2006-06-28  Simon Josefsson  <jas@extundo.com>
82492
82493         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
82494         on _WIN32.
82495
82496         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
82497         getnameinfo.
82498
82499 2006-06-28  Simon Josefsson  <jas@extundo.com>
82500
82501         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
82502
82503 2006-06-28  Simon Josefsson  <jas@extundo.com>
82504
82505         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
82506         functions there.  It will succeed on Windows XP, but on Windows
82507         2000 and (presumably) earlier, it will fail, and use the internal
82508         re-implementation.
82509         (use_win32_p): New function.
82510         (getaddrinfo): Use strtoul on servname, to support numeric ports.
82511         Support AI_NUMERICSERV to disable getservbyname.
82512         (getnameinfo): New function, only supports
82513         NI_NUMERICHOST|NI_NUMERICSERV for now.
82514
82515         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
82516         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
82517         getnameinfo.
82518
82519 2006-06-28  Eric Blake  <ebb9@byu.net>
82520
82521         * modules/wcwidth: New file.
82522         * modules/mbchar (Depends-on): Add wcwidth.
82523         * modules/mbswidth (Depends-on): Add wcwidth.
82524         * MODULES.html.sh: Add wcwidth.
82525
82526 2006-06-28  Eric Blake  <ebb9@byu.net>
82527
82528         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
82529         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
82530
82531 2006-06-28  Eric Blake  <ebb9@byu.net>
82532
82533         * lib/xvasprintf.h: Fix comments.
82534
82535 2006-06-28  Eric Blake  <ebb9@byu.net>
82536
82537         * lib/mbchar.h (wcwidth): Include wcwidth.h.
82538         * lib/mbswidth.c (wcwidth): Move from here...
82539         * lib/wcwidth.h: ...to this new file.
82540
82541 2006-06-28  Derek R. Price  <derek@ximbiot.com>
82542
82543         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
82544
82545         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
82546         it's obsolete.
82547         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
82548
82549 2006-06-28  Derek R. Price  <derek@ximbiot.com>
82550
82551         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
82552         Autoconf 2.60 says this stuff was obsolete.
82553
82554 2006-06-28  Bruno Haible  <bruno@clisp.org>
82555
82556         * modules/wcwidth (Files): Add m4/wchar_t.m4.
82557
82558 2006-06-28  Bruno Haible  <bruno@clisp.org>
82559
82560         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
82561         gt_TYPE_WCHAR_T.
82562
82563 2006-06-28  Bruno Haible  <bruno@clisp.org>
82564
82565         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
82566         declaration for wcwidth.
82567         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
82568
82569 2006-06-28  Bruno Haible  <bruno@clisp.org>
82570
82571         * lib/mkdtemp.c [MINGW]: Include <io.h>.
82572         (mkdir): Define using _mkdir.
82573
82574 2006-06-28  Bruno Haible  <bruno@clisp.org>
82575
82576         * lib/getaddrinfo.h: Fix POSIX URL.
82577         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
82578         _WIN32.
82579         (use_win32_p): Make static.
82580         (getaddrinfo): Reject service name if it is empty or does not consist
82581         solely of decimal digits, or if its value is > 65535.
82582         (getnameinfo): Remove useless casts.
82583
82584 2006-06-27  Simon Josefsson  <jas@extundo.com>
82585
82586         * modules/sys_select: New file, suggested by Bruno Haible, Paul
82587         Eggert and Martin Lambers.
82588
82589 2006-06-27  Simon Josefsson  <jas@extundo.com>
82590
82591         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
82592         Eggert and Martin Lambers.
82593
82594 2006-06-27  Bruno Haible  <bruno@clisp.org>
82595
82596         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
82597         result to 0, not to empty.
82598         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
82599
82600 2006-06-27  Bruno Haible  <bruno@clisp.org>
82601
82602         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
82603
82604 2006-06-26  Simon Josefsson  <jas@extundo.com>
82605
82606         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
82607         present.
82608
82609 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
82610
82611         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
82612         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
82613         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
82614
82615 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
82616
82617         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
82618
82619 2006-06-26  Bruno Haible  <bruno@clisp.org>
82620
82621         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
82622
82623 2006-06-26  Bruno Haible  <bruno@clisp.org>
82624
82625         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
82626
82627 2006-06-26  Bruno Haible  <bruno@clisp.org>
82628
82629         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
82630         SGI C compiler in pre-C99 mode.
82631         Suggested by Mark D. Baushke and Larry Jones.
82632
82633 2006-06-26  Bruno Haible  <bruno@clisp.org>
82634
82635         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
82636         WCHAR_MAX.
82637         Reported by Mark D. Baushke and Larry Jones.
82638
82639 2006-06-26  Bruno Haible  <bruno@clisp.org>
82640
82641         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
82642         in pre-C99 mode.
82643         Suggested by Mark D. Baushke and Larry Jones.
82644
82645 2006-06-23  Simon Josefsson  <jas@extundo.com>
82646             Bruno Haible  <bruno@clisp.org>
82647
82648         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
82649         Emit mostlyclean-local rule.
82650         (func_emit_tests_Makefile_am): Likewise.
82651         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
82652
82653 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
82654
82655         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
82656
82657 2006-06-23  Bruno Haible  <bruno@clisp.org>
82658
82659         * tests/test-stdint.c: Update to match ISO C 99 Technical
82660         Corrigendum 1.
82661
82662 2006-06-23  Bruno Haible  <bruno@clisp.org>
82663
82664         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
82665
82666 2006-06-23  Bruno Haible  <bruno@clisp.org>
82667
82668         * lib/stdint_.h: Treat IRIX like OpenBSD.
82669
82670 2006-06-23  Bruno Haible  <bruno@clisp.org>
82671
82672         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
82673         ISO C 99 Technical Corrigendum 1.
82674
82675 2006-06-22  Simon Josefsson  <jas@extundo.com>
82676
82677         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
82678         MinGW.
82679
82680 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
82681
82682         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
82683         needed.  Some compiler complained about some of them.  Problem reported
82684         by Larry Jones in
82685         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
82686
82687 2006-06-21  Simon Josefsson  <jas@extundo.com>
82688
82689         * tests/test-getaddrinfo.c: New file.
82690
82691         * modules/getaddrinfo-tests: New file.
82692
82693         * MODULES.html.sh: Add inet_pton.
82694
82695         * modules/inet_pton: New file.
82696
82697 2006-06-21  Simon Josefsson  <jas@extundo.com>
82698
82699         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
82700         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
82701         of using the (limited) gnulib implementation on Windows XP.
82702
82703         * m4/inet_pton.m4: New file.
82704
82705 2006-06-21  Simon Josefsson  <jas@extundo.com>
82706
82707         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
82708         variable.
82709
82710         * lib/socket_.h: Don't define WINVER.
82711
82712         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
82713         slightly modified to work in gnulib.
82714
82715 2006-06-21  Simon Josefsson  <jas@extundo.com>
82716
82717         * doc/gnulib.texi (Windows sockets): Add.
82718
82719 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
82720
82721         * lib/read-file.c (fread_file): Start with buffer allocation of
82722         0 bytes rather than 1 byte; this simplifies the code.
82723         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
82724         code to free buffer and save/restore errno.
82725         (internal_read_file): Remove unused local.
82726
82727 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
82728
82729         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
82730         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
82731         Problem reported by Denis Excoffier in
82732         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
82733
82734 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82735
82736         * modules/sys_socket, modules/socklen: Include sys/types since
82737         FreeBSD 4.x's sys/socket.h needs it.
82738
82739 2006-06-19  Simon Josefsson  <jas@extundo.com>
82740
82741         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
82742
82743 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
82744
82745         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
82746
82747 2006-06-19  Bruno Haible  <bruno@clisp.org>
82748
82749         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
82750         and FULL_PATH_INTTYPES_H in angle brackets.
82751         Reported by Mark D. Baushke <mdb@gnu.org>.
82752
82753 2006-06-17  Eric Blake  <ebb9@byu.net>
82754
82755         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
82756         errno.
82757
82758 2006-06-17  Bruno Haible  <bruno@clisp.org>
82759
82760         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
82761         <sys/inttypes.h>.
82762
82763 2006-06-17  Bruno Haible  <bruno@clisp.org>
82764
82765         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
82766         whether errno is declared. Assume <errno.h> declares errno.
82767
82768 2006-06-17  Bruno Haible  <bruno@clisp.org>
82769
82770         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
82771
82772 2006-06-17  Bruno Haible  <bruno@clisp.org>
82773
82774         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
82775         problem on Solaris 2.5.1.
82776
82777 2006-06-16  Eric Blake  <ebb9@byu.net>
82778
82779         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
82780         * lib/unicodeio.c [!defined errno]: Likewise.
82781         * lib/strtol.c [!defined errno]: Likewise.
82782         * lib/strtod.c [!defined errno]: Likewise.
82783
82784 2006-06-15  Eric Blake  <ebb9@byu.net>
82785
82786         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
82787
82788 2006-06-15  Eric Blake  <ebb9@byu.net>
82789
82790         * config/srclist.txt (ssize_t.m4): Lose sync.
82791
82792 2006-06-15  Bruno Haible  <bruno@clisp.org>
82793
82794         * modules/stdint (Files): Include m4/full-header-path.m4,
82795         m4/size_max.m4, m4/wchar_t.m4.
82796         (Makefile.am): Many more substitutions.
82797         * modules/stdint-tests: New file.
82798         * tests/test-stdint.c: New file.
82799
82800 2006-06-15  Bruno Haible  <bruno@clisp.org>
82801
82802         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
82803         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
82804         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
82805         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
82806         gl_CHECK_TYPE_SAME): New macros.
82807
82808 2006-06-15  Bruno Haible  <bruno@clisp.org>
82809
82810         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
82811
82812 2006-06-15  Bruno Haible  <bruno@clisp.org>
82813
82814         * lib/stdint_.h: Rewritten to be fully auto-configured.
82815         Fixes bug on HP-UX/IA64.
82816
82817 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
82818
82819         * lib/getdate.y (__attribute__): Don't define if already defined.
82820         Problem reported by Larry Jones.
82821         * lib/utimens.c (__attribute__): Likewise.
82822
82823 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
82824
82825         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
82826         reported by Andreas Schwab.
82827
82828 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82829             Bruno Haible  <bruno@clisp.org>
82830
82831         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
82832         check for the declaration of strnlen and a run test that exposes the
82833         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
82834         rpl_strndup.
82835
82836 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82837             Bruno Haible  <bruno@clisp.org>
82838
82839         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
82840
82841 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82842
82843         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
82844         compile test, for Tru64 4.0D.
82845
82846 2006-05-28  Karl Berry  <karl@gnu.org>
82847
82848         * config/srclist.txt (printf-args.c): lose sync.
82849
82850 2006-05-26  Martin Lambers  <marlam@marlam.de>
82851
82852         * lib/getpass.c: Updates the test for the native W32 API, and adds
82853         missing includes, thus fixing compilation warnings.
82854
82855 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
82856
82857         * lib/exclude.c (exclude_fnmatch): New function.
82858         (excluded_file_name): Call exclude_fnmatch.
82859         * lib/exclude.h (excluded_file_name): New prototype
82860
82861 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
82862
82863         * lib/tempname.c (small_open, large_open): New macros.
82864         (__open, __open64) [!_LIBC]: Remove.
82865         (__gen_tempname): Use small_open and large_open instead of __open
82866         and __open64.  This fixes a portability bug on HP-UX 11.11i
82867         reported by Simon Wing-Tang in
82868         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
82869
82870 2006-05-24  Bruno Haible  <bruno@clisp.org>
82871
82872         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
82873         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
82874         Reported by Thorsten Maerz <torte@netztorte.de> via
82875         Aaron Stone <aaron@serendipity.cx>.
82876
82877 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
82878
82879         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
82880         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
82881         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
82882         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
82883         not really conditional on the cache.
82884         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
82885
82886 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
82887
82888         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
82889         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
82890         (my_usleep): Don't mishandle maximum value.
82891
82892 2006-05-19  Jim Meyering  <jim@meyering.net>
82893
82894         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
82895
82896 2006-05-17  Bruno Haible  <bruno@clisp.org>
82897
82898         Cygwin portability.
82899         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
82900
82901 2006-05-17  Bruno Haible  <bruno@clisp.org>
82902
82903         * lib/stdint_.h: Fix recognition of Cygwin.
82904
82905 2006-05-15  Bruno Haible  <bruno@clisp.org>
82906
82907         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
82908         on libtool patch by Ralf Wildenhues.
82909
82910 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82911
82912         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
82913         test for C99 conformance; (bool) 0.5 is an integer constant
82914         expression, but (bool) -0.5 is not.  Problem reported by Fedor
82915         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
82916
82917 2006-05-11  Simon Josefsson  <jas@extundo.com>
82918
82919         * m4/xvasprintf.m4: Fix obvious typo.
82920
82921 2006-05-11  Jim Meyering  <jim@meyering.net>
82922
82923         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
82924         James Lemley.
82925
82926 2006-05-10  Simon Josefsson  <jas@extundo.com>
82927
82928         * lib/md4.c: Typo fix, update copyright years.
82929         (K1, K2): Don't use L because it turn computations into 64-bit on
82930         64-bit platforms.
82931
82932 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
82933
82934         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
82935         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
82936         unwanted sign propagation, e.g., on hosts with 64-bit int.
82937         There still are some problems with reeelly weird theoretical hosts
82938         (e.g., 33-bit int) but it's not worth worrying about now.
82939         * lib/sha1.c (rol): Likewise.
82940         (K1, K2, K3, K4): Remove unnecessary L suffix.
82941
82942 2006-05-10  Bruno Haible  <bruno@clisp.org>
82943
82944         * lib/des.c: Cast to avoid warnings.
82945
82946 2006-05-09  Bruno Haible  <bruno@clisp.org>
82947
82948         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
82949         (Depends-on): Depend also on xsize, stdarg.
82950         (configure.ac): Add gl_XVASPRINTF.
82951
82952 2006-05-09  Bruno Haible  <bruno@clisp.org>
82953
82954         * m4/xvasprintf.m4: New file.
82955
82956 2006-05-09  Bruno Haible  <bruno@clisp.org>
82957
82958         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
82959         (EOVERFLOW): Define fallback value.
82960         (xstrcat): New function.
82961         (xvasprintf): Recognize the special case of a string concatenation.
82962
82963 2006-05-08  Eric Blake  <ebb9@byu.net>
82964
82965         * gnulib-tool (func_version): Base copyright year on CVS date.
82966         (func_emit_copyright_notice): New function.
82967         (func_emit_lib_Makefile_am): Use it.
82968         (func_emit_tests_Makefile_am): Likewise.
82969         (func_import): Likewise.
82970
82971 2006-05-08  Bruno Haible  <bruno@clisp.org>
82972
82973         * modules/stdarg: New file.
82974         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
82975
82976 2006-05-08  Bruno Haible  <bruno@clisp.org>
82977
82978         * m4/stdarg.m4: New file, from GNU gettext.
82979
82980 2006-05-08  Bruno Haible  <bruno@clisp.org>
82981
82982         * config/srclist.txt (build-aux/config.rpath): different from latest
82983         release.
82984
82985 2006-05-08  Bruno Haible  <bruno@clisp.org>
82986
82987         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
82988
82989 2006-05-05  Jim Meyering  <jim@meyering.net>
82990
82991         * m4/warning.m4: New file, derived from bison's file by the same name.
82992
82993 2006-05-03  Bruno Haible  <bruno@clisp.org>
82994
82995         * lib/stdint_.h: Shorter URL.
82996         * lib/inttypes.h: Likewise.
82997
82998 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
82999
83000         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
83001
83002 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
83003
83004         * lib/verify.h: Document the internals better.  Most of this change
83005         was written by Bruno Haible.
83006
83007 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
83008
83009         * doc/verify.texi: New file, partly based on a proposal by
83010         Bruno Haible.
83011
83012 2006-05-02  Bruno Haible  <bruno@clisp.org>
83013
83014         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
83015         test from here...
83016         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
83017
83018 2006-04-29  Bruno Haible  <bruno@clisp.org>
83019
83020         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
83021         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
83022
83023 2006-04-29  Bruno Haible  <bruno@clisp.org>
83024
83025         * gnulib-tool: Make --update option actually work.
83026
83027 2006-04-29  Bruno Haible  <bruno@clisp.org>
83028
83029         * doc/gcd.texi: New file.
83030         * doc/gnulib.texi: Include it.
83031
83032 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
83033
83034         * lib/getdate.y (get_date): When adding relative date, start with the
83035         initial time, not with the result of the first mktime call.
83036
83037 2006-04-25  Bruno Haible  <bruno@clisp.org>
83038
83039         * gnulib-tool (func_import): Output the include directives in three
83040         blocks, sorted separately.
83041         Reported by Ben Pfaff <blp@cs.stanford.edu>.
83042
83043 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
83044
83045         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
83046         to define main with arguments, for C++.  Reported by Eric Blake.
83047         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
83048         Prefer 'int main ()' to 'int main (void)', for C++.
83049         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
83050         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
83051         for 'main', for C99 and C++.
83052
83053 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
83054
83055         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
83056         Don't assume that exit status -1 is valid.
83057         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
83058         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
83059         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
83060         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
83061         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
83062         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
83063         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
83064         functions can be used without declaring them, or that you can
83065         exit with status -1.
83066         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
83067
83068 2006-04-24  Karl Berry  <karl@gnu.org>
83069
83070         * config/srclist.txt (longdouble.m4): sync lost.
83071
83072 2006-04-24  Eric Blake  <ebb9@byu.net>
83073
83074         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
83075
83076 2006-04-24  Bruno Haible  <bruno@clisp.org>
83077
83078         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
83079         poll() implementation in AIX.
83080         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
83081
83082 2006-04-24  Bruno Haible  <bruno@clisp.org>
83083
83084         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
83085         assigned exactly once.
83086
83087 2006-04-23  Claudio Fontana  <claudio@gnu.org>
83088             Bruno Haible  <bruno@clisp.org>
83089
83090         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
83091         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
83092         for AM_CPPFLAGS.
83093
83094 2006-04-23  Bruno Haible  <bruno@clisp.org>
83095
83096         * modules/copy-file: Depend on unistd.
83097         * modules/execute: Likewise.
83098         * modules/fatal-signal: Likewise.
83099         * modules/findprog: Likewise.
83100         * modules/mkdtemp : Likewise.
83101         * modules/pipe: Likewise.
83102         * modules/wait-process: Likewise.
83103
83104 2006-04-23  Bruno Haible  <bruno@clisp.org>
83105
83106         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
83107         condition was already detected.
83108         Reported by Ben Pfaff <blp@cs.stanford.edu>.
83109
83110 2006-04-23  Bruno Haible  <bruno@clisp.org>
83111
83112         * lib/copy-file.c: Include <unistd.h> unconditionally.
83113         * lib/execute.c: Likewise.
83114         * lib/fatal-signal.c: Likewise.
83115         * lib/findprog.c: Likewise.
83116         * lib/mkdtemp.c: Likewise.
83117         * lib/pipe.h: Likewise.
83118         * lib/pipe.c: Likewise.
83119         * lib/wait-process.h: Likewise.
83120
83121 2006-04-23  Bruno Haible  <bruno@clisp.org>
83122
83123         * gnulib-tool (func_usage): Fix --import description. Document
83124         --update.
83125         (func_import): Create temporary file in a temporary directory, if
83126         --dry-run is specified. Silence errors from 'grep' when there are no
83127         m4 files in $m4dir.
83128         (func_create_testdir): Silence errors from 'grep' when there are no
83129         m4 files in $m4dir.
83130         Reported by Karl Berry <karl@freefriends.org>.
83131
83132 2006-04-20  Bruno Haible  <bruno@clisp.org>
83133
83134         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
83135         one argument, so that the code will be portable to Autoconf 2.60.
83136         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
83137         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
83138         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
83139
83140 2006-04-19  Derek Price  <derek@ximbiot.com>
83141             Eric Blake  <ebb9@byu.net>
83142
83143         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
83144         rather than "/full/path.h".  Update comment to match.  Shorten &
83145         generalize m4_translit call via AS_TR_CPP.
83146
83147 2006-04-19  Derek Price  <derek@ximbiot.com>
83148             Eric Blake  <ebb9@byu.net>
83149
83150         * lib/inttypes.h: Correct grammar in comment.
83151
83152 2006-04-18  Derek Price  <derek@ximbiot.com>
83153             Paul Eggert  <eggert@cs.ucla.edu>
83154
83155         * modules/inttypes: New file.
83156         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
83157
83158 2006-04-18  Derek Price  <derek@ximbiot.com>
83159             Paul Eggert  <eggert@cs.ucla.edu>
83160
83161         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
83162         New files.
83163
83164 2006-04-18  Derek Price  <derek@ximbiot.com>
83165             Paul Eggert  <eggert@cs.ucla.edu>
83166
83167         * lib/inttypes.h: New file.
83168         * lib/strtoimax.c: Assume <inttypes.h>.
83169
83170 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
83171
83172         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
83173         isn't mounted.  Problem reported by Kir Kolyshkin.
83174
83175 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
83176
83177         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
83178         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
83179         Derek R. Price.
83180         * lib/regex.h (RE_DUP_MAX): Update comment to match current
83181         implementation.
83182
83183 2006-04-12  Eric Blake  <ebb9@byu.net>
83184
83185         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
83186         is now done automatically by the corresponding Autoconf macro.
83187
83188 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
83189
83190         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
83191         time_r.h.
83192
83193 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
83194
83195         Merge regex changes from libc, removing some of our
83196         POSIX-conformance changes that were rejected and redoing them in a
83197         less-intrusive way.
83198
83199         * lib/regcomp.c (re_compile_internal, init_dfa):
83200         Length arg is now size_t, not Idx.  All uses changed.
83201         (peek_token): Forward decl now says internal_function.
83202         (__re_error_msgid, __re_error_msgid_idx):
83203         Now static rather than extern with attribute_hidden.
83204         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
83205         For some reason libc prefers K&R style defns for external functions.
83206         (regerror) [!defined _LIBC]: Likewise.
83207         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
83208         (seek_collating_symbol_entry, lookup_collation_sequence_value):
83209         (build_range_exp, build_collating_symbol):
83210         Use K&R-style defn.
83211         (re_compile_fastmap): Use '\0' to memset, not 0.
83212         (utf8_sb_map): Make the calculations more obvious.
83213         (init_dfa, parse_bracket_exp, build_charclass_op):
83214         Call calloc and cast result, as glibc does.
83215         (init_word_char, fetch_token, peek_token, peek_token_bracket):
83216         (build_range_exp, build_collating_symbol):
83217         Now internal functions.
83218
83219         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
83220
83221         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
83222         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
83223         Don't depend on VMS; depend on __VMS instead, for POSIX
83224         namespace cleanness.
83225         (regoff_t): Define to ssize_t, not long int.
83226
83227         Remove the REG_ macros named below.  Instead, make the old names
83228         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
83229         __USE_GNU_REGEX.
83230         (REG_BACKSLASH_ESCAPE_IN_LISTS):
83231         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
83232         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
83233         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
83234         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
83235         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
83236         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
83237         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
83238         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
83239         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
83240         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
83241         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
83242         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
83243         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
83244         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
83245         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
83246         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
83247         (REG_NREGS):
83248         Remove.  All uses replaced by the old RE_* names.
83249         (RE_BACKSLASH_ESCAPE_IN_LISTS):
83250         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
83251         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
83252         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
83253         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
83254         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
83255         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
83256         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
83257         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
83258         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
83259         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
83260         Don't bother having these macros be independent of each others'
83261         values, since they no longer exist in the POSIX name space.
83262
83263         Rename the following member names back to their old names,
83264         unless !__USE_GNU_REGEX.  All uses changed back.
83265         (buffer): Renamed from re_buffer.
83266         (allocated): Renamed from re_allocated.
83267         (used): Renamed from re_used.
83268         (syntax): Renamed from re_syntax.
83269         (fastmap): Renamed from re_fastmap.
83270         (translate): Renamed from re_translate.
83271         (can_be_null): Renamed from re_can_be_null.
83272         (regs_allocated): Renamed from re_regs_allocated.
83273         (fastmap_accurate): Renamed from re_fastmap_accurate.
83274         (no_sub): Renamed from re_no_sub.
83275         (not_bol): Renamed from re_not_bol.
83276         (not_eol): Renamed from re_not_eol.
83277         (newline_anchor): Renamed from re_newline_anchor.
83278         (num_regs): Renamed from rm_num_regs.
83279         (start): Renamed from rm_start.
83280         (end): Renamed from rm_end.
83281
83282         (free_state): Move up a bit.
83283
83284         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
83285         #define to be empty.
83286         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
83287         when that is what is intended.
83288         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
83289         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
83290         (MAX): New macro.
83291         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
83292         All uses changed back to re_malloc, etc.  It's now the caller's
83293         responsibility to check for overflow; all callers changed.
83294         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
83295         (re_x2nrealloc): Remove.
83296         (free_state): Remove decl.
83297
83298         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
83299         (re_set_registers, re_exec):
83300         Use K&R-style defn.
83301
83302         2006-01-31  Roland McGrath  <roland@redhat.com>
83303
83304         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
83305         Reported by Mike Frysinger <vapier@gentoo.org>.
83306
83307         2006-01-15  Andreas Jaeger  <aj@suse.de>
83308
83309         [BZ #1950]
83310         * lib/regex_internal.c (re_string_reconstruct): Adjust for
83311         build_wcs_upper_buffer change.
83312         (build_wcs_upper_buffer): Change return type.
83313
83314         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
83315
83316         * lib/regex_internal.h: Include <stdint.h> if available.
83317
83318         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
83319
83320         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
83321
83322         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
83323
83324         * lib/regcomp.c: Adjust for changed secondary hash function.
83325
83326         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
83327
83328         * lib/regex.h: Pretty printing.
83329         Clean up namespace a bit.
83330
83331         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
83332
83333         * lib/regexec.c (update_cur_sifted_state, check_arrival,
83334         check_arrival_add_next_nodes): Avoid using uninitialized variable.
83335
83336         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
83337                     Ulrich Drepper  <drepper@redhat.com>
83338
83339         [BZ #1302]
83340         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
83341         changed.
83342         (bitset_word_t): Renamed from bitset_word.  All uses changed.
83343
83344         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
83345
83346         [BZ #281]
83347         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
83348         * lib/regcomp.c: Remove unnecessary uses of
83349         unsigned RE_TRANSLATE_TYPE.
83350         * lib/regex_internal.h: Likewise.
83351         * lib/regex_internal.c: Likewise.
83352         * lib/regexec.c: Likewise.
83353         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
83354
83355         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
83356
83357         * lib/regexec.c (find_recover_state): Remove unnecessary
83358         initialization.
83359         (transit_state_bkref): Make DFA a const pointer.
83360         (get_subexp): Likewise.
83361         (check_arrival): Likewise.
83362         (update_cur_sifted_state): Likewise.
83363         (re_search_internal): Likewise.
83364         (prune_impossible_nodes): Likewise.
83365         (acquire_init_state_context): Likewise.
83366         (proceed_next_node): Likewise.
83367         (set_regs): Likewise.
83368         (free_fail_stack_return): Likewise.
83369         (check_arrival_expand_ecl): Mark DFA parameter as const.
83370         (check_arrival_expand_ecl_sub): Likewise.
83371         (check_subexp_limits): Likewise.
83372         (sub_epsilon_src_nodes):  Likewise.
83373         (add_epsilon_src_nodes):  Likewise.
83374         (merge_state_array): Likewise.
83375         (update_regs): Likewise.
83376         (build_trtable): Likewise.
83377         (sift_states_backward): Mark MCTX parameter as const.
83378         (build_sifted_states): Likewise.
83379         (update_cur_sifted_state): Likewise.
83380         (sift_states_mkref): Likewise.
83381         (check_arrival_expand_ecl): Mark eclosure as const.
83382         (check_dst_limits_calc_pos_1): Likewise.
83383         * lib/regex_internal.h (re_match_context_t): Make dfa a const
83384         pointer.
83385
83386         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
83387
83388         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
83389         (transit_state_sb): Likewise.
83390         (transit_state_mb): Likewise.
83391         (sift_states_iter_mb): Likewise.
83392         (check_arrival_add_next_nodes): Likewise.
83393         (check_node_accept_bytes): Change first parameter to pointer-to-const.
83394         [_LIBC] (re_search_2_stub): Use mempcpy.
83395
83396         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
83397         mbrtowc for very simple UTF-8 case.
83398
83399         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
83400         a pointer-to-const.
83401         (re_acquire_state_context): Likewise.
83402         * lib/regex_internal.h: Adjust prototypes.
83403
83404         * lib/regex.c: Prevent using C++ compilers.
83405
83406         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
83407         (re_acquire_state_context): Likewise.
83408
83409 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
83410
83411         * modules/regex (Depends-on): Add ssize_t.
83412
83413 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
83414
83415         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
83416         translation table.
83417
83418 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
83419
83420         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
83421
83422 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
83423             Bruno Haible  <bruno@clisp.org>
83424
83425         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
83426         <sys/types.h> and <inttypes.h>.
83427
83428 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83429
83430         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
83431         `__error_t_defined', so argp.h will not typedef the former.
83432
83433 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
83434
83435         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
83436         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
83437         glibc names.  Even if glibc is changed to conform to POSIX, the
83438         traditional names will be available anyway, since regex depends on
83439         the extensions module.  Also, fix a longstanding typo in the
83440         implementation of Spencer ERE test #75 from grep 2.3.  Problems
83441         reported by Emanuele Giaquinta.  Also, change sense of cached
83442         variable, so that the message makes sense.
83443
83444 2006-03-24  Simon Josefsson  <jas@extundo.com>
83445
83446         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
83447         including some doc fixes.
83448         (base64_encode_alloc): Fix +1 bug on allocation failures.
83449
83450 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83451
83452         * lib/base64.c (base64_encode): Do not read past end of array with
83453         unsanitized input on systems with CHAR_BIT > 8.
83454
83455 2006-03-24  Eric Blake  <ebb9@byu.net>
83456
83457         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
83458
83459 2006-03-22  Karl Berry  <karl@gnu.org>
83460
83461         * config/srclist.txt (*setenv.[ch]): get from coreutils.
83462         * config/srclistvars.sh (COREUTILS): new var.
83463
83464 2006-03-17  Jim Meyering  <jim@meyering.net>
83465
83466         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
83467         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
83468
83469 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
83470
83471         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
83472         no longer needs it.  Instead, check that regoff_t is as least
83473         as wide as ptrdiff_t.
83474
83475         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
83476         so that our regex.h stays compatible with the installed regex.
83477         This is helpful for installers who configure --without-included-regex.
83478         Problem reported by Emanuele Giaquinta.
83479
83480 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
83481
83482         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
83483         Typedef to long int, not to off_, as POSIX will likely change
83484         in that direction.
83485
83486 2006-03-15  Eric Blake  <ebb9@byu.net>
83487
83488         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
83489
83490 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
83491
83492         * lib/argp-help.c (validate_uparams): Fix typo
83493         * lib/argp-parse.c (argp_default_options): Consistently begin help
83494         messages with a lowercase letter.
83495
83496 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
83497
83498         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
83499         overrun buffers and shouldn't be used (much as gets shouldn't be
83500         used).
83501         * lib/time_r.c (asctime_r, ctime_r): Likewise.
83502
83503 2006-03-08  Simon Josefsson  <jas@extundo.com>
83504
83505         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
83506         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
83507
83508 2006-03-08  Simon Josefsson  <jas@extundo.com>
83509
83510         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
83511         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
83512
83513 2006-03-08  Simon Josefsson  <jas@extundo.com>
83514
83515         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
83516         signal that configure disabled the device.
83517
83518 2006-03-08  Simon Josefsson  <jas@extundo.com>
83519
83520         * build-aux/maint.mk: Fix refresh-po, to handle no translated
83521         languages.
83522
83523 2006-03-07  Simon Josefsson  <jas@extundo.com>
83524
83525         * modules/getopt (Depends-on): Add unistd.
83526
83527         * modules/unistd: New file.
83528
83529 2006-03-07  Simon Josefsson  <jas@extundo.com>
83530
83531         * modules/gc-random: New file.
83532
83533 2006-03-07  Simon Josefsson  <jas@extundo.com>
83534
83535         * m4/unistd_h.m4: New file.
83536
83537 2006-03-07  Simon Josefsson  <jas@extundo.com>
83538
83539         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
83540         test to be side-effect free by storing the result in the cache
83541         variable gl_cv_lib_readline, and moving the assignment of
83542         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
83543         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
83544
83545 2006-03-07  Simon Josefsson  <jas@extundo.com>
83546
83547         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
83548         error on missing devices (the functions will return an error).
83549
83550         * m4/gc.m4: Move random stuff to gc-random.m4
83551
83552 2006-03-07  Simon Josefsson  <jas@extundo.com>
83553
83554         * lib/unistd_.h: New file.
83555
83556 2006-03-07  Simon Josefsson  <jas@extundo.com>
83557
83558         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
83559
83560 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
83561
83562         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
83563         Problem reported by Juan Manuel Guerrero.
83564
83565 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
83566
83567         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
83568         the unistd module.
83569         * lib/getlogin_r.c: Likewise.
83570         * lib/getlogin_r.h: Likewise.
83571         * lib/glob.c: Likewise.
83572         * lib/pagealign_alloc.c: Likewise.
83573         * lib/unistd_.h: Remove; no longer needed.
83574
83575 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
83576
83577         * MODULES.html.sh (Support for systems lacking POSIX:2001):
83578         Add unistd.
83579         * modules/c-stack (Depends-on): Add unistd.
83580         * modules/getlogin_r: Likewise.
83581         * modules/glob: Likewise.
83582         * modules/pagealign_alloc: Likewise.
83583         * modules/unistd (Files): Remove lib/unistd_.h.
83584         (EXTRA_DIST): Remove.
83585         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
83586         need unistd_.h.
83587         (MOSTLYCLEANFILES): Remove unistd.h-t.
83588
83589 2006-03-03  Simon Josefsson  <jas@extundo.com>
83590
83591         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
83592
83593 2006-03-03  Simon Josefsson  <jas@extundo.com>
83594
83595         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
83596         libidn and bison.
83597
83598 2006-03-03  Simon Josefsson  <jas@extundo.com>
83599
83600         * build-aux/maint.mk: Add indent target.
83601
83602 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
83603
83604         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
83605         our replacement poll.h in any case, to avoid a differing
83606         declaration from a system header.  Seen on AIX.
83607
83608 2006-03-01  Simon Josefsson  <jas@extundo.com>
83609
83610         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
83611         <kasal@ucw.cz>.
83612
83613 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83614
83615         * modules/gettime (Depends-on): Add extensions module.
83616         * modules/nanosleep (Depends-on): Likewise.
83617         * modules/settime (Depends-on): Likewise.
83618
83619 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83620
83621         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
83622         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
83623         pedantically.
83624         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
83625         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
83626
83627         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
83628         not "==".  Reported by Ralf Wildenhues.
83629
83630 2006-03-01  Karl Berry  <karl@gnu.org>
83631
83632         * doc/Copyright/request-*: new files, synced from gnuorg.
83633
83634 2006-03-01  Karl Berry  <karl@gnu.org>
83635
83636         * config/srclist.txt (Copyright/*): new entries.
83637
83638 2006-02-28  Simon Josefsson  <jas@extundo.com>
83639
83640         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
83641
83642 2006-02-27  Simon Josefsson  <jas@extundo.com>
83643
83644         * lib/base64.h: Indent #define's.  From Jim Meyering
83645         <jim@meyering.net>.
83646
83647 2006-02-27  Jim Meyering  <jim@meyering.net>
83648
83649         Revert the change of 2006-02-24, so these files can continue
83650         to be sync'd from gettext.
83651         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
83652         of `config.h'.
83653
83654 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
83655
83656         * modules/intprops: New file.
83657         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
83658         Add intprops.
83659         * modules/getloadavg (Files): Remove lib/intprops.h.
83660         (Depends-on): Add intprops.
83661         * modules/human: Likewise.
83662         * modules/inttostr: Likewise.
83663         * modules/openat: Likewise.
83664         * modules/sig2str: Likewise.
83665         * modules/userspec: Likewise.
83666         * modules/utimecmp: Likewise.
83667         * modules/xnanosleep: Likewise.
83668         * modules/xstrtol: Likewise.
83669
83670 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
83671
83672         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
83673         * modules/lock-tests (TESTS): Use $(EXEEXT).
83674         * modules/tls-tests: Likewise.
83675         * modules/argp-tests: Likewise.
83676         (check_PROGRAMS): New var, replacing...
83677         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
83678
83679 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83680
83681         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
83682         `config.h'.
83683
83684 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
83685
83686         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
83687
83688 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83689
83690         Sync from coreutils.
83691         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
83692         gl_CHDIR_SAFER.
83693
83694 2006-02-22  Jim Meyering  <jim@meyering.net>
83695
83696         Sync from coreutils.
83697         * m4/chdir-safer.m4: New file.
83698
83699 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
83700
83701         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
83702         AT_FDCWD exceeds INT_MAX.
83703         * lib/openat.h (AT_FDCWD): Likewise.
83704
83705 2006-02-17  Eric Blake  <address@hidden>
83706
83707         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
83708
83709 2006-02-16  Simon Josefsson  <jas@extundo.com>
83710
83711         * modules/getaddrinfo (Depends-on): Add sys_socket.
83712
83713 2006-02-15  Simon Josefsson  <jas@extundo.com>
83714
83715         * build-aux/maint.mk: Add dsyntax-check rule.
83716
83717 2006-02-15  Eric Blake  <ebb9@byu.net>
83718
83719         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
83720         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
83721         'present but cannot compile' warnings on cygwin.
83722         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
83723         use ws2tcpip.h if sys/socket.h works.
83724         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
83725         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
83726
83727 2006-02-14  Simon Josefsson  <jas@extundo.com>
83728
83729         * modules/maintainer-makefile (Files): Rename.
83730
83731         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
83732         and (the local) Makefile.cfg to maint-cfg.mk.
83733
83734         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
83735         to the latter.
83736
83737         * modules/maintainer-makefile: New module.
83738
83739         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
83740         severaly stripped to make it possible to build it up from scratch
83741         with reliable tests.
83742
83743         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
83744         fixes to permit overriding the default actions when configure and
83745         makefile are not available.
83746
83747 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
83748
83749         Sync from coreutils.
83750         * modules/lstat (Depends-on): Don't depend on xalloc.
83751         (License): Change from GPL to LGPL, since this is now simply a
83752         replacement for a libc function.
83753
83754 2006-02-14  Jim Meyering  <jim@meyering.net>
83755
83756         Sync from coreutils.
83757
83758         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
83759         failure on deficient systems, and simplify gnulib lgpl dependencies.
83760         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
83761         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
83762
83763         * lib/xalloc-die.c: Remove unused definition of N_.
83764
83765 2006-02-14  Jim Meyering  <jim@meyering.net>
83766
83767         Sync from coreutils.
83768         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
83769         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
83770         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
83771         double-quote uses of that variable, to accommodate the rare case in
83772         which getmntent is available in none of the libraries checked.  This
83773         happens at least on FreeBSD 5.0.
83774
83775 2006-02-13  Simon Josefsson  <jas@extundo.com>
83776
83777         * gnulib-tool (Usage): Fix --import, from
83778         karl@freefriends.org (Karl Berry).
83779
83780 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
83781
83782         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
83783
83784 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
83785
83786         * lib/argp-namefrob.h: Restore changes accidentally lost during the
83787         "autoupdate" on 2005-12-12.
83788
83789 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
83790
83791         * modules/closeout (Depends-on): Remove atexit.
83792
83793 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
83794
83795         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
83796         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
83797
83798 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
83799
83800         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
83801         __EXTENSIONS__ if this causes compilation to fail.  Problem
83802         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
83803         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
83804
83805 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
83806
83807         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
83808         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
83809         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
83810         All uses changed.
83811
83812 2006-01-26  Simon Josefsson  <jas@extundo.com>
83813
83814         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
83815         prototype is visible on mingw32.
83816
83817         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
83818         for mingw32.
83819
83820         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
83821         mingw32).
83822
83823 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
83824
83825         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
83826         attempt to open for write; this always fails, at least on POSIX
83827         hosts.  This reinstates the 2006-01-09 change, which was
83828         inadvertently removed.
83829
83830 2006-01-26  Bruno Haible  <bruno@clisp.org>
83831
83832         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
83833         Reported by Paul Eggert.
83834
83835 2006-01-26  Bruno Haible  <bruno@clisp.org>
83836             Paul Eggert  <eggert@cs.ucla.edu>
83837
83838         * lib/stdbool_.h (_Bool)
83839         [(! (defined __cplusplus || defined __BEOS__)
83840           && !defined __GNUC__
83841           && !(defined __HP_cc || defined __xlc__
83842                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
83843                || defined __sgi))]:
83844         #define to signed char in these cases too; this simplifies
83845         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
83846         etc., separately) and makes it more conservative.
83847
83848 2006-01-25  Simon Josefsson  <jas@extundo.com>
83849
83850         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
83851         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
83852         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
83853
83854 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
83855
83856         * lib/argp-namefrob.h: Bugfix. Remove stray #
83857
83858 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
83859
83860         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
83861         so that we test the test.
83862         Check for yet another HP-UX cc bug involving *bool |= bool.
83863
83864 2006-01-25  Karl Berry  <karl@gnu.org>
83865
83866         * config/srclist.txt (vasnprintf.c): sync lost.
83867
83868 2006-01-25  Jim Meyering  <jim@meyering.net>
83869
83870         Sync from the stable (b5) branch of coreutils:
83871
83872         * lib/fts.c (fts_children): Don't let close() clobber errno from
83873         failed fchdir().
83874
83875         * lib/fts.c (fts_stat): When following a symlink-to-directory,
83876         don't necessarily interpret stat-fails+lstat-succeeds as indicating
83877         a dangling symlink.  That can also happen at least for ELOOP.
83878         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
83879         FYI, this bug predates the inclusion of fts.c in coreutils.
83880
83881         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
83882         in their own block, so pre-c99 compilers don't object.
83883
83884         Avoid the double-free (first in fts_read, second in fts_close) that
83885         would occur when an `active' directory is made inaccessible (e.g.,
83886         via chmod a-x) during a traversal.
83887         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
83888         before returning.  Reproduce this failure by
83889         mkdir -p a/b; cd a; chmod a-x . b
83890         Reported by Stavros Passas.
83891
83892 2006-01-25  Jim Meyering  <jim@meyering.net>
83893
83894         * lib/fileblocks.c: Remove more useless parentheses.
83895         * lib/readutmp.h: Likewise.
83896
83897 2006-01-25  Bruno Haible  <bruno@clisp.org>
83898
83899         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
83900         warnings.
83901         Reported by Paul Eggert.
83902
83903 2006-01-25  Bruno Haible  <bruno@clisp.org>
83904
83905         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
83906         rid of a trap command. For Solaris sh.
83907         Reported by Mark D. Baushke <mdb@gnu.org>.
83908
83909 2006-01-24  Simon Josefsson  <jas@extundo.com>
83910
83911         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
83912         Bruno.
83913
83914 2006-01-24  Karl Berry  <karl@gnu.org>
83915
83916         * config/srclist.txt (argp-namefrob.h): sync lost.
83917
83918 2006-01-24  Jim Meyering  <jim@meyering.net>
83919
83920         * modules/openat (Files): Add lib/intprops.h.
83921         From Mark D. Baushke.
83922
83923 2006-01-24  Jim Meyering  <jim@meyering.net>
83924
83925         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
83926         Reported by Mark D. Baushke.
83927
83928 2006-01-24  Jim Meyering  <jim@meyering.net>
83929
83930         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
83931
83932 2006-01-24  Bruno Haible  <bruno@clisp.org>
83933
83934         * modules/strnlen (Maintainer): Change from glibc to all.
83935
83936 2006-01-24  Bruno Haible  <bruno@clisp.org>
83937
83938         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
83939         Patch by Paul Eggert.
83940
83941 2006-01-24  Bruno Haible  <bruno@clisp.org>
83942
83943         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
83944         already has it.
83945         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
83946         2005-11-26.
83947
83948         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
83949         'signed char' to avoid problems with the built-in _Bool type.
83950         Reported by Paul Eggert on 2005-11-26.
83951
83952 2006-01-24  Bruno Haible  <bruno@clisp.org>
83953
83954         * gnulib-tool (func_import): Avoid constructing complicated sed
83955         expressions inside backquote.
83956         Report and solution by Mark D. Baushke <mdb@gnu.org>.
83957
83958 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
83959
83960         These changes imported from libc.
83961         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
83962         test and two separate function calls.
83963         * lib/strndup.c (__strndup): Add libc_hidden_def.
83964
83965 2006-01-23  Simon Josefsson  <jas@extundo.com>
83966
83967         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
83968         Remove the test_*_SOURCES variable: automake infers it by default.
83969         * modules/tls-tests: Likewise.
83970
83971 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
83972
83973         Work around porting bugs reported by Dieter in
83974         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
83975         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
83976         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
83977         Include "getopt.h" first, to check interface.
83978         (getenv): Declare only if defined HAVE_DECL_GETENV &&
83979         !HAVE_DECL_GETENV.
83980         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
83981         (__strndup): Revert to K&R-style function dfns, the glibc style.
83982         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
83983         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
83984         Include strnlen.h first, to get prototype properly.
83985         (strnlen): Renamed from __strnlen.
83986         Remove weak alias.
83987
83988 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
83989
83990         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
83991
83992 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
83993
83994         * config/srclist.txt: Adjust to reflect glibc reorganization.
83995         This affects only comments.
83996
83997 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
83998
83999          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
84000          Reported by Bruce Korb <bkorb@gnu.org>.
84001
84002 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
84003
84004         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
84005         to pacify gcc -Wswitch-default.
84006
84007 2006-01-22  Bruno Haible  <bruno@clisp.org>
84008
84009         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
84010         temporary buffer for sprintf, take into account the precision also
84011         for 'd', 'i', 'u', 'o', 'x', 'X'.
84012
84013 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
84014
84015         * modules/argp-tests: New module
84016         * tests/test-argp.c: New file
84017         * tests/test-argp-2.sh: New file
84018
84019 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
84020
84021         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
84022         (__argp_base_name): Removed
84023         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
84024         typo.
84025         (__argp_base_name): Provide macro definition or extern declaration
84026         depending on the configuration
84027
84028 2006-01-20  Simon Josefsson  <jas@extundo.com>
84029
84030         * modules/inet_ntop (Depends-on): Depend on sys_socket.
84031
84032 2006-01-20  Simon Josefsson  <jas@extundo.com>
84033
84034         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
84035
84036 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
84037
84038         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
84039         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
84040         Suggested by Bruno Haible.
84041
84042 2006-01-20  Karl Berry  <karl@gnu.org>
84043
84044         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
84045         until changes propagate, I guess.
84046
84047 2006-01-19  Simon Josefsson  <jas@extundo.com>
84048
84049         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
84050
84051 2006-01-19  Simon Josefsson  <jas@extundo.com>
84052
84053         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
84054
84055 2006-01-19  Simon Josefsson  <jas@extundo.com>
84056
84057         * gnulib-tool: Set check_PROGRAMS.
84058
84059         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
84060         modules/des-tests, modules/gc-arcfour-tests,
84061         modules/gc-arctwo-tests, modules/gc-des-tests,
84062         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
84063         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
84064         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
84065         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
84066         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
84067         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
84068         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
84069         test_*_SOURCES.
84070
84071 2006-01-18  Simon Josefsson  <jas@extundo.com>
84072
84073         * modules/socklen (Depends-on): Depend on sys_socket.
84074
84075 2006-01-18  Simon Josefsson  <jas@extundo.com>
84076
84077         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
84078         modules/des-tests, modules/gc-arcfour-tests,
84079         modules/gc-arctwo-tests, modules/gc-des-tests,
84080         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
84081         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
84082         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
84083         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
84084         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
84085         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
84086         $(EXEEXT) to automake TESTS variable, for mingw32.
84087
84088 2006-01-17  Simon Josefsson  <jas@extundo.com>
84089
84090         * modules/socklen (Include): Need sys/socket.h.
84091
84092 2006-01-17  Bruno Haible  <bruno@clisp.org>
84093
84094         * modules/ssize_t (Include): Add <sys/types.h>.
84095
84096 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
84097
84098         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
84099         it's not portable and it doesn't work with cross-compiles.
84100         Problem reported by Bruno Haible.  Fix missing-$ typo in
84101         'test "gl_cv_ignore_unused_libraries" ...' that prevented
84102         -zignore from being used with Sun's C compiler.
84103
84104 2006-01-12  Simon Josefsson  <jas@extundo.com>
84105
84106         * lib/base64.c: Fix warning, reported by Bruno Haible
84107         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
84108
84109 2006-01-12  Bruno Haible  <bruno@clisp.org>
84110
84111         * modules/ldd: New file.
84112         * build-aux/ldd.sh.in: New file.
84113         * MODULES.html.sh (Support for building libraries and executables): Add
84114         ldd.
84115
84116 2006-01-12  Bruno Haible  <bruno@clisp.org>
84117
84118         * m4/ldd.m4: New file.
84119
84120 2006-01-12  Bruno Haible  <bruno@clisp.org>
84121
84122         * gnulib-tool (func_import, func_create_testdir): Don't go into an
84123         endless loop while replacing $auxdir with build-aux.
84124
84125 2006-01-11  Simon Josefsson  <jas@extundo.com>
84126
84127         * lib/stdint_.h (SIZE_MAX): Add missing (.
84128
84129 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
84130
84131         Sync from coreutils.
84132         * lib/md5.c: Fix commentary typos.
84133         (alignof, UNALIGNED_P): No need for a GCC-specific version.
84134         * lib/md5.h (__attribute__): Remove; unused.
84135         * lib/sha1.c: Fix commentary to match md5 better.
84136         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
84137         so that we don't need to worry about alignment.  All uses changed.
84138         This merges the 2005-10-28 md5 change into sha1.
84139
84140 2006-01-11  Jim Meyering  <jim@meyering.net>
84141
84142         Sync from coreutils.
84143         * lib/md5.c (OP): Fix spacing.
84144
84145 2006-01-11  Bruno Haible  <bruno@clisp.org>
84146
84147         Ensure automatic ordering between gl_LOCK and gl_ARGP.
84148         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
84149         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
84150
84151 2006-01-11  Bruno Haible  <bruno@clisp.org>
84152
84153         Ensure automatic ordering between gl_LOCK and gl_ARGP.
84154         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
84155         the "early" section as well.
84156
84157 2006-01-11  Bruno Haible  <bruno@clisp.org>
84158
84159         Avoid "ar: no archive members specified" error on MacOS X.
84160         * gnulib-tool (func_modules_add_dummy): New function.
84161         (func_import, func_create_testdir): Invoke it.
84162
84163 2006-01-11  Bruno Haible  <bruno@clisp.org>
84164
84165         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
84166         with $auxdir in AC_CONFIG_FILES statements.
84167
84168 2006-01-11  Bruno Haible  <bruno@clisp.org>
84169
84170         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
84171         Initialize also noinst_HEADERS to empty.
84172
84173 2006-01-11  Bruno Haible  <bruno@clisp.org>
84174
84175         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
84176         variables.
84177         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
84178         autoreconf.
84179
84180 2006-01-11  Bruno Haible  <bruno@clisp.org>
84181
84182         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
84183         overridable by the user.
84184         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
84185
84186 2006-01-10  Simon Josefsson  <jas@extundo.com>
84187
84188         * modules/sys_socket: New file.
84189
84190 2006-01-10  Simon Josefsson  <jas@extundo.com>
84191
84192         * m4/sys_socket_h.m4: New file.
84193
84194 2006-01-10  Simon Josefsson  <jas@extundo.com>
84195
84196         * lib/socket_.h: New file.
84197
84198 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
84199
84200         * modules/readutmp (Maintainer): Add myself.
84201
84202 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
84203
84204         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
84205         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
84206         People who are still concerned with buggy memcmp implementations
84207         can invoke gl_FUNC_MEMCMP themselves.
84208
84209 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
84210
84211         * lib/regex_internal.h (BITSET_WORD_BITS):
84212         Work around a bug in 64-bit PGC (before version 6.1-2), where the
84213         preprocessor mishandles large unsigned values as if they were signed.
84214         Problem reported by Claudio Fontana in
84215         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
84216
84217 2006-01-10  Jim Meyering  <jim@meyering.net>
84218
84219         Avoid the double-free (first in fts_read, second in fts_close) that
84220         would occur when an `active' directory is made inaccessible (e.g.,
84221         via chmod a-x) during a traversal.
84222         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
84223         before returning.  Reproduce this failure by
84224         mkdir -p a/b; cd a; chmod a-x . b
84225         Reported by Stavros Passas.
84226
84227         Sync from coreutils.
84228         * lib/sha1.c: Tweak grammar in a comment.
84229
84230 2006-01-10  Jim Meyering  <jim@meyering.net>
84231
84232         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
84233         Patch by Joerg Sonnenberger.
84234
84235 2006-01-10  Bruno Haible  <bruno@clisp.org>
84236
84237         * modules/readutmp: Depend on module free.
84238         * modules/strtok_r: Depend on module restrict.
84239
84240 2006-01-10  Bruno Haible  <bruno@clisp.org>
84241
84242         * modules/gettext (configure.ac): Add an invocation of
84243         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
84244
84245 2006-01-10  Bruno Haible  <bruno@clisp.org>
84246
84247         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
84248         Reported by Werner Lemberg <wl@gnu.org>.
84249
84250 2006-01-10  Bruno Haible  <bruno@clisp.org>
84251
84252         * lib/localcharset.c: Update from GNU gettext.
84253
84254 2006-01-10  Bruno Haible  <bruno@clisp.org>
84255
84256         * lib/argp.h (__const): Remove macro. Use const instead.
84257         * lib/argp-fmtstream.h (__const): Likewise.
84258         * lib/glob_.h (__const): Remove macro.
84259         * lib/glob-libc.h: Use const instead of __const.
84260
84261 2006-01-10  Bruno Haible  <bruno@clisp.org>
84262
84263         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
84264         variable.
84265         Needed to avoid an automake error regarding the 'gettext' module.
84266
84267 2006-01-09  Simon Josefsson  <jas@extundo.com>
84268
84269         * modules/inet_ntop (Depends-on): Add restrict.
84270
84271 2006-01-09  Simon Josefsson  <jas@extundo.com>
84272
84273         * modules/gc-rijndael-tests (License): Put under LGPL.
84274
84275         * modules/gc-des-tests (License): Likewise.
84276
84277         * modules/gc-arcfour-tests (License): Likewise.
84278
84279         * modules/gc-arctwo-tests (License): Likewise.
84280
84281         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
84282
84283         * modules/gc-hmac-sha1-tests (Files): Likewise.
84284
84285         * modules/gc-hmac-md5-tests (License): Likewise.
84286
84287         * modules/gc-sha1-tests (License): Likewise.
84288
84289         * modules/gc-md5-tests (License): Likewise.
84290
84291         * modules/gc-md4-tests (License): Likewise.
84292
84293         * modules/gc-md2-tests (License): Likewise.
84294
84295         * modules/gc-tests (License): Likewise.
84296
84297         * modules/des-tests (License): Likewise.
84298
84299         * modules/md4-tests (License): Likewise.
84300
84301         * modules/md2-tests (License): Likewise.
84302
84303 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
84304
84305         Sync from coreutils:
84306
84307         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
84308         * modules/lib-ignore: New file.
84309         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
84310         chdir-safer.m4, lchmod.m4.
84311         * modules/openat: Add mkdirat.c, openat-priv.h.
84312
84313 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
84314
84315         Sync from coreutils.
84316         * m4/lib-ignore.m4: New file.
84317         * m4/lchmod.m4: New file.
84318
84319 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
84320
84321         Sync from coreutils.
84322         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
84323         for write access: POSIX says that must fail.
84324         * lib/fts.c (diropen): Likewise.
84325         * lib/save-cwd.c (save_cwd): Likewise.
84326         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
84327         well, for minor improvements on hosts that lack O_DIRECTORY.
84328         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
84329         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
84330         Fall back on chown if open failed with EACCES.
84331
84332         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
84333         Report an error at compile-time if only a 1-second nominal clock
84334         resolution is found.
84335
84336         * lib/lchmod.h: New file.
84337         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
84338         (make_dir_parents): Use lchown rather than chown, and
84339         lchmod rather than chmod.
84340
84341         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
84342         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
84343         "proc" reported by n0dalus.
84344
84345         * lib/mountlist.c: Include <limits.h>.
84346         (dev_from_mount_options)
84347         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
84348         New function.  It no longer assumes "dev=" has the System V meaning
84349         on Linux (since it doesn't).  It also parses "dev=" more carefully.
84350         (read_file_system_list)
84351         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
84352         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
84353         dev= in that case.
84354
84355         * lib/posixtm.h (PDS_PRE_2000): New macro.
84356         * lib/posixtm.c (year): Arg is now syntax_bits rather than
84357         allow_century.  All usages changed.  Reject dates outside the range
84358         1969-1999 if PDS_PRE_2000 is used.
84359
84360 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
84361
84362         Sync from coreutils.
84363         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
84364         (Time of day items): Mention the possibility of leap seconds.
84365         Problem reported by Dr. David Alan Gilbert.
84366
84367 2006-01-09  Jim Meyering  <jim@meyering.net>
84368
84369         Sync from coreutils.
84370
84371         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
84372
84373         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
84374
84375         * lib/modechange.c (mode_compile): Reject an invalid mode string
84376         that starts with an octal digit.  From Andreas Gruenbacher.
84377
84378         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
84379         and dup to open_safer and dup_safer, respectively.
84380         (openat_permissive): Fix typo in comment.
84381
84382         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
84383         "gettext.h"; either no longer needed or are guaranteed by openat.h.
84384         (_): Remove; no longer needed.
84385         (openat): Renamed from rpl_openat; no need for rpl_openat
84386         since openat.h renames openat for us.
84387         Replace most of the body with a call to openat_permissive,
84388         to avoid duplicate code.
84389         Port to (probably hypothetical) environments were mode_t is
84390         wider than int.
84391         (openat_permissive): Require mode arg, so that we can check
84392         types better.  Put it just after flags.  Change cwd failure
84393         indicator from pointer-to-bool to pointer-to-errno-value.
84394         All callers changed.
84395         Invoke openat_save_fail and/or openat_restore_fail if
84396         cwd_errno is null, so that openat can call us.
84397         (openat_permissive, fdopendir, fstatat, unlinkat):
84398         Simplify errno handling to avoid some duplicate code,
84399         as it's OK to set errno on success.
84400         * lib/openat.h: Revamp code so that function macros depend on
84401         __OPENAT_PREFIX only, not also on AT_FDCWD.
84402         (openat_ro): Remove.  Caller changed to use openat_permissive.
84403         (openat_permissive): Now a macro, if not a function.
84404         (openat_restore_fail, openat_save_fail): Now always functions,
84405         since mkdirat needs them even if __OPENAT_PREFIX is defined.
84406
84407         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
84408         and openat.c.
84409         * lib/mkdirat.c: Include openat-priv.h.
84410         Remove definitions of macros defined therein.
84411         * lib/openat.c: Likewise.
84412
84413         * lib/mkdirat.c (mkdirat): New file and function.
84414         * lib/openat.h (mkdirat): Declare.
84415
84416         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
84417
84418         * lib/openat.h (openat_permissive): Declare.
84419         (openat_ro): Define.
84420
84421         * lib/openat.c (EXPECTED_ERRNO): New macro.
84422         (openat_permissive): New function -- used in remove.c rewrite.
84423         (all functions): Set errno just before returning, only if there
84424         was an actual failure.
84425         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
84426
84427         Emulate openat-family functions using Linux's procfs, if possible.
84428         Idea and some code based on Ulrich Drepper's glibc changes.
84429
84430         * lib/openat.c: (BUILD_PROC_NAME): New macro.
84431         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
84432         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
84433         before falling back on save_cwd and restore_cwd.
84434         (fdopendir, fstatat, unlinkat): Likewise.
84435
84436         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
84437         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
84438
84439         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
84440         as second argument to va_arg.  Otherwise, some versions of gcc
84441         warn that `if this code is reached, the program will abort'.
84442
84443 2006-01-09  Jim Meyering  <jim@meyering.net>
84444
84445         Sync from coreutils.
84446         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
84447         Require openat-priv.h.
84448
84449 2006-01-09  Bruno Haible  <bruno@clisp.org>
84450
84451         * modules/strnlen (Include): Use strnlen.h.
84452
84453 2006-01-09  Bruno Haible  <bruno@clisp.org>
84454
84455         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
84456
84457 2006-01-09  Bruno Haible  <bruno@clisp.org>
84458
84459         * lib/sysexit_.h (EX_OK): New macro.
84460         Suggested by Martin Lambers <marlam@marlam.de>.
84461
84462 2006-01-09  Bruno Haible  <bruno@clisp.org>
84463
84464         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
84465         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
84466
84467 2006-01-09  Bruno Haible  <bruno@clisp.org>
84468
84469         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
84470         numbers.
84471
84472 2006-01-09  Bruno Haible  <bruno@clisp.org>
84473
84474         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
84475         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
84476         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
84477         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
84478
84479 2006-01-09  Bruno Haible  <bruno@clisp.org>
84480
84481         * build-aux/javacomp.sh.in: New file, moved from lib/.
84482         * modules/javacomp-script (Files): Update.
84483         (configure.ac): Add AC_CONFIG_FILES invocation.
84484         (EXTRA_DIST): Remove variable.
84485
84486         * build-aux/javaexec.sh.in: New file, moved from lib/.
84487         * modules/javaexec (Files): Update.
84488         (configure.ac): Add AC_CONFIG_FILES invocation.
84489         (EXTRA_DIST): Remove javaexec.sh.in.
84490
84491         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
84492         * modules/csharpcomp-script (Files): Update.
84493         (configure.ac): Add AC_CONFIG_FILES invocation.
84494         (EXTRA_DIST): Remove variable.
84495
84496         * build-aux/csharpexec.sh.in: New file, moved from lib/.
84497         * modules/csharpexec (Files): Update.
84498         (configure.ac): Add AC_CONFIG_FILES invocation.
84499         (EXTRA_DIST): Remove csharpexec.sh.in.
84500
84501 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
84502
84503         Sync from coreutils.
84504
84505         Add POSIX ACL support
84506         * lib/acl.h (copy_acl, set_acl): Add declarations.
84507         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
84508         systems other than Linux.
84509         (chmod_or_fchmod): New function: use fchmod when possible,
84510         and chmod otherwise.
84511         (file_has_acl): Add a POSIX ACL implementation, with a
84512         Linux-specific subcase.
84513         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
84514         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
84515         acls are unsupported.
84516         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
84517         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
84518         are unsupported.
84519
84520 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
84521
84522         Sync from coreutils.
84523         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
84524
84525 2006-01-07  Bruno Haible  <bruno@clisp.org>
84526
84527         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
84528         gl_EARLY.
84529
84530 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
84531
84532         * lib/strftime.c (tzname): Don't declare if it is already #defined.
84533         Problem reported for Mingw by Mark Junker.
84534
84535 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
84536
84537         * README: Gnulib normally doesn't generate a tarball.
84538
84539 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
84540
84541         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
84542         long int, not int, for nanosecond counts, so that people who are
84543         used to POSIX struct timespec won't be surprised.  Reported by Jim
84544         Meyering.
84545
84546 2005-12-28  Bruno Haible  <bruno@clisp.org>
84547
84548         * build-aux/config.rpath: Update from GNU gettext.
84549
84550 2005-12-16  Jim Meyering  <jim@meyering.net>
84551
84552         * modules/fprintftime: New module.
84553         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
84554
84555 2005-12-16  Jim Meyering  <jim@meyering.net>
84556
84557         * m4/fprintftime.m4: New file.
84558
84559 2005-12-16  Jim Meyering  <jim@meyering.net>
84560
84561         * lib/fprintftime.c, lib/fprintftime.h: New files.
84562
84563 2005-12-15  Simon Josefsson  <jas@extundo.com>
84564
84565         * modules/socklen (configure.ac): Fix M4 macro name, to align with
84566         new m4/socklen.m4.
84567
84568 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
84569
84570         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
84571         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
84572
84573 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
84574
84575         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
84576         * lib/argp-help.c (fill_in_uparams): Check if the constructed
84577         struct uparams is valid. Fall back to the default values if it is
84578         not.
84579
84580 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
84581
84582         * modules/argp (Files): Add argp-pin.c
84583         (Depends-on): dirname
84584         (lib_SOURCES): Add argp-pin.c
84585
84586 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
84587
84588         * m4/argp.m4:  Check if program_invocation_name and
84589         program_invocation_short_name are declared and define appropriate
84590         macros if they are not.
84591
84592 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
84593
84594         * lib/argp-help.c (__argp_base_name): New function
84595         (__argp_short_program_name): Rewrite using __argp_base_name
84596         * lib/argp-namefrob.h: Define program_invocation_name and
84597         program_invocation_short_name if requested
84598         (__argp_base_name): Add prototype
84599         * lib/argp-parse.c (argp_def): Use gettext wrappers
84600         (argp_default_parser): Use __argp_base_name
84601         * lib/argp-pin.c: New file. Defines program_invocation_name and
84602         program_invocation_short_name on systems that lack them.
84603
84604 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
84605
84606         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
84607         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
84608         porting problem reported by Georg Schwarz in
84609         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
84610
84611 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
84612
84613         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
84614         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
84615         porting problem reported by Georg Schwarz in
84616         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
84617
84618 2005-12-05  Bruno Haible  <bruno@clisp.org>
84619
84620         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
84621         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
84622         Reported by Mark Junker <mjscod@gmx.de>.
84623
84624 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
84625
84626         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
84627         Use implementation from Albert Chin, with some
84628         comments/corrections by Stepan Kasal and myself.
84629
84630 2005-12-02  Bruno Haible  <bruno@clisp.org>
84631
84632         * gnulib-tool (func_import): Accept GPLed build tool modules when
84633         --lgpl is given.
84634         * modules/csharpcomp-script: New file.
84635         * modules/csharpcomp: Depend on it.
84636         * modules/javacomp-script: New file.
84637         * modules/javacomp: Depend on it.
84638         Suggested by Simon Josefsson.
84639
84640 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
84641
84642         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
84643         statement, to work around an HP-UX 10.20 compiler bug reported by
84644         Peter O'Gorman.
84645
84646 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
84647
84648         * modules/savedir (Depends-on): Add openat.
84649
84650 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
84651
84652         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
84653         (uintmax_t) [defined uintmax_t]: Do not declare.
84654         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
84655         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
84656         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
84657         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
84658         sake of portability to weird hosts that C allows (though we don't
84659         know of any practical examples).
84660
84661         * lib/savedir.h (fdsavedir): New decl.
84662         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
84663         contains most of the former guts of savedir.
84664         (savedir): Use savedirstream.
84665         Include "openat.h".
84666
84667 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
84668
84669         * modules/obstack (Files): Add m4/ulonglong.m4.
84670         Problem reported by Davide Angelocola.
84671
84672 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
84673
84674         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
84675         coreutils no longer futzes with rounding modes.
84676
84677 2005-11-14  Jim Meyering  <jim@meyering.net>
84678
84679         * lib/mkstemp-safer.c: Include <config.h>, required for possible
84680         replacement of mkstemp.
84681
84682 2005-11-10  Simon Josefsson  <jas@extundo.com>
84683
84684         * lib/readline.c: Remove EOL.
84685
84686 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84687
84688         * modules/gethrxtime (Depends-on): Add gettime.
84689
84690 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84691
84692         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
84693         or gettimeofday; no longer needed.
84694
84695 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84696
84697         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
84698         time business.
84699         (gethrxtime) [! (HAVE_NANOUPTIME
84700         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
84701         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
84702         our own approximation.
84703
84704 2005-11-08  Eric Blake  <ebb9@byu.net>
84705
84706         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
84707
84708 2005-11-08  Eric Blake  <ebb9@byu.net>
84709
84710         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
84711
84712 2005-11-04  Bruno Haible  <bruno@clisp.org>
84713
84714         * gnulib-tool: Implement --update mode.
84715
84716 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
84717
84718         Fix porting problem reported by Theodoros V. Kalamatianos.
84719         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
84720         Don't assume that futimes failing means we must fail.
84721
84722 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
84723
84724         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
84725         variables to suggest the intended function of the PATH_MAX check.
84726
84727 2005-10-30  Kean Johnston  <jkj@sco.com>
84728
84729         Trivial changes to support SCO systems.
84730         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
84731         as PATH_MAX.
84732         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
84733         where __ptr is null when no I/O is pending.
84734
84735 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84736
84737         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
84738         leave errno alone.  Problem reported by Dmitry V. Levin.
84739
84740 2005-10-28  Simon Josefsson  <jas@extundo.com>
84741
84742         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
84743         Test more.
84744
84745         * tests/test-gc-md2.c, tests/test-md2.c: New files.
84746
84747         * modules/md2, modules/md2-tests: New files.
84748
84749 2005-10-28  Simon Josefsson  <jas@extundo.com>
84750
84751         * m4/inet_ntop.m4: More tests.
84752
84753         * m4/gc-md2.m4, md2.m4: New file.
84754
84755 2005-10-28  Simon Josefsson  <jas@extundo.com>
84756
84757         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
84758         "restrict" keywords, as per POSIX.  Protect the function
84759         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
84760         Don't use K&R prototypes.  Check the sprintf return values.
84761         Re-define EAFNOSUPPORT if not present.  Indent.
84762
84763         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
84764         suggested by Bruno Haible <bruno@clisp.org>.
84765
84766         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
84767
84768         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
84769
84770         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
84771         libgcrypt).
84772
84773         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
84774
84775         * lib/md2.h, lib/md2.c: New files.
84776
84777 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
84778
84779         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
84780         errno alone.  Problem reported by Frederic Jolliton.
84781
84782 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
84783
84784         * modules/verify (License): Change from GPL to LGPL.  This is a
84785         tiny module and there are apparently near-equivalents that are
84786         under the BSD license.
84787
84788 2005-10-24  Simon Josefsson  <jas@extundo.com>
84789
84790         * modules/sha1: Relicense to LGPL.
84791
84792 2005-10-24  Simon Josefsson  <jas@extundo.com>
84793
84794         * lib/md4.h: Shrink buffer size, now that we changed the type.
84795
84796 2005-10-23  Simon Josefsson  <jas@extundo.com>
84797
84798         * gnulib-tool (func_import): Fix --tests-base.
84799
84800 2005-10-22  Simon Josefsson  <jas@extundo.com>
84801
84802         * modules/arcfour (Depends-on): Need stdint.
84803
84804 2005-10-22  Simon Josefsson  <jas@extundo.com>
84805
84806         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
84807         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
84808
84809 2005-10-22  Simon Josefsson  <jas@extundo.com>
84810
84811         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
84812         suggested by Bruno Haible <bruno@clisp.org>.
84813
84814 2005-10-22  Simon Josefsson  <jas@extundo.com>
84815
84816         * lib/crc.h: Include stddef.h, for size_t.
84817
84818 2005-10-22  Simon Josefsson  <jas@extundo.com>
84819
84820         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
84821         arcfour_context struct (simplify test vector testing in GNU
84822         Shishi).
84823
84824 2005-10-21  Simon Josefsson  <jas@extundo.com>
84825
84826         * modules/des, modules/des-tests: New files.
84827
84828         * modules/gc-des, modules/gc-des-tests: New files.
84829
84830         * tests/test-des.c, tests/test-gc-des.c: New file.
84831
84832 2005-10-21  Simon Josefsson  <jas@extundo.com>
84833
84834         * modules/arctwo, modules/arctwo-tests: New files.
84835
84836         * tests/test-arctwo.c: New file.
84837
84838         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
84839
84840         * tests/test-gc-arctwo.c: New file.
84841
84842 2005-10-21  Simon Josefsson  <jas@extundo.com>
84843
84844         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
84845         Bruno Haible <bruno@clisp.org>.
84846
84847         * m4/gc-des.m4: New file.
84848
84849 2005-10-21  Simon Josefsson  <jas@extundo.com>
84850
84851         * m4/arctwo.m4: New file.
84852
84853         * m4/gc-arctwo.m4: New file.
84854
84855 2005-10-21  Simon Josefsson  <jas@extundo.com>
84856
84857         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
84858         block.
84859
84860 2005-10-21  Simon Josefsson  <jas@extundo.com>
84861
84862         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
84863         <bruno@clisp.org>.
84864
84865         * lib/hmac-sha1.c (hmac_sha1): Likewise.
84866
84867         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
84868         Bruno Haible <bruno@clisp.org>.
84869
84870         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
84871         <bruno@clisp.org>.
84872
84873 2005-10-21  Simon Josefsson  <jas@extundo.com>
84874
84875         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
84876
84877 2005-10-21  Simon Josefsson  <jas@extundo.com>
84878
84879         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
84880
84881 2005-10-21  Simon Josefsson  <jas@extundo.com>
84882
84883         * lib/des.h, lib/des.c: New files.
84884
84885         * lib/gc-gnulib.c: Support DES.c
84886
84887 2005-10-21  Simon Josefsson  <jas@extundo.com>
84888
84889         * lib/arctwo.h, lib/arctwo.c: New files.
84890
84891         * lib/gc-gnulib.c: Support ARCTWO.
84892
84893 2005-10-21  Simon Josefsson  <jas@extundo.com>
84894
84895         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
84896         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
84897
84898 2005-10-21  Simon Josefsson  <jas@extundo.com>
84899
84900         * gnulib-tool (func_import, func_create_testdir): Define automake
84901         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
84902         Makefile.am snippet),
84903         suggested by Bruno Haible <bruno@clisp.org>.
84904
84905         * modules/gc (Makefile.am): Use it.
84906
84907 2005-10-21  Bruno Haible  <bruno@clisp.org>
84908
84909         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
84910         patch.
84911
84912 2005-10-19  Simon Josefsson  <jas@extundo.com>
84913
84914         * tests/test-gc-rijndael.c: New file.
84915
84916         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
84917
84918 2005-10-19  Simon Josefsson  <jas@extundo.com>
84919
84920         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
84921         interface too.
84922
84923 2005-10-19  Simon Josefsson  <jas@extundo.com>
84924
84925         * tests/test-gc-arcfour.c: New file.
84926
84927         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
84928
84929 2005-10-19  Simon Josefsson  <jas@extundo.com>
84930
84931         * modules/gc-md4, modules/gc-md4-tests: New file.
84932
84933         * tests/test-gc-md4.c: New file.
84934
84935 2005-10-19  Simon Josefsson  <jas@extundo.com>
84936
84937         * m4/gc-md4.m4: New file.
84938
84939 2005-10-19  Simon Josefsson  <jas@extundo.com>
84940
84941         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
84942         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
84943         <kasal@ucw.cz>.
84944
84945 2005-10-19  Simon Josefsson  <jas@extundo.com>
84946
84947         * m4/gc-arcfour.m4: New file.
84948
84949         * m4/gc-rijndael.m4: New file.
84950
84951 2005-10-19  Simon Josefsson  <jas@extundo.com>
84952
84953         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
84954
84955 2005-10-19  Simon Josefsson  <jas@extundo.com>
84956
84957         * lib/gc-gnulib.c: Support ARCFOUR.
84958
84959 2005-10-19  Simon Josefsson  <jas@extundo.com>
84960
84961         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
84962         support.
84963
84964         * lib/gc.h: Add ECB enum type.
84965
84966         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
84967
84968 2005-10-18  Simon Josefsson  <jas@extundo.com>
84969
84970         * tests/test-md5.c: New file.
84971
84972         * modules/md5-tests: New file.
84973
84974 2005-10-18  Simon Josefsson  <jas@extundo.com>
84975
84976         * tests/test-md4.c: New file.
84977
84978         * modules/md4, modules/md4-tests: New files.
84979
84980 2005-10-18  Simon Josefsson  <jas@extundo.com>
84981
84982         * m4/md4.m4: New file.
84983
84984 2005-10-18  Simon Josefsson  <jas@extundo.com>
84985
84986         * lib/md4.h, lib/md4.c: New files, based on md5.?.
84987
84988 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
84989
84990         * gnulib-tool (func_create_testdir): Omit the second check whether
84991         BUILT_SOURCES in nonempty.
84992
84993 2005-10-17  Simon Josefsson  <jas@extundo.com>
84994
84995         * tests/test-rijndael.c: New file.
84996
84997 2005-10-17  Simon Josefsson  <jas@extundo.com>
84998
84999         * modules/sha1: Depend on stdint instead of md5.
85000
85001         * modules/md5: Depend on stdint, remove uint32_t.
85002
85003 2005-10-17  Simon Josefsson  <jas@extundo.com>
85004
85005         * modules/gc-sha1-tests: New file.
85006
85007         * tests/test-gc-sha1.c: New file.
85008
85009 2005-10-17  Simon Josefsson  <jas@extundo.com>
85010
85011         * m4/md5.m4: Remove call to uint32_t.m4.
85012
85013 2005-10-17  Simon Josefsson  <jas@extundo.com>
85014
85015         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
85016
85017         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
85018         md5.h.
85019
85020         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
85021
85022         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
85023
85024 2005-10-17  Simon Josefsson  <jas@extundo.com>
85025
85026         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
85027
85028 2005-10-17  Simon Josefsson  <jas@extundo.com>
85029
85030         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
85031
85032 2005-10-17  Simon Josefsson  <jas@extundo.com>
85033
85034         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
85035
85036         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
85037
85038 2005-10-17  Bruno Haible  <bruno@clisp.org>
85039
85040         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
85041         that it can also be used in a test.
85042
85043 2005-10-16  Bruno Haible  <bruno@clisp.org>
85044
85045         * gnulib-tool (func_emit_tests_Makefile_am): Also define
85046         TESTS_ENVIRONMENT, so that individual tests can augment it.
85047
85048         * gnulib-tool (func_create_testdir): Use an intermediate target for
85049         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
85050         macros, like $(ALLOCA_H), which cannot be passed through the command
85051         line.
85052
85053 2005-10-15  Simon Josefsson  <jas@extundo.com>
85054
85055         * modules/rijndael-tests: New file.
85056
85057         * modules/rijndael: New file.
85058
85059 2005-10-15  Simon Josefsson  <jas@extundo.com>
85060
85061         * m4/rijndael.m4: New file.
85062
85063 2005-10-15  Simon Josefsson  <jas@extundo.com>
85064
85065         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
85066
85067         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
85068
85069 2005-10-14  Simon Josefsson  <jas@extundo.com>
85070
85071         * tests/test-arcfour.c: New file.
85072
85073         * modules/arcfour, modules/arcfour-tests: New files.
85074
85075 2005-10-14  Simon Josefsson  <jas@extundo.com>
85076
85077         * m4/arcfour.m4: New file.
85078
85079 2005-10-14  Simon Josefsson  <jas@extundo.com>
85080
85081         * lib/arcfour.h, lib/arcfour.c: New files.
85082
85083 2005-10-14  Roland McGrath  <roland@redhat.com>
85084
85085         Import from libc.  [BZ #1331]
85086         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
85087         macro argument.
85088         Reported by Matej Vela <vela@debian.org>.
85089
85090 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
85091
85092         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
85093         include <wchar.h>; no longer needed.
85094
85095 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
85096
85097         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
85098
85099 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
85100         and  Ulrich Drepper  <drepper@redhat.com>
85101
85102         Import from libc.
85103         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
85104         instead of inline stream orientation test and two separate
85105         function calls.  Pay no attention to USE_IN_LIBIO.
85106
85107 2005-10-13  Simon Josefsson  <jas@extundo.com>
85108
85109         * modules/gc-hmac-md5-tests: New file.
85110
85111         * tests/test-gc-hmac-sha1.c: New file.
85112
85113         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
85114
85115         * modules/gc-hmac-md5-tests: New file.
85116
85117         * tests/test-gc-md5.c: New file.
85118
85119         * modules/gc-md5-tests: New file.
85120
85121 2005-10-13  Simon Josefsson  <jas@extundo.com>
85122
85123         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
85124         Move memory allocation outside of loop.
85125
85126 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
85127
85128         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
85129         intermediate directory is in a read-only file system.  Problem
85130         reported by Eric Blake.
85131
85132 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
85133
85134         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
85135
85136 2005-10-12  Simon Josefsson  <jas@extundo.com>
85137
85138         * tests/test-hmac-sha1.c: New file.
85139
85140         * modules/hmac-sha1-tests: New file.
85141
85142         * modules/hmac-sha1: New file.
85143
85144 2005-10-12  Simon Josefsson  <jas@extundo.com>
85145
85146         * modules/gc-sha1: New file.
85147
85148 2005-10-12  Simon Josefsson  <jas@extundo.com>
85149
85150         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
85151
85152         * tests/test-gc-pbkdf2-sha1.c: New file.
85153
85154 2005-10-12  Simon Josefsson  <jas@extundo.com>
85155
85156         * modules/gc-md5, modules/gc-hmac-md5: New files.
85157
85158         * modules/gc (Files): Remove md5, memxor and hmac files.
85159
85160 2005-10-12  Simon Josefsson  <jas@extundo.com>
85161
85162         * m4/gc-pbkdf2-sha1.m4: New file.
85163
85164         * m4/gc-hmac-sha1.m4: New file.
85165
85166         * m4/gc-sha1: New file.
85167
85168         * m4/hmac-sha1.m4: New file.
85169
85170 2005-10-12  Simon Josefsson  <jas@extundo.com>
85171
85172         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
85173
85174         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
85175
85176 2005-10-12  Simon Josefsson  <jas@extundo.com>
85177
85178         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
85179         suggested by Bruno Haible <bruno@clisp.org>.
85180
85181 2005-10-12  Simon Josefsson  <jas@extundo.com>
85182
85183         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
85184
85185 2005-10-12  Simon Josefsson  <jas@extundo.com>
85186
85187         * lib/gc-pbkdf2-sha1.c: New file.
85188
85189         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
85190
85191 2005-10-12  Simon Josefsson  <jas@extundo.com>
85192
85193         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
85194
85195         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
85196
85197 2005-10-12  Simon Josefsson  <jas@extundo.com>
85198
85199         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
85200         GC_USE_HMAC_MD5, respectively.
85201
85202         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
85203         (gc_md5): Fix typo.
85204
85205         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
85206
85207         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
85208
85209         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
85210
85211 2005-10-12  Bruno Haible  <bruno@clisp.org>
85212
85213         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
85214         Reported by Stepan Kasal <kasal@ucw.cz>.
85215
85216 2005-10-11  Simon Josefsson  <jas@extundo.com>
85217
85218         * tests/test-crc.c: New file.
85219
85220         * modules/crc, modules/crc-tests: New files.
85221
85222 2005-10-11  Simon Josefsson  <jas@extundo.com>
85223
85224         * m4/crc.m4: New file.
85225
85226 2005-10-11  Simon Josefsson  <jas@extundo.com>
85227
85228         * lib/gc.h: Add gc_hash and gc_hash_buffer.
85229
85230         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
85231
85232         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
85233
85234 2005-10-11  Simon Josefsson  <jas@extundo.com>
85235
85236         * lib/crc.h, lib/crc.c: New files.
85237
85238         * lib/gc.h (gc_hash_buffer): Add doc.
85239
85240 2005-10-11  Bruno Haible  <bruno@clisp.org>
85241
85242         * modules/c-strcasestr: New file.
85243         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
85244
85245 2005-10-11  Bruno Haible  <bruno@clisp.org>
85246
85247         * modules/c-strcase: New file.
85248         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
85249
85250 2005-10-11  Bruno Haible  <bruno@clisp.org>
85251
85252         * lib/strcasecmp.c: Include limits.h.
85253         (strcasecmp): Avoid integer overflow on exotic platforms.
85254         * lib/strncasecmp.c: Include limits.h.
85255         (strncasecmp): Avoid integer overflow on exotic platforms.
85256         Reported by Paul Eggert.
85257
85258 2005-10-11  Bruno Haible  <bruno@clisp.org>
85259
85260         * lib/c-strcasestr.h: New file, from GNU gettext.
85261         * lib/c-strcasestr.c: New file, from GNU gettext.
85262
85263 2005-10-11  Bruno Haible  <bruno@clisp.org>
85264
85265         * lib/c-strcase.h: New file, from GNU gettext.
85266         * lib/c-strcasecmp.c: New file, from GNU gettext.
85267         * lib/c-strncasecmp.c: New file, from GNU gettext.
85268
85269 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
85270
85271         * modules/mempcpy (License): GPL -> LGPL.
85272         * modules/strchrnul (License): Likewise.
85273         * modules/sysexits (License): Likewise.
85274
85275 2005-10-08  Simon Josefsson  <jas@extundo.com>
85276
85277         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
85278
85279 2005-10-07  Simon Josefsson  <jas@extundo.com>
85280
85281         * m4/memxor.m4: Remove gl_C_RESTRICT call.
85282
85283 2005-10-06  Simon Josefsson  <jas@extundo.com>
85284
85285         * tests/test-hmac-md5.c: New file.
85286
85287         * modules/hmac-md5-tests: New file.
85288
85289         * modules/hmac-md5: New file.
85290
85291 2005-10-06  Simon Josefsson  <jas@extundo.com>
85292
85293         * m4/hmac-md5.m4: New file.
85294
85295         * m4/memxor.m4: Require gl_C_RESTRICT.
85296
85297 2005-10-06  Simon Josefsson  <jas@extundo.com>
85298
85299         * lib/memxor.c (memxor): Avoid casts and warnings.
85300
85301 2005-10-06  Simon Josefsson  <jas@extundo.com>
85302
85303         * lib/hmac-md5.c: New file.
85304
85305         * lib/hmac.h: New file.
85306
85307 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
85308
85309         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
85310         promotes to int, not unsigned int, to catch the AIX 5.3
85311         compiler bug.
85312
85313 2005-10-05  Simon Josefsson  <jas@extundo.com>
85314
85315         * modules/memxor: New file.
85316
85317         * modules/iconv (Files): Move config.rpath to havelib, it is used
85318         there.
85319
85320         * modules/havelib (Files): Add config.rpath.
85321
85322 2005-10-05  Simon Josefsson  <jas@extundo.com>
85323
85324         * m4/memxor.m4: New file.
85325
85326 2005-10-05  Simon Josefsson  <jas@extundo.com>
85327
85328         * lib/memxor.c (memxor): Fix compiler error.
85329
85330         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
85331         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
85332
85333         * lib/memxor.h, lib/memxor.c: New files.
85334
85335         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
85336         we assume all systems have it, suggested by Jim Meyering
85337         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
85338         any systems lack sys/socket.h; mingw32 is known to lack it, but we
85339         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
85340         same reasons.
85341
85342 2005-10-05  Simon Josefsson  <jas@extundo.com>
85343
85344         * config/srclist.txt: Add glibc bug 1423 for md5.h.
85345
85346 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
85347
85348         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
85349         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
85350         needed, since the source code now assumes these .h files.
85351
85352 2005-10-05  Derek Price  <derek@ximbiot.com>
85353
85354         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
85355
85356 2005-10-05  Bruno Haible  <bruno@clisp.org>
85357
85358         * modules/stdint (License): Change to LGPL.
85359
85360 2005-10-04  Simon Josefsson  <jas@extundo.com>
85361
85362         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
85363         D. Baushke" <mdb@gnu.org>.
85364
85365 2005-10-04  Bruno Haible  <bruno@clisp.org>
85366
85367         * lib/verify.h (verify_true): Provide alternative definition for C++.
85368
85369 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
85370
85371         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
85372         (SSIZE_MAX): New macro, if not already defined.
85373         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
85374         than 2 GiB.
85375
85376 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
85377
85378         Sync from coreutils.
85379         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
85380         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
85381         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
85382         ULLONG_MAX doesn't work with 2.7.2.1.
85383
85384 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
85385
85386         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
85387         From Ben Pfaff.
85388
85389         * modules/exclude (Depends-on): Depend on verify.
85390         * modules/strtoimax (Depends-on): Likewise.
85391         * modules/utimecmp (Depends-on): Likewise.
85392
85393 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
85394
85395         * lib/exclude.c: Include verify.h.
85396         (verify): Remove.  All callers changed to use verify.h's version.
85397         * lib/strtoimax.c: Likewise.
85398         * lib/utimecmp.c: Likewis.e
85399
85400         Sync from coreutils.
85401         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
85402         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
85403         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
85404         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
85405         bother returning ENOSYS if settimeofday or stime fails; just let
85406         them return whatever errno they want to return.
85407         * lib/utimens.c: Include unistd.h, for dup2.
85408         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
85409         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
85410
85411 2005-10-02  Jim Meyering  <jim@meyering.net>
85412
85413         Sync from coreutils.
85414         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
85415         from glibc-2.2.5 that fails for read-only files.
85416
85417 2005-10-02  Jim Meyering  <jim@meyering.net>
85418
85419         Sync from coreutils.
85420         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
85421         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
85422         `#if HAVE_CONFIG_H'.
85423         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
85424         Remove AT_FDCWD test.
85425         Do not consume the fd unless successful.
85426         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
85427         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
85428         block, so that we don't even try to compile it if settimeofday is
85429         available.  This works around a compilation failure on OSF1 V5.1,
85430         due to stime requiring a `long int*' while tv_sec is `int'.
85431
85432 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
85433
85434         Sync from coreutils.
85435         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
85436         against `yes', rather than just testing for nonempty.
85437
85438 2005-10-01  Simon Josefsson  <jas@extundo.com>
85439
85440         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
85441         and Darwin.
85442
85443         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
85444         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
85445         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
85446         freeaddrinfo and gai_strerror are declared by the POSIX headers.
85447         Check if struct addrinfo is declared.
85448
85449 2005-10-01  Simon Josefsson  <jas@extundo.com>
85450
85451         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
85452         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
85453         AI_* and EAI_* definitions.  Protect function declarations.
85454
85455 2005-10-01  Jim Meyering  <jim@meyering.net>
85456
85457         Sync from coreutils.
85458
85459         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
85460         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
85461         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
85462         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
85463         in the inet and nsl libraries.  Required on Solaris 5.7.
85464
85465 2005-10-01  Jim Meyering  <jim@meyering.net>
85466
85467         Sync from coreutils.
85468         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
85469         in the inet and nsl libraries.  Required on Solaris 5.7.
85470
85471 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
85472
85473         * lib/getdelim.c (getdelim): Remove unused variables.
85474
85475 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
85476
85477         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
85478         so that the code works even with ancient cpp.  Portability problem
85479         with GCC 2.7.2.1 reported by Thomas M.Ott.
85480
85481 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
85482
85483         * modules/regex (Depends-on): Add strcase.
85484
85485         * modules/gethostname (Licence): Change from GPL to LGPL, since
85486         gethostname.c is a trivial implementation of a standard library
85487         function.
85488         * modules/poll (License): Change from GPL to LGPL, since it's
85489         derived from LGPL code.
85490
85491 2005-09-27  Jim Meyering  <jim@meyering.net>
85492
85493         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
85494         HAVE_CONFIG_H.
85495
85496         * lib/intprops.h (signed_type_or_expr__): Define.
85497         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
85498         for unsigned types.
85499
85500 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
85501
85502         * lib/verify.h (verify_expr): Remove, replacing with:
85503         (verify_true): New macro that returns true instead of void.
85504         (verify_type__): Remove.
85505         (verify): Use verify_true rather than verify_type__.
85506
85507 2005-09-26  Bruno Haible  <bruno@clisp.org>
85508
85509         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
85510         is necessary.
85511         (lib_SOURCES): Remove mbchar.c.
85512         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
85513         (Files): Add m4/mbrtowc.m4.
85514         * modules/mbiter: Likewise.
85515         * modules/mbuiter: Likewise.
85516
85517 2005-09-26  Bruno Haible  <bruno@clisp.org>
85518
85519         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
85520         compile mbchar.c if they are not both present.
85521         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
85522         * m4/mbiter.m4 (gl_MBITER): Likewise.
85523         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
85524         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
85525         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
85526
85527 2005-09-25  Jim Meyering  <jim@meyering.net>
85528
85529         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
85530         also uses socklen_t.
85531
85532 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
85533
85534         * lib/utimens.c (ENOSYS): Define if not already defined.
85535         (futimens): Support having a null PATH if the file descriptor
85536         is nonnegative.
85537
85538         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
85539         Remove.
85540         (__attribute): Define to empty unless GCC 3.1 or later.
85541         This works around a core dump on OpenBSD 3.4, which has GCC
85542         2.95.3, which dumps core when given __attribute__(()).  It also
85543         simplifies other tests, since we really don't want to bother with
85544         worrying about which ancient version of GCC supported what.
85545         Original problem reported by Yoann Vandoorselaere, with part of
85546         the fix suggested by Derek Price.
85547
85548 2005-09-24  Jim Meyering  <jim@meyering.net>
85549
85550         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
85551         so we can once again use a positive bitfield width of 1 -- now we
85552         don't have to explain why we were using a bitfield width of 2.
85553
85554 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
85555
85556         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
85557         and similarly for the other external symbols.  Problem reported
85558         by James Gallager.
85559
85560         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
85561         bug reported by Jim Meyering.
85562
85563         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
85564         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
85565         not needed, since socklen is a prerequisite module.
85566
85567 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
85568
85569         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
85570         Problem reported by Eric Blake.
85571         (getaddrinfo): Initialize se so that it's not garbage.
85572         Redo internal storage allocation so that it doesn't make unportable
85573         assumptions about alignment.
85574         Fix a memory leak.
85575
85576         * lib/utimens.c (futimens): Use futimesat if available.
85577         Prefer it to futimes since it doesn't have the futimes bug.
85578
85579         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
85580         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
85581         Instead, declare a function that returns a pointer to an array,
85582         and use verify_type__ to declare the size of the array.
85583         Problem and germ of a solution reported by Bruno Haible.
85584         (verify_type__): Use 2, not 1, for bitfield size, to avoid
85585         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
85586
85587 2005-09-23  Jim Meyering  <jim@meyering.net>
85588
85589         Sync from coreutils.
85590         Correct build failure (socklen_t not defined) on at least
85591         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
85592         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
85593
85594 2005-09-23  Jim Meyering  <jim@meyering.net>
85595
85596         * modules/getaddrinfo (Depends-on): Add socklen.
85597
85598 2005-09-23  Bruno Haible  <bruno@clisp.org>
85599
85600         * tests/test-verify.c: New file.
85601
85602 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
85603
85604         Sync from coreutils.
85605
85606         * modules/argmatch (Depends-on): Add verify.
85607         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
85608         unistd-safer.
85609         * modules/save-cwd (Depends-on): Likewise.
85610
85611         * modules/openat (Files): Add lib/openat-die.c.
85612         (Depends-on): Remove error, exitfail.
85613         Add dirname.
85614
85615         * modules/verify: New file.
85616         * MODULES.html.sh (Diagnostics <assert.h>): New section,
85617         with "verify" module.
85618
85619 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
85620
85621         Sync from coreutils.
85622
85623         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
85624         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
85625         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
85626         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
85627         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
85628         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
85629         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
85630         Don't bother checking for string.h, stdlib.h, unistd.h.
85631         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
85632         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
85633         module's job.
85634         * m4/jm-macros.m4 (gl_MACROS): Likewise.
85635         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
85636
85637         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
85638         (gl_GETDATE): Use it.
85639
85640         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
85641
85642 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
85643
85644         Sync from coreutils.
85645
85646         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
85647         stat-time.h.
85648         * lib/argmatch.h: Include verify.h
85649         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
85650         (ARGMATCH_ASSERT): Remove; unused.
85651         * lib/canonicalize.c: Assume STDC_HEADERS.
85652         * lib/exclude.c: Include "strcase.h".
85653         * lib/regex_internal.h [!defined _LIBC]: Likewise.
85654         * lib/getusershell.c: Include stdio--.h rather than stdio.h
85655         and stdio-safer.h.
85656         (getusershell): Call fopen, not fopen_safer.
85657         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
85658         Do not include unistd-safer.h.
85659         (save_cwd): Don't call fd_safer; no longer needed
85660         now that we include fcntl--.h.
85661
85662         * lib/getdate.y (relative_time): New type.
85663         (RELATIVE_TIME_0): New constant.
85664         (parser_control): Use relative_time instead of doing it ourselves.
85665         (%union): Add new relative_time rel member.
85666         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
85667         Now typeless.
85668         (relunit, relunit_snumber): Now of type rel.
85669         (zone, rel, relunit, get_date): Adjust to above changes.
85670
85671         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
85672         Do not include unistd-safer.h.
85673         (getloadavg): Don't call fd_safer; no longer needed
85674         now that we include fcntl--.h.
85675
85676         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
85677         (make_dir_parents): Treat ENOSYS like EEXIST.
85678
85679         Improve quality of diagnostics on restore_cwd failure.
85680         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
85681         (make_dir_parents): Last arg is now int * (for errno), not bool *.
85682         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
85683         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
85684         each time through the loop.  Do not diagnose restore_cwd failure;
85685         that is the caller's job (and perhaps the caller does not care).
85686
85687         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
85688         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
85689         If the file already exists but is not a directory, don't bother
85690         to try to make its parents.
85691         Close potential file descriptor leak if we can't chdir("/") (!).
85692         Don't always return true if chdir($PWD) fails; return true only
85693         if the requested action was done successfully (except for the
85694         chdir($PWD)).
85695         Don't log final directory unless we actually made it.
85696         Refactor to avoid duplicate code to fix up permissions.
85697         Don't attempt to fix up parent permissions if chdir($PWD) fails.
85698
85699         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
85700         to make it a bit faster and (I hope) clearer.
85701         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
85702         Fix bug in formats like %2N.
85703
85704         * lib/verify.h: New file.
85705
85706 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
85707
85708         Sync from coreutils.
85709         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
85710
85711 2005-09-22  Jim Meyering  <jim@meyering.net>
85712
85713         Sync from coreutils.
85714
85715         * m4/lstat.m4 (gl_FUNC_LSTAT):
85716         Use AC_LIBSOURCES to require lstat.c and lstat.h.
85717         Remove obsolete comment.
85718         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
85719         * m4/xstrtod.m4: Likewise.
85720
85721         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
85722
85723 2005-09-22  Jim Meyering  <jim@meyering.net>
85724
85725         Sync from coreutils.
85726
85727         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
85728
85729         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
85730         the .tm_year member, since otherwise gcc-4.0 would now warn about
85731         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
85732
85733         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
85734         order to avoid an unsuppressible warning from gcc on 64-bit systems.
85735
85736         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
85737         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
85738         when run in a time zone for which daylight savings time is in effect
85739         for the starting date.
85740
85741         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
85742         stop us from restricting permissions of just-created absolute-named
85743         directories.
85744         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
85745         to restore initial working directory.
85746         * lib/mkdir-p.c (make_dir_parents): New parameter:
85747         different_working_dir, to tell caller if/when we change the working
85748         directory and are unable to return to the initial one.
85749         * lib/mkdir-p.h (make_dir_parents): Update prototype.
85750         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
85751         `return false'.  This fixes a bug introduced on 2004-07-30.
85752
85753         * lib/openat.c (fdopendir): Be sure to close the supplied
85754         file descriptor before returning.  This makes our replacement
85755         implementation a little closer to Solaris's, where fdopendir
85756         ties the file descriptor to the returned DIR* pointer.
85757         * lib/openat.c (unlinkat): New function.
85758         * lib/openat.h (unlinkat): Add prototype.
85759         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
85760         (openat_restore_fail): Rename from openat_restore_die.
85761         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
85762
85763         Provide an alternative to exiting immediately upon save_cwd or
85764         restore_cwd failure.  Now, an application can arrange e.g.,
85765         to perform a longjump in that case.
85766         * lib/openat.c: Include dirname.h.
85767         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
85768         (rpl_openat, fdopendir, fstatat): Call openat_save_die
85769         and openat_restore_die rather than calling error directly.
85770         Don't include "error.h" or "exitfail.h"; they're no longer needed.
85771
85772         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
85773         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
85774         define.
85775
85776         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
85777         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
85778                             int utc, int nanoseconds);
85779         Background:
85780         date should not have to allocate a megabyte of virtual memory to
85781         handle a format argument like +%1048575T.  When implemented with
85782         strftime, it must allocate such a buffer, use strftime to fill it
85783         in, print it, then free it.
85784         With fprintftime, it simply prints everything and exits.
85785         With no need for memory allocation, that's one fewer way to fail.
85786         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
85787         optional field width, not before, so we accept %9:z, not %:9z.
85788         (my_strftime): Be sure to use L_('x') for literals.
85789
85790         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
85791         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
85792         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
85793         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
85794         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
85795         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
85796         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
85797         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
85798         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
85799         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
85800         * lib/xgethostname.c, lib/xreadlink.c:
85801         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
85802
85803         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
85804         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
85805         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
85806         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
85807         and don't include <sys/file.h>).
85808
85809 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
85810
85811         Sync from coreutils.
85812
85813         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
85814         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
85815         [!LDAV_DONE]: Avoid unused variable warning.
85816
85817 2005-09-21  Bruno Haible  <bruno@clisp.org>
85818
85819         * lib/unicodeio.h (unicode_to_mb): New declaration.
85820
85821 2005-09-20  Derek Price  <derek@ximbiot.com>
85822
85823         * lib/getaddrinfo.c: Don't include <netdb.h> included from
85824         getaddrinfo.h.
85825
85826 2005-09-20  Bruno Haible  <bruno@clisp.org>
85827
85828         * gnulib-tool: Remove trailing slashes from the values specified for
85829         --source-base, --m4-base, --tests-base, --aux-dir.
85830         Suggested by Simon Josefsson <jas@extundo.com>.
85831
85832 2005-09-20  Bruno Haible  <bruno@clisp.org>
85833
85834         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
85835         func_modules_to_filelist, func_import, func_create_testdir): Make all
85836         sorting results locale-independent, so that gnulib-cache.m4 doesn't
85837         change when gnulib-tool is invoked in a different locale.
85838
85839 2005-09-19  Simon Josefsson  <jas@extundo.com>
85840
85841         * m4/socklen.m4: Fix typo.
85842
85843 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85844
85845         Use a consistent style for including <config.h>.
85846         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
85847         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
85848         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
85849         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
85850         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
85851         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
85852         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
85853         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
85854         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
85855         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
85856         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
85857         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
85858         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
85859         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
85860         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
85861         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
85862         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
85863         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
85864         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
85865         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
85866         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
85867         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
85868         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
85869         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
85870         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
85871         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
85872         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
85873         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
85874         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
85875         lib/xstrtoumax.c, lib/yesno.c:
85876         Standardize inclusion of config.h.
85877         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
85878         lib/inttostr.h:  Removed inclusion of config.h from header files.
85879         * lib/inttostr.c:  Adjusted in-tree users.
85880         * lib/timespec.h: Remove superfluous warning to include config.h.
85881         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
85882         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
85883         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
85884         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
85885         config.h with HAVE_CONFIG_H.
85886
85887 2005-09-19  Jim Meyering  <jim@meyering.net>
85888
85889         * modules/pathmax (License): Change to LGPL.
85890
85891 2005-09-19  Derek Price  <derek@ximbiot.com>
85892
85893         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
85894
85895 2005-09-19  Bruno Haible  <bruno@clisp.org>
85896
85897         * gnulib-tool (import): Provide default for --tests-base.
85898
85899 2005-09-19  Bruno Haible  <bruno@clisp.org>
85900
85901         * doc/quote.texi: New file, extracted from gnulib.texi.
85902         * doc/ctime.texi: New file, extracted from gnulib.texi.
85903         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
85904         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
85905         * doc/gnulib.texi: Include them.
85906
85907 2005-09-18  Bruno Haible  <bruno@clisp.org>
85908
85909         Portability fix.
85910         * gnulib-tool (func_readlink): New function.
85911         (func_ln_if_changed): Use it.
85912
85913 2005-09-18  Bruno Haible  <bruno@clisp.org>
85914
85915         * gnulib-tool: Support --with-tests also with --import.
85916         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
85917         (func_import): Use variables $testsbase and $inctests. Emit a
85918         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
85919         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
85920         SUBDIRS += $testsdir.
85921         (func_create_testdir): Update.
85922
85923 2005-09-18  Bruno Haible  <bruno@clisp.org>
85924
85925         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
85926         instead of $dry_run.
85927         (func_cp_if_changed, func_mv_if_changed): Remove functions.
85928         (func_ln_if_changed): Don't handle dry-run here.
85929         (func_import): In dry-run mode, detect more precisely which actions
85930         would be performed, and don't use "...ing" verbs.
85931
85932 2005-09-18  Bruno Haible  <bruno@clisp.org>
85933
85934         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
85935         (func_import): Use join on two temporary files instead of three nested
85936         loops, in order to determine which files are new or old.
85937
85938 2005-09-18  Bruno Haible  <bruno@clisp.org>
85939
85940         * gnulib-tool (func_import): Comment out code that spits out the
85941         new files with --dry-run.
85942
85943 2005-09-18  Bruno Haible  <bruno@clisp.org>
85944
85945         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
85946
85947 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
85948
85949         * lib/stat-time.h: New file.
85950         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
85951         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
85952         in a different way.
85953         (timespec_cmp): New function.
85954         * lib/utimecmp.c: Include stat-time.h.
85955         (SYSCALL_RESOLUTION): Depend on whether various struct stat
85956         members exist, not on the obsolescent ST_MTIM_NSEC.
85957         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
85958
85959 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
85960
85961         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
85962
85963 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
85964
85965         * MODULES.html.sh (File system functions): Add stat-time.
85966         * modules/stat-time: New file.
85967         * modules/timespec (Files): Remove m4/st_mtim.m4; this
85968         is now done in a different way, by the stat-time module.
85969         * modules/utimecmp (Depends-on): Add stat-time.
85970
85971 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
85972
85973         * m4/st_mtim.m4: Remove.  Superseded by...
85974         * m4/stat-time.m4: New file.
85975         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
85976         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
85977
85978 2005-09-15  Derek Price  <derek@ximbiot.com>
85979
85980         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
85981
85982 2005-09-15  Derek Price  <derek@ximbiot.com>
85983
85984         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
85985         * lib/regex_internal.c: Ditto, using this...
85986         (__GNUC_PREREQ): ...new macro.
85987         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
85988         using...
85989         (__GNUC_PREREQ): ...this new macro.
85990
85991         * lib/strstr.h: Include string.h. Define strstr as a macro here.
85992
85993 2005-09-15  Derek Price  <derek@ximbiot.com>
85994             Paul Eggert  <eggert@cs.ucla.edu>
85995
85996         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
85997         changes, consolidating in...
85998         * lib/regex_internal.h: ...this file.
85999
86000 2005-09-13  Jim Meyering  <jim@meyering.net>
86001
86002         * lib/canon-host.c: Filter through gnu indent and reword comments
86003         slightly.
86004         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
86005
86006 2005-09-13  Derek Price  <derek@ximbiot.com>
86007
86008         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
86009         failure.
86010         Reported by Jim Meyering  <jim@meyering.net>.
86011
86012 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
86013
86014         * lib/base64.c: Typo.
86015         (base64_encode): Put b64str in initialized data section.
86016
86017 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
86018
86019         Merge glibc and coreutils changes into gnulib, plus a few
86020         extra fixes.
86021         * lib/md5.c: Use #error rather than a string.
86022         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
86023         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
86024         (__attribute__): Define to empty for non recent-GCC.
86025         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
86026         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
86027         Renamed from their non-__ counterparts, with new macros replacing
86028         them if not _LIBC.  Add __THROW attribute.
86029         (rol): Remove.
86030         (struct md5_ctx): Align buffer if using GCC.
86031         * lib/sha1.h (struct sha1_ctx): Likewise.
86032         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
86033         The old name was backwards.
86034         (NOTSWAP): Remove; not used.
86035         (rol): New macro, moved here from md5.h.
86036         (sha1_process_block): Remove a FIXME that doesn't make sense.
86037
86038 2005-09-12  Derek Price  <derek@ximbiot.com>
86039
86040         Return usable errors from canon-host.
86041         * lib/canon-host.h: New file.
86042         * lib/canon-host.c (canon_host): Wrap...
86043         (canon_host_r): ...this new function, which now relies exclusively on
86044         getaddrinfo.
86045         (ch_strerror): New function.
86046         (last_cherror): New global.
86047         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
86048         interface.
86049         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
86050         void *.
86051         (freeaddrinfo): Free ai->ai_canonname when set.
86052
86053 2005-09-12  Derek Price  <derek@ximbiot.com>
86054
86055         Make canon-host require getaddrinfo.
86056         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
86057         AC_LIBSOURCE canon-host.h.  Call...
86058         (gl_PREREQ_CANON_HOST): ...this new function, which requires
86059         gl_GETADDRINFO.
86060         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
86061
86062 2005-09-12  Derek Price  <derek@ximbiot.com>
86063
86064         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
86065         LGPL.
86066         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
86067
86068 2005-09-12  Derek Price  <derek@ximbiot.com>
86069
86070         * lib/gai_strerror.c: Include config.h when available.  Include
86071         getaddrinfo.h before other headers to test interface.
86072         Reported by Larry Jones <lawrence.jones@ugs.com>.
86073
86074 2005-09-12  Derek Price  <derek@ximbiot.com>
86075             Paul Eggert  <eggert@cs.ucla.edu>
86076
86077         * modules/glob (Files): Add glob-libc.h.
86078
86079 2005-09-12  Derek Price  <derek@ximbiot.com>
86080             Paul Eggert  <eggert@cs.ucla.edu>
86081
86082         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
86083         glob_.h, glob-libc.h.
86084         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
86085
86086 2005-09-12  Derek Price  <derek@ximbiot.com>
86087             Paul Eggert  <eggert@cs.ucla.edu>
86088
86089         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
86090         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
86091         protecting things that should be done only in gnulib contexts.
86092         * lib/glob_.h: New file, containing only the glob things needed for
86093         gnulib.
86094         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
86095         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
86096         (glob, globfree, glob_pattern_p): Now defined simply in terms of
86097         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
86098         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
86099         and to respect the namespace rules better.
86100
86101 2005-09-08  Simon Josefsson  <jas@extundo.com>
86102
86103         * modules/socklen: New file.
86104
86105 2005-09-08  Simon Josefsson  <jas@extundo.com>
86106
86107         * m4/socklen.m4: New file.
86108
86109 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
86110
86111         * modules/utimens (Files): Add m4/utimbuf.m4, since
86112         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
86113         Reported by Sergey Poznyakoff.
86114
86115 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
86116
86117         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
86118         definitions, since that's the preferred style in glibc.
86119         Fix a minor spacing issue, and update copyright notice to match
86120         glibc's.
86121
86122 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
86123
86124         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
86125
86126 2005-09-06  Simon Josefsson  <jas@extundo.com>
86127
86128         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
86129         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
86130
86131 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
86132
86133         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
86134         warning.
86135
86136 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
86137
86138         * config/srclist.txt: Add glibc bug 1302.
86139
86140 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
86141
86142         Change bitset word type from unsigned int to unsigned long int,
86143         as this has better performance on typical 64-bit hosts.
86144         Port bitset code to hosts with unusual word sizes.
86145         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
86146         (build_collating_symbol):
86147         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
86148         argument is a bitset.  This is merely a style issue, but it makes
86149         it clearer that an entire array is expected.
86150         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
86151         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
86152         Port to the case where bitset_word is not the same as unsigned int.
86153         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
86154         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
86155         Likewise.
86156         * lib/regexec.c (check_dst_limits_calc_pos_1,
86157         check_subexp_matching_top):
86158         (build_trtable, group_nodes_into_DFAstates):
86159         Likewise.
86160         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
86161         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
86162         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
86163         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
86164         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
86165         * lib/regcomp.c (optimize_subexps, lower_subexp):
86166         Work even if bitset_word has holes in its bitwise representation.
86167         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
86168         * lib/regexec.c (check_dst_limits_calc_pos_1,
86169         check_subexp_matching_top):
86170         Likewise.
86171         * lib/regex_internal.c (re_string_reconstruct):
86172         Don't assume UCHAR_MAX == 255.
86173         * lib/regex_internal.h (bitset_set_all): Likewise.
86174         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
86175         All uses changed.
86176         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
86177         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
86178         All uses changed.
86179         (BITSET_WORD_MAX): New macro.
86180         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
86181         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
86182         (bitset_empty, bitset_copy):
86183         Prefer sizeof (bitset) to multiplying it out ourselves.
86184         (bitset_not_merge): Remove; unused.
86185         (bitset_contain): Return bool, not unsigned int with one bit on.
86186         All callers changed.
86187         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
86188         alignment than re_node_set; do this by defining a new internal
86189         type struct dests_alloc and using it to allocate memory.
86190
86191 2005-09-05  Bruno Haible  <bruno@clisp.org>
86192
86193         * gnulib-tool (func_import): Fix comparison in handling of symbolic
86194         links.
86195
86196 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
86197
86198         * modules/size_max (Makefile.am): Add size_max.h
86199
86200 2005-09-04  Derek Price  <derek@ximbiot.com>
86201
86202         * gnulib-tool (func_import): Fix reversed $symbolic logic.
86203
86204 2005-09-03  Simon Josefsson  <jas@extundo.com>
86205
86206         * gnulib-tool: Fix typo.
86207
86208 2005-09-03  Simon Josefsson  <jas@extundo.com>
86209
86210         * config/srclist.txt: Add glibc bug 1293.
86211
86212 2005-09-03  Derek Price  <derek@ximbiot.com>
86213
86214         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
86215         From Larry Jones <lawrence.jones@ugs.com>.
86216
86217 2005-09-02  Simon Josefsson  <jas@extundo.com>
86218
86219         * modules/socklen: New file.
86220
86221 2005-09-02  Simon Josefsson  <jas@extundo.com>
86222
86223         * modules/havelib: New module.
86224
86225         * modules/gettext, modules/iconv, modules/lock, modules/readline:
86226         Use havelib.
86227
86228 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
86229
86230         Check for arithmetic overflow when calculating sizes, to prevent
86231         some buffer-overflow issues.  These patches are conservative, in the
86232         sense that when I couldn't determine whether an overflow was possible,
86233         I inserted a run-time check.
86234         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
86235         macros.
86236         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
86237         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
86238         (re_xnrealloc, re_x2nrealloc): New inline functions.
86239         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
86240         parse_bracket_exp):
86241         (build_equiv_class, build_charclass): Check for arithmetic overflow
86242         in size expression calculations.
86243         * lib/regex_internal.c (re_string_realloc_buffers):
86244         (build_wcs_upper_buffer, re_node_set_add_intersect):
86245         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
86246         (re_dfa_add_node, register_state): Likewise.
86247         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
86248         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
86249         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
86250         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
86251
86252 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
86253
86254         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
86255         m4/ulonglong.m4.  Problem reported by Martin Lambers.
86256
86257 2005-09-02  Bruno Haible  <bruno@clisp.org>
86258
86259         Support for lib vs. lib64 distinction on biarch platforms.
86260         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
86261         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
86262         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
86263
86264 2005-09-02  Bruno Haible  <bruno@clisp.org>
86265
86266         * gnulib-tool (import): In the other first-use case, provide defaults
86267         as well.
86268
86269 2005-09-02  Bruno Haible  <bruno@clisp.org>
86270
86271         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
86272         patches not yet found in the latest gettext release.
86273
86274 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
86275
86276         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
86277         to avoid a collision with bits/local_lim.h in glibc.
86278         All uses changed.  Problem reported by Dmitry V. Levin in
86279         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
86280
86281         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
86282         bugs in int versus size_t comparisons.
86283         (re_string_context_at): Fix bug where the code assumed that
86284         Idx is signed.
86285
86286         Use bool where appropriate.
86287         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
86288         All callers changed.
86289         (calc_eclosure_iter): Likewise, for ROOT arg.
86290         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
86291         (build_charclass_op): Likewise, for NON_MATCH arg.
86292         * lib/regex_internal.c (re_string_allocate, re_string_construct):
86293         (re_string_construct_common): Likewise, for ICASE arg.
86294         * lib/regexec.c (re_search_2_stub, re_search_stub):
86295         Likewise, for RET_LEN arg.
86296         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
86297         (set_regs): Likewise, for FL_BACKTRACK arg.
86298         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
86299         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
86300         (calc_eclosure_iter, parse_bracket_exp):
86301         Use bool for internal variables that are booleans.
86302         * lib/regexec.c (re_search_internal, check_matching,
86303         proceed_next_node):
86304         (set_regs, build_sifted_states, sift_states_bkref):
86305         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
86306         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
86307         (find_collation_sequence_value):
86308         Likewise.
86309         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
86310         (re_node_set_compare):
86311         Return bool, not int. All callers changed.
86312         * lib/regexec.c (check_halt_node_context, check_dst_limits):
86313         (build_trtable, check_node_accept): Likewise.
86314         * lib/regex_internal.h: Include stdbool.h.
86315
86316         Fix bugs uncovered when converting to bool.
86317         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
86318         failure instead of charging ahead blindly.
86319         * lib/regex_internal.c (register_state): Likewise.
86320         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
86321         for freeing internal storage.
86322         (group_nodes_into_DFA_states): Use unsigned int, not int, for
86323         bitset pieces used as boolean, to avoid undefined behavior
86324         on hosts that do int overflow checking.
86325
86326 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
86327
86328         * config/srclist.txt: Add glibc bugs 1285-1287.
86329
86330 2005-09-01  Jim Meyering  <jim@meyering.net>
86331
86332         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
86333         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
86334         Require gl_STAT_MACROS, too.
86335
86336 2005-09-01  Bruno Haible  <bruno@clisp.org>
86337
86338         * gnulib-tool (import): In the first-use case, provide defaults.
86339
86340 2005-09-01  Bruno Haible  <bruno@clisp.org>
86341
86342         * gnulib-tool (func_import): Remove the .tmp files.
86343
86344 2005-09-01  Bruno Haible  <bruno@clisp.org>
86345
86346         * gnulib-tool (func_import): Fix handling of symbolic links.
86347
86348 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
86349
86350         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
86351         old glibc regex code mishandles strings longer than 2**31 bytes.
86352         This patch fixes this when the regex code is used in gnulib
86353         (i.e., outside glibc).
86354
86355         This patch should not affect the use of the regex code inside
86356         glibc.  No doubt this problem also needs to be handled for glibc
86357         as well, but the result will be an incompatible change to the
86358         glibc ABI, and the old ABI will have to be supported too.  That
86359         can be the the subject for another patch.
86360
86361         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
86362         governing whether the rest of this patch is active.  By default,
86363         the macro is disabled and the patch has no effect.
86364         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
86365         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
86366         (struct re_pattern_buffer, re_search, re_search_2, re_match):
86367         (re_match_2, re_set_registers): Use the new types.
86368         * lib/regex_internal.h (Idx, re_hashval_t): New types.
86369         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
86370         New macros.
86371         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
86372         (re_string_context_at, bin_tree_t, re_dfastate_t):
86373         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
86374         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
86375         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
86376         (re_string_char_size_at, re_string_wchar_at):
86377         (re_string_elem_size_at):
86378         Use the new types and macros to port to 64-bit hosts.
86379         Use unsigned types for internal values, so that the code
86380         mostly works even for arrays larger than SSIZE_MAX.
86381         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
86382         (search_duplicated_node, calc_eclosure_iter, fetch_number):
86383         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
86384         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
86385         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
86386         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
86387         (calc_inveclosure, parse_dup_op, build_range_exp):
86388         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
86389         (fetch_number, create_token_tree, mark_opt_subexp):
86390         Likewise.
86391         * lib/regex_internal.c (re_string_construct_common,
86392         create_ci_newstate):
86393         (create_cd_newstate, re_string_allocate, re_string_construct):
86394         (re_string_realloc_buffers, build_wcs_upper_buffer):
86395         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
86396         (re_string_reconstruct, re_string_peek_byte_case):
86397         (re_string_fetch_byte_case, re_string_context_at):
86398         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
86399         (re_node_set_init_copy, re_node_set_add_intersect):
86400         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
86401         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
86402         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
86403         (re_acquire_state, re_acquire_state_context, register_state):
86404         Likewise.
86405         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
86406         search_cur_bkref_entry):
86407         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
86408         (re_search_internal, re_search_2_stub, re_search_stub)
86409         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
86410         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
86411         (update_cur_sifted_state, check_dst_limits):
86412         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
86413         (check_subexp_limits, sift_states_bkref, merge_state_array):
86414         (check_subexp_matching_top, get_subexp, get_subexp_sub):
86415         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
86416         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
86417         (expand_bkref_cache, check_node_accept_bytes):
86418         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
86419         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
86420         (acquire_init_state_context, check_halt_node_context):
86421         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
86422         (sift_states_backward, clean_state_log_if_needed):
86423         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
86424         (find_recover_state, transit_state_sb, transit_state_mb):
86425         (transit_state_bkref, build_trtable, match_ctx_clean):
86426         Likewise.
86427         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
86428         to work around an assumption that REG_MISSING is negative.
86429
86430         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
86431         (seek_collating_symbol_entry) [defined _LIBC]:
86432         (lookup_collation_sequence_value) [defined _LIBC]:
86433         (build_range_exp, build_collating_symbol) [defined _LIBC]:
86434         Use prototypes rather than old-style function definitions.
86435         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
86436         (transit_state_sb) [0]:
86437         (find_collation_sequence_value) [defined _LIBC]: Likewise.
86438
86439         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
86440         rm_eo.
86441
86442         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
86443         (optimize_subexps, lower_subexp):
86444         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
86445         since the signed shift might overflow.  Use 1u<<31 instead.
86446         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
86447         Likewise.
86448         * lib/regexec.c (check_dst_limits_calc_pos_1,
86449         check_subexp_matching_top): Likewise.
86450
86451         * lib/regcomp.c (optimize_subexps, lower_subexp):
86452         Use CHAR_BIT rather than 8, for clarity.
86453         * lib/regexec.c (check_dst_limits_calc_pos_1):
86454         (check_subexp_matching_top): Likewise.
86455         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
86456         have to worry about portability issues when shifting it left.
86457         Remove no-longer-needed test for table_size > 0.
86458         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
86459         in a word, as the resulting behavior is undefined.
86460         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
86461         in one case, a <= should have been an <, and in another case the
86462         whole test was missing.
86463         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
86464         the standard name CHAR_BIT.
86465         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
86466         this is not true on one's complement and signed-magnitude hosts.
86467
86468         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
86469         next_last_offset.
86470         (struct re_dfa_t): Remove unused member states_alloc.
86471         * lib/regcomp.c (init_dfa): Don't initialize unused members.
86472
86473 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
86474
86475         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
86476         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
86477         and large-file glibc and in 32-bit large-file Solaris.
86478
86479 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
86480
86481         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
86482         lengths fit in regoff_t; this isn't true if regoff_t is the same
86483         width as size_t.
86484         * lib/regex.c (re_search_internal): 5th arg is LAST_START
86485         (= START + RANGE) instead of RANGE.  This avoids overflow
86486         problems when regoff_t is the same width as size_t.
86487         All callers changed.
86488         (re_search_2_stub): Check for overflow when adding the
86489         sizes of the two strings.
86490         (re_search_stub): Check for overflow when adding START
86491         to RANGE; if it occurs, substitute the extreme value.
86492
86493 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
86494
86495         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
86496
86497 2005-08-31  Jim Meyering  <jim@meyering.net>
86498
86499         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
86500         a pointer-to-const.
86501         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
86502         (register_state): Likewise.
86503         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
86504         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
86505         (group_nodes_into_DFAstates): Likewise.
86506
86507 2005-08-31  Jim Meyering  <jim@meyering.net>
86508
86509         * check-module: Add a FIXME comment.
86510
86511 2005-08-31  Eric Blake  <ebb9@byu.net>
86512
86513         * modules/unistd-safer (Files): Add unistd--.h.
86514         * modules/stdio-safer (Files): Add stdio--.h.
86515
86516 2005-08-31  Derek Price  <derek@ximbiot.com>
86517
86518         * lib/getdelim.c (getdelim): Return EOF on EOF.
86519         Reported by Larry Jones <lawrence.jones@ugs.com>.
86520
86521 2005-08-31  Bruno Haible  <bruno@clisp.org>
86522
86523         Avoid unnecessary diffs in the generated lib/Makefile.am.
86524         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
86525         the generated files.
86526         (func_import): Don't set cmd.
86527
86528 2005-08-31  Bruno Haible  <bruno@clisp.org>
86529
86530         * lib/strstr.c: Include <stddef.h>, for NULL.
86531         * lib/strcasestr.c: Likewise.
86532         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
86533
86534 2005-08-31  Bruno Haible  <bruno@clisp.org>
86535
86536         * gnulib-tool: New option --macro-prefix.
86537         (func_import): Use macro_prefix.
86538         (import): Handle option --macro-prefix.
86539
86540 2005-08-31  Bruno Haible  <bruno@clisp.org>
86541
86542         * gnulib-tool (import): Rename most ac_* variables to cached_*.
86543         Also use new variables cached_lgpl, cached_libtool.
86544
86545 2005-08-31  Bruno Haible  <bruno@clisp.org>
86546
86547         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
86548         always instantiating them.
86549
86550 2005-08-31  Bruno Haible  <bruno@clisp.org>
86551
86552         * gnulib-tool (func_import): Read the previous cached settings
86553         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
86554         earlier added by gnulib but are now dropped. Warn when a gnulib file
86555         overwrites a non-gnulib file.
86556
86557 2005-08-31  Bruno Haible  <bruno@clisp.org>
86558
86559         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
86560         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
86561         projects that don't keep autogenerated files in CVS. Put into
86562         actioncmd only the specified modules, not the transitive closure.
86563
86564 2005-08-31  Bruno Haible  <bruno@clisp.org>
86565
86566         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
86567         Create directories that shall be filled.
86568         (import): Don't look for gl_* macros in configure.ac. Recurse across
86569         all directories containing a gnulib-cache.m4 files, if meaningful.
86570
86571 2005-08-31  Bruno Haible  <bruno@clisp.org>
86572
86573         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
86574         (import): Set seen_libtool when we see gl_LIBTOOL.
86575
86576 2005-08-31  Bruno Haible  <bruno@clisp.org>
86577
86578         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
86579         declaration macro definitions from generated gnulib.m4.
86580
86581 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
86582
86583         * lib/iconvme.h: Add prototype for iconv_alloc.
86584
86585 2005-08-29  Simon Josefsson  <jas@extundo.com>
86586
86587         * lib/iconvme.c: Fix errno.
86588
86589 2005-08-29  Bruno Haible  <bruno@clisp.org>
86590
86591         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
86592         that it works when the directory contains spaces.
86593
86594 2005-08-29  Bruno Haible  <bruno@clisp.org>
86595
86596         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
86597
86598 2005-08-29  Bruno Haible  <bruno@clisp.org>
86599
86600         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
86601         Emit more advice.
86602
86603 2005-08-29  Bruno Haible  <bruno@clisp.org>
86604         and Stepan Kasal  <kasal@ucw.cz>
86605
86606         * check-module: If more parameters are given, check each of them
86607         separately; add more exceptions, as noted by Jim Meyering.
86608         (check_module): New procedure.
86609         (%exempt_header): Now contains all exceptions.
86610
86611 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
86612
86613         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
86614
86615 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
86616
86617         * lib/iconvme.c: Split iconv_string into iconv_alloc.
86618
86619 2005-08-28  Bruno Haible  <bruno@clisp.org>
86620
86621         * m4/gnulib-tool.m4: New file.
86622
86623 2005-08-27  Jim Meyering  <jim@meyering.net>
86624
86625         * modules/unistd-safer (Files): Add pipe-safer.c.
86626         * modules/fcntl-safer (Files): Add creat-safer.c.
86627
86628 2005-08-27  Jim Meyering  <jim@meyering.net>
86629
86630         * m4/stdlib-safer.m4: New file.  From coreutils.
86631         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
86632         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
86633         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
86634         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
86635         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
86636
86637 2005-08-27  Jim Meyering  <jim@meyering.net>
86638
86639         * lib/fopen-safer.c: Merge minor changes from coreutils.
86640         * lib/dup-safer.c: Likewise.
86641         * lib/fd-safer.c: Likewise.
86642
86643         Merge from coreutils.
86644         * lib/stdio--.h: New file.
86645         * lib/stdlib--.h: New file.
86646         * lib/mkstemp-safer.c: New file.
86647
86648         GNU tar needs these.
86649         * lib/pipe-safer.c: New file.
86650         * lib/creat-safer.c: New file.
86651         * lib/fcntl--.h (creat): Define to creat_safer.
86652         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
86653         * lib/unistd--.h (pipe): Define to pipe_safer.
86654         * lib/unistd-safer.h: Declare pipe_safer.
86655
86656 2005-08-26  Simon Josefsson  <jas@extundo.com>
86657
86658         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
86659         Haible <bruno@clisp.org>.
86660
86661 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
86662
86663         * lib/regex_internal.h: Remove all references to
86664         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
86665         or better.
86666         (bitset_not, bitset_merge, bitset_not_merge):
86667         (bitset_mask, re_string_allocate, re_string_construct):
86668         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
86669         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
86670         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
86671         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
86672         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
86673         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
86674         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
86675         (re_acquire_state_context):
86676         Remove unnecessary forward decls.
86677         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
86678         Put __attribute at function definition,
86679         now that the function decl has been removed.
86680         * lib/regex_internal.c (re_string_peek_byte_case):
86681         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
86682         Likewise.
86683
86684 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
86685
86686         * m4/regex.m4: Add AC_PREREQ(2.50).
86687         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
86688
86689 2005-08-25  Simon Josefsson  <jas@extundo.com>
86690
86691         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
86692         __fsetlocking.
86693
86694 2005-08-25  Simon Josefsson  <jas@extundo.com>
86695
86696         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
86697         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
86698         GLIBC specific code.
86699
86700 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
86701
86702         Make regex safe for g++.  This fixes one real bug (an "err"
86703         that should have been "*err").  g++ problem reported by
86704         Sam Steingold.
86705         * lib/regex_internal.h (re_calloc): New macro, consistent with
86706         re_malloc etc.  All callers of calloc changed to use re_calloc.
86707         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
86708         not int.  All callers changed.
86709         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
86710         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
86711         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
86712         (find_recover_state): Change "err" to "*err"; this fixes what
86713         appears to be a real bug.
86714         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
86715         versus int.
86716
86717 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
86718
86719         * modules/regex (Depends-on): Add malloc, since the code
86720         assumes that !malloc(0) means failure.
86721
86722 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
86723
86724         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
86725
86726         alloca modernization/simplification for regex.
86727         * lib/regex.c: Remove portability cruft for alloca.  This no longer
86728         needs to be at the start of the file, and can be moved into
86729         regex_internal.h and simplified.
86730         * lib/regex_internal.h: Include <alloca.h>.
86731         (__libc_use_alloca) [!defined _LIBC]: New macro.
86732         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
86733         now works outside glibc.
86734
86735 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
86736
86737         * config/srclist.txt: Add glibc bugs 1241, 1245.
86738
86739 2005-08-25  Jim Meyering  <jim@meyering.net>
86740
86741         * lib/open-safer.c: Include <config.h>.
86742         Otherwise, we'd lose LARGEFILE support in any file using
86743         e.g. "fcntl--.h"
86744
86745 2005-08-25  Bruno Haible  <bruno@clisp.org>
86746
86747         * m4/minmax.m4: Require autoconf 2.52.
86748         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
86749         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
86750         alternatives of translit over the alphabet.
86751         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
86752
86753 2005-08-24  Simon Josefsson  <jas@extundo.com>
86754
86755         * tests/test-getpass.c: New file.
86756
86757 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
86758
86759         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
86760         for GNU regex features.
86761
86762 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
86763
86764         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
86765         * lib/regex.h (regerror): Likewise.
86766
86767         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
86768         requires this.  (The code never needed it.)
86769
86770         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
86771         All uses of recently-renamed identifiers changed to use the new,
86772         POSIX-compliant names.  The code will build and run just fine
86773         without these changes, but it's better to eat our own dog food
86774         and use the standard-conforming names.
86775
86776         * lib/regex.h: Fix a multitude of POSIX name space violations.
86777         These changes have an effect only for programs that define
86778         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
86779         do not change anything for programs compiled in the normal way.
86780         Also, there is no effect on the ABI.
86781
86782         (_REGEX_SOURCE): New macro.
86783         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
86784         defined and _GNU_SOURCE is not; this fixes a name space violation.
86785
86786         Rename the following macros to obey POSIX requirements.
86787         The old names are still visible as macros if _REGEX_SOURCE is defined.
86788         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
86789         RE_BACKSLASH_ESCAPE_IN_LISTS.
86790         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
86791         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
86792         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
86793         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
86794         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
86795         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
86796         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
86797         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
86798         (REG_INTERVALS): renamed from RE_INTERVALS.
86799         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
86800         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
86801         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
86802         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
86803         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
86804         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
86805         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
86806         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
86807         RE_UNMATCHED_RIGHT_PAREN_ORD.
86808         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
86809         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
86810         (REG_DEBUG): renamed from RE_DEBUG.
86811         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
86812         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
86813         unusual, since we can't clash with the POSIX REG_ICASE.
86814         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
86815         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
86816         (REG_NO_SUB): renamed from RE_NO_SUB.
86817         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
86818         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
86819         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
86820         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
86821         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
86822         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
86823         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
86824         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
86825         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
86826         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
86827         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
86828         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
86829         RE_SYNTAX_POSIX_MINIMAL_BASIC.
86830         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
86831         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
86832         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
86833         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
86834         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
86835         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
86836         (REG_FIXED): Renamed from REGS_FIXED.
86837         (REG_NREGS): Renamed from RE_NREGS.
86838
86839         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
86840         of other REG_* macros, since POSIX says the user is allowed to
86841         #undef these macros selectively.
86842
86843         (reg_errcode_t): Update comment stating what other tables need
86844         to be consistent.
86845
86846         Rename the following enum values to obey POSIX requirements.
86847         The old names are still visible as macros.
86848         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
86849         is not defined, since GNU is supposed to be a superset of POSIX as
86850         much as possible, and since we want reg_errcode_t to be a signed
86851         type for implementation consistency.
86852         (_REG_NOERROR): Renamed from REG_NOERROR.
86853         (_REG_NOMATCH): Renamed from REG_NOMATCH.
86854         (_REG_BADPAT): Renamed from REG_BADPAT.
86855         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
86856         (_REG_ECTYPE): Renamed from REG_ECTYPE.
86857         (_REG_EESCAPE): Renamed from REG_EESCAPE.
86858         (_REG_ESUBREG): Renamed from REG_ESUBREG.
86859         (_REG_EBRACK): Renamed from REG_EBRACK.
86860         (_REG_EPAREN): Renamed from REG_EPAREN.
86861         (_REG_EBRACE): Renamed from REG_EBRACE.
86862         (_REG_BADBR): Renamed from REG_BADBR.
86863         (_REG_ERANGE): Renamed from REG_ERANGE.
86864         (_REG_ESPACE): Renamed from REG_ESPACE.
86865         (_REG_BADRPT): Renamed from REG_BADRPT.
86866         (_REG_EEND): Renamed from REG_EEND.
86867         (_REG_ESIZE): Renamed from REG_ESIZE.
86868         (_REG_ERPAREN): Renamed from REG_ERPAREN.
86869         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
86870         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
86871         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
86872         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
86873
86874         (_REG_RE_NAME, _REG_RM_NAME): New macros.
86875         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
86876         changed.  But support the old name if the new one is not defined
86877         and if _REGEX_SOURCE.
86878
86879         Change the following member names in struct re_pattern_buffer.
86880         The old names are still supported if !_REGEX_SOURCE.
86881         The new names are always supported, regardless of _REGEX_SOURCE.
86882         (re_buffer): Renamed from buffer.
86883         (re_allocated): Renamed from allocated.
86884         (re_used): Renamed from used.
86885         (re_syntax): Renamed from syntax.
86886         (re_fastmap): Renamed from fastmap.
86887         (re_translate): Renamed from translate.
86888         (re_can_be_null): Renamed from can_be_null.
86889         (re_regs_allocated): Renamed from regs_allocated.
86890         (re_fastmap_accurate): Renamed from fastmap_accurate.
86891         (re_no_sub): Renamed from no_sub.
86892         (re_not_bol): Renamed from not_bol.
86893         (re_not_eol): Renamed from not_eol.
86894         (re_newline_anchor): Renamed from newline_anchor.
86895
86896         Change the following member names in struct re_registers.
86897         The old names are still supported if !_REGEX_SOURCE.
86898         The new names are always supported, regardless of _REGEX_SOURCE.
86899         (rm_num_regs): Renamed from num_regs.
86900         (rm_start): Renamed from start.
86901         (rm_end): Renamed from end.
86902
86903         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
86904         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
86905         Prepend __ to parameter names.
86906
86907         Undo yesterday's changes.
86908
86909 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
86910
86911         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
86912         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
86913         lib/regex.c.
86914
86915 2005-08-24  Jim Meyering  <jim@meyering.net>
86916
86917         Sync from coreutils.
86918         * m4/fcntl-safer.m4: New file.
86919
86920         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
86921         and object files for this module.
86922
86923 2005-08-24  Jim Meyering  <jim@meyering.net>
86924
86925         Sync from coreutils.
86926         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
86927
86928 2005-08-24  Jim Meyering  <jim@meyering.net>
86929
86930         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
86931         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
86932
86933 2005-08-24  Jim Meyering  <jim@meyering.net>
86934
86935         * modules/fcntl-safer: New module.
86936         * modules/fts (Depends-on): Add fcntl-safer.
86937         * MODULES.html.sh (File descriptor based Input/Output):
86938         Add fcntl-safer.
86939
86940 2005-08-24  Bruno Haible  <bruno@clisp.org>
86941
86942         Support for unit test modules.
86943         * modules/README: Mention tests modules.
86944         * modules/TEMPLATE-TESTS: New file.
86945         * gnulib-tool: New options --extract-tests-module, --with-tests and
86946         --tests-base (unused for the moment).
86947         (testsbase, inctests): New variables.
86948         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
86949         (func_verify_module): Exclude TEMPLATE-TESTS.
86950         (func_verify_nontests_module, func_verify_tests_module): New functions.
86951         (func_get_dependencies): Add implicit dependency for tests modules.
86952         (func_get_tests_module): New function.
86953         (func_modules_transitive_closure): When --with-tests was specified,
86954         include the unit tests as well, unless explicitly avoided.
86955         (func_emit_lib_Makefile_am): Ignore the tests modules here.
86956         (func_emit_tests_Makefile_am): New function.
86957         (func_create_testdir): When --with-tests was specified, emit a
86958         tests/ directory.
86959         * MODULES.html.sh (Future developments): Update.
86960
86961 2005-08-24  Bruno Haible  <bruno@clisp.org>
86962
86963         * modules/tls-tests: New file.
86964         * tests/test-tls.c: New file, from GNU gettext.
86965
86966 2005-08-24  Bruno Haible  <bruno@clisp.org>
86967
86968         * modules/lock-tests: New file.
86969         * tests/test-lock.c: New file, from GNU gettext.
86970
86971 2005-08-24  Bruno Haible  <bruno@clisp.org>
86972
86973         * lib/lock.h: Add multiple inclusion guard.
86974         * lib/tls.h: Add multiple inclusion guard.
86975
86976 2005-08-24  Bruno Haible  <bruno@clisp.org>
86977
86978         * gnulib-tool: Add support for the --aux-dir option to
86979         --create-testdir, --create-megatestdir, --test, --megatest.
86980         (func_create_testdir, func_create_megatestdir): Optionally emit a
86981         AC_CONFIG_AUX_DIR directive.
86982         (create-testdir, create-megatestdir, test, megatest): Provide a
86983         default value for $auxdir.
86984
86985 2005-08-24  Bruno Haible  <bruno@clisp.org>
86986
86987         * gnulib-tool (import): Use compound statement instead of subshell
86988         where possible.
86989
86990 2005-08-24  Bruno Haible  <bruno@clisp.org>
86991
86992         * gnulib-tool (import): Change --aux-dir default to "build-aux".
86993
86994 2005-08-24  Bruno Haible  <bruno@clisp.org>
86995
86996         * gnulib-tool (func_version): Update.
86997
86998 2005-08-24  Bruno Haible  <bruno@clisp.org>
86999
87000         * gnulib-tool (func_import, func_create_testdir,
87001         func_create_megatestdir): Quote all autoconf macro arguments.
87002
87003 2005-08-24  Bruno Haible  <bruno@clisp.org>
87004
87005         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
87006         option --force, because --force causes the aclocal.m4 of each
87007         subdirectory to be newer than the corresponding config.h.in.
87008
87009 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
87010
87011         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
87012         All contents moved to gl_REGEX.
87013         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
87014         assume that it does.
87015
87016 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
87017
87018         * lib/regex.h (REG_NOSYS)
87019         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
87020         Define, since POSIX requires it as of 2001.
87021         (_REG_ENOSYS)
87022         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
87023         New private symbol, used to keep the enum signed in all cases.
87024         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
87025         Youngman in
87026         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
87027
87028         * lib/regex_internal.c (re_string_skip_chars, register_state):
87029         (calc_state_hash):
87030         Remove forward decls; no longer needed now that we use prototypes.
87031         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
87032         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
87033         (clean_state_log_if_needed): Likewise.
87034
87035 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
87036
87037         * config/srclist.txt: Add glibc bugs 1231-1233.
87038
87039 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
87040
87041         Fix problems reported by Sam Steingold in
87042         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
87043         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
87044         assumed that reg_errcode_t is a signed type, which is not
87045         necessarily true if _XOPEN_SOURCE is not defined.
87046         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
87047         since some compilers warn about it otherwise.
87048
87049 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
87050
87051         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
87052         (init_word_char, create_initial_state, duplicate_node_closure):
87053         (fetch_token, peek_token_bracket, build_range_exp):
87054         (build_collating_symbol): Remove forward decls; no longer needed
87055         now that we use prototypes.
87056
87057         * lib/regcomp.c:
87058         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
87059         (re_compile_fastmap_iter, regcomp, regerror, regfree):
87060         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
87061         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
87062         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
87063         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
87064         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
87065         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
87066         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
87067         (build_range_exp, build_collating_symbol, parse_bracket_exp):
87068         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
87069         (build_charclass, build_charclass_op, fetch_number, create_tree):
87070         (create_token_tree, mark_opt_subexp, duplicate_tree):
87071         Use prototypes rather than old-style definitions.
87072
87073         * lib/regex_internal.c:
87074         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
87075         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
87076         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
87077         (re_string_reconstruct, re_string_peek_byte_case):
87078         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
87079         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
87080         (re_node_set_init_copy, re_node_set_add_intersect):
87081         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
87082         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
87083         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
87084         (re_acquire_state, re_acquire_state_context, register_state):
87085         (create_ci_newstate, create_cd_newstate, free_state):
87086         Likewise.
87087         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
87088         re_search_2):
87089         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
87090         (re_search_internal, prune_impossible_nodes):
87091         (acquire_init_state_context, check_matching, static):
87092         (check_halt_node_context, check_halt_state_context, proceed_next_node):
87093         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
87094         (update_regs, sift_states_backward, build_sifted_states):
87095         (clean_state_log_if_needed, merge_state_array):
87096         (update_cur_sifted_state, add_epsilon_src_nodes):
87097         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
87098         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
87099         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
87100         (find_recover_state, check_subexp_matching_top, transit_state_mb):
87101         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
87102         (check_arrival, check_arrival_add_next_nodes):
87103         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
87104         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
87105         (check_node_accept_bytes, check_node_accept, extend_buffers):
87106         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
87107         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
87108         (sift_ctx_init):
87109         Likewise.
87110
87111         * lib/regex_internal.h:
87112         (re_string_allocate, re_string_construct, re_string_reconstruct):
87113         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
87114         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
87115         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
87116         (re_string_context_at, re_string_peek_byte_case):
87117         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
87118         is defined, since we now use prototypes always.
87119
87120         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
87121         C89 or better.  All uses removed.
87122
87123 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
87124
87125         * config/srclist.txt: Add glibc bugs 1220-1227.
87126
87127 2005-08-20  Jim Meyering  <jim@meyering.net>
87128
87129         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
87130         of unused local, dfa.
87131
87132 2005-08-20  Bruno Haible  <bruno@clisp.org>
87133
87134         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
87135
87136 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
87137
87138         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
87139         (re_node_set_insert_last, re_dfa_add_node):
87140         Rename local variables to avoid GCC shadowing warnings.
87141
87142 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
87143
87144         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
87145         [defined lint]: Suppress bogus uninitialized-variable warnings.
87146
87147         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
87148         and let the caller return REG_ESPACE if out of space.  This
87149         removes an uninitialied-variable warning with GCC 4.0.1, and also
87150         avoids taking the address of a local variable.  All callers
87151         changed.
87152
87153 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
87154
87155         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
87156         $LIBCSRC/posix/regexec.c.
87157         Add glibc bug 1217 for regcomp.c.
87158
87159 2005-08-19  Jim Meyering  <jim@meyering.net>
87160
87161         * lib/regexec.c (proceed_next_node): Redo local variables to
87162         avoid GCC shadowing warnings.
87163
87164 2005-08-18  Bruno Haible  <bruno@clisp.org>
87165
87166         * lib/strstr.c (strstr): Fix return value in multibyte case.
87167         * lib/strcasestr.c (strcasestr): Likewise.
87168
87169 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
87170
87171         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
87172
87173 2005-08-17  Jim Meyering  <jim@meyering.net>
87174
87175         Make the %s format (seconds since the epoch) work for a negative
87176         number and when used with a zero-padded field width, e.g. %015s.
87177
87178         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
87179         label so that it precedes the code to set `digits'.  Otherwise,
87180         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
87181         print `00-22'.  Now, it prints `-0022', as it should.
87182
87183 2005-08-17  Bruno Haible  <bruno@clisp.org>
87184
87185         * modules/strstr (Files): Add m4/mbrtowc.m4.
87186         (Depends-on): Add mbuiter.
87187
87188 2005-08-17  Bruno Haible  <bruno@clisp.org>
87189
87190         * modules/strcasestr: New file.
87191         * MODULES.html.sh (String handling, based on ANSI C 89): Add
87192         strcasestr.
87193
87194 2005-08-17  Bruno Haible  <bruno@clisp.org>
87195
87196         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
87197
87198 2005-08-17  Bruno Haible  <bruno@clisp.org>
87199
87200         * modules/mbuiter: New file.
87201         * MODULES.html.sh (Extended multibyte and wide character utilities):
87202         Add mbuiter.
87203
87204 2005-08-17  Bruno Haible  <bruno@clisp.org>
87205
87206         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
87207         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
87208
87209 2005-08-17  Bruno Haible  <bruno@clisp.org>
87210
87211         * m4/strcasestr.m4: New file.
87212
87213 2005-08-17  Bruno Haible  <bruno@clisp.org>
87214
87215         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
87216         * lib/strstr.c: Completely rewritten, with multibyte locale support.
87217
87218 2005-08-17  Bruno Haible  <bruno@clisp.org>
87219
87220         * lib/strcasestr.h: New file.
87221         * lib/strcasestr.c: New file.
87222
87223 2005-08-17  Bruno Haible  <bruno@clisp.org>
87224
87225         * lib/strcasecmp.c: Use mbuiter.h.
87226
87227 2005-08-17  Bruno Haible  <bruno@clisp.org>
87228
87229         * lib/mbuiter.h: New file.
87230
87231 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
87232
87233         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
87234         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
87235         and gl_GETOPT are both invoked via different paths (as happens
87236         with GNU tar CVS because it uses both argp and getopt), the former
87237         wins.
87238
87239 2005-08-16  Bruno Haible  <bruno@clisp.org>
87240
87241         * modules/tls: New file.
87242         * MODULES.html.sh (Multithreading): Add tls.
87243
87244 2005-08-16  Bruno Haible  <bruno@clisp.org>
87245
87246         * modules/strnlen1: New file.
87247         * MODULES.html.sh (String handling): Add strnlen1.
87248
87249 2005-08-16  Bruno Haible  <bruno@clisp.org>
87250
87251         * modules/strcase (Files): Add m4/mbrtowc.m4.
87252         (Depends-on): Add strnlen1, mbchar.
87253
87254 2005-08-16  Bruno Haible  <bruno@clisp.org>
87255
87256         * modules/mbiter: New file.
87257         * MODULES.html.sh (Extended multibyte and wide character utilities):
87258         Add mbiter.
87259
87260 2005-08-16  Bruno Haible  <bruno@clisp.org>
87261
87262         * modules/mbfile: New file.
87263         * MODULES.html.sh (Extended multibyte and wide character utilities):
87264         Add mbfile.
87265
87266 2005-08-16  Bruno Haible  <bruno@clisp.org>
87267
87268         * modules/mbchar: New file.
87269         * MODULES.html.sh (Extended multibyte and wide character utilities):
87270         New section.
87271
87272 2005-08-16  Bruno Haible  <bruno@clisp.org>
87273
87274         * m4/tls.m4: New file, from GNU gettext.
87275
87276 2005-08-16  Bruno Haible  <bruno@clisp.org>
87277
87278         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
87279         always.
87280         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
87281
87282 2005-08-16  Bruno Haible  <bruno@clisp.org>
87283
87284         * m4/mbiter.m4: New file.
87285
87286 2005-08-16  Bruno Haible  <bruno@clisp.org>
87287
87288         * m4/mbfile.m4: New file.
87289
87290 2005-08-16  Bruno Haible  <bruno@clisp.org>
87291
87292         * m4/mbchar.m4: New file.
87293
87294 2005-08-16  Bruno Haible  <bruno@clisp.org>
87295
87296         * lib/tls.h: New file, from GNU gettext.
87297         * lib/tls.c: New file, from GNU gettext.
87298
87299 2005-08-16  Bruno Haible  <bruno@clisp.org>
87300
87301         * lib/strnlen1.h: New file.
87302         * lib/strnlen1.c: New file.
87303
87304 2005-08-16  Bruno Haible  <bruno@clisp.org>
87305
87306         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
87307         (mbi_init): Update.
87308         (mbi_avail, mbi_advance): Let the iteration end before the terminating
87309         NUL byte, not after it.
87310
87311 2005-08-16  Bruno Haible  <bruno@clisp.org>
87312
87313         * lib/strcase.h (strcasecmp): Add note in comments.
87314         * lib/strncasecmp.c: Use code from strcasecmp.c.
87315         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
87316         (strcasecmp): Work correctly in multibyte locales.
87317
87318 2005-08-16  Bruno Haible  <bruno@clisp.org>
87319
87320         * lib/mbiter.h: New file.
87321
87322 2005-08-16  Bruno Haible  <bruno@clisp.org>
87323
87324         * lib/mbfile.h: New file.
87325
87326 2005-08-16  Bruno Haible  <bruno@clisp.org>
87327
87328         * lib/mbchar.h: New file.
87329         * lib/mbchar.c: New file.
87330
87331 2005-08-16  Bruno Haible  <bruno@clisp.org>
87332
87333         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
87334         the valid ones. Makes the comparison operations transitive:
87335         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
87336         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
87337
87338 2005-08-15  Simon Josefsson  <jas@extundo.com>
87339
87340         * modules/ssize_t (License): Change to 'unlimited'.
87341
87342         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
87343
87344 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
87345
87346         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
87347         Add comments for each pending glibc patch.
87348
87349 2005-08-15  Bruno Haible  <bruno@clisp.org>
87350
87351         * lib/regex.h (__restrict_arr): Don't define to __restrict if
87352         __cplusplus is defined.
87353
87354 2005-08-14  Jim Meyering  <jim@meyering.net>
87355
87356         Sync from coreutils.
87357
87358         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
87359         Use the hash-table-based cycle-detection code not just when
87360         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
87361         Reported by James Youngman in
87362         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
87363         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
87364         FTS_TIGHT_CYCLE_CHECK.
87365         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
87366         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
87367         once again.
87368         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
87369         * lib/fts.c (fd_safer): Remove decl.
87370         Include fcntl--.h rather than unistd-safer.h
87371         (fts_safe_changedir): Don't call fd_safer; no longer needed
87372         now that we include fcntl--.h.
87373
87374 2005-08-12  Simon Josefsson  <jas@extundo.com>
87375
87376         * modules/getndelim2: Use ssize_t module.
87377         * modules/getnline: Likewise.
87378         * modules/safe-read: Likewise.
87379         * modules/xreadlink: Likewise.
87380
87381         * modules/ssize_t: New file.
87382
87383 2005-08-12  Simon Josefsson  <jas@extundo.com>
87384
87385         * m4/readline.m4: Look for termcap, curses or ncurses if required.
87386
87387 2005-08-12  Simon Josefsson  <jas@extundo.com>
87388
87389         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
87390         ssize_t.
87391
87392 2005-08-12  Simon Josefsson  <jas@extundo.com>
87393
87394         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
87395         readline, getdelim and check_version.
87396         (Support for systems lacking ISO C 99: Sizes of integer types):
87397         Add size_max.
87398
87399 2005-08-12  Bruno Haible  <bruno@clisp.org>
87400
87401         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
87402
87403 2005-08-11  Simon Josefsson  <jas@extundo.com>
87404
87405         * modules/readline: New file.
87406
87407         * modules/strnlen (Files): Add strnlen.h.
87408
87409 2005-08-11  Simon Josefsson  <jas@extundo.com>
87410
87411         * m4/readline.m4: New file.
87412
87413 2005-08-11  Simon Josefsson  <jas@extundo.com>
87414
87415         * lib/readline.h, readline.c: New file.
87416
87417 2005-08-11  Simon Josefsson  <jas@extundo.com>
87418
87419         * doc/gnulib.texi (Initial import, Finishing touches): Mention
87420         gl_AVOID.
87421
87422 2005-08-11  Bruno Haible  <bruno@clisp.org>
87423
87424         * lib/strnlen.h (strnlen): Change parameter name to match comment.
87425
87426 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
87427
87428         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
87429
87430 2005-08-10  Simon Josefsson  <jas@extundo.com>
87431
87432         * tests/test-iconvme.c: New file.
87433
87434 2005-08-10  Simon Josefsson  <jas@extundo.com>
87435
87436         * m4/strnlen.m4: New file.
87437
87438         * m4/strndup.m4: Don't check for strnlen declaration, done in
87439         strnlen.m4.
87440
87441 2005-08-10  Simon Josefsson  <jas@extundo.com>
87442
87443         * lib/strndup.c: Use strnlen.h.
87444
87445         * lib/strnlen.h: New file.
87446
87447 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
87448
87449         * README: Typos.
87450
87451 2005-08-02  Simon Josefsson  <jas@extundo.com>
87452
87453         * modules/readline: New file.
87454
87455 2005-08-02  Simon Josefsson  <jas@extundo.com>
87456
87457         * modules/getdelim: New file.
87458
87459         * modules/getline: Rewrite, don't use getndelim2.
87460
87461 2005-08-02  Simon Josefsson  <jas@extundo.com>
87462
87463         * m4/getline.m4: Separate out getdelim stuff into separate module.
87464
87465         * m4/getdelim.m4: New file.
87466
87467 2005-08-02  Simon Josefsson  <jas@extundo.com>
87468
87469         * lib/getline.h, getline.c: Rewrite.
87470
87471         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
87472
87473 2005-07-31  Bruno Haible  <bruno@clisp.org>
87474
87475         * lib/lock.h (gl_lock_initializer): New macro.
87476         (gl_lock_define_initialized): Use it.
87477         (gl_rwlock_initializer): New macro.
87478         (gl_rwlock_define_initialized): Use it.
87479         (gl_recursive_lock_initializer): New macro.
87480         (gl_recursive_lock_define_initialized): Use it.
87481
87482 2005-07-30  Karl Berry  <karl@gnu.org>
87483
87484         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
87485         Report from Ben Pfaff, regarding getopt.
87486
87487 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
87488
87489         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
87490         normal way.
87491         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
87492         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
87493         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
87494         (gl_GETOPT): Use the new macros.  Most of the implementation
87495         is moved to the new macros.  This is for programs like Emacs
87496         that don't want all the functionality of gl_GETOPT.
87497
87498 2005-07-26  Bruno Haible  <bruno@clisp.org>
87499
87500         * m4/lock.m4: Update from GNU gettext.
87501
87502 2005-07-26  Bruno Haible  <bruno@clisp.org>
87503
87504         * lib/lock.h: Update from GNU gettext.
87505         * lib/lock.c: Update from GNU gettext.
87506
87507 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
87508
87509         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
87510         obsolescent AC_TRY_RUN.  Include the default includes files, for
87511         'exit'.
87512
87513 2005-07-24  Bruno Haible  <bruno@clisp.org>
87514
87515         * modules/visibility: New file.
87516         * MODULES.html.sh (Misc): Add visibility.
87517
87518 2005-07-24  Bruno Haible  <bruno@clisp.org>
87519
87520         * m4/visibility.m4: New file.
87521
87522 2005-07-24  Bruno Haible  <bruno@clisp.org>
87523
87524         * doc/visibility.texi: New file.
87525
87526 2005-07-22  Bruno Haible  <bruno@clisp.org>
87527
87528         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
87529         $(ALLOCA_H), redundant through BUILT_SOURCES.
87530         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
87531         redundant through BUILT_SOURCES.
87532         * modules/byteswap (Makefile.am): Remove explicit dependency on
87533         $(BYTESWAP_H), redundant through BUILT_SOURCES.
87534         * modules/fnmatch (Makefile.am): Remove explicit dependency on
87535         $(FNMATCH_H), redundant through BUILT_SOURCES.
87536         * modules/getopt (Makefile.am): Remove explicit dependency on
87537         $(GETOPT_H), redundant through BUILT_SOURCES.
87538         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
87539         redundant through BUILT_SOURCES.
87540         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
87541         redundant through BUILT_SOURCES.
87542         * modules/stdbool (Makefile.am): Remove explicit dependency on
87543         $(STDBOOL_H), redundant through BUILT_SOURCES.
87544         * modules/stdint (Makefile.am): Remove explicit dependency on
87545         $(STDINT_H), redundant through BUILT_SOURCES.
87546         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
87547         Remove explicit dependency on $(SYSEXITS_H).
87548         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
87549
87550 2005-07-18  Simon Josefsson  <jas@extundo.com>
87551
87552         * lib/check-version.c (check_version): Accept identical versions too.
87553
87554 2005-07-18  Bruno Haible  <bruno@clisp.org>
87555
87556         * modules/lock: New file.
87557         * MODULES.html.sh (Multithreading): New section.
87558
87559 2005-07-18  Bruno Haible  <bruno@clisp.org>
87560
87561         * m4/lock.m4: New file, from GNU gettext.
87562
87563 2005-07-18  Bruno Haible  <bruno@clisp.org>
87564
87565         * lib/lock.h: New file, from GNU gettext.
87566         * lib/lock.c: New file, from GNU gettext.
87567
87568 2005-07-18  Bruno Haible  <bruno@clisp.org>
87569
87570         * lib/lock.h (gl_once_t): New type.
87571         (gl_once_define, gl_once): New macros.
87572         * lib/lock.c (fresh_once): New variable.
87573         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
87574         functions.
87575
87576 2005-07-16  Simon Josefsson  <jas@extundo.com>
87577
87578         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
87579         workaround, suggested by Bruno.
87580
87581 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
87582
87583         * modules/xalloc (Depends-on): Add xalloc-die.
87584         * modules/xvasprintf (Depends-on): Add xalloc-die.
87585
87586 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
87587
87588         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
87589         with a minor change.
87590
87591 2005-07-15  Bruno Haible  <bruno@clisp.org>
87592
87593         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
87594         When using lib/poll.c, define poll as rpl_poll.
87595
87596 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
87597
87598         * modules/argp (Depends-on): Remove unlocked-io.
87599
87600 2005-07-14  Derek Price  <derek@ximbiot.com>
87601
87602         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
87603         for glob symlink bug.
87604
87605 2005-07-14  Bruno Haible  <bruno@clisp.org>
87606
87607         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
87608         Instead, test for *_unlocked function declarations directly.
87609
87610 2005-07-11  Simon Josefsson  <jas@extundo.com>
87611
87612         * modules/size_max: New file.
87613
87614         * modules/xsize: Depend on size_max module for size_max.m4.
87615
87616 2005-07-11  Simon Josefsson  <jas@extundo.com>
87617
87618         * lib/size_max.h: New file.
87619
87620 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
87621
87622         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
87623         copyright symbol and the year.
87624         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
87625         (version_etc_va): Use parameterized copyright notice.
87626         Reword to conform to the current GNU coding standards.
87627
87628 2005-07-11  Karl Berry  <karl@gnu.org>
87629
87630         * doc/gnulib.texi (Quoting): new node.
87631         (Initial import): more info, from Patrice.
87632
87633 2005-07-11  Bruno Haible  <bruno@clisp.org>
87634
87635         * gnulib-tool (func_usage): Document option --avoid.
87636         (Command line options): Handle --avoid.
87637         (func_acceptable): New function.
87638         (func_modules_transitive_closure): Use it.
87639
87640 2005-07-11  Bruno Haible  <bruno@clisp.org>
87641
87642         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
87643         Reported by Jim Meyering.
87644
87645 2005-07-10  Bruno Haible  <bruno@clisp.org>
87646
87647         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
87648         Needed when size_t is smaller than 'unsigned int'.
87649         Reported by Paul Eggert.
87650
87651 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
87652
87653         * modules/argp (Depends-on): Add unlocked-io
87654
87655 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
87656
87657         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
87658         block of defines.
87659
87660 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
87661
87662         * config/srclist.txt: Comment out regcomp.c, since we have a porting
87663         fix now.
87664
87665 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
87666         and Paul Eggert  <eggert@cs.ucla.edu>
87667
87668         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
87669         in wint_t, not wchar_t.  Remove now-unnecessary cast.
87670
87671 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
87672
87673         * modules/regex (Files): Add lib/regex_internal.c,
87674         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
87675         (Depends-on): Add extensions.
87676         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
87677
87678 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
87679
87680         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
87681         pathconf.
87682         * m4/same.m4 (gl_SAME): Likewise.
87683         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
87684
87685         * m4/regex.m4: Adjust to new libc regex implementation.
87686         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
87687         all the .c and .h parts of (the new) regex.
87688         Quote the m4 stuff better.
87689         Check for RE_ICASE bug of old gnulib.
87690         Check for REG_STARTEND of recent libc.
87691         Rename local variables from jm_* to gl_*.
87692         Quote operand of "test -f".
87693         Say "recent enough" version of libc, not "version 2".
87694         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
87695         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
87696         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
87697         Remove check for btowc, isascii.
87698         Require AM_LANGINFO_CODESET.
87699
87700 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
87701
87702         * lib/regex.c, regex.h: Sync from libc.
87703         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
87704         * lib/regexec.c:
87705         New files, synced from libc, except that regex_internal.h
87706         currently has a small porting fix.
87707
87708 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
87709
87710         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
87711         regex_internal.c, regexec.c.
87712         Add regex_internal.h too, but as a comment, since the libc version
87713         is currently broken in gnulib mode.
87714
87715 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
87716
87717         Support programs like Emacs that use gnulib but not gettext.
87718         * MODULES.html.sh (Internationalization functions): Add gettext-h.
87719         * modules/gettext-h: New file.
87720         * modules/gettext (Files): Remove lib/gettext.h.
87721         (Depends-on): Add gettext-h.
87722         (Makefile.am): Remove lib_SOURCES.
87723         * modules/argmatch, modules/c-stack, modules/closeout:
87724         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
87725         * modules/execute, modules/file-type, modules/getaddrinfo:
87726         * modules/getopt, modules/human, modules/javacomp:
87727         * modules/javaexec, modules/mkdir-p, modules/obstack:
87728         * modules/openat, modules/pagealign_alloc, modules/pipe:
87729         * modules/quotearg, modules/regex, modules/rpmatch:
87730         * modules/unicodeio, modules/userspec, modules/version-etc:
87731         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
87732         * modules/xsetenv:
87733         Depend on gettext-h, not gettext.
87734
87735 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
87736
87737         * gnulib-tool (func_import): Add support for 'public domain' license.
87738         * modules/alloca, modules/atexit, modules/memmove:
87739         Now public domain, not GPL.
87740         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
87741         * modules/realloc, modules/strerror, modules/strtod:
87742         Now LGPL, not GPL.
87743
87744 2005-07-05  Bruno Haible  <bruno@clisp.org>
87745
87746         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
87747         autoconf CVS. Needed for mingw.
87748
87749 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
87750
87751         Remove the dependency of the strftime module on the tzset module.
87752         * modules/strftime (Depends-on): Remove dependency on tzset.
87753
87754 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
87755
87756         Remove the dependency of the strftime module on the tzset module.
87757         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
87758         gl_FUNC_TZSET_CLOBBER.
87759
87760 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
87761
87762         Remove the dependency of the strftime module on the tzset module.
87763         * lib/strftime.c (my_strftime)
87764         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
87765         Copy the input structure, to work around some of the bug with
87766         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
87767         Solaris releases, you should also use the tzset module, but we won't
87768         require it as a dependency any more since we don't want LGPLed code
87769         to depend on GPLed code.
87770
87771 2005-07-02  Jim Meyering  <jim@meyering.net>
87772
87773         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
87774         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
87775         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
87776         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
87777
87778 2005-07-02  Jim Meyering  <jim@meyering.net>
87779
87780         * lib/backupfile.c (backup_args): Change a `0' to NULL.
87781
87782 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
87783
87784         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
87785         declares only 'struct timespec;' (!).
87786
87787 2005-07-01  Jim Meyering  <jim@meyering.net>
87788
87789         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
87790         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
87791         * lib/save-cwd.c, tempname.c:
87792         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
87793         and don't include <sys/file.h>).
87794
87795 2005-06-29  Jim Meyering  <jim@meyering.net>
87796
87797         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
87798         type name.  Use the variable name instead.
87799         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
87800         Likewise.
87801
87802 2005-06-28  Simon Josefsson  <jas@extundo.com>
87803
87804         * modules/check-version (Files): Add check-version.m4.
87805
87806 2005-06-28  Simon Josefsson  <jas@extundo.com>
87807
87808         * m4/check-version.m4: New file, suggested by Jim Meyering
87809         <jim@meyering.net>.
87810
87811 2005-06-28  Simon Josefsson  <jas@extundo.com>
87812
87813         * lib/check-version.h, lib/check-version.c: New files.
87814
87815 2005-06-28  Simon Josefsson  <jas@extundo.com>
87816
87817         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
87818         collision with global variable.  Better indentation.  Don't
87819         increment buffer pointer beyond buffer end.  Based on comments
87820         from Paul Eggert <eggert@cs.ucla.edu>.
87821
87822         * lib/base64.h: Indent.
87823
87824 2005-06-28  Simon Josefsson  <jas@extundo.com>
87825
87826         * doc/gnulib.texi (Library version handling): New section.
87827
87828 2005-06-28  Jim Meyering  <jim@meyering.net>
87829
87830         * check-module (find_included_lib_files): Hard-code another
87831         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
87832         but modules/fts-lgpl (correctly) does not list those files.
87833
87834         * modules/canonicalize (Files): Add lib/pathmax.h.
87835
87836 2005-06-25  Simon Josefsson  <jas@extundo.com>
87837
87838         * modules/check-version: New file.
87839
87840 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
87841
87842         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
87843         initializer of struct addrinfo, as an indication that we don't
87844         care how many members the structure has.
87845
87846 2005-06-24  Derek Price  <derek@ximbiot.com>
87847         and Bruno Haible  <bruno@clisp.org>
87848
87849         Remove stat module & update lstat.
87850         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
87851         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
87852         * m4/stat.m4: Remove this file.
87853
87854 2005-06-24  Derek Price  <derek@ximbiot.com>
87855         and Bruno Haible  <bruno@clisp.org>
87856
87857         Remove stat module & update lstat.
87858         * lib/stat.c: Remove this file...
87859         (slash_aware_lstat): ...moving this content and its support...
87860         * lib/lstat.c (rpl_lstat): ...into here.
87861         * lib/lstat.h: New file.
87862
87863 2005-06-24  Derek Price  <derek@ximbiot.com>
87864         and Bruno Haible  <bruno@clisp.org>
87865
87866         Remove stat module & update lstat.
87867         * config/srclist.txt (libc sources): Remove stat.
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         * MODULES.html.sh (stat): Remove.
87874         * MODULES.html: Regenerated.
87875         * modules/lstat (Description): Correct function name.
87876         (Files): Add "lstat.h".
87877         (Depends-on): Remove stat, add xalloc, stat-macros.
87878         * modules/stat: Remove this file.
87879         (Include): Add "lstat.h", remove <sys/stat.h>.
87880
87881 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
87882
87883         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
87884         (ranged_convert): Don't save conversion in a temporary struct.
87885         This causes a warning with GCC 4.0.0, and anyway in the typical
87886         case it's not worth the extra 100 bytes or so of code.
87887         (ranged_convert, __mktime_internal): When calling a function via a
87888         pointer P, use P () rather than (*P) (), as we now assume C89 or
87889         better.
87890
87891 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
87892
87893         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
87894         "who -r" failed to give output.  Problem reported by Tim Waugh.
87895
87896         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
87897         (xcalloc): Use it to avoid needless tests.
87898         Problem reported by Jim Meyering.
87899
87900 2005-06-20  Derek Price  <derek@ximbiot.com>
87901
87902         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
87903         unnecessary for Autoconfs > 2.59c.
87904
87905 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87906
87907         * lib/argp.h (__option_is_short): Check upper limit of
87908         __key. Isprint() requires its argument to have the value
87909         of an unsigned char or EOF.
87910
87911 2005-06-16  Jim Meyering  <jim@meyering.net>
87912
87913         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
87914         when either N or S is zero.
87915
87916 2005-06-16  Derek Price  <derek@ximbiot.com>
87917
87918         * m4/bison.m4: Declare YACC & YFLAGS precious.
87919
87920 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
87921
87922         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
87923         multibyte string or pattern, fall back on unibyte matching.
87924         Problem reported by James Youngman.
87925
87926 2005-06-08  Bruno Haible  <bruno@clisp.org>
87927
87928         * modules/csharpcomp: New file.
87929         * MODULES.html.sh (C#): Add csharpcomp.
87930
87931 2005-06-08  Bruno Haible  <bruno@clisp.org>
87932
87933         * m4/csharpcomp.m4: New file, from GNU gettext.
87934
87935 2005-06-08  Bruno Haible  <bruno@clisp.org>
87936
87937         * lib/csharpcomp.h: New file, from GNU gettext.
87938         * lib/csharpcomp.c: New file, from GNU gettext.
87939         * lib/csharpcomp.sh.in: New file, from GNU gettext.
87940
87941 2005-06-08  Bruno Haible  <bruno@clisp.org>
87942
87943         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
87944         warning on mingw.
87945
87946 2005-06-07  Derek Price  <derek@ximbiot.com>
87947
87948         Sync from CVS.
87949         * lib/glob_.h: Indent nested #ifdef.
87950
87951 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
87952
87953         Sync from coreutils.
87954         Use "file name" when talking about file names, instead of "filename"
87955         or "path", as per the GNU coding standards.
87956         * lib/mkdir-p.c: Renamed from makepath.c.
87957         (make_dir_parents): Renamed from make_path.  All callers changed.
87958         * lib/mkdir-p.h: Likewise.  All includers changed.
87959         * lib/filenamecat.c: Renamed from path-concat.c.
87960         (file_name_concat): Renamed from path_concat.  All callers changed.
87961         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
87962         * lib/filenamecat.h: Likewise.  All includers changed.
87963         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
87964         in comments or local variable names.
87965         * lib/basename.c: Likewise.
87966         * lib/canonicalize.c, canonicalize.h: Likewise.
87967         * lib/dirname.c, dirname.h: Likewise.
87968         * lib/euidaccess.c: Likewise.
87969         * lib/exclude.c: Likewise
87970         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
87971         * lib/fsusage.c, fsuage.h: Likewise.
87972         * lib/fts.c, fts_.h: Likewise.
87973         * lib/getcwd.c: Likewise.
87974         * lib/getloadavg.c: Likewise.
87975         * lib/mkstemp.c: Likewise.
87976         * lib/mountlist.c, mountlist.h: Likewise.
87977         * lib/openat.c, openat.h: Likewise.
87978         * lib/readlink-stub.c: Likewise.
87979         * lib/readutmp.c, readutmp.h: Likewise.
87980         * lib/rename.c: Likewise.
87981         * lib/rmdir.c: Likewise.
87982         * lib/same.c: Likewise.
87983         * lib/savedir.c: Likewise.
87984         * lib/stripslash.c: Likewise.
87985         * lib/tempname.c: Likewise.
87986         * lib/xreadlink.c: Likewise.
87987         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
87988         All uses changed.
87989         * lib/exclude.h: Likewise.
87990
87991         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
87992         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
87993         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
87994         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
87995         * lib/pathmax.h: Include <limits.h> unconditionally, since other
87996         files have been getting away with it for years (MORE/BSD 4.3
87997         is extinct now).
87998         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
87999         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
88000
88001         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
88002         Define to 256, not 255, as per modern POSIX.
88003
88004 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
88005
88006         Sync from coreutils.
88007         Use "file name" when talking about file names, instead of "filename"
88008         or "path", as per the GNU coding standards.
88009         * MODULES.html.sh: mkdir-p renamed from makepath.
88010         filenamecat renamed from path-concat.
88011         * modules/filenamecat: Renamed from modules/path-concat.
88012         (Files): filenamecat.h and filenamecat.c renamed from
88013         path-concat.h and path-concat.c.
88014         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
88015         (Include): filenamecat.h, not path-concat.h.
88016         * modules/mkdir-p: Renamed from modules/makepath.
88017         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
88018         makepath.c.
88019         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
88020         (Include): mkdir-p.h, not makepath.h.
88021
88022 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
88023
88024         Sync from coreutils.
88025         * m4/mkdir-p.m4: Renamed from makepath.m4.
88026         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
88027         Rename files from makepath.c to mkdir-p.c, and from
88028         makepath.h to mkdir-p.h.
88029         * m4/filenamecat.m4: Renamed from path-concat.m4.
88030         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
88031         Rename files from path-concat.c to filenamecat.c,
88032         and from path-concat.h to filenamecat.h.
88033         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
88034         "file name" in local variables or comments.
88035         * m4/rename.m4: Likewise.
88036
88037 2005-06-01  Bruno Haible  <bruno@clisp.org>
88038
88039         * modules/csharpexec: New file.
88040         * MODULES.html.sh (C#): New section.
88041
88042 2005-06-01  Bruno Haible  <bruno@clisp.org>
88043
88044         * m4/csharp.m4: New file, from GNU gettext.
88045         * m4/csharpexec.m4: New file, from GNU gettext.
88046
88047 2005-06-01  Bruno Haible  <bruno@clisp.org>
88048
88049         * lib/csharpexec.h: New file, from GNU gettext.
88050         * lib/csharpexec.c: New file, from GNU gettext.
88051         * lib/csharpexec.sh.in: New file, from GNU gettext.
88052
88053 2005-05-31  Derek Price  <derek@ximbiot.com>
88054             Paul Eggert  <eggert@cs.ucla.edu>
88055
88056         Sync from cvs.
88057         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
88058
88059 2005-05-31  Derek Price  <derek@ximbiot.com>
88060             Paul Eggert  <eggert@cs.ucla.edu>
88061
88062         Sync from cvs.
88063         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
88064
88065 2005-05-29  Derek Price  <derek@ximbiot.com>
88066
88067         * config/srclist.txt (glob_.h, glob.c): Add these files.
88068
88069 2005-05-29  Derek Price  <derek@ximbiot.com>
88070
88071         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
88072         * modules/glob: New file.
88073         * modules/getlogin_r: Add link to POSIX spec in description.
88074
88075 2005-05-29  Derek Price  <derek@ximbiot.com>
88076             Paul Eggert  <eggert@cs.ucla.edu>
88077
88078         * m4/glob.m4: New file.
88079
88080 2005-05-29  Derek Price  <derek@ximbiot.com>
88081             Paul Eggert  <eggert@cs.ucla.edu>
88082
88083         * lib/glob_.h, lib/glob.c: New files.
88084
88085 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
88086
88087         * modules/fts (Files): Remove m4/inttypes-pri.m4.
88088         * modules/fts-lgpl (Depends-on): Remove gettext.
88089
88090 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
88091
88092         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
88093         and don't require gt_INTTYPES_PRI.
88094
88095 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
88096
88097         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
88098
88099         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
88100         the configuration hassle isn't worth it.
88101         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
88102         (LONGEST_MODIFIER, PRIuMAX): Remove.
88103
88104 2005-05-27  Bruno Haible  <bruno@clisp.org>
88105
88106         * lib/getlogin_r.h: Remove second include of <stddef.h>.
88107
88108 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
88109
88110         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
88111         _POSIX_PTHREAD_SEMANTICS for Solaris.
88112
88113 2005-05-25  Derek Price  <derek@ximbiot.com>
88114
88115         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
88116
88117 2005-05-25  Derek Price  <derek@ximbiot.com>
88118             Paul Eggert  <eggert@cs.ucla.edu>
88119
88120         * modules/getlogin_r, m4/getlogin_r.m4: New files.
88121         * lib/getlogin_r.c, getlogin_r.h: New files.
88122
88123 2005-05-25  Bruno Haible  <bruno@clisp.org>
88124             Derek Price  <derek@ximbiot.com>
88125
88126         * lib/getlogin_r.h: Simplify API documentation.
88127
88128 2005-05-23  Derek Price  <derek@ximbiot.com>
88129
88130         * modules/minmax (Files): Add m4/minmax.m4.
88131         (configure.ac): Add gl_MINMAX.
88132
88133 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
88134
88135         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
88136         so that unistd-safer.h (GPL'ed code) need not be included.
88137
88138 2005-05-22  Bruno Haible  <bruno@clisp.org>
88139
88140         * m4/minmax.m4: New file.
88141         Based on a patch by Derek Price <derek@ximbiot.com>.
88142
88143 2005-05-22  Bruno Haible  <bruno@clisp.org>
88144
88145         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
88146         (INT64_MIN): Fix definition.
88147         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
88148
88149         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
88150         NEED_SIGNED_INT_TYPES.
88151
88152         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
88153         HAVE_SYSTEM_INTTYPES.
88154
88155 2005-05-22  Bruno Haible  <bruno@clisp.org>
88156
88157         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
88158         Also include <sys/param.h> if it defines MIN, MAX.
88159         Based on a patch by Derek Price <derek@ximbiot.com>.
88160
88161 2005-05-21  Jim Meyering  <jim@meyering.net>
88162
88163         * modules/fts (Files): Add m4/inttypes-pri.m4.
88164         (Depends-on): Add lstat and remove gettext.  Alphabetize.
88165
88166 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
88167
88168         New fts module.
88169         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
88170         (setup_dir, free_dir): New functions.
88171         (enter_dir, leave_dir): Define trivial
88172         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
88173         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
88174         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
88175         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
88176         Move to fts-cycle.c.
88177         (fts_open): Use setup_dir.
88178         (fts_close): Use free_dir.
88179         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
88180         This adds a label and some gotos, but the alternatives were messier.
88181         Check for memory allocation failure when entering a dir.
88182         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
88183         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
88184         (FTS): New member fts_cycle, that is a union that contains the
88185         old active_dir_ht and cycle_state.  All uses changed to mention
88186         fts_cycle.ht and fts_cycle.state.
88187         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
88188         fts.c, with the following changes:
88189         (setup_dir, free_dir): New functions.
88190         (enter_dir): Now returns bool.  Return true if successful, false
88191         if memory exhausted.  All callers changed.
88192         Do not bother partly cleaning up on
88193         memory allocation failure; that is free_dir's job.
88194         However, free ad if hash_insert fails, to avoid memory leak.
88195         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
88196         fts->fts_options to see which union member to use.
88197
88198 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
88199
88200         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
88201         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
88202
88203 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
88204
88205         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
88206
88207 2005-05-20  Jim Meyering  <jim@meyering.net>
88208
88209         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
88210         Now a macro, to pacify GCC.
88211
88212 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
88213
88214         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
88215         of -1.
88216
88217 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
88218
88219         * lib/chown.c (rpl_chown): Return -1 on failure.
88220
88221 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
88222
88223         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
88224         Don't check for stddef.h.
88225         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
88226         don't use its results.
88227         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
88228         since we include them unconditionally.  Don't require
88229         AM_STDBOOL_H, since stdbool is a prerequisite.
88230         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
88231         since we assume C89 or better.
88232         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
88233         as we don't use their results.
88234         Don't check for fchdir, memmove, memset, strrchr, as we use
88235         them unconditionally.
88236         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
88237         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
88238
88239 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
88240
88241         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
88242         Include <stddef.h> unconditionally, since we assume C89 now.
88243         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
88244         * lib/fts.c: Include fts_.h first, to check interface.
88245         Do not include intprops.h; no longer needed.
88246         Include cycle-check.h and hash.h, since fts_.h no longer does.
88247         Remove unnecessary casts of closedir to void.
88248         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
88249         decide whether to decrement nlinks.
88250         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
88251         (FTS): Use struct hash_table * instead of Hash_table, so that
88252         we no longer need to include hash.h here.
88253
88254 2005-05-18  Jim Meyering  <jim@meyering.net>
88255
88256         * modules/dirfd (License): Change to LGPL.  Most of the code
88257         is already in the public domain.
88258
88259 2005-05-18  Jim Meyering  <jim@meyering.net>
88260
88261         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
88262         Reported by Yoann Vandoorselaere.
88263
88264 2005-05-17  Jim Meyering  <jim@meyering.net>
88265
88266         * m4/fts.m4: New file, from coreutils.
88267
88268 2005-05-17  Jim Meyering  <jim@meyering.net>
88269
88270         * lib/fts.c, lib/fts_.h: New files, from coreutils.
88271
88272 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
88273
88274         Sync from coreutils.
88275         * m4/unlinkdir.m4: New file.
88276
88277 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
88278
88279         Sync from coreutils.
88280         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
88281         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
88282         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
88283         White space changes only.
88284         * lib/makepath.c (make_path): Port to hosts where leading "//" is
88285         special.
88286         * lib/yesno.c: Include getline.h, not ctype.h.
88287         (yesno): Don't remove leading white space; POSIX doesn't allow it.
88288         Use getline to remove arbitrary restriction on response length.
88289
88290 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
88291
88292         * config/srclist-update: Spell out "Street" in FSF postal
88293         mail address; this is the style the FSF seems to prefer.
88294
88295         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
88296         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
88297         this updates FSF postal mail address.
88298
88299         Sync from coreutils.
88300         * modules/unlinkdir: New file.
88301         * modules/yesno (Depends-on): Add getline.
88302         * MODULES.html.sh (File system functions): Add unlinkdir.
88303
88304 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
88305
88306         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
88307         lib/strsep.h:
88308         Change the initial comment to refer to GPL, not LGPL.
88309         gnulib-tool will change it to LGPL as needed.
88310
88311         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
88312         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
88313         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
88314         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
88315         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
88316         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
88317         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
88318         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
88319         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
88320         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
88321         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
88322         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
88323         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
88324         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
88325         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
88326         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
88327         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
88328         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
88329         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
88330         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
88331         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
88332         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
88333         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
88334         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
88335         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
88336         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
88337         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
88338         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
88339         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
88340         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
88341         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
88342         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
88343         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
88344         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
88345         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
88346         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
88347         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
88348         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
88349         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
88350         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
88351         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
88352         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
88353         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
88354         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
88355         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
88356         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
88357         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
88358         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
88359         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
88360         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
88361         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
88362         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
88363         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
88364         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
88365         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
88366         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
88367         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
88368         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
88369         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
88370         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
88371         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
88372         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
88373         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
88374         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
88375         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
88376         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
88377         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
88378         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
88379         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
88380         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
88381         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
88382         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
88383         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
88384         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
88385         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
88386         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
88387         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
88388         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
88389         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
88390         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
88391         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
88392         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
88393         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
88394         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
88395         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
88396         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
88397         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
88398         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
88399         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
88400         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
88401         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
88402         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
88403         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
88404         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
88405         lib/yesno.c, lib/yesno.h:
88406         Update FSF postal mail address.
88407
88408 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
88409
88410         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
88411         tests/test-memmem.c, tests/test-stpncpy.c:
88412         Update FSF postal mail address.
88413
88414 2005-05-13  Bruno Haible  <bruno@clisp.org>
88415
88416         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
88417         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
88418         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
88419         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
88420         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
88421         Add support for 64-bit integers in the MSVC compiler.
88422
88423 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88424
88425         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
88426
88427 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
88428
88429         * gnulib-tool (func_import): Sort and uniquify recommended includes.
88430
88431 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
88432
88433         * doc/getdate.texi (General date syntax): Don't say that date
88434         date --iso-8601=ns generates acceptable dates; it doesn't yet.
88435         Problem reported by Nic Ferrier.
88436
88437 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88438
88439         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
88440         specified in ai_socktype. Fix invalid ai_protocol
88441         check. ai_protocol is usually set to 0 or depending on
88442         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
88443         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
88444         ai_socktype / ai_protocol in the returned addrinfo structure.
88445
88446 2005-05-10  Simon Josefsson  <jas@extundo.com>
88447
88448         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
88449         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
88450
88451 2005-05-10  Karl Berry  <karl@gnu.org>
88452
88453         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
88454         (from http://www.gnu.org/licenses).
88455         * doc/COPYING.LIB: also rename to COPYING.LESSER.
88456         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
88457         fdl.texi suffices.
88458
88459 2005-05-10  Karl Berry  <karl@gnu.org>
88460
88461         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
88462         (COPYING.DOC): remove.
88463
88464         * config/srclist-update: new FSF address.
88465
88466 2005-05-10  Derek Price  <derek@ximbiot.com>
88467
88468         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
88469         possible.
88470
88471 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88472             Bruno Haible  <bruno@clisp.org>
88473
88474         * modules/inet_ntop: New file.
88475         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
88476         inet_ntop.
88477
88478 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88479             Bruno Haible  <bruno@clisp.org>
88480
88481         * m4/inet_ntop.m4: New file.
88482
88483 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88484             Bruno Haible  <bruno@clisp.org>
88485
88486         * lib/inet_ntop.h: New file.
88487         * lib/inet_ntop.c: New file, from glibc with modifications.
88488
88489 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
88490
88491         * modules/time_r (License): Change to LGPL.
88492         * modules/extensions (License): Change to LGPL.  Actually,
88493         the license is more permissive than that, but currently gnulib-tool
88494         doesn't know how to handle more-permissive licenses.
88495
88496         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
88497         Problem reported by Dave Love.
88498
88499 2005-05-08  Jim Meyering  <jim@meyering.net>
88500
88501         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
88502         blank.
88503
88504 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
88505
88506         * modules/argmatch (Depends-on): Add stdbool.
88507         * modules/backupfile (Depends-on): Likewise.
88508         * modules/chdir-long (Depends-on): Likewise.
88509         * modules/closeout (Depends-on): Likewise.
88510         * modules/cycle-check (Depends-on): Likewise.
88511         * modules/dirname (Depends-on): Likewise.
88512         * modules/fnmatch (Depends-on): Likewise.
88513         * modules/fsusage (Depends-on): Likewise.
88514         * modules/fwriteerror (Depends-on): Likewise.
88515         * modules/getcwd (Depends-on): Likewise.
88516         * modules/getloadavg (Depends-on): Likewise.
88517         * modules/hard-locale (Depends-on): Likewise.
88518         * modules/makepath (Depends-on): Likewise.
88519         * modules/mountlist (Depends-on): Likewise.
88520         * modules/nanosleep (Depends-on): Likewise.
88521         * modules/posixtm (Depends-on): Likewise.
88522         * modules/quotearg (Depends-on): Likewise.
88523         * modules/readtokens (Depends-on): Likewise.
88524         * modules/readtokens0 (Depends-on): Likewise.
88525         * modules/readutmp (Depends-on): Likewise.
88526         * modules/save-cwd (Depends-on): Likewise.
88527         * modules/strftime (Depends-on): Likewise.
88528         * modules/userspec (Depends-on): Likewise.
88529         * modules/utimecmp (Depends-on): Likewise.
88530         * modules/xgetcwd (Depends-on): Likewise.
88531         * modules/xnanosleep (Depends-on): Likewise.
88532         * modules/xstrtod (Depends-on): Likewise.
88533         * modules/yesno (Depends-on): Likewise.
88534
88535 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
88536
88537         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
88538         needless checks.
88539
88540 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
88541
88542         Merge from coreutils.  Among other things,
88543         add bulletproofing for cases where stdin, stdout, or stderr are closed.
88544         * lib/fd-safer.c: New file.
88545         * lib/fcntl-safer.h, open-safer.c: Remove.
88546         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
88547         * lib/dup-safer.c: Include unistd-safer.h first.
88548         Don't include errno.h.
88549         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
88550         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
88551         * lib/file-type.c: Rely on file-type.h change.
88552         * lib/getloadavg.c: Include unistd-safer.h.
88553         (getloadavg): Use safer open.
88554         * lib/getusershell.c: Include "stdio-safer.h".
88555         (getusershell): Use safer fopen.
88556         * lib/long-options.c (long_options): Use NULL rather than 0.
88557         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
88558         'free'.
88559         * lib/modechange.c: Likewise.
88560         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
88561         (MODE_DONE): New constant.
88562         (struct mode_change): Remove 'next' member.
88563         (make_node_op_equals): New function; like the old one of the
88564         same name, except it allocates an array.
88565         (mode_compile, mode_create_from_ref): Use it.
88566         (mode_compile): Allocate result as an array, not a linked list.
88567         Parse octal string ourself, so that we catch mistakes like "+0".
88568         (mode_adjust): Arg is an array, not a linked list.
88569         * lib/modechange.c: Include stat-macros.h, xalloc.h.
88570         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
88571         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
88572         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
88573         Remove.  This is now stat-macros.h's job.
88574         (talloc): Remove.  All callers replaced by xalloc, so that
88575         our invokers don't have to worry about reporting memory failures.
88576         (make_node_op_equals): Remove.
88577         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
88578         New constants.
88579         (struct mode_change): Moved here from modechange.h.
88580         (mode_append_entry): Remove.
88581         (mode_compile): Remove MASKED_OPS arg, since it encouraged
88582         apps to have incorrect behavior.  Use simpler algorithm for head
88583         and tail.  Don't futz with umask; that's now the job of mode_adjust.
88584         Detect more invalid usages rather than having somewhat-random behavior.
88585         Don't insert an "a=" action, as that leads to incorrect behavior.
88586         (mode_compile, mode_create_from_ref): Return NULL on error instead
88587         of an enum, since now there's only one way to have an error.  All
88588         callers changed.
88589         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
88590         at the correct time.  Simplify calculation of "+u" and its ilk.
88591         Don't mishandle "+X".
88592         (mode_free): Remove "register" and localize decls.
88593         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
88594         (struct mode_change): Move to modechange.c; callers don't
88595         need to see this stuff.
88596         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
88597         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
88598         (mode_change, mode_adjust): Reflect the new signatures noted above.
88599         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
88600         that might redefine system include files.
88601         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
88602         (my_usleep): Use NULL rather than (void *) 0.
88603         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
88604         Use siginterrupt to specify that system calls should be interrupted.
88605         (rpl_nanosleep): Move initialization of suspended closer to call of
88606         my_usleep.
88607         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
88608         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
88609         (desirable_utmp_entry): New function.
88610         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
88611         using x2nrealloc, to simplify logic.
88612         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
88613         size calculation.  Do not assume utmp file is a regular file.
88614         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
88615         (READ_UTMP_CHECK_PIDS): New constant.
88616         * lib/save-cwd.c: Include unistd-safer.h.
88617         (save_cwd): Use fd_safer.
88618         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
88619         [!_LIBC] Include "stat-macros.h" instead.
88620         * lib/unistd-safer.h (fd_safer): New decl.
88621
88622 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
88623
88624         * modules/getloadavg (Depends-on): Add unistd-safer.
88625         * modules/getusershell (Depends-on): Add stdio-safer.
88626         * modules/lstat (Depends-on): Remove xalloc.
88627         * modules/mkstemp (Depends-on): Add stat-macros.
88628         * modules/modechange (Depends-on): Remove xstrtol.
88629         Add stat-macros, xalloc.
88630         * modules/save-cwd (Depends-on): Add unistd-safer.
88631         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
88632         * modules/unistd-safer (Files): Add lib/fd-safer.c
88633         (Makefile.am): Remove lib_SOURCES.
88634
88635         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
88636         Remove fcntl-safer; unistd-safer supersedes it.
88637
88638 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
88639
88640         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
88641         AC_HEADER_STAT.
88642         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
88643         (gl_PREREQ_CHOWN): Remove.
88644         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
88645         it.  Don't require AC_HEADER_STAT.
88646         (gl_PREREQ_LSTAT): Remove.
88647         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
88648         Don't require AC_HEADER_STAT.
88649         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
88650         (gl_PREREQ_RMDIR): Remove.
88651         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
88652         mention stat-macros.h or AC_HEADER_STAT, since we'll make
88653         the stat-macros module a prerequisite.
88654         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
88655         * m4/filemode.m4 (gl_FILEMODE): Likewise.
88656         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
88657         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
88658         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
88659         variable names.
88660         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
88661         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
88662         variable prefixes.
88663         * m4/fcntl-safer.m4: Remove.
88664         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
88665         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
88666         Invoke gl_PREREQ_FD_SAFER.
88667         (gl_PREREQ_FD_SAFER): New macro.
88668         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
88669         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
88670         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
88671         Remove duplicate call to AC_LIBOBJ(readutmp).
88672         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
88673
88674         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
88675         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
88676
88677 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
88678
88679         * MODULES.html.sh (Misc): Add byteswap.
88680
88681 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
88682
88683         * modules/getcwd (Depends-on): Add extensions.
88684         * modules/openat (Depends-on): Likewise.
88685
88686 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
88687
88688         * modules/byteswap: New file.
88689
88690 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
88691
88692         * m4/byteswap.m4: New file.
88693
88694 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
88695
88696         * lib/byteswap_.h: New file.
88697
88698 2005-04-25  Karl Berry  <karl@gnu.org>
88699
88700         * m4/gettext.m4: Update from GNU gettext 0.14.4.
88701
88702 2005-04-25  Albert Chin  <china@thewrittenword.com>
88703
88704         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
88705         Toolkit C bug.
88706
88707 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
88708
88709         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
88710         (func_ln_if_changed): Remove forcibly for no error message
88711         in case file does not exist.
88712
88713 2005-04-19  Simon Josefsson  <jas@extundo.com>
88714
88715         * gnulib-tool (Options): Make --symlink mean --symbolic.
88716
88717 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
88718
88719         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
88720
88721 2005-04-16  Simon Josefsson  <jas@extundo.com>
88722
88723         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
88724
88725 2005-04-15  Simon Josefsson  <jas@extundo.com>
88726
88727         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
88728
88729 2005-04-15  Simon Josefsson  <jas@extundo.com>
88730
88731         * gnulib-tool: Rename --symlink to --symbolic.
88732
88733 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
88734
88735         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
88736         symbolic links to files instead of copying/moving.  Add --aux-dir,
88737         specifying directory relative --dir where auxiliary build tools
88738         are placed.
88739
88740 2005-04-14  Bruno Haible  <bruno@clisp.org>
88741
88742         * modules/allocsa (License): Change to LGPL.
88743         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
88744
88745 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
88746
88747         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
88748         that "UTC +1 second" continues to work.  Problem reported
88749         by Dmitry V. Levin.
88750         (relunit_snumber): New rule.
88751         (relunit): Use it.
88752
88753 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
88754
88755         * lib/getdate.y (universal_time_zone_table): New constant.
88756         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
88757         universal_time_zone_table.
88758         (lookup_zone): Prefer universal_time_zone_table to
88759         local_time_zone_table, so that "GMT" time stamps are allowed in
88760         London during the summer.  Problem reported by Ian Abbott.
88761
88762 2005-04-12  Jim Meyering  <jim@meyering.net>
88763
88764         * lib/human.c (humblock): Set *options even when returning due to
88765         xstrtoumax conversion failure.  Thanks to a used-uninitialized
88766         warning from gcc-4.
88767
88768 2005-04-09  Jim Meyering  <jim@meyering.net>
88769
88770         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
88771         -Wuninitialized: initialize tm0.tm_year.
88772
88773 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
88774
88775         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
88776         count, since there's no maximum.  All uses changed.
88777         Add member dsts_seen.
88778         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
88779         not being INT_MAX.
88780         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
88781         Use pc_rels_seen to decide whether a date is absolute.
88782
88783         * lib/getdate.y (number): Don't overwrite year.
88784         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
88785         check.
88786
88787 2005-04-02  Simon Josefsson  <jas@extundo.com>
88788
88789         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
88790         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
88791
88792 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
88793
88794         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
88795         where no absolute path name can be longer than PATH_MAX.
88796
88797 2005-03-27  Jim Meyering  <jim@meyering.net>
88798
88799         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
88800
88801 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
88802
88803         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
88804         "one's complement" -> "ones' complement" in comment, as per Knuth.
88805         "value of type" -> "type or expression" in comment.
88806         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
88807
88808 2005-03-26  Jim Meyering  <jim@meyering.net>
88809
88810         Comment nits.
88811         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
88812         Correct typos: s/or/of/.
88813
88814 2005-03-26  Jim Meyering  <jim@meyering.net>
88815
88816         * modules/check-include-files: Move to ../ and rename to...
88817         * check-module: ...this.
88818
88819 2005-03-25  Jim Meyering  <jim@meyering.net>
88820
88821         * modules/xvasprintf (Files): Add xalloc.h.
88822
88823 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
88824
88825         * modules/gettext (Files): config/config.rpath ->
88826         build-aux/config.rpath
88827         * modules/iconv (Files): Likewise.
88828         Problem reported by Oskar Liljeblad.
88829
88830 2005-03-23  Jim Meyering  <jim@meyering.net>
88831
88832         * modules/check-include-files: New script to check for
88833         missing dependencies, multiple includes, etc.
88834
88835         * modules/c-strtold (Depends-on): Add xalloc.
88836         * modules/c-strtod (Depends-on): Add xalloc.
88837         * modules/hash (Depends-on): Add xalloc.
88838         (Files): Remove lib/xalloc.h.
88839
88840         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
88841         * modules/userspec (Files): Add lib/inttostr.h.
88842
88843 2005-03-23  Jim Meyering  <jim@meyering.net>
88844
88845         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
88846
88847 2005-03-22  Jim Meyering  <jim@meyering.net>
88848
88849         * modules/stat-macros: New module.
88850         * modules/canonicalize, modules/euidaccess, modules/file-type,
88851         * modules/filemode, modules/lchown, modules/makepath,
88852         * modules/rmdir, modules/stat: Depend on new stat-macros module
88853         rather than listing lib/stat-macros.h manually.
88854         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
88855
88856 2005-03-22  Jim Meyering  <jim@meyering.net>
88857
88858         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
88859
88860 2005-03-22  Bruno Haible  <bruno@clisp.org>
88861
88862         * config/srclist.txt: Replace target directory 'config' with
88863         'build-aux'.
88864         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
88865         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
88866         ../build-aux/.
88867
88868 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
88869
88870         * modules/chdir-long (Depends-on): Add mempcpy.
88871
88872         * modules/acl, modules/backupfile, modules/c-strtod,
88873         modules/c-strtold, modules/canon-host, modules/canonicalize,
88874         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
88875         modules/exclude, modules/exitfail, modules/file-type,
88876         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
88877         modules/getdate, modules/getline, modules/getpagesize,
88878         modules/getpass, modules/getugroups, modules/group-member,
88879         modules/hard-locale, modules/hash, modules/human, modules/idcache,
88880         modules/inttostr, modules/long-options, modules/makepath,
88881         modules/md5, modules/memcasecmp, modules/memcoll,
88882         modules/modechange, modules/mountlist, modules/path-concat,
88883         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
88884         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
88885         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
88886         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
88887         modules/strftime, modules/strndup, modules/strverscmp,
88888         modules/timespec, modules/unlocked-io, modules/userspec,
88889         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
88890         modules/yesno:
88891         Remove lib_SOURCES line from Makefile.am section, as this is now
88892         done automatically by the corresponding Autoconf macro.
88893
88894 2005-03-21  Jim Meyering  <jim@meyering.net>
88895
88896         Changes imported from coreutils.
88897
88898         * lib/cycle-check.c: Don't include xalloc.h.
88899
88900         * lib/path-concat.c: Don't include assert.h.
88901         (path_concat): Remove assertion that would have triggered
88902         for ABASE starting with more than one slash.
88903         Reported by Andreas Schwab.
88904
88905         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
88906         properly when ABASE is an absolute file name.
88907         Correct the description of this function.
88908         Include <assert.h>.
88909         Add an assertion and a test driver.
88910         This fixes a bug introduced on 2004-07-02.
88911         Andreas Schwab reported the resulting failure of cp --parents:
88912         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
88913
88914 2005-03-21  Jim Meyering  <jim@meyering.net>
88915
88916         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
88917         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
88918
88919 2005-03-21  Jim Meyering  <jim@meyering.net>
88920         and  Paul Eggert  <eggert@cs.ucla.edu>
88921
88922         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
88923         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
88924         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
88925         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
88926         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
88927         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
88928         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
88929         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
88930         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
88931         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
88932         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
88933         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
88934         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
88935         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
88936         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
88937         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
88938         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
88939         for these modules.
88940
88941 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
88942
88943         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
88944         (which shouldn't happen), generate nothing instead of returning 0
88945         immediately, so that nstrftime (NULL, ...) doesn't return 0.
88946
88947 2005-03-16  Bruno Haible  <bruno@clisp.org>
88948
88949         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
88950         HAVE_LONGLONG_64BIT.
88951
88952 2005-03-16  Bruno Haible  <bruno@clisp.org>
88953
88954         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
88955         HAVE_LONGLONG_64BIT.
88956
88957 2005-03-16  Bruno Haible  <bruno@clisp.org>
88958
88959         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
88960         HAVE_LONGLONG_64BIT.
88961
88962 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
88963
88964         * lib/strftime.c (my_strftime): Prepend space to format so that we can
88965         reliably distinguish strftime failure from empty output on POSIX
88966         hosts.
88967
88968 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
88969
88970         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
88971         (iconv_string): Don't guess a size-zero buffer, as that might cause
88972         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
88973         result would be 'too large', where 'too large' is (heuristically)
88974         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
88975         overflow concerns.  This will prevent some unwanted malloc failures
88976         when the inputs are very large.
88977
88978 2005-03-15  Karl Berry  <karl@gnu.org>
88979
88980         * config/srclist.txt (config.rpath): from gettext.
88981         * config/config.rpath: update.
88982
88983 2005-03-15  Bruno Haible  <bruno@clisp.org>
88984
88985         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
88986         to 'negate'.
88987
88988         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
88989         variable.
88990
88991         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
88992         results.
88993
88994 2005-03-14  Simon Josefsson  <jas@extundo.com>
88995
88996         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
88997         <fx@gnu.org>.
88998
88999 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
89000
89001         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
89002         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
89003         intprops.h.
89004         * lib/strtol.c: Likewise.
89005
89006 2005-03-14  Jim Meyering  <jim@meyering.net>
89007
89008         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
89009         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
89010         to be nonzero so that we (and caller) can detect the difference
89011         between a valid zero-length expansion and an error return, even
89012         when the underlying strftime fails before writing anything into
89013         that location.
89014
89015 2005-03-14  Bruno Haible  <bruno@clisp.org>
89016
89017         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
89018         Update from GNU gettext 0.14.3.
89019
89020 2005-03-10  Jim Meyering  <jim@meyering.net>
89021
89022         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
89023
89024 2005-03-10  Jim Meyering  <jim@meyering.net>
89025
89026         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
89027         so that this module works on systems without fchdir.
89028
89029 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
89030
89031         Factor int-properties macros into a single file, except for
89032         glibc-related files.
89033         * lib/intprops.h: New file.
89034         * lib/getloadavg.c: Include it instead of limits.h.
89035         (INT_STRLEN_BOUND): Remove.
89036         * lib/human.c: Include intprops.h.
89037         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
89038         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
89039         302/1000.
89040         * lib/inttostr.h: Include intprops.h instead of limits.h.
89041         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
89042         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
89043         for consistency with intprops.h.
89044         (time_t_is_integer, twos_complement_arithmetic): Use them.
89045         * lib/sig2str.h: Include <signal.h>, intprops.h.
89046         (INT_STRLEN_BOUND): Remove.
89047         * lib/strftime.c (TYPE_SIGNED): Remove.
89048         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
89049         * lib/strtol.c: Adjust comments to match intprops.h.
89050         * lib/userspec.c: Include intprops.h.
89051         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
89052         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
89053         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
89054         instead of rolling our own expressions.
89055         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
89056
89057         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
89058         instead of int.
89059         (my_strftime): Do not mishandle years close to INT_MAX, by doing
89060         the right thing even if adding 1900 would overflow.  Similarly
89061         for tm_mon + 1 and tm_yday + 1.
89062         Make %Y always equivalent to %C%y, and similarly for %G and %g.
89063         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
89064         (DO_SIGNED_NUMBER): New macro.
89065         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
89066
89067 2005-03-07  Bruno Haible  <bruno@clisp.org>
89068
89069         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
89070
89071 2005-03-07  Bruno Haible  <bruno@clisp.org>
89072
89073         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
89074
89075 2005-03-04  Derek R. Price  <derek@ximbiot.com>
89076
89077         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
89078         (func_import): Only replace files via --import when they have actually
89079         changed.
89080
89081 2005-03-03  Derek R. Price  <derek@ximbiot.com>
89082
89083         * m4/mmap-anon.m4: New file.
89084         * m4/pagealign_alloc.m4: New file.
89085
89086 2005-03-03  Derek R. Price  <derek@ximbiot.com>
89087             Bruno Haible  <bruno@clisp.org>
89088
89089         * modules/pagealign_alloc: New file.
89090         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
89091
89092 2005-03-03  Derek R. Price  <derek@ximbiot.com>
89093             Bruno Haible  <bruno@clisp.org>
89094
89095         * lib/pagealign_alloc.h: New file.
89096         * lib/pagealign_alloc.c: New file.
89097
89098 2005-03-03  Bruno Haible  <bruno@clisp.org>
89099
89100         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
89101         Use an all-permissive copyright notice, recommended by RMS.
89102
89103 2005-03-02  Bruno Haible  <bruno@clisp.org>
89104
89105         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
89106         of AIX, the replacement has to be done only after <string.h> is
89107         included, therefore not in config.h. stpncpy.h does the replacement,
89108         and stpncpy.c uses it.
89109
89110 2005-03-02  Bruno Haible  <bruno@clisp.org>
89111
89112         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
89113         stpncpy.c uses it.
89114
89115 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
89116
89117         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
89118         The workaround isn't strictly needed for POSIX conformance, and
89119         it's too much of a pain to configure and maintain.  We'll ask
89120         people to fix their kernels instead.
89121         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
89122         (NANOSLEEP_BUG_WORKAROUND): Remove.
89123         (xnanosleep): Remove the workaround.
89124
89125 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
89126
89127         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
89128         Reported by Derek Price.
89129         (Include): Add "timespec.h".
89130
89131         * modules/xnanosleep (Depends-on): Remove gethrxtime.
89132
89133 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
89134
89135         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
89136         to detect nanosleep bug.
89137
89138 2005-03-01  Bruno Haible  <bruno@clisp.org>
89139
89140         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
89141
89142 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
89143
89144         * modules/gethrxtime: New file.
89145         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
89146         (Depends-on): Add gethrxtime.
89147         (configure.ac): Add gl_XNANOSLEEP.
89148         (Makefile.am): Remove lib_SOURCES line.
89149
89150 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
89151
89152         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
89153         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
89154
89155 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
89156
89157         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
89158         * lib/timespec.h (gettime): Return void, since it always
89159         succeeds now.  All uses changed.
89160         * lib/gettime.c (gettime): Likewise.
89161         [HAVE_NANOTIME]: Prefer nanotime.
89162         Assume gettimeofday succeeds, as POSIX requires.
89163         Assime time () succeeds, since other code already does.
89164         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
89165         (timespec_subtract): Remove.
89166         (NANOSLEEP_BUG_WORKAROUND): New constant.
89167         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
89168         things considerably.  Use it only on GNU/Linux hosts, since the
89169         workaround shouldn't be needed elsewhere.
89170
89171 2005-02-24  Bruno Haible  <bruno@clisp.org>
89172
89173         * modules/gettext (Files): Add m4/glibc2.m4.
89174
89175 2005-02-24  Bruno Haible  <bruno@clisp.org>
89176
89177         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
89178         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
89179         * m4/progtest.m4:
89180         Update from GNU gettext 0.14.2.
89181         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
89182
89183 2005-02-24  Bruno Haible  <bruno@clisp.org>
89184
89185         * lib/localcharset.c: Update from GNU gettext 0.14.2.
89186         * lib/config.charset: Update from GNU gettext 0.14.2.
89187
89188 2005-02-24  Bruno Haible  <bruno@clisp.org>
89189
89190         * lib/gettext.h: Update from GNU gettext 0.14.2.
89191
89192 2005-02-23  Simon Josefsson  <jas@extundo.com>
89193
89194         * m4/iconvme.m4: New file.
89195
89196 2005-02-23  Jim Meyering  <jim@meyering.net>
89197
89198         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
89199         change.
89200         Thanks to Bruno Haible for catching it.
89201
89202 2005-02-22  Simon Josefsson  <jas@extundo.com>
89203
89204         * modules/iconvme: New file.
89205
89206         * MODULES.html.sh: Add iconvme.
89207
89208 2005-02-22  Simon Josefsson  <jas@extundo.com>
89209
89210         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
89211
89212 2005-02-22  Simon Josefsson  <jas@extundo.com>
89213
89214         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
89215
89216 2005-02-22  Jim Meyering  <jim@meyering.net>
89217
89218         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
89219         s/ifndef/ifdef/.
89220
89221 2005-02-20  Neil Conway  <neilc@samurai.com>
89222
89223         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
89224         returned by OSX/Darwin if the specified buffer is not large
89225         enough for the hostname.
89226
89227 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89228
89229         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
89230         pass it to _help, otherwise the latter coredumps trying to
89231         dereference state.root_argp.
89232
89233 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
89234
89235         * modules/chdir-long (Depends-on): Add memrchr.
89236         * modules/memrchr (Files): Add lib/memrchr.h.
89237         (Include): "memrchr.h".
89238
89239 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
89240
89241         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
89242
89243 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
89244
89245         * lib/memrchr.h: New file.
89246         * lib/chdir-long.c: Include it.
89247         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
89248         Don't bother including stddef.h.
89249
89250 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
89251
89252         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
89253         inclusion.
89254         Include <sys/types.h>, for dev_t.
89255         (ME_DUMMY, ME_REMOTE): Move from here....
89256         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
89257         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
89258         Dmitry V. Levin.
89259         Include mountlist.h first, to test the interface.
89260
89261 2005-01-29  Bruno Haible  <bruno@clisp.org>
89262
89263         * lib/progname.c (program_name): Initialize.
89264         Needed when linking statically on MacOS X.
89265
89266 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
89267
89268         Sync from coreutils.
89269         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
89270         (Depends-on): Add c-strtod.
89271         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
89272
89273 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
89274
89275         Sync from coreutils.
89276         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
89277
89278         Remove files that are specific to coreutils.
89279         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
89280
89281 2005-01-28  Bruno Haible  <bruno@clisp.org>
89282
89283         * modules/javacomp: New file.
89284         * MODULES.html.sh (Java): Add javacomp.
89285
89286 2005-01-28  Bruno Haible  <bruno@clisp.org>
89287
89288         * m4/javacomp.m4: New file, from GNU gettext.
89289
89290 2005-01-28  Bruno Haible  <bruno@clisp.org>
89291
89292         * lib/javacomp.sh.in: New file, from GNU gettext.
89293         * lib/javacomp.h: New file, from GNU gettext.
89294         * lib/javacomp.c: New file, from GNU gettext.
89295
89296 2005-01-26  Simon Josefsson  <jas@extundo.com>
89297
89298         * lib/gai_strerror.c: Use GPL in header.
89299
89300 2005-01-26  Bruno Haible  <bruno@clisp.org>
89301
89302         * modules/javaexec: New file.
89303         * MODULES.html.sh (Java): Add javaexec.
89304
89305 2005-01-26  Bruno Haible  <bruno@clisp.org>
89306
89307         * m4/javaexec.m4: New file, from GNU gettext.
89308
89309 2005-01-26  Bruno Haible  <bruno@clisp.org>
89310
89311         * lib/javaexec.sh.in: New file, from GNU gettext.
89312         * lib/javaexec.h: New file, from GNU gettext.
89313         * lib/javaexec.c: New file, from GNU gettext.
89314
89315 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89316
89317         * modules/lchown (Depends-on): Remove lchown.h
89318
89319 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89320
89321         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
89322         must be defined if the header file was not found, in order
89323         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
89324
89325 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89326
89327         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
89328         initializers for struct pentry_state.
89329         (__argp_error): Check return value of __asprintf
89330         (__argp_failure): Translate error message
89331
89332         * lib/argp-parse.c: Removed braces around the expansion of N_()
89333
89334 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
89335
89336         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
89337         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
89338         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
89339         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
89340         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
89341         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
89342         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
89343         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
89344         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
89345         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
89346         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
89347         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
89348         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
89349         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
89350         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
89351         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
89352         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
89353         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
89354         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
89355         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
89356         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
89357         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
89358         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
89359         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
89360         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
89361         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
89362         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
89363         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
89364         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
89365         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
89366         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
89367         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
89368         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
89369         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
89370         xstrtol.m4, xstrtoumax.m4, yesno.m4:
89371         Use an all-permissive copyright notice, recommended by RMS.
89372
89373 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
89374
89375         * modules/chdir-long (Depends-on): Remove mempcpy.
89376
89377 2005-01-21  Jim Meyering  <jim@meyering.net>
89378
89379         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
89380         same value as for Solaris 9.
89381
89382         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
89383         component length.  This included changing the parameter to be
89384         of type `char *' rather than `char const *'.
89385         * lib/chdir-long.h (chdir_long): Update prototype.
89386
89387         * lib/openat.c (fdopendir, fstatat): New functions.
89388         * lib/openat.h: Include headers required for use of DIR and struct
89389         stat.
89390         [AT_SYMLINK_NOFOLLOW]: Define.
89391         (fdopendir, fstatat): Add prototypes.
89392
89393 2005-01-21  Bruno Haible  <bruno@clisp.org>
89394
89395         * modules/classpath: New file.
89396         * MODULES.html.sh (Java): Add classpath.
89397
89398 2005-01-21  Bruno Haible  <bruno@clisp.org>
89399
89400         * lib/classpath.h: New file, from GNU gettext.
89401         * lib/classpath.c: New file, from GNU gettext.
89402
89403 2005-01-20  Simon Josefsson  <jas@extundo.com>
89404
89405         * modules/version-etc-fsf: New file.
89406
89407 2005-01-20  Simon Josefsson  <jas@extundo.com>
89408
89409         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
89410         * lib/version-etc.c: Remove version_etc_copyright.
89411         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
89412         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
89413
89414 2005-01-20  Simon Josefsson  <jas@extundo.com>
89415
89416         * lib/base64.h (isbase64): Add.
89417
89418         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
89419         using a unsigned prototype, don't inline.
89420         (base64_decode): Use it.
89421
89422 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
89423
89424         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
89425         it.
89426
89427 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
89428
89429         * lib/save-cwd.c (save_cwd): Remove code to support the case
89430         where fchdir is missing or flaky.
89431
89432 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
89433
89434         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
89435
89436 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
89437
89438         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
89439         AC_LIBSOURCES now does this.
89440         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
89441         with new ullong_max module.
89442
89443 2005-01-19  Bruno Haible  <bruno@clisp.org>
89444
89445         * modules/sh-quote: New file.
89446         * MODULES.html.sh (Executing programs): Add sh-quote.
89447
89448 2005-01-19  Bruno Haible  <bruno@clisp.org>
89449
89450         * lib/sh-quote.h: New file, from GNU gettext.
89451         * lib/sh-quote.c: New file, from GNU gettext.
89452
89453 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
89454
89455         Merge from coreutils.
89456         * m4/ullong_max.m4: New file.
89457         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
89458         (gl_MACROS): Assume localeconv exists.
89459
89460 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
89461
89462         Merge changes from coreutils, as described below in several
89463         changelogs dated today.
89464
89465         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
89466         (O_DIRECTORY): Remove; not needed here, since "." must be
89467         a directory.  All uses removed.
89468         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
89469         universal on Suns, and we also need to test for IRIX.
89470         Revamp code to use 'if' rather than '#if'.
89471         Avoid unnecessary comparison of cwd->desc to 0.
89472
89473         * lib/utimens.c (futimens): Robustify the previous patch, by checking
89474         for known valid error numbers rather than observed invalid ones.
89475
89476 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
89477
89478         * modules/ullong_max: New file.
89479
89480         * modules/chdir-long, modules/openat: New files.
89481         * modules/save-cwd (Depends-on): Depend on chdir-long.
89482         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
89483
89484 2005-01-18  Jim Meyering  <jim@meyering.net>
89485
89486         Merge from coreutils.
89487         * m4/chdir-long.m4, m4/openat.m4: New files.
89488         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
89489         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
89490         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
89491         is sane and DOES follow symlinks.  Besides, testing 20 different
89492         systems found no broken chown implementations.
89493         Prompted by a change in rsync's copy of this macro.
89494         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
89495
89496         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
89497
89498         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
89499         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
89500         NULL-means-set-to-current-time semantics.
89501         Remove temporary file immediately, rather than waiting
89502         for configure's at-exit trap code to do it.
89503
89504 2005-01-18  Jim Meyering  <jim@meyering.net>
89505
89506         * lib/version-etc.c (version_etc_copyright): Update copyright date.
89507
89508         * lib/utimens.c (futimens): Account for the fact that futimes
89509         can also fail with errno == ENOSYS or errno == ENOENT.
89510         Patch from Dmitry V. Levin.
89511
89512         Change the name of the robust chdir function from chdir to chdir_long.
89513         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
89514         (restore_cwd): Use chdir_long, not chdir.
89515         * lib/chdir-long.c: Renamed from chdir.c.
89516         * lib/chdir-long.h: Renamed from chdir.h.
89517         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
89518         Hurd.
89519
89520 2005-01-18  Bruno Haible  <bruno@clisp.org>
89521
89522         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
89523         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
89524         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
89525         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
89526         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
89527         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
89528         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
89529         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
89530         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
89531         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
89532         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
89533         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
89534         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
89535         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
89536         Use an all-permissive copyright notice, recommended by RMS.
89537
89538 2005-01-18  Bob Proulx  <bob@proulx.com>
89539
89540         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
89541         simplify offsetof() macro construct to avoid compile failure with
89542         native HP-UX 11.0 ANSI C compiler.
89543
89544 2005-01-17  Bruno Haible  <bruno@clisp.org>
89545
89546         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
89547         redundant because stpncpy.m4 takes care of it.
89548
89549 2005-01-17  Bruno Haible  <bruno@clisp.org>
89550
89551         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
89552
89553 2005-01-17  Bruno Haible  <bruno@clisp.org>
89554
89555         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
89556         used.
89557
89558 2005-01-17  Bruno Haible  <bruno@clisp.org>
89559
89560         * lib/fwriteerror.h (fwriteerror): Change specification to include
89561         fclose.
89562         * lib/fwriteerror.c: Include <stdbool.h>.
89563         (fwriteerror): At the end, close the file stream. Record whether
89564         stdout was already closed.
89565
89566 2005-01-17  Bruno Haible  <bruno@clisp.org>
89567
89568         * lib/execute.c (environ): Declare if needed.
89569         * lib/pipe.c (environ): Likewise.
89570         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
89571
89572 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89573
89574         * modules/argp: Depend on vsnprintf
89575
89576 2005-01-10  Jim Meyering  <jim@meyering.net>
89577
89578         * modules/closeout (Depends-on): Add atexit.
89579
89580 2005-01-06  Bruno Haible  <bruno@clisp.org>
89581
89582         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
89583
89584 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
89585
89586         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
89587         definitions to be after all include files, to avoid collisions.
89588         Problem reported by Bob Proulx.
89589
89590 2005-01-04  Jim Meyering  <jim@meyering.net>
89591
89592         Changes imported from coreutils.
89593         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
89594         as the mkstemp template, use a temporary directory and an
89595         8.3-friendly template to avoid trouble on systems like DJGPP.
89596         Reported by Juan M. Guerrero via Stepan Kasal.
89597         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
89598         close. Remove the temporary directory right away, rather than waiting
89599         for configure's at-exit trap code to do it.
89600         Suggestion from Stepan Kasal.
89601
89602 2005-01-01  Simon Josefsson  <jas@extundo.com>
89603
89604         * gnulib-tool: Print #include directives when --import'ing.
89605
89606 2004-12-28  Simon Josefsson  <jas@extundo.com>
89607
89608         * tests/test-base64.c: Include required header files.  Remove
89609         unused variables.
89610
89611 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
89612
89613         * modules/error (Depends-on): Remove gettext.
89614
89615 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
89616
89617         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
89618         not needed.  This removes a dependency on the gettext module.
89619         [defined _LIBC]: Do not include <libintl.h>; not needed.
89620
89621 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
89622
89623         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
89624         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
89625
89626 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
89627
89628         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
89629         HAVE_DECL_STRTOLD.
89630
89631 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
89632
89633         * modules/getdate (Depends-on): Remove alloca-opt.
89634
89635 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
89636
89637         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
89638
89639 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
89640
89641         * lib/argp-parse.c: Include <stddef.h>.
89642         (alignof, alignto): New macros.
89643         (parser_init): Don't assume that void * is aligned sufficiently
89644         for struct option.
89645
89646         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
89647         need to extend the stack.
89648         (YYINITDEPTH): New macro, so that the initial stack isn't overly
89649         large.
89650
89651 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89652
89653         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
89654
89655 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
89656
89657         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
89658         (2004-10-24) change.  Apparently this was a false alarm.
89659
89660         * modules/getdate: Depend on alloca-opt, not alloca.
89661
89662 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
89663
89664         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
89665         Remove now-obsolete comment about AIX.
89666         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
89667         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
89668         (YYMAXDEPTH): New macro.
89669
89670 2004-12-18  Simon Josefsson  <jas@extundo.com>
89671
89672         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
89673
89674 2004-12-18  Bruno Haible  <bruno@clisp.org>
89675
89676         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
89677
89678 2004-12-18  Bruno Haible  <bruno@clisp.org>
89679
89680         * lib/fatal-signal.c (fatal_signals): Make non-const.
89681         (init_fatal_signals): New function.
89682         (uninstall_handlers, install_handlers): Ignore signals that were set to
89683         SIG_IGN.
89684         (at_fatal_signal): Call init_fatal_signals.
89685         (init_fatal_signal_set): Likewise. Ignore signals that were set to
89686         SIG_IGN.
89687         Reported by Paul Eggert.
89688
89689 2004-12-18  Bruno Haible  <bruno@clisp.org>
89690
89691         * doc/alloca.texi: New file.
89692         * doc/alloca-opt.texi: New file.
89693
89694 2004-12-17  Jim Meyering  <jim@meyering.net>
89695
89696         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
89697         Otherwise, install-sh could exit with improper exit status when
89698         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
89699
89700 2004-12-16  Simon Josefsson  <jas@extundo.com>
89701
89702         * tests/test-base64.c: Add license.
89703
89704 2004-12-15  Stepan Kasal  <address@hidden>
89705
89706         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
89707
89708 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
89709
89710         * modules/getcwd (Files): Add m4/d-ino.m4.
89711         Suggested by Mark D. Baushke.
89712
89713 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
89714
89715         * lib/getdate.y (textint): New member "negative".
89716         (time_zone_hhmm): New function.
89717         Expect 14 shift-reduce conflicts, not 13.
89718         (o_colon_minutes): New rule.
89719         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
89720         (yylex): Set the "negative" member of signed numbers.
89721
89722 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
89723
89724         * doc/getdate.texi (Time of day items, Time zone items):
89725         Describe new formats +00:00, UTC+00:00.
89726
89727 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
89728
89729         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
89730         spurious "-l"s.  Problem reported by Stepan Kasal.
89731
89732 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
89733
89734         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
89735         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
89736
89737 2004-12-04  Simon Josefsson  <jas@extundo.com>
89738
89739         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
89740         Vandoorselaere <yoann@prelude-ids.org>.
89741
89742 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
89743
89744         Changes imported from coreutils.
89745         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
89746         exist.
89747         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
89748
89749 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
89750
89751         Changes imported from coreutils.
89752         * lib/hard-locale.c: Assume <locale.h> exists.
89753         Include "strdup.h".
89754         (GLIBC_VERSION): New macro.
89755         (hard_locale): Assume setlocale exists.
89756         Rewrite to avoid #ifdef.
89757         Use strdup rather than malloc + strcpy.
89758         * lib/human.c: Assume <locale.h> exists.
89759         (human_readable): Assume localeconv exists.
89760
89761 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
89762
89763         * modules/hard-locale (Depends-on): Add strdup.
89764
89765 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
89766
89767         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
89768         convert T2, not T.  (Imported from libc.)
89769
89770 2004-11-30  Simon Josefsson  <jas@extundo.com>
89771
89772         * modules/restrict (License): Change to LGPL.
89773
89774 2004-11-30  Simon Josefsson  <jas@extundo.com>
89775
89776         * m4/restrict.m4: Add copyright and copying conditions.
89777
89778 2004-11-30  Simon Josefsson  <jas@extundo.com>
89779
89780         * m4/base64.m4: New file.
89781
89782 2004-11-30  Simon Josefsson  <jas@extundo.com>
89783
89784         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
89785         base64.
89786
89787         * tests/test-base64.c: New file.
89788
89789         * modules/base64: New file.
89790
89791 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
89792
89793         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
89794         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
89795
89796         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
89797
89798 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
89799
89800         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
89801         (__getcwd.c): Don't restore errno; glibc doesn't.
89802         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
89803         first, falling back to our code only if its results look suspicious.
89804         Ensure that the resulting buffer is only as large as necessary.
89805
89806         * lib/readutmp.c: Include readutmp.h first.
89807         Include <errno.h>, since readutmp.h no longer does that.
89808         * lib/readutmp.h: Don't include <errno.h>,
89809         <sys/param.h>, <time.h>; not needed to establish interface.
89810         (errno): Remove decl.
89811         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
89812         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
89813         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
89814
89815 2004-11-28  Simon Josefsson  <jas@extundo.com>
89816
89817         * lib/base64.h, base64.c: New file.
89818
89819 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
89820
89821         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
89822
89823 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
89824
89825         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
89826         (Depends-on): Remove pathmax, same.  Add mempcpy.
89827         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
89828         (Makefile.am): Append getcwd.h to lib_SOURCES.
89829         (Include): Add getcwd.h.
89830         (Maintainer): Change from Jim Meyering to "all, glibc",
89831         since getdate now uses intended-for-glibc code.
89832         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
89833         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
89834
89835 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
89836
89837         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
89838         HP's ANSI C compiler.
89839         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
89840         Declaring int functions causes warnings on some modern systems and
89841         shouldn't be needed to compile on ancient ones.
89842         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
89843         defined.
89844
89845         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
89846         with the following changes.
89847         (__set_errno): Parenthesize properly.
89848         Include <stdbool.h>.
89849         (MIN, MAX, MATCHING_INO): New macros.
89850         (__getcwd): Define with prototype, not K&R form.
89851         Use heuristics to allocate default buffer on stack if possible.
89852         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
89853         behavior, and to avoid the PATH_MAX limit when computing
89854         ../../../../...
89855         Use MATCHING_INO to compare inode number to file.
89856         Check for arithmetic overflow in size calculations.
89857         Fix bug in reallocation of dot array that caused getcwd to fail
89858         on directories nested deeper than 75.
89859         Be more careful about saving errno on error.
89860         Do not use realloc; use only free+malloc, as this is a bit
89861         more flexible and avoids a needless copy operation.
89862         Do not inspect st_dev and st_ino for symbolic links; POSIX
89863         doesn't specify the latter.
89864         Check for closedir errors.
89865         Avoid needless casts.
89866         Use "#ifdef weak_alias" around weak_alias, to be like other
89867         glibc code.
89868         The following changes to getcwd.c have effect only when used in
89869         gnulib; they have no effect inside glibc proper.
89870         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
89871         as alloca isn't used.
89872         (alloca, __alloca): Likewise.
89873         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
89874         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
89875         unconditionally, as gnulib assumes C89 or better.
89876         Do not include <sys/param.h>.
89877         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
89878         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
89879         better.
89880         (NULL) [!defined NULL]: Remove; we assume C89 or better.
89881         Include <dirent.h> in a way that is compatible with modern Autoconf.
89882         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
89883         New macros, if not already defined.
89884         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
89885         Use "_LIBC", not "defined _LIBC", for consistency.
89886         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
89887         a mempcpy module.
89888         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
89889         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
89890         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
89891         credit only to Jim Meyering and adjust the copyright dates.
89892         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
89893         <stdlib.h>, <unistd.h>, "pathmax.h".
89894         Instead, include "xgetcwd.h" (first) and "getcwd.h".
89895         (INITIAL_BUFFER_SIZE): Remove.
89896         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
89897
89898 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
89899
89900         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
89901         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
89902         Use the _ONCE methods, for efficiency.
89903         Check for fcntl.h.  In test program, include <errno.h>
89904         and <fcntl.h> if available.  Remove old K&R cruft from
89905         test program.  Check for common errors in GNU/Linux,
89906         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
89907         don't do AC_LIBOBJ, as that's getcwd.m4's job.
89908         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
89909         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
89910         name accordingly.
89911         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
89912         accommodate new getcwd.c.
89913         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
89914         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
89915         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
89916         that's all we need now.
89917
89918 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89919
89920         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
89921         argp-parse.c depends on getopt internals, that means we should
89922         always use our getopt, to be on the safe side.
89923         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
89924         order not to spoil the result of an eventual previous invocation
89925         of gl_GETOPT_SUBSTITUTE.
89926
89927 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89928
89929         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
89930         redefinition warnings. To avoid them, include the defines
89931         in `#if !defined __need_getopt ... #endif'. The only place
89932         where __getopt_argv_const is used is in definitions
89933         of getopt_long and getopt_long_only below, which are as well
89934         protected by `#ifndef __need_getopt'.
89935         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
89936         __need_getopt after including <stdio.h> and <unistd.h> These
89937         headers might have defined it.
89938
89939 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
89940
89941         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
89942
89943 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
89944
89945         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
89946         (futimens): New function, which uses futimes if available.
89947         (futimens, utimens): Support timespec==NULL, with same semantics
89948         as utime and utimens.
89949         * lib/utimens.h (futimens): New decl.
89950
89951 2004-11-23  Jim Meyering  <jim@meyering.net>
89952
89953         * lib/getopt_.h: Remove trailing blanks.
89954
89955 2004-11-23  Jim Meyering  <jim@meyering.net>
89956
89957         * lib/__fpending.c: Add comment.
89958
89959 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
89960
89961         * modules/canonicalize (Depends-on): Add xreadlink.
89962         Problem reported by James Youngman.
89963
89964 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
89965
89966         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
89967         New macros.
89968         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
89969         optopt): Use them instead of invoking ## directly; otherwise, the
89970         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
89971
89972 2004-11-19  Bruno Haible  <bruno@clisp.org>
89973
89974         * lib/strtok_r.c: Move comments from here...
89975         * lib/strtok_r.h: ... to here.
89976
89977 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
89978
89979         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
89980         implementations that mishandle size_t overflow.
89981
89982 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
89983
89984         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
89985         might fail.  Problem reported by Yoann Vandoorselaere.
89986         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
89987         implementations that mishandle size_t overflow.
89988
89989 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
89990
89991         * modules/canon-host (Depends-on): Add strdup.
89992
89993 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
89994
89995         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
89996
89997 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
89998
89999         * lib/canon-host.c: Include "strdup.h".
90000         (canon_host): Use getaddrinfo if available, so that IPv6 works.
90001         Use strdup instead of malloc/strcpy to duplicate strings.
90002
90003         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
90004         (human_space_before_unit): New constant.
90005         * lib/human.c (human_readable): Support it.
90006
90007         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
90008         (xgetcwd): Set errno correctly when failing.
90009         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
90010         the failure is actually due to a PATH_MAX problem.
90011
90012         Further getopt changes to make it more likely that glibc will
90013         buy the changes back.
90014         * lib/getopt.c (POSIXLY_CORRECT): New constant.
90015         (getopt): Use it, so to preserve glibc semantic
90016         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
90017         when compiling for libc.
90018         * lib/getopt_.h (__getopt_argv_const): Bring it back.
90019         (getopt_long, getopt_long_only): Use it.
90020
90021         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
90022         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
90023         (getopt): Argv is now char * const *, as per standard.
90024         (_getopt_internal_r, _getopt_internal): Argv is now char **,
90025         not char *__getopt_argv_const *.
90026         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
90027         _getopt_long_only_r): Likewise.
90028         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
90029         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
90030         _getopt_long_r, _getopt_long_only_r): Likewise.
90031         * lib/getopt_.h (__getopt_argv_const): Remove.
90032         (getopt): Argv is now char * const *, as per standard.
90033
90034         * lib/getdate.y (tORDINAL): New token.
90035         (day, relunit): Allow it for relative times.
90036         (relative_time_table): Use tORDINAL for ordinals.
90037
90038 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
90039
90040         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
90041         Document that "second" isn't allowed as an ordinal number.
90042
90043 2004-11-16  Jim Meyering  <jim@meyering.net>
90044
90045         * modules/closeout (Depends-on): Add fpending.
90046
90047 2004-11-15  Jim Meyering  <jim@meyering.net>
90048
90049         * lib/closeout.c: Include "__fpending.h" once again.
90050         Include <stdbool.h>.
90051         (close_stdout): Don't fail just because stdout was closed initially,
90052         since some programs don't write to stdout in the normal course of
90053         operation (other than --version and --help), and we don't want this
90054         function to make e.g. `touch file >&-' fail.
90055         But do fail if it was closed and someone has tried to write to it.
90056         E.g., `printf foo >&-' must fail.
90057
90058 2004-11-13  Jim Meyering  <jim@meyering.net>
90059
90060         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
90061
90062 2004-11-12  Simon Josefsson  <jas@extundo.com>
90063
90064         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
90065         small doc fix is still pending.
90066
90067 2004-11-11  Simon Josefsson  <jas@extundo.com>
90068
90069         * modules/strtok_r: New file.
90070
90071         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
90072         strtok_r.
90073
90074 2004-11-11  Simon Josefsson  <jas@extundo.com>
90075
90076         * m4/strtok_r.m4: New file.
90077
90078         * m4/getopt.m4: Replace opterr.
90079
90080 2004-11-11  Simon Josefsson  <jas@extundo.com>
90081
90082         * lib/strtok_r.h, strtok_r.c: New file.
90083
90084 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
90085
90086         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
90087         of replacing opterr, getopt, etc.  This should handle the
90088         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
90089
90090 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
90091
90092         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
90093         we can stop lying to compilers about the constness of argv when we
90094         are compiled outside glibc.
90095         (getopt, getopt_long, getopt_long_only): Use it.
90096         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
90097         _getopt_internal, getopt): Likewise.
90098         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
90099         _getopt_long_only_r): Likewise.
90100         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
90101         _getopt_long_r, _getopt_long_only_r): Likewise.
90102
90103         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
90104         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
90105         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
90106         the other external symbols.
90107         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
90108         declaration, since the above renaming now works around collisions.
90109
90110 2004-11-11  Jim Meyering  <jim@meyering.net>
90111
90112         * lib/linebreak.c: Remove trailing blanks.
90113         * lib/alloca_.h: Likewise.
90114         * lib/acosl.c: Likewise.
90115         * lib/euidaccess.c: Likewise.
90116         * lib/allocsa.h: Likewise.
90117
90118 2004-11-10  Simon Josefsson  <jas@extundo.com>
90119
90120         * m4/getaddrinfo.m4: New file.
90121
90122 2004-11-10  Simon Josefsson  <jas@extundo.com>
90123
90124         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
90125
90126 2004-11-10  Simon Josefsson  <jas@extundo.com>
90127
90128         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
90129         getaddrinfo.
90130
90131         * modules/getaddrinfo: New file.
90132
90133 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
90134
90135         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
90136
90137 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
90138
90139         * lib/mktime.c (SHR): New macro, which is a portable
90140         substitute for >> that should work even on Crays.
90141         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
90142         Problem reported by Mark D. Baushke in
90143         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
90144         * lib/getdate.y (SHR): Likewise.
90145         (tm_diff): Use it.
90146         * lib/strftime.c (SHR): Likewise.
90147         (tm_diff): Use it.
90148         * lib/quotearg.c (struct quoting_options): Use unsigned int for
90149         quote_these_too, so that right shifts are well defined.  All uses
90150         changed.
90151
90152 2004-11-10  Jim Meyering  <jim@meyering.net>
90153
90154         Ensure that no close failure goes unreported.
90155         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
90156         return early when it seems there's nothing to flush.
90157         Don't include __fpending.h.
90158
90159 2004-11-10  Jim Meyering  <jim@meyering.net>
90160
90161         * modules/closeout (Depends-on): Remove fpending.
90162
90163 2004-11-10  Jim Meyering  <jim@meyering.net>
90164
90165         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
90166
90167 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
90168
90169         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
90170         gl_FUNC_STRFTIME.
90171         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
90172         and AC_REQUIRE when possible, to avoid duplicate checks.
90173         Check for <wchar.h>.
90174
90175 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
90176
90177         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
90178
90179 2004-11-09  Bruno Haible  <bruno@clisp.org>
90180
90181         * m4/sockpfaf.m4: New file.
90182
90183 2004-11-05  Bruno Haible  <bruno@clisp.org>
90184
90185         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
90186         Reported by Mark D. Baushke <mdb@cvshome.org>.
90187
90188 2004-11-04  Bruno Haible  <bruno@clisp.org>
90189
90190         2004-09-11  Bruno Haible  <bruno@clisp.org>
90191                 * allocsa.valgrind: New file.
90192         2004-02-06  Bruno Haible  <bruno@clisp.org>
90193                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
90194                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
90195                 Reported by Christopher Seip <chris.seip@hp.com>.
90196
90197 2004-11-04  Bruno Haible  <bruno@clisp.org>
90198
90199         * modules/allocsa (Files): Add lib/allocsa.valgrind.
90200         (Makefile.am): Distribute it.
90201
90202 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
90203
90204         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
90205         with errno == ERANGE if the buffer is too small.
90206         Problem reported by Mark D. Baushke.
90207
90208 2004-11-03  Albert Chin  <china@thewrittenword.com>
90209             Paul Eggert  <eggert@cs.ucla.edu>
90210
90211         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
90212         equivalent, substitute $ac_type for equivalent type rather than
90213         blindly using uint32_t *always* which won't work if uint32_t is not
90214         available.  Define _UINT32_T to work around typedef of uint32_t if
90215         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
90216         2.5.1.
90217
90218 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
90219
90220         * m4/jm-macros.m4: Sync from coreutils.
90221         (gl_MACROS): Check for mbrlen, for pathchk.
90222         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
90223
90224 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
90225
90226         * lib/xreadlink.c (MAXSIZE): New macro.
90227         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
90228         size does not exceed MAXSIZE.  Avoid cast.
90229         As suggested by Mark D. Baushke in
90230         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
90231         if readlink fails with buffer size just under MAXSIZE, try again
90232         with MAXSIZE.
90233
90234 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
90235
90236         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
90237
90238 2004-11-02  Derek R. Price  <derek@ximbiot.com>
90239         and  Paul Eggert  <eggert@cs.ucla.edu>
90240
90241         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
90242         (get_date): Overparenthesize to avoid GCC warning.
90243
90244 2004-11-02  Bruno Haible  <bruno@clisp.org>
90245
90246         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
90247         returns void.
90248
90249 2004-11-02  Bruno Haible  <bruno@clisp.org>
90250
90251         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
90252         function returns void.
90253
90254 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
90255
90256         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
90257         fflush_unlocked, flockfile, funlockfile, funlockfile,
90258         fputs_unlocked, putc_unlocked.
90259
90260 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
90261
90262         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
90263         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
90264         already declared.
90265
90266 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
90267
90268         * modules/getdate (Files): Add doc/getdate.texi.
90269         (Depends-on): Add setenv, xalloc.
90270
90271 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
90272
90273         * lib/getdate.y: Add support for TZ="foo" within a date string.
90274         Fix some bugs near time_t boundaries.  Reject dates with
90275         out-of-range components, e.g., "Sept 31".
90276         Include <stdlib.h>, "setenv.h", "xalloc.h".
90277         (ISDIGIT_LOCALE): Remove; unused.
90278         Note that the TZ and time functions used here are not reentrant.
90279         (mktime_ok, get_tz): New functions.
90280         (TZBUFSIZE): New constant.
90281         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
90282         This requires that we sometimes generate our own TZ="XXX..." setting.
90283
90284 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
90285
90286         * doc/getdate.texi: New file, from coreutils with modifications for
90287         the new TZ parsing.
90288
90289 2004-10-27  Derek R. Price  <derek@ximbiot.com>
90290
90291         * lib/mktime.c (not_equal_tm): Remove redundant check.
90292
90293 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
90294
90295         * modules/regex (lib_SOURCES): Add regex.c.
90296         Reported by James Youngman in
90297         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
90298
90299 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
90300
90301         * lib/getdate.y: Use Bison 1.875 features, and some minor
90302         code cleanups.  This change does not affect semantics.
90303         Don't include <stdlib.h>; no longer needed.
90304         Don't include unlocked-io.h; only the "#if TEST" code uses
90305         stdio, and performance isn't crucial there.
90306         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
90307         Bison 1.875 features as described below.
90308         All uses of "PC." replaced by "pc->".
90309         (YYSTYPE): Add a forward declaration.
90310         (yylex, yyerror): Use full prototypes in forward decls.
90311         Use "%pure-parser" rather than obsolescent "%pure_parser".
90312         Use %parse-param and %lex-param instead of obsolescent
90313         YYPARSE_PARAM and YYLEX_PARAM.
90314         (meridian_table, month_and_day_table, time_units_table,
90315         relative_time_table, time_zone_table, military_table,
90316         lookup_zone, lookup_word, get_date):
90317         Use NULL instead of 0 where appropriate.
90318         (to_hour): Avoid abort (), to avoid a dependency on
90319         stdlib.h.
90320         (yyerror, yylex): Now accepts parser_control * arg.
90321         (main) [TEST]: Use '\0' rather than 0 for char.
90322
90323 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
90324
90325         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
90326
90327 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
90328
90329         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
90330         It's now the caller's responsibility to handle the case where
90331         !HAVE_GETPAGESIZE && !defined getpagesize.
90332
90333         * lib/mktime.c (leapyear): Arg is long int, not int.
90334
90335 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
90336
90337         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
90338
90339 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
90340
90341         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
90342         missing.  Problem reported by James Youngman.
90343
90344 2004-10-16  Simon Josefsson  <jas@extundo.com>
90345
90346         * gnulib-tool: Fix comments.  Fix parse problem.
90347         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
90348
90349 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
90350
90351         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
90352         implementation of getopt_long.  Problem reported by Alexander Taler in:
90353         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
90354
90355 2004-10-15  Bruno Haible  <bruno@clisp.org>
90356
90357         * gnulib-tool: Untabify. Initialize supplied_libname.
90358         (func_usage): More homogenous output.
90359         (func_modules_transitive_closure, func_modules_to_filelist,
90360         func_emit_lib_Makefile_am): New functions.
90361         (func_import): New function, extracted from big case statement. Use
90362         func_get_license, func_modules_transitive_closure,
90363         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
90364         opt_lgpl. Don't use test -a, as it's not portable.
90365         (func_create_testdir): Use func_modules_transitive_closure,
90366         func_modules_to_filelist, func_emit_lib_Makefile_am.
90367
90368 2004-10-15  Bruno Haible  <bruno@clisp.org>
90369
90370         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
90371
90372 2004-10-15  Bruno Haible  <bruno@clisp.org>
90373
90374         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
90375         the portions belonging to each module.
90376         Suggested by Derek Robert Price <derek@ximbiot.com>.
90377
90378 2004-10-12  Simon Josefsson  <jas@extundo.com>
90379
90380         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
90381         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
90382         to real functions.
90383
90384 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90385
90386         * modules/vsnprintf: New file.
90387
90388 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90389
90390         * m4/vsnprintf.m4: New file.
90391
90392 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90393
90394         * lib/vsnprintf.h: New file.
90395         * lib/vsnprintf.c: New file.
90396
90397 2004-10-11  Bruno Haible  <bruno@clisp.org>
90398
90399         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
90400         vsnprintf.
90401
90402 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
90403
90404         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
90405
90406 2004-10-07  Bruno Haible  <bruno@clisp.org>
90407
90408         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
90409         fits into the provided buffer.
90410
90411 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
90412
90413         * lib/diacrit.c, diacrit.h: Add GPL notice.
90414
90415         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
90416         notice.
90417         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
90418         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
90419         This avoids a potential constant-folding bug.
90420
90421 2004-10-05  Bruno Haible  <bruno@clisp.org>
90422
90423         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
90424         for the declaration of strsep.
90425
90426 2004-10-05  Bruno Haible  <bruno@clisp.org>
90427
90428         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
90429
90430 2004-10-04  Simon Josefsson  <jas@extundo.com>
90431
90432         * modules/memmem: New file.
90433         * tests/test-memmem.c: New file.
90434         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
90435
90436 2004-10-04  Simon Josefsson  <jas@extundo.com>
90437
90438         * m4/memmem.m4: New file.
90439
90440 2004-10-04  Simon Josefsson  <jas@extundo.com>
90441
90442         * lib/memmem.h: New file.
90443         * lib/memmem.c: New file, taken from glibc.
90444
90445 2004-10-04  Simon Josefsson  <jas@extundo.com>
90446
90447         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
90448         '#ifdef USE_UNLOCKED_IO'.
90449
90450 2004-10-04  Simon Josefsson  <jas@extundo.com>
90451
90452         * config/srclist.txt: Add memmem from glibc.
90453
90454 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
90455
90456         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
90457
90458         * modules/argmatch, modules/argp, modules/closeout, modules/error,
90459         modules/exclude, modules/getdate, modules/getline,
90460         modules/getndelim2, modules/getpass, modules/getpass-gnu,
90461         modules/getusershell, modules/linebuffer, modules/md5,
90462         modules/mountlist, modules/posixtm, modules/readtokens,
90463         modules/readutmp, modules/regex, modules/sha1,
90464         modules/version-etc, modules/yesno:
90465         Remove dependency on unlocked-io.
90466
90467 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
90468
90469         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
90470
90471         * m4/unlocked-io.m4: Add copyright notice.
90472         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
90473
90474 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
90475
90476         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
90477         * lib/xmalloc.c (xmemdup): Likewise.
90478         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
90479         XFREE): Remove these long-obsolescent macros.
90480         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
90481         * lib/xstrdup.c: Remove.
90482
90483         * lib/regex.c (re_comp): Cast gettext return value to char *,
90484         Problem reported by Martin Neitzel via Mark D. Baushke.
90485
90486 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
90487
90488         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
90489         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
90490         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
90491         regex.c, sha1.c, version-etc.c, yesno.c:
90492         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
90493         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
90494         the includer's responsibility.
90495
90496         Sync from coreutils.
90497
90498         * lib/modechange.c (mode_compile): Don't decrement a pointer that
90499         points to the start of a string, as the C Standard says the
90500         resulting behavior is undefined.
90501
90502         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
90503         simple -> simple_backups, numbered_existing ->
90504         numbered_existing_backups, numbered -> numbered_backups
90505         to avoid shadowing problems.  All uses changed.
90506         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
90507         * lib/backupfile.c (check_extension, numbered_backup):
90508         Rename locals to avoid shadowing 'basename'.
90509         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
90510         once.
90511
90512         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
90513         * lib/.cvsignore: Add getopt.h.
90514
90515 2004-10-04  Bruno Haible  <bruno@clisp.org>
90516
90517         * modules/README: New file.
90518         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
90519         not a module.
90520
90521 2004-10-02  Jim Meyering  <jim@meyering.net>
90522
90523         * lib/dirfd.h, getpagesize.h: Add copyright notice.
90524
90525 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90526
90527         * modules/strsep: New file.
90528
90529 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90530
90531         * m4/strsep.m4: New file.
90532
90533 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90534
90535         * lib/strsep.h: New file.
90536         * lib/strsep.c: New file.
90537
90538 2004-10-01  Simon Josefsson  <jas@extundo.com>
90539
90540         * lib/snprintf.c (snprintf): Handle size==0.
90541
90542 2004-10-01  Simon Josefsson  <jas@extundo.com>
90543             Bruno Haible  <bruno@clisp.org>
90544
90545         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
90546         (snprintf): Declare 'args'.
90547
90548 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
90549
90550         * lib/snprintf.c: Remove comments as to why each header is needed.
90551
90552 2004-10-01  Bruno Haible  <bruno@clisp.org>
90553
90554         * MODULES.html.sh: Add strsep.
90555
90556 2004-09-30  Simon Josefsson  <jas@extundo.com>
90557
90558         * modules/snprintf: New file.
90559
90560 2004-09-30  Simon Josefsson  <jas@extundo.com>
90561
90562         * m4/snprintf.m4: New file.
90563
90564 2004-09-30  Simon Josefsson  <jas@extundo.com>
90565
90566         * lib/snprintf.h, lib/snprintf.c: New files.
90567
90568 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
90569
90570         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
90571         (hol_entry_help): Never translate an empty string.
90572         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
90573         * lib/argp.h (OPTION_NO_TRANS): New option.
90574
90575 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
90576
90577         * modules/argp (Maintainer): Replace Simon Josefsson
90578         by Sergey Poznyakoff.
90579
90580 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
90581
90582         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
90583         changes merged back into glibc.
90584
90585 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
90586
90587         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
90588
90589 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
90590
90591         * lib/xvasprintf.c: Include xalloc.h.
90592         (xvasprintf): Use xalloc_die, not xmalloc_die.
90593
90594 2004-09-29  Bruno Haible  <bruno@clisp.org>
90595
90596         * modules/alloca-opt: New file, derived from modules/alloca.
90597         * modules/allocsa: Depend on alloca-opt instead of alloca.
90598         * modules/setenv: Likewise.
90599         * modules/vasnprintf: Likewise.
90600         * MODULES.html.sh: Add alloca-opt.
90601
90602 2004-09-28  Simon Josefsson  <jas@extundo.com>
90603
90604         * gnulib-tool: New parameter --lgpl, to asseert that modules are
90605         LGPL, and to replace license template from GPL to LGPL.
90606
90607 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
90608
90609         * modules/dummy: Change license to LGPL.
90610
90611 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
90612
90613         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
90614
90615 2004-09-24  Simon Josefsson  <jas@extundo.com>
90616
90617         * modules/minmax (License): Change from GPL to LGPL.
90618
90619 2004-09-23  Simon Josefsson  <jas@extundo.com>
90620
90621         * gnulib-tool (--import): Typo.
90622
90623 2004-09-23  Simon Josefsson  <jas@extundo.com>
90624
90625         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
90626
90627 2004-09-22  Bruno Haible  <bruno@clisp.org>
90628
90629         * modules/*: Add 'License' field.
90630         * gnulib-tool: Accept --extract-license option.
90631         (func_get_license): New function.
90632
90633 2004-09-21  Bruno Haible  <bruno@clisp.org>
90634
90635         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
90636         Reported by Simon Josefsson.
90637
90638 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
90639
90640         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
90641         gl_AC_TYPE_LONG_LONG.
90642
90643 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
90644
90645         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
90646
90647 2004-09-18  Simon Josefsson  <jas@extundo.com>
90648         and  Paul Eggert  <eggert@cs.ucla.edu>
90649
90650         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
90651         calls with autoreconf.  Define GL_LIB.
90652
90653 2004-09-14  Karl Berry  <karl@gnu.org>
90654
90655         * config/srclist.txt: unsync setenv.c, sigh.
90656
90657 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
90658
90659         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
90660         Problem reported by Bruno Haible in:
90661         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
90662
90663 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
90664
90665         * config/srclist.txt: Comment out argp-pvh.c.
90666
90667 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
90668
90669         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
90670         in case some system header has #define'd it.  Problem reported by
90671         Soeren D. Schulze in
90672         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
90673
90674 2004-09-09  Karl Berry  <karl@gnu.org>
90675
90676         * regex.[ch]: delete from the root.  These were supposed to be
90677                 synced with emacs cvs, but this has not happened for about
90678                 a year, and anyway nothing else uses emacs regex.[ch].
90679                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
90680                 lib/regex[.ch] is untouched.
90681
90682 2004-09-09  Bruno Haible  <bruno@clisp.org>
90683
90684         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
90685
90686 2004-09-09  Bruno Haible  <bruno@clisp.org>
90687
90688         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
90689         modifications.
90690         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
90691
90692 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
90693
90694         * modules/xvasprintf: New file.
90695         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
90696
90697 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
90698
90699         * lib/xvasprintf.h: New file.
90700         * lib/xvasprintf.c: New file.
90701         * lib/xasprintf.c: New file.
90702
90703 2004-09-08  Bruno Haible  <bruno@clisp.org>
90704
90705         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
90706
90707 2004-09-08  Bruno Haible  <bruno@clisp.org>
90708
90709         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
90710         length is > INT_MAX.
90711         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
90712         more.
90713
90714 2004-09-08  Bruno Haible  <bruno@clisp.org>
90715
90716         * lib/stdint_.h: New file, taken from GNU clisp.
90717
90718 2004-09-08  Bruno Haible  <bruno@clisp.org>
90719             Oskar Liljeblad  <oskar@osk.mine.nu>
90720
90721         * modules/stdint: New file.
90722         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
90723
90724 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
90725
90726         Import from coreutils.
90727         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
90728         strings on unbounded length.  alloca's performance benefits aren't
90729         that important here.
90730         (V_STRDUP): Remove.
90731         (parse_with_separator): New function, with most of the internals
90732         of the old parse_user_spec.  Allow user to omit both user and group,
90733         for compatibility with FreeBSD.
90734         Clone only the user name, not the entire spec.
90735         Do not set *uid, *gid unless entirely successful.
90736         Avoid memory leak in some failing cases.
90737         Fix regression for USER.GROUP reported by Dmitry V. Levin in
90738         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
90739         (parse_user_spec): Rewrite to use parse_with_separator.
90740
90741 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
90742
90743         * modules/userspec: Don't depend on alloca.
90744
90745 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
90746
90747         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
90748
90749 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
90750
90751         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
90752         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
90753         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
90754
90755 2004-08-16  Simon Josefsson  <jas@extundo.com>
90756
90757         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
90758         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
90759         Add --dry-run for --import.
90760         Let user provided command line parameters override configure.ac
90761         settings.
90762
90763 2004-08-12  Simon Josefsson  <jas@extundo.com>
90764
90765         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
90766         as discussed with Paul Eggert in threads rooted at
90767         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
90768         and
90769         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
90770         Before, the test was empty, and relied on ELIDE_CODE in source
90771         code.)
90772         (gl_PREREQ_GETOPT): New macro.
90773         (gl_GETOPT): Use them.
90774
90775 2004-08-12  Simon Josefsson  <jas@extundo.com>
90776
90777         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
90778         * lib/getopt_.h: Renamed from getopt.h.
90779
90780 2004-08-12  Simon Josefsson  <jas@extundo.com>
90781
90782         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
90783         Change default library name from libfoo to libgnu.
90784         Now, if you have a configure.ac that says:
90785                 gl_SOURCE_BASE(gl)
90786                 gl_M4_BASE(gl/m4)
90787                 gl_MODULES(error getopt etcetera)
90788                 gl_INIT
90789         you can import all you need by running:
90790                 ../gnulib/gnulib-tool --import
90791
90792         * modules/getopt (Files): Rename getopt.h to getopt_.h.
90793         (Makefile.am): Rewrite, use logic from argz.
90794         (Include): Use <getopt.h> instead of "getopt.h".
90795
90796 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
90797
90798         * modules/argp (Files): Add m4/unlocked-io.m4.
90799         (Depends-on): Add extensions.
90800
90801 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
90802
90803         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
90804         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
90805         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
90806         Check for program_invocation_name, program_invocation_short_name,
90807         flockfile, funlockfile, features.h, _getopt_long_only_r.
90808
90809 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
90810
90811         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
90812         its complicated substitute.
90813         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
90814         and program_invocation_name.
90815         (__argp_basename) [!_LIBC]: Remove; the only use was
90816         replaced by its body.
90817         (__argp_short_program_name): Change condition from
90818         !defined __argp_short_program_name to
90819         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
90820         to match argp-namefrob.h.
90821         (__argp_failure): Don't assume strerror_r returns char *.
90822         * lib/argp-parse.c (N_): Define unconditionally.
90823         (argp_default_options): Fill out initializers with 0 to avoid
90824         gcc warnings.
90825
90826 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
90827
90828         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
90829         getopt1.c.
90830
90831 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
90832
90833         Merge from coreutils.
90834
90835         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
90836
90837         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
90838         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
90839
90840 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
90841
90842         Merge from coreutils.
90843
90844         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
90845         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
90846         for Reliant Unix 5.43.
90847
90848         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
90849         (union fooround): Use uintmax_t, not long int.
90850         The rest is a merge from libc:
90851         [defined _LIBC]: Include <shlib-compat.h>.
90852         (_obstack) [defined _LIBC]: Remove after 2.3.4.
90853
90854         * lib/settime.c (settime): Recode to avoid warning with
90855         Sun Forte C 6U2.
90856
90857         * lib/strverscmp.c: Convert to UTF-8.
90858
90859 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
90860
90861         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
90862         m4/uintmax_t.m4.
90863
90864 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
90865
90866         * modules/xalloc-die: New file.
90867         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
90868
90869         * modules/md5 (Files): Add m4/uint32_t.m4.
90870         * modules/sha1: Renamed from modules/sha.
90871         (Files):
90872         Rename lib/sha.h to lib/sha1.h.
90873         Rename lib/sha.c to lib/sha1.c.
90874         Rename m4/sha.m4 to m4/sha1.m4.
90875         (lib_SOURCES): Likewise.
90876         (configure.ac): Rename gl_SHA to gl_SHA1.
90877         (Include): sha.h -> sha1.h.
90878
90879 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
90880
90881         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
90882         * m4/sha1.m4: Renamed from sha.m4.
90883         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
90884
90885 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
90886
90887         * lib/obstack.h (obstack_empty_p):
90888         Don't assume that chunk->contents is suitably aligned.
90889         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
90890         Likewise. Problem reported by Benno in
90891         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
90892
90893         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
90894         readable.  This could be improved further but it'd take some work.
90895
90896 2004-08-08  Simon Josefsson  <jas@extundo.com>
90897
90898         * modules/xgethostname (Depends-on): Remove exit and error (not
90899         used).
90900
90901         * modules/getpass-gnu: Add getpass.h.
90902         (Depends-on): Add stdbool.
90903         * modules/getpass: Add getpass.h.
90904
90905 2004-08-08  Simon Josefsson  <jas@extundo.com>
90906
90907         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
90908         Check getpass declaration.
90909
90910 2004-08-08  Simon Josefsson  <jas@extundo.com>
90911
90912         * lib/xgethostname.c: Don't include error.h (not used).
90913
90914         * lib/getpass.h: Add.
90915         * lib/getpass.c: Include getpass.h first.
90916
90917 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
90918
90919         * lib/xalloc-die.c: New file.
90920         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
90921         All uses removed.
90922         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
90923         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
90924         xalloc-die.c.
90925         (_, N_, xalloc_die): Move to xalloc-die.c.
90926         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
90927         so that we needn't mess with xalloc_msg_memory_exhausted.
90928
90929         * lib/sha1.h: Renamed from sha.h.
90930         (SHA1_H): Renamed from _SHA_H.
90931         (sha1_ctx): Renamed from sha_ctx.
90932         (sha1_init_ctx): Renamed from sha_init_ctx.
90933         (sha1_process_block): Renamed from sha_process_block.
90934         (sha1_process_bytes): Renamed from sha_process_bytes.
90935         (sha1_finish_ctx): Renamed from sha_finish_ctx.
90936         (sha1_read_ctx): Renamed from sha_read_ctx.
90937         (sha1_stream): Renamed from sha_stream.
90938         (sha1_buffer): Renamed from sha_buffer.
90939         * lib/sha1.c: Likewise; renamed from sha.c.
90940         Do not include <sys/types.h>.
90941         Include <stddef.h> rather than <stdlib.h>.
90942
90943 2004-08-08  Bruno Haible  <bruno@clisp.org>
90944
90945         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
90946         FILESYSTEM_PREFIX_LEN.
90947         * lib/progreloc.c: Likewise.
90948         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
90949
90950 2004-08-06  Simon Josefsson  <jas@extundo.com>
90951
90952         * modules/progname (Depends-on): Don't depend on stdbool.
90953
90954 2004-08-06  Simon Josefsson  <jas@extundo.com>
90955
90956         * modules/getsubopt: New file.
90957         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
90958         getsubopt.
90959
90960 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
90961
90962         More merge from coreutils.
90963
90964         * m4/utimens.m4, m4/utimecmp.m4: New files.
90965         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
90966         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
90967         prereq.m4, sha.m4: Import changes from coreutils.
90968
90969 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
90970
90971         More merge from coreutils.
90972         * modules/raise, modules/readtokens0, modules/utimens:
90973         * modules/utimecmp, module/xnanosleep: New files.
90974         * modules/strftime: Add lib/strftime.h.
90975         Change include from <time.h> to "strftime.h".
90976         * modules/yesno: Add lib/yesno.h.
90977         * modules/backupfile: Remove lib/addext.c.
90978         * modules/euidaccess: Add stat-macros.h.
90979         * modules/canonicalize, modules/euidaccess,
90980         modules/filemode, modules/lchown, modules/makepath,
90981         modules/rmdir, modules/stat: Likewise.
90982
90983 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
90984
90985         Merge from tar.
90986         * lib/argp-help.c (make_hol, hol_append): Don't assume that
90987         SIZE_MAX is a valid preprocessor constant.
90988         (__argp_basename): Change from "#ifndef _LIBC"
90989         to "#ifndef __argp_short_program_name", so that
90990         we don't compile these functions for tar.
90991
90992         More merges from coreutils.
90993         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
90994         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
90995         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
90996         * lib/addext.c: Remove; no longer needed.
90997         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
90998         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
90999         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
91000         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
91001         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
91002         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
91003         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
91004         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
91005         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
91006         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
91007         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
91008         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
91009         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
91010         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
91011         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
91012         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
91013         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
91014         Import changes from coreutils.
91015
91016 2004-08-05  Simon Josefsson  <jas@extundo.com>
91017
91018         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
91019
91020 2004-08-05  Simon Josefsson  <jas@extundo.com>
91021
91022         * m4/getsubopt.m4: New file.
91023
91024 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
91025
91026         Merge from coreutils.
91027
91028         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
91029         * m4/getcwd-path-max.m4: New files.
91030
91031         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
91032         FILESYSTEM_PREFIX_LEN ->
91033         FILE_SYSTEM_PREFIX_LEN.
91034         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
91035         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
91036         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
91037         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
91038
91039         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
91040         prerequisite modules now handle the DOS stuff.
91041         Don't check for unistd.h.
91042
91043 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
91044
91045         Merge from coreutils.
91046
91047         * lib/.gdb-history: Remove; this doesn't belong here.
91048
91049         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
91050         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
91051         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
91052         * lib/getcwd.c: New files.
91053
91054         * lib/dirname.h: Include <stdbool.h>.
91055         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
91056         for consistency with POSIX terminology.  All uses changed.
91057         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
91058         (strip_trailing_slashes): Use bool for booleans.
91059         * lib/stripslash.c (strip_trailing_slashes): Likewise.
91060
91061         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
91062         sometimes returns a positive errno value even when it succeeds.
91063         (print_errno_message) [!LIBC]: Fall back on strerror if
91064         __strerror_r fails.
91065
91066         * lib/path-concat.c (mempcpy): Don't define if a system header defines
91067         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
91068         (longest_relative_suffix): New function.
91069         (path_concat): Use it.  Assume first argument is not NULL.
91070         Port to DOS.  Omit redundant separators.
91071         Report an error instead of returning NULL.
91072         Use mempcpy instead of memcpy.
91073         (xpath_concat): Remove: not declared or used.
91074
91075         * lib/same.h: Include <stdbool.h>
91076         (same_name): Return bool, not int.
91077         * lib/same.c (same_name): Likewise.
91078         (errno): Don't declare; we assume C89 or better now.
91079
91080         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
91081         if not already defined.
91082
91083         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
91084         * lib/dup-safer.c (errno): Likewise.
91085
91086 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
91087
91088         Merge from coreutils.
91089         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
91090         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
91091         * modules/path-concat: Don't depend on strdup.
91092
91093 2004-08-03  Simon Josefsson  <jas@extundo.com>
91094
91095         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
91096         * lib/progname.h: Don't include stdbool.h.
91097
91098 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
91099
91100         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
91101         * MODULES.html.sh (func_all_modules): Remove fatal.
91102
91103 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
91104
91105         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
91106
91107 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
91108
91109         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
91110         working.
91111
91112 2004-08-02  Simon Josefsson  <jas@extundo.com>
91113
91114         * lib/getsubopt.h: New file, with comments from Bruno Haible.
91115         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
91116         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
91117
91118 2004-08-01  Simon Josefsson  <jas@extundo.com>
91119
91120         * lib/xgetdomainname.c: Include stdlib.h, for free().
91121
91122 2004-07-19  Bruno Haible  <bruno@clisp.org>
91123
91124         * MODULES.html.sh (func_all_modules): Add dummy.
91125
91126 2004-07-16  Simon Josefsson  <jas@extundo.com>
91127
91128         * modules/dummy: New file.
91129
91130 2004-07-16  Simon Josefsson  <jas@extundo.com>
91131
91132         * lib/dummy.c: New file.
91133
91134 2004-07-16  Bruno Haible  <bruno@clisp.org>
91135
91136         * lib/backupfile.h: Add extern "C" for C++.
91137         * lib/closeout.h: Likewise.
91138         * lib/copy-file.h: Likewise.
91139         * lib/findprog.h: Likewise.
91140         * lib/full-write.h: Likewise.
91141         * lib/pathname.h: Likewise.
91142         * lib/progname.h: Likewise.
91143         * lib/stpcpy.h: Likewise.
91144         * lib/stpncpy.h: Likewise.
91145         * lib/strcase.h: Likewise.
91146         * lib/strstr.h: Likewise.
91147         * lib/xalloc.h: Likewise.
91148
91149         * lib/mbswidth.h: Add extern "C" for C++.
91150         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
91151
91152 2004-07-13  Robert Millan  <robertmh@gnu.org>
91153
91154         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
91155
91156 2004-07-09  Simon Josefsson  <jas@extundo.com>
91157
91158         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
91159         failed without this.)
91160
91161 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
91162
91163         * modules/chown (Files): Add lib/fchown-stub.c, since
91164         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
91165
91166 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
91167
91168         * lib/fchown-stub.c: New file.
91169
91170 2004-06-24  Jim Meyering  <jim@meyering.net>
91171
91172         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
91173
91174 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
91175
91176         * modules/argz: Omit "#include".
91177
91178         * MODULES.html.sh (func_all_modules): Add calloc, to match
91179         2004-06-01 addition of calloc module.
91180
91181 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
91182
91183         * m4/argz.m4: New file, which is autoupdated from libtool.
91184
91185 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
91186
91187         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
91188         libtool.
91189
91190 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
91191
91192         * config/srclist-update: Don't insist on "USA." before the
91193         close-comment, as libtool omits the period and puts the */ on a
91194         separate line.
91195         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
91196         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
91197
91198 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
91199
91200         * modules/argz: New file.
91201         * MODULES.html.sh (func_all_modules): Add argz.
91202
91203 2004-06-12  Jim Meyering  <jim@meyering.net>
91204         and  Paul Eggert  <eggert@cs.ucla.edu>
91205
91206         * modules/hash (Files): Add lib/xalloc.h.
91207         * modules/pipe (Depends-on): Add wait-process.
91208         * modules/stat (Depends-on): Add xalloc.
91209         * modules/userspec (Files): Add lib/userspec.h.
91210         * modules/xstrto
91211
91212         Upgrade from gettext-0.13.
91213         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
91214         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
91215         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
91216
91217 2004-06-10  Jim Meyering  <jim@meyering.net>
91218
91219         * lib/calloc.c: New file.
91220
91221 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
91222
91223         * lib/getdate.y (yylex): Allow space between sign and number.
91224         Problem reported by Dan Jacobson.
91225
91226 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
91227
91228         Merge from coreutils CVS.
91229
91230         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
91231         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
91232         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
91233         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
91234         xstrtol.m4: Fix copyright date and/or serial number.
91235
91236         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
91237         See if we need an fchown replacement.
91238         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
91239         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
91240         and use the replacement function if we detect either defect.
91241
91242         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
91243         gl_UTIMECMP.
91244
91245 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
91246         and  Jim Meyering  <jim@meyering.net>
91247
91248         Merge from coreutils CVS.
91249
91250         * lib/stat-macros.h: New file, with contents from file-type.h
91251         and coreutils' system.h.
91252         * lib/file-type.c: Include "stat-macros.h".
91253         * lib/file-type.h (file_type): Move all macro definitions to new file,
91254         stat-macros.h.
91255
91256         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
91257         Wrap old code with this conditional.
91258         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
91259         function that does not dereference symlinks.
91260         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
91261
91262         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
91263         dependency problems.
91264         (xreadlink): Accept new arg SIZE, for efficiency.
91265         All decls and uses changed.
91266         * lib/xreadlink.h: Include <stddef.h>, for size_t.
91267
91268         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
91269         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
91270
91271         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
91272         sysexits.h.
91273
91274 2004-06-01  Jim Meyering  <jim@meyering.net>
91275
91276         * m4/calloc.m4: New file.
91277
91278 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
91279
91280         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
91281         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
91282         Also, fix a typo in a diagnostic.
91283
91284 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
91285
91286         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
91287         or AC_FUNC_REALLOC.
91288
91289 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
91290
91291         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
91292         macros to be defined.
91293         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
91294         the allocator returns NULL because the requested size is zero.
91295
91296 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
91297
91298         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
91299         var.  Add comment explaining why libc still defines it.  This
91300         merges the following patch from glibc:
91301         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
91302
91303 2004-05-20  Andreas Schwab  <schwab@suse.de>
91304
91305         * m4/free.m4: Replace free if it not known to work, not the other
91306         way round.
91307
91308 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
91309
91310         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
91311         present in glibc since revision 1.1 of this file.
91312         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
91313         obstack_alignment_mask, obstack_alloc, obstack_base,
91314         obstack_blank, obstack_blank_fast, obstack_chunk_size,
91315         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
91316         obstack_grow0, obstack_init, obstack_int_grow,
91317         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
91318         obstack_next_free, obstack_object_size, obstack_ptr_grow,
91319         obstack_ptr_grow_fast, obstack_room): Remove declarations of
91320         nonexistent functions.
91321
91322 2004-05-18  Karl Berry  <karl@gnu.org>
91323
91324         * config/srclist.txt: break link for vasnprintf.c.
91325
91326 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
91327
91328         Port obstack to the AS/400, where pointers are 16 bytes wide and
91329         you cannot cast an integer to a valid pointer.  This patch is
91330         currently waiting to be integrated into glibc; see
91331         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
91332
91333         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
91334         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
91335         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
91336         (struct obstack): temp member is now a union of a pointer and
91337         an integer, instead of an integer.  All integer uses changed.
91338         This does not affect the physical layout of struct obstack,
91339         except on hosts (like the AS/400) where the size or alignment of
91340         void * is greater than that of ptrdiff_t.
91341         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
91342         __STDC__)]: Store temporary in pointer member of union, not
91343         integer member.
91344         * lib/obstack.c: Include <stddef.h>, for offsetof.
91345         (struct fooalign): Remove; it doesn't need a name.
91346         (union fooround): Change double to long double, and add void *.
91347         (DEFAULT_ALIGNMENT): Use offsetof to compute.
91348         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
91349         not a macro.  Hence the values are always int; so remove all
91350         casts-to-int in uses.
91351
91352 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
91353
91354         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
91355         we can get this patch merged into glibc.
91356
91357 2004-05-17  Derek R. Price  <derek@ximbiot.com>
91358             Paul Eggert  <eggert@cs.ucla.edu>
91359
91360         * m4/argp: Depend on alloca.
91361
91362 2004-05-17  Derek R. Price  <derek@ximbiot.com>
91363             Paul Eggert  <eggert@cs.ucla.edu>
91364
91365         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
91366         freecoding.
91367
91368 2004-05-17  Bruno Haible  <bruno@clisp.org>
91369
91370         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
91371         precision that consists of a '.' followed by an empty digit string.
91372         Patch by Tor Lillqvist <tml@iki.fi>.
91373
91374 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
91375
91376         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
91377         for backward compatibility with older code.  We need our own
91378         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
91379         it under some other name, and our alloca.h will define it.
91380
91381 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
91382             Derek Price  <derek@ximbiot.com>
91383
91384         * lib/alloca.c: Include <alloca.h>, to get our interface.
91385         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
91386         include <alloca.h> first.  Use C89 prototype for alloca; this
91387         requires including <stddef.h> for size_t.  Use extern "C" if C++.
91388         Use #elif for simplicity, since we can assume C89 now.
91389         Don't try to source the system alloca.h since it will not be found
91390         and to prevent recursively including its replacement.
91391         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
91392         * lib/regex.c: Likewise.
91393
91394 2004-05-16  Derek Price  <derek@ximbiot.com>
91395             Paul Eggert  <eggert@cs.ucla.edu>
91396
91397         getline cleanup.  This changes the getndelim2 API: both order of
91398         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
91399         no delimiter).
91400
91401         * lib/getline.c: Don't include stddef.h or stdio.h, since our
91402         interface does that.
91403         (getline): Always use getdelim, so that we don't have two
91404         copies of this code.
91405         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
91406         if available.
91407         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
91408         (GETNDELIM2_MAXIMUM): New macro.
91409         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
91410         instead of the old practice of delim2==0.  All callers changed.
91411         Return -1 on overflow, instead of returning junk.
91412         Do not set *linesize unless allocation succeeds.
91413         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
91414         that we include sys/types.h.
91415         * lib/getnline.h: Likewise.
91416         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
91417         (getndelim2): Reorder arguments.
91418         * lib/getnline.c (getnline, getndelim):
91419         Don't discard the NMAX argument.
91420         (getnline): Invoke getndelim, to avoid code duplication.
91421         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
91422         of (size_t) -1 by callers of the getnline family.
91423
91424 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
91425
91426         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
91427         Check for gettimeofday.
91428         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
91429         Check for settimeofday, stime.
91430
91431 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
91432
91433         * lib/nanosleep.c (suspended): Change its type from int to
91434         sig_atomic_t volatile.
91435         (first_call): Make it private to rpl_nanosleep, and have it
91436         be zero initially as that's a bit faster.
91437         (my_usleep): Round up fractional times instead of truncating them,
91438         as this is the usual meaning for 'sleep'.
91439
91440         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
91441         doesn't work.
91442         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
91443         (ENOSYS): Define if not defined.
91444         (settime): Fall back on stime if it exists and settimeofday fails.
91445         But don't bother with fallbacks if a method fails with errno == EPERM.
91446
91447 2004-05-11  Jim Meyering  <jim@meyering.net>
91448
91449         Prior to this change, the save_cwd caller required read access to the
91450         current directory on most systems (ones with the fchdir function).
91451
91452         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
91453         fails, try write-only, and finally, resort to using xgetcwd.
91454
91455 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
91456
91457         * lib/obstack.c, obstack.h: Import changes from libc.
91458
91459 2004-04-28  Bruno Haible  <bruno@clisp.org>
91460
91461         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
91462         also implicitly appends .exe to executables.
91463         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
91464         accepts Windows pathnames.
91465         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
91466         Treat Cygwin like Windows, since it now accepts Windows pathnames.
91467         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
91468         Treat Cygwin like Windows, since it now accepts Windows pathnames.
91469         Reported by Derek Robert Price <derek@ximbiot.com>.
91470
91471 2004-04-21  Karl Berry  <karl@gnu.org>
91472
91473         * config/srclist.txt (localcharset.c): break sync.
91474
91475 2004-04-20  Paul Eggert  <eggert@twinsun.com>
91476
91477         * m4/host-os.m4: Add a copyright notice.
91478
91479 2004-04-20  Jim Meyering  <jim@meyering.net>
91480
91481         Change UTILS_ to gl_ in AC_DEFINE'd names.
91482         Change utils_- and jm_-prefixed variables, too.
91483         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
91484         UTILS_FUNC_MKDIR_TRAILING_SLASH.
91485         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
91486
91487         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
91488         Don't emit trailing blanks.
91489         Also rename jm_-prefixed variables to have gl_ prefix.
91490
91491         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
91492         Also rename jm_-prefixed variables to have gl_ prefix.
91493
91494         * m4/jm-macros.m4: Reflect the renamings.
91495         * m4/prereq.m4: Likewise.
91496
91497 2004-04-20  Jim Meyering  <jim@meyering.net>
91498
91499         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
91500         memory.
91501
91502 2004-04-20  Jim Meyering  <jim@meyering.net>
91503             Bruno Haible  <bruno@clisp.org>
91504
91505         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
91506         memory when realloc fails.
91507
91508 2004-04-19  Jim Meyering  <jim@meyering.net>
91509
91510         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
91511         now that readutmp.c may call `free (0)'.
91512
91513 2004-04-19  Bruno Haible  <bruno@clisp.org>
91514
91515         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
91516         * m4/inttypes_h.m4: Likewise.
91517         * m4/stdint_h.m4: Likewise.
91518         * m4/intmax_t.m4: Likewise.
91519         * m4/uintmax_t.m4: Likewise.
91520
91521 2004-04-18  Jim Meyering  <jim@meyering.net>
91522
91523         * m4/prereq.m4: Don't forbid jm_ prefix.
91524
91525         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
91526         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
91527         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
91528         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
91529         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
91530         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
91531         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
91532         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
91533         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
91534         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
91535         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
91536         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
91537         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
91538         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
91539         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
91540         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
91541         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
91542         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
91543         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
91544
91545 2004-04-18  Jim Meyering  <jim@meyering.net>
91546
91547         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
91548         failure, don't leak memory and do call END_UTMP_ENT.
91549
91550 2004-04-16  Jim Meyering  <jim@meyering.net>
91551
91552         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
91553         coreutils' stat program.
91554         (gl_PREREQ): Don't require jm_PREREQ_STAT.
91555
91556 2004-04-11  Paul Eggert  <eggert@twinsun.com>
91557
91558         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
91559         C89.
91560         (CHAR_BIT): Remove, since we assume C89.
91561         Include <stdint.h> if available, as per current Autoconf CVS advice.
91562
91563 2004-03-31  Jim Meyering  <jim@meyering.net>
91564
91565         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
91566         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
91567         * m4/xalloc.m4: Likewise.
91568
91569 2004-03-30  Paul Eggert  <eggert@twinsun.com>
91570
91571         Merge from coreutils.
91572
91573         * m4/inttostr.m4: New file.
91574         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
91575         Require AM_STDBOOL_H and gl_TIMESPEC instead.
91576         Require gl_CLOCK_TIME.
91577         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
91578
91579 2004-03-30  Paul Eggert  <eggert@twinsun.com>
91580
91581         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
91582         not bool, to be more consistent with Unix conventions.
91583         Suggested by Bruno Haible.
91584
91585         Merge from coreutils.
91586
91587         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
91588         * lib/umaxtostr.c: New files.
91589
91590         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
91591         the usual <time.h> dance.
91592         (get_date): Change signature to support fractional time stamps.
91593         All callers changed.
91594         * lib/getdate.y: Include "getdate.h" first, as we can now
91595         assume C89 and don't need to worry about 'const'.
91596         Similarly, include "unlocked-io.h" near start, not in middle.
91597         Include <limits.h>.
91598         (textint.value): Use long int rather than int.
91599         (textint.digits): Use size_t rather than int.
91600         (BILLION, LOG10_BILLION): New constants.
91601         (parser_control): New member rel_ns.  Members day_ordinal,
91602         time_zone, month, day, hour, minutes, rel_year, rel_month,
91603         rel_day, rel_hour, rel_minutes, rel_seconds
91604         are now long int, not int.  Member seconds is now struct timespec,
91605         not int.  New member timespec_seen.  Members dates_seen, days_seen,
91606         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
91607         not int.
91608         (%union.intval): Now long int, not int.
91609         New member timespec.
91610         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
91611         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
91612         (spec): Now is a timespec or an item list.
91613         (timespec, items): New nonterminals.
91614         (time, rel, relunit, number, get_date):
91615         Add support for fractional seconds.
91616         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
91617         (gmtime, localtime, mktime): Remove decls; not needed with C89.
91618         (to_hour): First arg is now long int, not int.
91619         (to_year): Returns long int, not int.
91620         Don't treat year -70 like 70.
91621         (tm_diff): Returns long int, not int.
91622         (lookup_word): Use bool instead of int when appropriate.
91623         (yylex): Use size_t for count, not int.
91624         Detect overflow when parsing large integer constants.
91625         Add support for fractions.
91626         (get_date): Make pointers 'const' if possible.
91627         Use more-portable code to detect integer overflow.
91628         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
91629         Don't use ctime; it's not reliable if the year has >4 digits.
91630
91631         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
91632         This is for compatibility with BSD.
91633
91634         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
91635         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
91636         From coreutils' system.h.
91637
91638         * lib/userspec.c: Don't include "posixver.h".
91639         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
91640         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
91641         compatible extension.  Simplify code by removing a boolean int
91642         that was always nonzero if a string was nonnull.
91643
91644 2004-03-30  Jim Meyering  <jim@meyering.net>
91645
91646         Merge from coreutils.
91647
91648         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
91649         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
91650         on some systems one must include <grp.h> before it.
91651         Reported by Christian Krackowizer.
91652
91653 2004-03-30  Jim Meyering  <jim@meyering.net>
91654
91655         Merge from coreutils.
91656
91657         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
91658
91659         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
91660         an empty input stream.
91661
91662         * lib/readtokens.c: Include <stdbool.h>.
91663         (readtoken): Use `size_t' rather than int/long.
91664         All callers adjusted.
91665         Use `bool' rather than `int' where appropriate.
91666         Use memset rather than an explicit loop.
91667         Use x2nrealloc rather than xrealloc.
91668         Allow the use of `\0' as a delimiter.
91669         (readtokens): Likewise.
91670         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
91671
91672 2004-03-30  Jim Meyering  <jim@meyering.net>
91673
91674         * m4/realloc.m4: Remove file, since now it does no more than
91675         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
91676         the `configure.ac' section of module/realloc.
91677         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
91678
91679 2004-03-30  Bruno Haible  <bruno@clisp.org>
91680
91681         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
91682         nonnull.
91683
91684 2004-03-29  Paul Eggert  <eggert@twinsun.com>
91685
91686         Merge changes to getloadavg.c from coreutils and Emacs.
91687
91688         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
91689         Define to an expression, not to the empty string.
91690         Include cloexec.h and xalloc.h.
91691         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
91692         Use set_cloexec_flag rather than rolling our own.
91693         * lib/cloexec.c, lib/cloexec.h: New files.
91694
91695 2004-03-29  Paul Eggert  <eggert@twinsun.com>
91696
91697         * m4/cloexec.m4: New file.
91698
91699 2004-03-18  Paul Eggert  <eggert@twinsun.com>
91700
91701         * lib/getopt.h: Sync with libc CVS.
91702
91703 2004-03-18  Paul Eggert  <eggert@twinsun.com>
91704             Bruno Haible  <bruno@clisp.org>
91705
91706         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
91707         mbswidth.
91708
91709 2004-03-18  Paul Eggert  <eggert@twinsun.com>
91710             Bruno Haible  <bruno@clisp.org>
91711
91712         * lib/mbswidth.h: Include <wchar.h> only if
91713         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
91714         <wchar.h>.
91715         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
91716
91717 2004-03-09  Paul Eggert  <eggert@twinsun.com>
91718
91719         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
91720         Sync with libc CVS.
91721         * lib/getopt_int.h: New file, also synced from libc.
91722
91723 2004-03-09  Paul Eggert  <eggert@twinsun.com>
91724
91725         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
91726         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
91727         Bring back getopt.c, getopt.h, getopt1.c.
91728
91729 2004-03-07  Paul Eggert  <eggert@twinsun.com>
91730
91731         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
91732         All uses changed.  Check for sa_sigaction member; this fixes
91733         a bug first reported by Jason Andrade in
91734         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
91735
91736 2004-03-07  Paul Eggert  <eggert@twinsun.com>
91737
91738         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
91739         '#if' expressions.  Unlike the code it replaces, it does not
91740         depend on (defined _SC_PAGESIZE).  However, it does depend on
91741         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
91742         first reported by Jason Andrade in
91743         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
91744
91745 2004-02-25  Simon Josefsson  <jas@extundo.com>
91746
91747         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
91748
91749 2004-02-25  Simon Josefsson  <jas@extundo.com>
91750
91751         * lib/strdup.h: New file.
91752         * lib/strdup.c: Include it.
91753         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
91754         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
91755
91756 2004-02-23  Karl Berry  <karl@gnu.org>
91757
91758         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
91759         (from fencepost.gnu.org:/gd/gnuorg).
91760
91761 2004-02-23  Karl Berry  <karl@gnu.org>
91762
91763         * config/srclistvars.sh (GNUORG) [karl]: redefine.
91764         * config/srclist.txt: add maintain/standards documents.
91765
91766 2004-02-18  Bruno Haible  <bruno@clisp.org>
91767
91768         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
91769         Reported by Derek Robert Price <derek@ximbiot.com>.
91770
91771 2004-02-16  Karl Berry  <karl@gnu.org>
91772
91773         * config/mkinstalldirs, install-sh: update from automake.
91774
91775 2004-02-06  Karl Berry  <karl@gnu.org>
91776
91777         * m4/po.m4: update from gettext 0.14.1.
91778
91779 2004-02-06  Karl Berry  <karl@gnu.org>
91780
91781         * lib/config.charset: update from gettext 0.14.1.
91782
91783 2004-02-05  Paul Eggert  <eggert@twinsun.com>
91784
91785         Add comments and code, prompted by suggestions from Bruno Haible
91786         for sh-quote.
91787         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
91788         describing the enum quoting_style values.
91789         * lib/quotearg.c (quotearg_alloc): New function.
91790         (quotearg_buffer_restyled): Treat lone { and } as special.
91791         Treat = as special.  Work around bug with older shells
91792         that "see" a '\' that is really the 2nd byte of a multibyte char.
91793         Quote empty string with shell_quoting_style.
91794
91795 2004-02-03  Bruno Haible  <bruno@clisp.org>
91796
91797         * m4/pipe.m4: New file, from GNU gettext.
91798
91799 2004-02-03  Bruno Haible  <bruno@clisp.org>
91800
91801         * lib/pipe.h: New file, from GNU gettext.
91802         * lib/pipe.c: New file, from GNU gettext.
91803
91804 2004-01-27  Bruno Haible  <bruno@clisp.org>
91805
91806         * m4/execute.m4: New file, from GNU gettext.
91807
91808 2004-01-27  Bruno Haible  <bruno@clisp.org>
91809
91810         * lib/execute.h: New file, from GNU gettext.
91811         * lib/execute.c: New file, from GNU gettext.
91812         * lib/w32spawn.h: New file, from GNU gettext.
91813
91814 2004-01-24  Paul Eggert  <eggert@twinsun.com>
91815
91816         Merge from diffutils.
91817
91818         * lib/file-type.c (file_type): Add typed memory objects.
91819         * lib/file-type.h (S_TYPEISTMO): New macro.
91820
91821         * lib/c-stack.h (c_stack_action): Remove argv argument.
91822         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
91823         (die): Don't calculate message unless segv_action returns.
91824         (get_stack_location, min_address_from_argv, max_address_from_argv,
91825         volatile stack_base, volatile_stack_size): Remove.
91826         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
91827         that every segmentation violation is a stack overflow.  (Ouch!)
91828         See Debian bug 136249 (still outstanding) for more info about why
91829         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
91830
91831 2004-01-24  Paul Eggert  <eggert@twinsun.com>
91832
91833         Exit-status fix from coreutils.
91834
91835         Use exit_failure consistently in place of EXIT_FAILURE,
91836         so that program exit statuses are consistent on failure.
91837
91838         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
91839         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
91840         * lib/argmatch.h: Comment fix to match the above.
91841         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
91842         Now a macro referring to exit_failure, instead of a separate
91843         variable.  Include "exitfail.h" to get it.
91844         * lib/xstrtol.h: Include "exitfail.h".
91845         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
91846
91847         * lib/long-options.c (parse_long_options): Use prototype
91848         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
91849         for clarity.
91850
91851 2004-01-21  Jim Meyering  <jim@meyering.net>
91852
91853         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
91854         so as not to conflict with a different-sized __mktime_internal
91855         function in GNU libc.
91856         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
91857         Problem building statically-linked `ls' reported by Michael Brunnbauer.
91858
91859 2004-01-20  Karl Berry  <karl@gnu.org>
91860
91861         * config/config.guess: update from config.
91862
91863         * config/srclistvars.sh: GNUWWWLICENSES for karl.
91864
91865 2004-01-20  Bruno Haible  <bruno@clisp.org>
91866
91867         Safer stack allocation.
91868         * lib/setenv.c: Include allocsa.h.
91869         (alloca): Remove fallback definition.
91870         (freea): Remove macro.
91871         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
91872         instead of freea.
91873
91874 2004-01-20  Bruno Haible  <bruno@clisp.org>
91875
91876         * m4/eealloc.m4: New file, from GNU gettext.
91877
91878 2004-01-20  Bruno Haible  <bruno@clisp.org>
91879
91880         * m4/allocsa.m4: New file, from GNU gettext.
91881
91882 2004-01-20  Bruno Haible  <bruno@clisp.org>
91883
91884         * lib/xallocsa.h: New file, from GNU gettext.
91885         * lib/xallocsa.c: New file, from GNU gettext.
91886
91887 2004-01-20  Bruno Haible  <bruno@clisp.org>
91888
91889         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
91890
91891 2004-01-20  Bruno Haible  <bruno@clisp.org>
91892
91893         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
91894         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
91895         specially.
91896
91897 2004-01-20  Bruno Haible  <bruno@clisp.org>
91898
91899         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
91900         patch.
91901
91902 2004-01-20  Bruno Haible  <bruno@clisp.org>
91903
91904         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
91905
91906 2004-01-20  Bruno Haible  <bruno@clisp.org>
91907
91908         * lib/eealloc.h: New file.
91909
91910 2004-01-20  Bruno Haible  <bruno@clisp.org>
91911
91912         * lib/binary-io.h: Avoid warnings on Cygwin.
91913
91914 2004-01-20  Bruno Haible  <bruno@clisp.org>
91915
91916         * lib/allocsa.h: New file, from GNU gettext.
91917         * lib/allocsa.c: New file, from GNU gettext.
91918
91919 2004-01-18  Karl Berry  <karl@gnu.org>
91920
91921         * doc/gpl.texi, doc/lgpl.texi: new files.
91922
91923 2004-01-18  Karl Berry  <karl@gnu.org>
91924
91925         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
91926         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
91927
91928 2004-01-15  Paul Eggert  <eggert@twinsun.com>
91929
91930         Merge from coreutils.
91931
91932         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
91933         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
91934         (gl_DEFAULT_POSIX2_VERSION): Move
91935         the documentation from 'configure' into 'config.hin',
91936         so that 'configure --help' isn't burdened by it and
91937         we don't have to worry about its formatting there.
91938         Reword the documentation so that it's more succinct
91939         and can be run together into a single paragraph.
91940         * m4/same.m4 (gl_SAME): Check for pathconf.
91941
91942 2004-01-15  Paul Eggert  <eggert@twinsun.com>
91943
91944         Merge from coreutils.
91945
91946         * lib/posixver.c: Include posixver.h.
91947
91948         * lib/same.c: Include <stdbool.h>, <limits.h>.
91949         (_POSIX_NAME_MAX): Define if not defined.
91950         (MIN): New macro.
91951         (same_name): If file names are silently truncated, report
91952         that the file names are the same if they are the same after
91953         the silent truncation.
91954
91955         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
91956         conversion function.
91957         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
91958         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
91959         longer needed.
91960
91961 2004-01-15  Jim Meyering  <jim@meyering.net>
91962
91963         Merge from coreutils.
91964
91965         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
91966         if no library is required.
91967         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
91968         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
91969         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
91970         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
91971         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
91972         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
91973         value, $ac_cv_search_crypt, if it's "none required".
91974         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
91975         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
91976         not gl_FUNC_GETLOADAVG.
91977         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
91978         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
91979
91980 2004-01-15  Jim Meyering  <jim@meyering.net>
91981
91982         Merge from coreutils.
91983
91984         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
91985         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
91986         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
91987
91988         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
91989         optional configure-time default.
91990
91991         * lib/version-etc.c (version_etc_copyright): Update copyright date.
91992
91993         * lib/xreadlink.c (xreadlink): Correct outdated comment.
91994
91995 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
91996
91997         Merge from coreutils.
91998
91999         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
92000         value, $ac_cv_search_nanosleep, if it's "none required".
92001
92002 2004-01-14  Paul Eggert  <eggert@twinsun.com>
92003
92004         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
92005         with like-named macro in fnmatch.c.
92006         (EXT): Use an internal constant instead.
92007
92008         Merge fnmatch patches from glibc.
92009         * lib/fnmatch.c (mbsinit): Remove define.
92010         Add libc_hidden_ver (__fnmatch, fnmatch).
92011         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
92012         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
92013
92014 2004-01-14  Karl Berry  <karl@gnu.org>
92015
92016         * config/install-sh: update from automake.
92017
92018 2004-01-13  Karl Berry  <karl@gnu.org>
92019
92020         * config/install-sh: update from automake.
92021
92022 2004-01-09  Karl Berry  <karl@gnu.org>
92023
92024         * config/install-sh: update from automake.
92025
92026 2004-01-05  Karl Berry  <karl@gnu.org>
92027
92028         * config/config.{sub,guess}: update from config.
92029
92030 2003-12-31  Karl Berry  <karl@gnu.org>
92031
92032         * config/depcomp: update from automake.
92033
92034 2003-12-14  Karl Berry  <karl@gnu.org>
92035
92036         * lib/config.charset: update from gettext-runtime.
92037
92038 2003-12-03  Paul Eggert  <eggert@twinsun.com>
92039
92040         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
92041         Bug reported by Alfred M. Szmidt.
92042
92043 2003-12-03  Bruno Haible  <bruno@clisp.org>
92044
92045         * m4/gettext.m4: Upgrade from gettext-0.13.
92046         * m4/po.m4: Upgrade from gettext-0.13.
92047         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
92048         * m4/intmax.m4: New file, from gettext-0.13.
92049         * m4/printf-posix.m4: New file, from gettext-0.13.
92050
92051 2003-11-29  Karl Berry  <karl@gnu.org>
92052
92053         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
92054
92055 2003-11-25  Paul Eggert  <eggert@twinsun.com>
92056             Bruno Haible  <bruno@clisp.org>
92057
92058         * lib/printf-parse.h: Don't include sys/types.h.
92059         (ARG_NONE): New macro.
92060         (char_directive): Change type of *arg_index fields to size_t.
92061         * lib/printf-parse.c: Don't include sys/types.h.
92062         (SSIZE_MAX): Remove macro.
92063         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
92064         Remove unnecessary overflow check.
92065         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
92066         fields.
92067
92068 2003-11-25  Bruno Haible  <bruno@clisp.org>
92069
92070         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
92071
92072 2003-11-25  Bruno Haible  <bruno@clisp.org>
92073
92074         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
92075         gt_TYPE_SSIZE_T.
92076
92077 2003-11-24  Paul Eggert  <eggert@twinsun.com>
92078
92079         * modules/alloca: Remove dependency on xalloc.
92080
92081 2003-11-24  Paul Eggert  <eggert@twinsun.com>
92082
92083         * lib/alloca.c: Remove dependency on xalloc module.
92084         (xalloc_die): Remove.
92085         (memory_full) [!defined emacs]: New macro.
92086         [!defined emacs]: Don't include xalloc.h.
92087         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
92088         address arithmetic overflows.  Change datatypes a bit to avoid
92089         unnecessary casts.
92090
92091 2003-11-22  Jim Meyering  <jim@meyering.net>
92092
92093         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
92094         s/size/size_t/.
92095
92096 2003-11-21  Karl Berry  <karl@gnu.org>
92097
92098         * config/config.{sub,guess}: update from config.
92099
92100 2003-11-18  Karl Berry  <karl@gnu.org>
92101
92102         * config/config.{sub,guess}: update from config.
92103
92104         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
92105
92106 2003-11-17  Paul Eggert  <eggert@twinsun.com>
92107
92108         * README: Mention that S+T cannot overflow if S is the size of
92109         an existing object and T is sufficiently small.
92110
92111 2003-11-17  Jim Meyering  <jim@meyering.net>
92112
92113         On systems without utime and without a utimes function capable of
92114         dealing with a NULL struct utimbuf* argument, this utime replacement
92115         could -- in unusual circumstances -- leak a file descriptor.
92116         * lib/utime.c: Include <unistd.h> and <errno.h>.
92117         (utime_null): Be sure to close `fd' and to preserve errno.
92118         Reported by Geoff Collyer via Arnold Robbins.
92119
92120 2003-11-17  Bruno Haible  <bruno@clisp.org>
92121
92122         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
92123         (Depends-on): Add xsize.
92124
92125 2003-11-17  Bruno Haible  <bruno@clisp.org>
92126
92127         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
92128
92129 2003-11-17  Bruno Haible  <bruno@clisp.org>
92130
92131         * lib/vasnprintf.c (alloca): Remove fallback definition.
92132         (freea): Remove definition.
92133         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
92134         Reported by Paul Eggert.
92135
92136 2003-11-16  Paul Eggert  <eggert@twinsun.com>
92137             Bruno Haible  <bruno@clisp.org>
92138
92139         Protect against address arithmetic overflow.
92140         * lib/printf-args.h: Include stddef.h.
92141         (arguments): Change type of field 'count' to size_t.
92142         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
92143         'unsigned int' where appropriate.
92144         * lib/printf-parse.h: Include sys/types.h.
92145         (char_directive): Change type of *arg_index fields to ssize_t.
92146         (char_directives): Change type of fields 'count', max_*_length to
92147         size_t.
92148         * lib/printf-parse.c: Include sys/types.h and xsize.h.
92149         (SSIZE_MAX): Define fallback value.
92150         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
92151         instead of 'int' where appropriate. Check a_allocated, d_allocated
92152         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
92153         * lib/vasnprintf.c: Include xsize.h.
92154         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
92155         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
92156         overflow. Avoid wraparound when converting a width or precision from
92157         decimal to binary.
92158
92159 2003-11-16  Bruno Haible  <bruno@clisp.org>
92160
92161         Update from GNU gettext.
92162         * lib/printf-parse.c: Generalize to it can be compiled for wide
92163         strings.
92164         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
92165         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
92166         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
92167         SNPRINTF): New macros.
92168         Don't include <alloca.h> if the file is used inside libintl.
92169         (local_wcslen): New function, for Solaris 2.5.1.
92170         (VASNPRINTF): Use it instead of wcslen.
92171
92172 2003-11-16  Bruno Haible  <bruno@clisp.org>
92173
92174         * lib/xsize.h (xmax): New function.
92175         (xsum, xsum3, xsum4): Declare as "pure" functions.
92176
92177 2003-11-12  Paul Eggert  <eggert@twinsun.com>
92178
92179         * modules/xalloc (Files): Undo latest change, since xalloc.h
92180         no longer needs SIZE_MAX or PTRDIFF_MAX.
92181
92182 2003-11-12  Paul Eggert  <eggert@twinsun.com>
92183
92184         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
92185         gl_PTRDIFF_MAX.
92186
92187 2003-11-12  Paul Eggert  <eggert@twinsun.com>
92188
92189         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
92190         "return", to pacify some unknown compiler.  Problem reported
92191         by Joerg Schilling.
92192
92193 2003-11-12  Paul Eggert  <eggert@twinsun.com>
92194
92195         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
92196         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
92197         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
92198         heuristic is just as accurate as far as we know, and it removes a
92199         dependency on size_max.m4 and ptrdiff_max.m4.
92200
92201 2003-11-11  Bruno Haible  <bruno@clisp.org>
92202
92203         * modules/xsize (Files): Add m4/size_max.m4.
92204         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
92205
92206 2003-11-11  Bruno Haible  <bruno@clisp.org>
92207
92208         * m4/size_max.m4: New file.
92209         * m4/ptrdiff_max.m4: New file.
92210         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
92211         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
92212         (gl_XALLOC): Invoke it.
92213
92214 2003-11-11  Bruno Haible  <bruno@clisp.org>
92215
92216         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
92217         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
92218         defined.
92219
92220 2003-11-10  Paul Eggert  <eggert@twinsun.com>
92221
92222         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
92223         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
92224         rejected some allocations of exactly SIZE_MAX - 2 bytes.
92225         From Bruno Haible.
92226         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
92227         not (size_t) -1, since it's defined here.
92228
92229 2003-11-09  Karl Berry  <karl@gnu.org>
92230
92231         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
92232
92233 2003-11-06  Paul Eggert  <eggert@twinsun.com>
92234
92235         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
92236         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
92237         Reject sizes of exactly SIZE_MAX bytes.
92238         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
92239         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
92240
92241 2003-11-05  Bruno Haible  <bruno@clisp.org>
92242
92243         * lib/xsize.h: Include limits.h, to avoid a possible collision with
92244         SIZE_MAX defined in <limits.h> on Solaris.
92245
92246 2003-11-04  Jim Meyering  <jim@meyering.net>
92247
92248         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
92249         variable names, rather than @VAR@.
92250         * modules/poll: Likewise.
92251
92252 2003-11-04  Bruno Haible  <bruno@clisp.org>
92253
92254         * modules/xsize: New file.
92255         * modules/linebreak: Depend on xsize.
92256         * MODULES.html.sh (func_all_modules): Add xsize.
92257
92258 2003-11-04  Bruno Haible  <bruno@clisp.org>
92259
92260         * m4/xsize.m4: New file.
92261
92262 2003-11-04  Bruno Haible  <bruno@clisp.org>
92263
92264         * lib/xsize.h: New file.
92265         * lib/linebreak.c: Include xsize.h.
92266         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
92267         argument for overflow.
92268         Suggested by Paul Eggert.
92269
92270 2003-11-03  Karl Berry  <karl@gnu.org>
92271
92272         * config/config.{guess,sub}: update from config.
92273
92274 2003-11-03  Jim Meyering  <jim@meyering.net>
92275
92276         * modules/userspec (lib_SOURCES): Add userspec.h.
92277         (Include): Add "userspec.h".
92278         Improve description.
92279
92280 2003-11-03  Jim Meyering  <jim@meyering.net>
92281
92282         * lib/userspec.c: Include "userspec.h".
92283         * lib/userspec.h: New file.
92284
92285 2003-11-03  Bruno Haible  <bruno@clisp.org>
92286
92287         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
92288
92289 2003-11-03  Bruno Haible  <bruno@clisp.org>
92290
92291         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
92292         available, to avoid (extremely rare) race condition.
92293         Suggested by Paul Eggert.
92294
92295 2003-11-02  Karl Berry  <karl@gnu.org>
92296
92297         * config/srclist.txt (vasprintf.c): sync broken, sigh.
92298
92299 2003-10-31  Paul Eggert  <eggert@twinsun.com>
92300
92301         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
92302         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
92303         (read_filesystem_list): Set and use me_type_malloced.
92304         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
92305         whatever the type happens to be), for brevity and consistency.
92306         Check for size calculation overflow on Alphas running OSF/1.
92307
92308 2003-10-31  Jim Meyering  <jim@meyering.net>
92309
92310         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
92311
92312         * lib/linebuffer.c: Include <string.h> for declaration of memset.
92313
92314 2003-10-30  Paul Eggert  <eggert@twinsun.com>
92315             Bruno Haible  <bruno@clisp.org>
92316
92317         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
92318         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
92319
92320 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
92321
92322         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
92323         netbsd*-gnu*.  Suggested by Robert Millan.
92324
92325 2003-10-29  Paul Eggert  <eggert@twinsun.com>
92326
92327         * modules/group-member: Depend on stdbool.
92328
92329 2003-10-29  Paul Eggert  <eggert@twinsun.com>
92330
92331         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
92332
92333 2003-10-29  Paul Eggert  <eggert@twinsun.com>
92334
92335         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
92336         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
92337         after the 'gnu' in these cases.  This fixes some bugs in the
92338         previous change, and is based on suggestions by Robert Millan.
92339
92340 2003-10-29  Paul Eggert  <eggert@twinsun.com>
92341
92342         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
92343         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
92344         no longer needed.
92345         * lib/quotearg.c (quotearg_n_options): Use it.
92346         * lib/group-member.c: Include <stdbool.h>.
92347         (free_group_info): Arg is now const *; don't free arg.
92348         (get_group_info): Now returns bool and accepts struct group_info *,
92349         rather than returning a malloc'ed struct group_info *.
92350         All uses changed.  Check for overflow in internal size calculation.
92351
92352         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
92353         rather than xmalloc/xrealloc.
92354         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
92355         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
92356         conformance bug: the old code used a pointer after freeing the
92357         storage that it addressed.
92358         * lib/hash.c (hash_initialize): Simplify the code by using
92359         xalloc_oversized rather than doing it by hand.
92360         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
92361         the buffer preserved.  Use free and xmalloc instead.
92362         * lib/quotearg.c (quotearg_n_options): Likewise.
92363         Use a simpler test for size overflow.  Don't use xalloc_oversized
92364         because unsigned int might be wider than size_t (!); this suggests
92365         that we should switch from unsigned int to size_t for slot numbers.
92366
92367 2003-10-28  Paul Eggert  <eggert@twinsun.com>
92368
92369         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
92370         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
92371         NetBSD kernels.  Requested by Richard Stallman.
92372
92373 2003-10-27  Paul Eggert  <eggert@twinsun.com>
92374
92375         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
92376         to allocate the returned structure.  Do not allocate a subarray,
92377         as x2nrealloc will do that.
92378         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
92379         instead of xnrealloc.
92380         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
92381
92382 2003-10-27  Bruno Haible  <bruno@clisp.org>
92383
92384         * lib/stdbool_.h: Better support for BeOS.
92385
92386 2003-10-26  Paul Eggert  <eggert@twinsun.com>
92387
92388         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
92389         now uses inline.
92390
92391 2003-10-26  Paul Eggert  <eggert@twinsun.com>
92392
92393         * lib/xalloc.h (xalloc_oversized): New static inline function, for
92394         callers that want to do their own size-overflow checking.  Include
92395         <stdbool.h>, since xalloc_oversized returns bool.
92396         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
92397         to use xalloc_oversized.
92398
92399         Add two functions x2realloc, x2nrealloc, for programs that grow
92400         arrays dynamically by doubling their sizes.
92401         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
92402         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
92403         New functions.
92404
92405         Port to C99 semantics for 'inline' of external functions.
92406         Bug reported by Bruno Haible.
92407         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
92408         with the old contents of xnmalloc.
92409         (xnmalloc, xmalloc): Use it.
92410         (xnrealloc_inline): New static inline function,
92411         with the old contents of xnrealloc.
92412         (xnrealloc, xrealloc): Use it.
92413
92414         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
92415         that.
92416
92417 2003-10-26  Karl Berry  <karl@gnu.org>
92418
92419         * config/srclist.txt (COPYING.DOC): no longer available from
92420         /gd/gnuorg; don't know where the ultimate source is.
92421
92422 2003-10-25  Paul Eggert  <eggert@twinsun.com>
92423
92424         Fix several address-calculation bugs in the hash modules,
92425         plus some minor code cleanup.
92426
92427         * lib/hash.h: Include <stdbool.h>, for bool.
92428         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
92429         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
92430         hash_get_n_entries, hash_get_max_bucket_length,
92431         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
92432         hash_rehash): Use size_t rather than unsigned.
92433         * lib/hash.c (struct hash_table, hash_get_n_buckets,
92434         hash_get_n_buckets_used, hash_get_n_entries,
92435         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
92436         hash_get_entries, hash_do_for_each, hash_string, is_prime,
92437         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
92438         Likewise.
92439         (SIZE_MAX): Define if not defined.
92440         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
92441         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
92442         hash_print):
92443         Use const * when possible.
92444         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
92445         (check_tuning): Fix bug: if tuning parameters were very close to
92446         0 or 1, rounding errors could have caused subscript violations.
92447         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
92448         (hash_initialize): Add 'fail:' label
92449         to free table and return NULL, and use it to simplify code.
92450         Use calloc rather than clearing the storage ourself.
92451         (hash_initialize, hash_rehash): Check for arithmetic overflow in
92452         buffer size calculations.
92453         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
92454         Include <stddef.h>, for size_t.
92455         * lib/hash-pjw.c (hash_pjw): Likewise.
92456         Switch to method described by Bruno Haible.
92457         Include <limits.h>, for CHAR_BIT.
92458         (SIZE_BITS): New macro.
92459
92460 2003-10-23  Paul Eggert  <eggert@twinsun.com>
92461
92462         * m4/getline.m4 (AM_FUNC_GETLINE):
92463         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
92464         hosts.  Problem reported by Derek Robert Price in
92465         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
92466         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
92467         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
92468
92469 2003-10-21  Paul Eggert  <eggert@twinsun.com>
92470
92471         * lib/getndelim2.c (getndelim2): When size calculation overflows,
92472         ceiling the allocation at NMAX bytes rather than silently
92473         discarding input bytes before NMAX is reached.  This makes
92474         a difference only if NMAX exceeds SIZE_MAX / 2.
92475
92476         * lib/obstack.c: Merge from glibc.
92477         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
92478         Add libc_hidden_def (_obstack_newchunk).
92479         (_obstack_free) [! defined _LIBC]: Remove.
92480         [defined _LIBC]: Make a strong alias from obstack_free, rather than
92481         a clone of the function body.
92482         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
92483         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
92484
92485         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
92486         glibc.
92487         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
92488         arg to memcpy.
92489
92490         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
92491         (obstack_ptr_grow_fast, obstack_int_grow_fast):
92492         Don't use lvalue casts, as GCC plans to remove support for them
92493         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
92494         was also present in the non-GCC version, indicating that this
92495         code had always been buggy and had never been widely used.
92496         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
92497         Use the fast variant of each macro, rather than copying the
92498         definiens of the fast variant; that way, we'll be more likely to
92499         catch future bugs in the fast variants.
92500
92501 2003-10-20  Bruno Haible  <bruno@clisp.org>
92502
92503         * modules/wait-process: New file.
92504         * MODULES.html.sh (func_all_modules): Add wait-process.
92505
92506 2003-10-20  Bruno Haible  <bruno@clisp.org>
92507
92508         * m4/wait-process.m4: New file.
92509
92510 2003-10-20  Bruno Haible  <bruno@clisp.org>
92511
92512         * lib/wait-process.h: New file, from GNU gettext.
92513         * lib/wait-process.c: New file, from GNU gettext.
92514
92515 2003-10-19  Jim Meyering  <jim@meyering.net>
92516
92517         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
92518         HPUX 10.20.
92519
92520 2003-10-18  Karl Berry  <karl@gnu.org>
92521
92522         * config/config.guess: update from config.
92523
92524 2003-10-16  Paul Eggert  <eggert@twinsun.com>
92525
92526         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
92527         (getgroups): First arg is int, not size_t.
92528         Don't let 'free' mangle errno.
92529
92530 2003-10-16  Paul Eggert  <eggert@twinsun.com>
92531
92532         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
92533
92534 2003-10-16  Karl Berry  <karl@gnu.org>
92535
92536         * config/config.{guess,sub}: update from config.
92537
92538 2003-10-16  Jim Meyering  <jim@meyering.net>
92539
92540         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
92541         memcpy.
92542
92543 2003-10-15  Paul Eggert  <eggert@twinsun.com>
92544
92545         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
92546         (SIZE_MAX): Remove.
92547         (new_exclude, add_exclude_file): Initial size no longer needs to
92548         be a power of 2.
92549         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
92550         our own address arithmetic overflow checking.
92551
92552         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
92553         (fnmatch): Do not alloca more than 2000 wide characters;
92554         instead, use malloc for large buffers.
92555         Check for address arithmetic overflow, and return -1
92556         with errno set to ENOMEM in that case.
92557         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
92558         (NEW_PATTERN): Do not alloca more than 8000 bytes;
92559         instead, return -1.  Check for address arithmetic overflow.
92560
92561 2003-10-14  Paul Eggert  <eggert@twinsun.com>
92562
92563         Handle invalid suffixes and overflow independently, so that
92564         callers can treat them independently as needed.  Fix some bugs in
92565         suffix handling, e.g., "100k@" was not diagnosed as an invalid
92566         suffix for a human-readable blocksize.  The major caller-visible
92567         change is the addition of a new
92568         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
92569         that both overflow and suffix chars were found.
92570
92571         * lib/human.c (humblock): Don't check separately for invalid suffix
92572         char; that is xstrtoumax's job (now that its bug is fixed).
92573         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
92574         INTMAX_MAX]: New macros.
92575         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
92576         TYPE_MAXIMUM): New macros.
92577         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
92578         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
92579         if overflow occurs, as it's what __strtol does and it's more useful
92580         in practice.
92581         (__xstrtol): If __strtol reports some error other than ERANGE,
92582         reflect it to the caller as LONGINT_INVALID.  If it reports
92583         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
92584         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
92585         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
92586         value.
92587         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
92588         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
92589         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
92590         [defined UINTMAX_MAX]: New macros.
92591
92592 2003-10-14  Bruno Haible  <bruno@clisp.org>
92593
92594         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
92595
92596 2003-10-14  Bruno Haible  <bruno@clisp.org>
92597
92598         * m4/sig_atomic_t: New file, from GNU gettext.
92599         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
92600
92601 2003-10-14  Bruno Haible  <bruno@clisp.org>
92602
92603         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
92604         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
92605         Also use volatile where needed.
92606
92607 2003-10-12  Paul Eggert  <eggert@twinsun.com>
92608
92609         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
92610         Change maintainer from Bruno Haible to 'all'.
92611
92612 2003-10-12  Paul Eggert  <eggert@twinsun.com>
92613
92614         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
92615
92616 2003-10-12  Paul Eggert  <eggert@twinsun.com>
92617
92618         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
92619         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
92620         and define in terms of the other primitives.
92621         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
92622         (SIZE_MAX): Define if not already defined.
92623         (array_size_overflow): New function.
92624         (xalloc_die): Abort instead of exiting if 'error' returns.
92625         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
92626         (xmalloc, xrealloc): Use them.
92627         (xcalloc): Check for address arithmetic overflow.
92628         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
92629         a bit faster than strcpy.
92630
92631 2003-10-10  Simon Josefsson  <jas@extundo.com>
92632
92633         * modules/argp (Depends-on): Add restrict and strcase.
92634
92635 2003-10-10  Simon Josefsson  <jas@extundo.com>
92636
92637         * m4/argp.m4: Add AC_C_INLINE.
92638
92639 2003-10-08  Paul Eggert  <eggert@twinsun.com>
92640
92641         Merge getpass from libc, plus a few fixes.
92642
92643         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
92644         Include <stdbool.h>.
92645         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
92646         __fsetlocking to empty.
92647         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
92648         do include <bits/libc-lock.h>.
92649         Do not include <fcntl.h>; not needed.
92650         [_LIBC]: Include <wchar.h>.
92651         (NOTCANCEL_MODE): New macro.
92652         (flockfile, funlockfile) [_LIBC]: New macros.
92653         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
92654         [!_LIBC]: New macros.
92655         (call_fclose): New function.
92656         (getpass): Use it.  Save tty stream separately; this simplifies the
92657         code and makes it more reliable if stdin happens to equal stdout.
92658         Invoke __fsetlocking on tty.
92659         Handle thread cancellation if needed.
92660         Namespace cleanup (use __tcgetattr, __getline).
92661         Use bool for Booleans.
92662         [USE_IN_LIBIO]: Handle wide streams.
92663         [!_LIBC]: Unconditionally do the fseek, since we don't know what
92664         stream might go where.
92665
92666         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
92667         doesn't have to include <stdio.h> before us.
92668         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
92669         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
92670         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
92671         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
92672         if not declared, so that we can use getpass.c code from libc without
92673         rewriting it.
92674         (flockfile, ftrylockfile, funlockfile): New macros.
92675
92676 2003-10-08  Paul Eggert  <eggert@twinsun.com>
92677
92678         * modules/getpass: Depend on stdbool.
92679
92680 2003-10-08  Paul Eggert  <eggert@twinsun.com>
92681
92682         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
92683
92684 2003-10-07  Karl Berry  <karl@gnu.org>
92685
92686         * config/config.{guess,sub}: update from config.
92687
92688 2003-10-06  Jim Meyering  <jim@meyering.net>
92689             Bruno Haible  <bruno@clisp.org>
92690
92691         This lets translators provide better translations for the
92692         "Written by ..." part of --version output.
92693         * lib/version-etc.h: Include stdarg.h.
92694         (version_etc_copyright): Declare as readonly.
92695         (version_etc): Make this function variadic with a NULL-terminated list
92696         of author name strings.
92697         (version_etc_va): New declaration.
92698         * lib/version-etc.c: Include stdarg.h, stdlib.h.
92699         (version_etc_copyright): Declare as readonly.
92700         (version_etc_va): New function. Provide a different translatable string
92701         for each possible number of authors < 10. Abbreviate when there are 10
92702         authors or more.
92703         (version_etc): Make this function variadic. Call version_etc_va.
92704         Suggestion from Gary V. Vaughan.
92705
92706         * lib/long-options.h (parse_long_options): Change prototype: the
92707         authors string is moved to the end and becomes variadic.
92708         * lib/long-options.c: Include stdarg.h.
92709         (parse_long_options): Make this function variadic, too.
92710         Call version_etc_va, not version_etc.
92711
92712 2003-10-06  Bruno Haible  <bruno@clisp.org>
92713
92714         * modules/version-etc-2: Remove file.
92715         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
92716
92717 2003-10-06  Bruno Haible  <bruno@clisp.org>
92718
92719         * modules/fatal-signal: New file.
92720         * MODULES.html.sh (func_all_modules): Add fatal-signal.
92721
92722 2003-10-06  Bruno Haible  <bruno@clisp.org>
92723
92724         * m4/fatal-signal.m4: New file.
92725         * m4/signalblocking.m4: New file, from GNU gettext.
92726
92727 2003-10-06  Bruno Haible  <bruno@clisp.org>
92728
92729         * lib/version-etc-2.h: Remove file.
92730         * lib/version-etc-2.c: Remove file.
92731
92732 2003-10-06  Bruno Haible  <bruno@clisp.org>
92733
92734         * lib/fatal-signal.h: New file, from GNU gettext.
92735         * lib/fatal-signal.c: New file, from GNU gettext.
92736
92737 2003-10-05  Paul Eggert  <eggert@twinsun.com>
92738
92739         * README: Rework advice for preventing empty .o files.
92740         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
92741         not <sys/types.h>.
92742
92743 2003-10-04  Karl Berry  <karl@gnu.org>
92744
92745         * lib/argp*: update from libc.
92746
92747 2003-10-04  Karl Berry  <karl@gnu.org>
92748
92749         * config/config.{guess,sub}: update from config.
92750
92751 2003-10-02  Bruno Haible  <bruno@clisp.org>
92752
92753         * modules/lchown (Include): Add lchown.h.
92754         * modules/time_r (Include): Use "..." syntax.
92755         * modules/xgetdomainname (Include): Add xgetdomainname.h.
92756
92757 2003-10-01  Simon Josefsson  <jas@extundo.com>
92758
92759         * MODULES.html.sh (func_all_modules): Move gethostname from section
92760         'based on' to section 'lacking' POSIX:2001.
92761
92762 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
92763
92764         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
92765         to output mode on the same stream.
92766
92767 2003-09-29  Paul Eggert  <eggert@twinsun.com>
92768
92769         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
92770         Fix arg typo in previous patch.
92771
92772 2003-09-28  Jim Meyering  <jim@meyering.net>
92773
92774         * lib/error.c: Correct cpp indentation.
92775
92776 2003-09-27  Paul Eggert  <eggert@twinsun.com>
92777
92778         * modules/free: New file.
92779
92780 2003-09-27  Paul Eggert  <eggert@twinsun.com>
92781
92782         * m4/free.m4: New file.
92783
92784 2003-09-27  Paul Eggert  <eggert@twinsun.com>
92785
92786         * lib/minmax.h (MIN, MAX)
92787         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
92788         Omit the special code that used __typeof__, since we worry that
92789         it could be more trouble than it's worth.  See:
92790         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
92791         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
92792
92793         * lib/free.c: New file.
92794
92795 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
92796
92797         Trivial fixes to Makefile.am parts of module listings.
92798         * modules/strstr: Append strstr.h to lib_SOURCES.
92799         * modules/strcase: Likewise, for strcase.h.
92800
92801 2003-09-27  Karl Berry  <karl@gnu.org>
92802
92803         * config/mkinstalldirs: update from automake.
92804
92805 2003-09-26  Paul Eggert  <eggert@twinsun.com>
92806
92807         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
92808         (error_tail): Do not loop, reallocating temporary buffer, since
92809         the output cannot contain more wide characters than the input
92810         contains bytes, the size must be big enough already.  This avoids
92811         one potential size overflow calculation.  Check for size overflow
92812         when calculating temporary buffer size.  Free temporary buffer
92813         when done, if it was allocated with malloc; this plugs a memory
92814         leak.  Remove casts from void * to pointers, that are no longer
92815         needed now that we're assuming C89 or better.
92816
92817         Merge error changes from glibc.
92818
92819         * lib/error.c, error.h: Update copyright notice header to match glibc.
92820         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
92821         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
92822         Disable cancellation while printing error.
92823         * lib/error.h: Prepend __ to parameter names.
92824
92825 2003-09-26  Jim Meyering  <jim@meyering.net>
92826
92827         * lib/error.c (error_tail): Move some declarations
92828         into inner scope where the local variables are used.
92829
92830 2003-09-26  Bruno Haible  <bruno@clisp.org>
92831
92832         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
92833         stpncpy().
92834         Don't define stpncpy through config.h; it's now done through stpncpy.h.
92835
92836 2003-09-26  Bruno Haible  <bruno@clisp.org>
92837
92838         * lib/stpncpy.h (gnu_stpncpy): New declaration.
92839         (stpncpy): Define as alias for gnu_stpncpy.
92840         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
92841
92842 2003-09-25  Simon Josefsson  <jas@extundo.com>
92843
92844         * lib/xgetdomainname.h: New file.
92845         * lib/xgetdomainname.c: New file.
92846
92847 2003-09-25  Simon Josefsson  <jas@extundo.com>
92848             Bruno Haible  <bruno@clisp.org>
92849
92850         * modules/getdomainname: New file.
92851         * modules/xgetdomainname: New file.
92852         * MODULES.html.sh (func_all_modules): Add getdomainname,
92853         xgetdomainname.
92854
92855 2003-09-25  Simon Josefsson  <jas@extundo.com>
92856             Bruno Haible  <bruno@clisp.org>
92857
92858         * m4/getdomainname.m4: New file.
92859
92860 2003-09-25  Simon Josefsson  <jas@extundo.com>
92861             Bruno Haible  <bruno@clisp.org>
92862
92863         * lib/getdomainname.h: New file.
92864         * lib/getdomainname.c: New file.
92865
92866 2003-09-25  Karl Berry  <karl@gnu.org>
92867
92868         * lib/argp-fmtstream.c, argp-help.c: update from libc.
92869
92870 2003-09-25  Karl Berry  <karl@gnu.org>
92871
92872         * config/install-sh: update from automake.
92873
92874 2003-09-25  Bruno Haible  <bruno@clisp.org>
92875
92876         * modules/version-etc-2: New file, from modules/version-etc with
92877         modifications.
92878         * MODULES.html.sh (func_all_modules): Add version-etc-2.
92879
92880 2003-09-25  Bruno Haible  <bruno@clisp.org>
92881
92882         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
92883         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
92884
92885 2003-09-24  Simon Josefsson  <jas@extundo.com>
92886
92887         * modules/xgethostname: Add xgethostname.h.
92888
92889 2003-09-24  Paul Eggert  <eggert@twinsun.com>
92890
92891         * lib/linebuffer.c (freebuffer): Don't free the argument, just
92892         the buffer associated with the argument.  Bug reported by
92893         Simon Josefsson.
92894
92895 2003-09-24  Paul Eggert  <eggert@twinsun.com>
92896
92897         * README: Document assumptions that 'int' is at least 32 bits
92898         wide, that integer arithmetic is 2's complement without overflow,
92899         that there are no holes in integer values, that adding sizes of
92900         two nonoverlapping objects can't overflow, and that all-bits-zero
92901         yields scalar zero.  Fix spelling and capitalization typos.
92902
92903 2003-09-19  Karl Berry  <karl@gnu.org>
92904
92905         * lib/argp.h: update from libc.
92906
92907 2003-09-17  Paul Eggert  <eggert@twinsun.com>
92908
92909         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
92910         to avoid spurious warnings like "AC_RUN_IFELSE was called before
92911         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
92912
92913 2003-09-17  Paul Eggert  <eggert@twinsun.com>
92914
92915         * gnulib-tool: Use "test -h", not "test -L", for portability
92916         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
92917         (tags_regexp): Remove, since \| doesn't conform to POSIX.
92918         (sed_extract_prog): Issue s commands one-by-one, rather than
92919         using \| in one s command.
92920
92921 2003-09-16  Paul Eggert  <eggert@twinsun.com>
92922
92923         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
92924         input error, instead of returning NULL the next time we are called
92925         (and therefore losing track of errno).
92926
92927 2003-09-16  Bruno Haible  <bruno@clisp.org>
92928
92929         * gnulib-tool (func_create_testdir): Warn about duplicated
92930         dependencies.
92931
92932 2003-09-15  Paul Eggert  <eggert@twinsun.com>
92933
92934         * modules/argmatch, modules/fatal, modules/obstack,
92935         modules/xalloc, modules/xgethostname: Sort dependencies by
92936         importance, not alphabetically.
92937
92938 2003-09-15  Paul Eggert  <eggert@twinsun.com>
92939
92940         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
92941         fails, so that the caller gets the proper errno.
92942
92943         * lib/readutmp.c (read_utmp): Likewise.
92944         Check for fstat error.  Close stream and free storage
92945         when failing.
92946
92947 2003-09-14  Karl Berry  <karl@gnu.org>
92948
92949         * config/srclist.txt (strdup.c): disable for c89 changes.
92950
92951 2003-09-14  Jim Meyering  <jim@meyering.net>
92952
92953         * lib/getloadavg.c: Correct cpp indentation.
92954         * lib/strdup.c: Likewise.
92955         * lib/vasnprintf.c: Likewise.
92956
92957 2003-09-14  Bruno Haible  <bruno@clisp.org>
92958
92959         * modules/fwriteerror: New file.
92960         * MODULES.html.sh (func_all_modules): Add fwriteerror.
92961
92962 2003-09-14  Bruno Haible  <bruno@clisp.org>
92963
92964         * lib/fwriteerror.h: New file.
92965         * lib/fwriteerror.c: New file.
92966
92967 2003-09-12  Paul Eggert  <eggert@twinsun.com>
92968
92969         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
92970         modules/xgethostname, modules/xalloc: Depend on exit.
92971
92972 2003-09-12  Paul Eggert  <eggert@twinsun.com>
92973
92974         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
92975
92976         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
92977         and AC_MINIX, too, so that their extensions are available.
92978
92979         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
92980         This macro has been superseded by gl_BACKUPFILE.
92981
92982         More patches to assume C89 or better.
92983
92984         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
92985
92986         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
92987         unconditionally.
92988         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
92989         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
92990         Include <string.h>, <stdlib.h> unconditionally.
92991         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
92992         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
92993         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
92994         headers or for string.h.
92995         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
92996         or strtoul.
92997
92998         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
92999         headers.
93000         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
93001         * m4/userspec.m4 (gl_USERSPEC): Likewise.
93002         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
93003         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
93004         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
93005         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
93006         memcpy, memset.
93007         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
93008         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
93009         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
93010         strtol.
93011         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
93012         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
93013         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
93014         strtoul.
93015
93016 2003-09-12  Paul Eggert  <eggert@twinsun.com>
93017
93018         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
93019         * lib/obstack.c [!defined _LIBC]: Likewise.
93020         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
93021         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
93022         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
93023
93024         More changes to assume C89 or better.
93025
93026         * lib/error.c (error_tail): Assume vprintf.
93027
93028         * lib/argmatch.c (getenv): Remove decl.
93029         * lib/progreloc.c (get_full_program_name): Define via prototype.
93030         * lib/setenv.c (clearenv): Likewise.
93031         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
93032         needed.
93033         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
93034         (malloc, memcpy): Remove decls.
93035         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
93036         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
93037         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
93038         (memcpy): Remove macro.
93039         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
93040         (__P): Remove.  All uses removed.
93041         (PTR): Remove.  All uses changed to void *.
93042         (CHAR_BIT, NULL): Remove.
93043         (spaces, zeros, memset_space, memset_zero)
93044         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
93045         Remove.
93046         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
93047         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
93048         Define with prototype.
93049         Remove now-unnecessary prototype decl.
93050         (extra_args_spec): Assume ANSI C.  All uses changed.
93051         (extra_args_spec_iso): Remove.
93052         (my_strftime, emacs_strftimeu): Define via prototype.
93053         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
93054         unconditionally.
93055         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
93056         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
93057         (strtoul, strtol): Remove decls.
93058         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
93059         LONG_MAX): Remove.
93060         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
93061         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
93062         (LOCALE_PARAM_PROTO): New macro.
93063         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
93064         (INTERNAL (strtol), strtol): Define with a prototype.
93065         (PARAMS): Remove.  All uses removed.
93066         * lib/tempname.c: Include <string.h> unconditionally.
93067         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
93068         * lib/xgethostname.c (main): Define with a prototype.
93069         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
93070         Include <stdlib.h> unconditionally.
93071         (calloc, malloc, realloc, free): Remove decls.
93072         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
93073         Include <stdlib.h> unconditionally.  Sort include file names.
93074         (strtod): Remove.
93075         (xstrtod): Define with a prototype.
93076         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
93077         (strtol, strtoul): Remove decls.
93078
93079 2003-09-11  Paul Eggert  <eggert@twinsun.com>
93080
93081         More patches to assume C89 or better.
93082         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
93083         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
93084         string.h, memchr, STDC_HEADERS.
93085
93086 2003-09-11  Paul Eggert  <eggert@twinsun.com>
93087
93088         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
93089         Include <stdlib.h>, <string.h> unconditionally.
93090         Remove now-unnecessary cast to char *.
93091         * lib/strnlen.c: Include <string.h> unconditionally.
93092         * lib/yesno.c (yesno): Define with a prototype.
93093
93094 2003-09-11  Bruno Haible  <bruno@clisp.org>
93095
93096         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
93097
93098 2003-09-10  Jim Meyering  <jim@meyering.net>
93099
93100         * lib/error.c: Correct indentation of cpp directives.
93101
93102 2003-09-10  Bruno Haible  <bruno@clisp.org>
93103
93104         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
93105         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
93106         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
93107         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
93108         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
93109         <stdlib.h> and <string.h> checks.
93110         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
93111         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
93112
93113 2003-09-10  Bruno Haible  <bruno@clisp.org>
93114
93115         * lib/strcspn.c: Include <string.h> unconditionally.
93116         * lib/strpbrk.c: Include <string.h> unconditionally.
93117         * lib/strstr.c: Include <string.h> unconditionally.
93118         * lib/unicodeio.c: Include <string.h> unconditionally.
93119         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
93120         * lib/unsetenv.c: Likewise.
93121         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
93122         * lib/yesno.c: Include <stdlib.h> unconditionally.
93123         (rpmatch): Add prototype.
93124
93125 2003-09-09  Paul Eggert  <eggert@twinsun.com>
93126
93127         More patches to assume C89 or better.
93128         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
93129         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
93130         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
93131         or for string.h.
93132         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
93133         stdlib.h.
93134         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
93135         C headers.
93136         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
93137         string.h.
93138         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
93139         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
93140         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
93141         or for string.h.
93142         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
93143         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
93144         C headers.
93145         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
93146         memcpy.
93147         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
93148         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
93149         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
93150         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
93151         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
93152         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
93153         string.h, free.
93154         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
93155         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
93156         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
93157         C headers, or for string.h.
93158         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
93159         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
93160         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
93161         headers, memory.h, stdlib.h, string.h, strings.h.
93162         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
93163         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
93164         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
93165         strchr.
93166         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
93167         headers, memory.h, string.h.
93168         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
93169         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
93170         free.
93171         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
93172         headers.
93173         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
93174         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
93175         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
93176         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
93177         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
93178
93179 2003-09-09  Paul Eggert  <eggert@twinsun.com>
93180
93181         More K&R removal.
93182
93183         * lib/acosl.c (main): Use a prototype.
93184         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
93185         tanl.c: Likewise.
93186
93187         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
93188
93189         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
93190         (getopt, etopt_long, getopt_long_only, _getopt_internal)
93191         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
93192         with a prototype.
93193         * lib/getopt.c (const): Remove macro.
93194         Include <string.h> unconditionally.
93195         (my_index): Remove; all uses changed to strchr.
93196         (strlen): Remove decl.
93197         (exchange): Remove forward decl; no longer needed.
93198         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
93199         Define with prototype.
93200         * lib/getopt1.c (const): Remove macro.
93201         (getopt_long, getopt_long_only, main): Define with prototype.
93202
93203         * lib/getugroups.c: Include <string.h> unconditionally.
93204
93205         * lib/getusershell.c: Include <stdlib.h> unconditionally.
93206         (getusershell, setusershell, endusershell, readname, main):
93207         Define with prototypes.
93208
93209         * lib/group-member.c: Include group-member.h first.
93210         Include <stdlib.h> unconditionally.
93211
93212         * lib/hard-locale.c: Include hard-locale.h first.
93213         Include <stdlib.h>, <string.h> unconditionally.
93214
93215         * lib/hash.c (free, malloc): Remove decls.
93216         Include <stdlib.h> unconditionally.
93217
93218         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
93219         (getenv): Do not declare.
93220
93221         * lib/idcache.c: Include <string.h> unconditionally.
93222
93223         * lib/long-options.c: Include long-options.h first, to test interface.
93224         Include <stdlib.h> unconditionally.
93225
93226         * lib/makepath.c: Include makepath.h first, to test interface.
93227         Include <stdlib.h> and <string.h> unconditionally.
93228
93229         * lib/linebuffer.c: Include <stdlib.h>.
93230         (free): Remove decl.
93231
93232         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
93233         stddef.h. rpl_malloc returns void *, not char *.
93234         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
93235         prototype.
93236
93237         * lib/md5.h: Include <limits.h> unconditionally.
93238         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
93239         (__P): Remove; all uses removed.
93240         * lib/md5.c: Include "md5.h" first.
93241         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
93242         md5_buffer, md5_process_bytes, md5_process_block):
93243         Define with prototypes.
93244         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
93245         * lib/sha.c: Include "sha.h" first.
93246         Include <stdlib.h>, <string.h> unconditionally.
93247
93248         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
93249         * lib/memcmp.c (__ptr_t): Likewise.
93250         * lib/memrchr.c (__ptr_t): Likewise.
93251         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
93252         Include <string.h> unconditionally.
93253         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
93254         * lib/memchr.c: Include <stdlib.h> unconditionally.
93255         * lib/memchr.c (LONG_MAX): Remove.
93256         * lib/memrchr.c (LONG_MAX): Likewise.
93257         * lib/memchr.c (__memchr): Define via a prototype.
93258         * lib/memrchr.c (__memrchr): Likewise.
93259         * lib/memcmp.c (__P): Remove, and remove all uses.
93260         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
93261         Remove forward decls; no longer needed.
93262         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
93263         Use types required by C89 in prototype.
93264
93265         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
93266         * lib/savedir.c: Likewise.
93267         * lib/mkdir.c (free): Remove decl.
93268         * lib/rmdir.c (rmdir): Define with a prototype.
93269         * lib/savedir.c: Include savedir.h first, to test interface.
93270
93271         * lib/mktime.c (STDC_HEADERS): Remove.
93272         Include <stdlib.h>, <string.h> unconditionally.
93273
93274         * lib/modechange.c: Include <stdlib.h> unconditionally.
93275         (malloc): Remove decl.
93276
93277         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
93278         (free): Remove decl.
93279
93280         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
93281         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
93282         (This type really should be intptr_t, but that's a C99ism.)
93283         (_obstack_memcpy): Remove: all uses changed to memcpy.
93284         Include <string.h> unconditionally.
93285         (struct obstack): Assume __STDC__ for types of members
93286         chunkfun, freefun, extra_arg.
93287         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
93288         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
93289         obstack_begin, obstack_specify_allocation,
93290         obstack_specify_allocation_with_arg, obstack_chunkfun,
93291         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
93292         Remove unprototyped decls and the macros that use them.
93293         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
93294         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
93295         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
93296         (defined __STDC__ && __STDC__)]:
93297         Remove nonprototyped code.
93298         Include <stdlib.h> unconditionally.
93299         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
93300         _obstack_allocated_p, _obstack_free, obstack_free,
93301         _obstack_memory_used, print_and_abort):
93302         Define using prototypes.
93303         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
93304         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
93305         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
93306         obstack_next_free, obstack_object_size, obstack_room) [0]:
93307         Remove unused, unprototyped code.
93308
93309         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
93310
93311         * lib/physmem.c (physmem_total, physmem_available, main): Define
93312         with prototypes.
93313
93314         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
93315         (main): Define with a prototype.
93316
93317         * lib/posixver.c (getenv): Remove decl.
93318
93319         * lib/putenv.c (malloc): Returns void *, not char *.
93320         Include <string.h> unconditionally.
93321         (strchr, memcpy, NULL): Do not define.
93322
93323         * lib/readtokens.c: Include readtokens.h first, to test interface.
93324         Include <stdlib.h>, <string.h> unconditionally.
93325         (init_tokenbuffer): Define with a prototype.
93326
93327         * lib/regex.c (PARAMS): Remove.  All uses removed.
93328         All uses of _RE_ARGS removed, too.
93329         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
93330         unconditionally.
93331         (bzero): Assume memset exists.
93332         (memcmp, memcpy, NULL): Remove.
93333         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
93334         char, or assignments to local vars of type signed char.
93335         (init_syntax_once, PREFIX(extract_number_and_incr),
93336         PREFIX(print_partial_compiled_pattern),
93337         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
93338         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
93339         PREFIX(regex_grow_registers), PREFIX(regex_compile),
93340         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
93341         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
93342         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
93343         wcs_compile_range, byte_compile_range, truncate_wchar,
93344         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
93345         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
93346         count_mbs_length, wcs_re_match_2_internal,
93347         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
93348         PREFIX(alt_match_null_string_p),
93349         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
93350         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
93351         regfree, PREFIX(extract_number)): Define with prototype.  Remove
93352         now-unnecessary declaration, if any.
93353         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
93354         regcomp, regexec):
93355         Remove now-unnecessary casts among pointer types.
93356         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
93357
93358         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
93359         (free): Remove decl.
93360
93361         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
93362
93363         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
93364         (free): Remove decl.
93365
93366         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
93367         * lib/xgetcwd.c: Likewise.
93368
93369         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
93370         (free): Remove decl.
93371
93372         * lib/strchrnul.c (strchrnul): Define with a prototype.
93373         Fix bug: c_in was not converted to char before searching.
93374
93375         The following changes are not K&R related:
93376
93377         * lib/group-member.h: Include <sys/types.h>, so that this file is
93378         self-contained.
93379         * lib/makepath.h: Likewise.
93380
93381         * lib/getusershell.c (readname, default_index, line_size, readname):
93382         Use size_t, not int, for sizes.
93383         (readname): If the size overflows, report an error instead of
93384         looping forever.
93385
93386 2003-09-09  Paul Eggert  <eggert@twinsun.com>
93387
93388         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
93389         libc.
93390
93391 2003-09-09  Paul Eggert  <eggert@twinsun.com>
93392
93393         * README: New section: portability guidelines.
93394
93395 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
93396
93397         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
93398         C89 spec.
93399
93400 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
93401
93402         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
93403
93404 2003-09-08  Paul Eggert  <eggert@twinsun.com>
93405
93406         Assume C89 or better; remove K&R cruft.
93407         A few of these changes were first proposed by Derek Robert Price
93408         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
93409
93410         * lib/addext.c: Include <string.h> unconditionally.
93411         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
93412         Don't declare getenv or malloc.
93413
93414         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
93415         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
93416         (NULL): Remove.
93417         (find_stack_direction, alloca): Use prototypes.
93418
93419         * lib/atexit.c (atexit): Define using a prototype.
93420
93421         * lib/basename.c, dirname.c, stripslash.c:
93422         Include <string.h> unconditionally.
93423
93424         * lib/bcopy.c: Include <stddef.h>.
93425         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
93426
93427         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
93428
93429         * lib/error.h (error, error_at_line, error_print_progname)
93430         [! (defined (__STDC__) && __STDC__)]: Remove decls.
93431         * lib/error.c: Include error.h first, to check interface.
93432         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
93433         (VA_START): Remove; all uses changeed to va_start.
93434         (exit, strerror): Remove decls.
93435         (error_print_progname): Prototype uncondionally.
93436         Don't include <errno.h>; no longer needed.
93437         (private_strerror): Remove.
93438         (error_tail): Always define.
93439         (error, error_at_line): Assume C89 or better; always use prototypes.
93440         * lib/fatal.c: Include "fatal.h" first, to test interface.
93441         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
93442         (VA_START): Remove; all uses changed to va_start.
93443         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
93444         this case.
93445         (exit): Remove decl.
93446         (fatal): Prototype unconditionally.  Assume va_start works.
93447         Abort at end, to pacify gcc.
93448
93449         * lib/euidaccess.c (main): Define with a prototype.
93450
93451         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
93452
93453         * lib/exitfail.c: Include <stdlib.h> unconditionally.
93454
93455         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
93456         prototypes.
93457         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
93458         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
93459         (getenv): Remove decl.
93460         (fnmatch): Define using a prototype.
93461         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
93462         (FCT): Define using a prototype.
93463
93464         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
93465
93466         * lib/gethostname.c: Include <stddef.h>.
93467         (gethostname): Define with prototype.  Length is size_t, not int.
93468
93469 2003-09-08  Paul Eggert  <eggert@twinsun.com>
93470
93471         Assume C89 or better; remove K&R cruft.
93472         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
93473         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
93474         string.h, getenv, malloc.
93475         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
93476         headers.
93477         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
93478         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
93479         do not check for strerror.
93480         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
93481         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
93482         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
93483         do not check for doprnt or vprintf.
93484         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
93485         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
93486
93487 2003-09-08  Paul Eggert  <eggert@twinsun.com>
93488
93489         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
93490         getversion.c should have been removed then, but was accidentally
93491         preserved.
93492
93493         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
93494         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
93495
93496 2003-09-08  Karl Berry  <karl@gnu.org>
93497
93498         * config/config.sub, config.guess, srclistvars.sh: update from savannah
93499                 config, forget about prep.
93500
93501         * config/depcomp, missing: update from automake.
93502
93503 2003-09-07  Paul Eggert  <eggert@twinsun.com>
93504
93505         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
93506         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
93507
93508 2003-09-07  Paul Eggert  <eggert@twinsun.com>
93509
93510         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
93511         copy_tm_result.  Bug reported by Simon Josefsson in
93512         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
93513
93514 2003-09-06  Paul Eggert  <eggert@twinsun.com>
93515
93516         * m4/time_r.m4: New file.
93517         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
93518         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
93519         is. Check for timegm declaration.
93520         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
93521         Do not check for gmtime_r.
93522         Replace mktime if __mktime_internal does not exist and if mktime
93523         hasn't been replaced already.
93524
93525 2003-09-06  Paul Eggert  <eggert@twinsun.com>
93526
93527         * lib/time_r.c, lib/time_r.h: New files.
93528
93529         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
93530         __localtime_r.
93531         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
93532         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
93533
93534         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
93535         __gmtime_r.
93536         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
93537         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
93538         Include <time_r.h>.
93539
93540         * lib/timegm.c: Switch to glibc implementation, with the following
93541         changes:
93542         [defined HAVE_CONFIG_H]: Include <config.h>.
93543         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
93544         (__mktime_internal) [!defined _LIBC]: New decl.
93545         (__gmtime_r) [!defined _LIBC]: New macro and function.
93546         (timegm): Use a prototype, since gnulib assumes C89.
93547         Do not bother declaring tmp to be const, as it's not really usefu.
93548         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
93549         (timegm): Declare only if HAVE_DECL_TIMEGM.
93550
93551 2003-09-06  Paul Eggert  <eggert@twinsun.com>
93552
93553         * MODULES.html.sh (func_all_modules): Add time_r.
93554         * modules/time_r: New file.
93555         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
93556         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
93557
93558 2003-09-03  Paul Eggert  <eggert@twinsun.com>
93559
93560         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
93561         Bug reported by Lute Kamstra in
93562         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
93563
93564         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
93565         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
93566         course with correspondingly smaller numbers for tomorrow and
93567         yesterday.  From Tadayoshi Funaba.  Originally installed into
93568         sh-utils on 1999-08-07, but the patch got lost (I guess during the
93569         coreutils merge?).
93570
93571 2003-08-31  Simon Josefsson  <jas@extundo.com>
93572
93573         * modules/timegm: New file.
93574         * MODULES.html.sh (func_all_modules): Add timegm.
93575
93576 2003-08-31  Simon Josefsson  <jas@extundo.com>
93577
93578         * m4/timegm.m4: New file.
93579
93580 2003-08-31  Simon Josefsson  <jas@extundo.com>
93581
93582         * lib/timegm.h: New file.
93583         * lib/timegm.c: New file.  Based on
93584         wget-1.8.2/src/http.c:mktime_from_utc.
93585
93586 2003-08-31  Karl Berry  <karl@gnu.org>
93587
93588         * lib/argp.h: update from libc.
93589
93590 2003-08-28  Bruno Haible  <bruno@clisp.org>
93591
93592         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
93593         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
93594         followed by '#define fnmatch fnmatch_posix' gives an error.
93595
93596 2003-08-28  Bruno Haible  <bruno@clisp.org>
93597
93598         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
93599         warning on QNX, which defines O_BINARY to 000000.
93600
93601 2003-08-27  Jim Meyering  <jim@meyering.net>
93602
93603         * m4/mkstemp.m4: Require that the system mkstemp be able to create
93604         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
93605         would fail after 32.  Reported by Danny Levinson.  Details here:
93606         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
93607
93608 2003-08-24  Bruno Haible  <bruno@clisp.org>
93609
93610         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
93611         MSVC7 <stdio.h> is included later.
93612
93613 2003-08-22  Simon Josefsson  <jas@extundo.com>
93614
93615         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
93616
93617 2003-08-20  Karl Berry  <karl@gnu.org>
93618
93619         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
93620
93621 2003-08-20  Bruno Haible  <bruno@clisp.org>
93622
93623         * modules/progname: New file.
93624         * MODULES.html.sh (func_all_modules): Add progname.
93625
93626 2003-08-20  Bruno Haible  <bruno@clisp.org>
93627
93628         * lib/progname.h: New file, from GNU gettext.
93629         * lib/progname.c: New file, from GNU gettext.
93630         * lib/progreloc.c: New file, from GNU gettext.
93631
93632 2003-08-19  Jim Meyering  <jim@meyering.net>
93633
93634         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
93635         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
93636
93637 2003-08-19  Bruno Haible  <bruno@clisp.org>
93638
93639         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
93640         more.
93641
93642 2003-08-19  Bruno Haible  <bruno@clisp.org>
93643
93644         * lib/xstrdup.c: Assume <string.h> exists.
93645
93646 2003-08-18  Paul Eggert  <eggert@twinsun.com>
93647
93648         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
93649         in makefile rules.
93650
93651 2003-08-18  Jim Meyering  <jim@meyering.net>
93652
93653         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
93654         * m4/lib-ld.m4: Likewise.
93655
93656 2003-08-18  Jim Meyering  <jim@meyering.net>
93657
93658         * lib/setenv.h: Indent nested cpp directive.
93659         * lib/vasnprintf.c: Remove trailing blanks.
93660
93661 2003-08-17  Simon Josefsson  <jas@extundo.com>
93662
93663         * modules/xstrndup: New file.
93664         * MODULES.html.sh (func_all_modules): Add xstrndup.
93665
93666 2003-08-17  Simon Josefsson  <jas@extundo.com>
93667
93668         * modules/argp: Fix autoconf macro name. Add more dependencies.
93669
93670 2003-08-17  Simon Josefsson  <jas@extundo.com>
93671
93672         * m4/xstrndup.m4: New file.
93673
93674 2003-08-17  Simon Josefsson  <jas@extundo.com>
93675
93676         * m4/argp.m4: New file.
93677
93678 2003-08-17  Simon Josefsson  <jas@extundo.com>
93679             Bruno Haible  <bruno@clisp.org>
93680
93681         * lib/xstrndup.h: New file.
93682         * lib/xstrndup.c: New file.
93683
93684 2003-08-17  Bruno Haible  <bruno@clisp.org>
93685
93686         * modules/strndup (Files, Include): Add lib/strndup.h.
93687
93688 2003-08-17  Bruno Haible  <bruno@clisp.org>
93689
93690         * modules/euidaccess (Files): Add lib/euidaccess.h.
93691
93692 2003-08-17  Bruno Haible  <bruno@clisp.org>
93693
93694         * lib/strndup.h: New file.
93695
93696 2003-08-17  Bruno Haible  <bruno@clisp.org>
93697
93698         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
93699         like AC_GNU_SOURCE.
93700         * modules/extensions (configure.ac): Comment out the invocation of
93701         gl_USE_SYSTEM_EXTENSIONS.
93702
93703 2003-08-16  Paul Eggert  <eggert@twinsun.com>
93704
93705         Merges from coreutils, etc.
93706         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
93707         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
93708         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
93709         fixing a typo.
93710         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
93711         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
93712
93713 2003-08-16  Paul Eggert  <eggert@twinsun.com>
93714
93715         Document merge from coreutils.
93716         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
93717         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
93718         * modules/utime: Add m4/utimes-null.m4.
93719
93720 2003-08-16  Paul Eggert  <eggert@twinsun.com>
93721
93722         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
93723         space, undoing this 2003-08-12 change:
93724         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
93725
93726 2003-08-16  Paul Eggert  <eggert@twinsun.com>
93727
93728         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
93729         strtoul.c from libc, undoing this 2003-08-12 change:
93730         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
93731
93732 2003-08-16  Jim Meyering  <jim@meyering.net>
93733
93734         Merges from coreutils.
93735         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
93736         prefix.  Adjust cache variables similarly.  Create 500 rather than
93737         just 300 files, to exercise bug on Darwin6.5, too.
93738         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
93739         $missing_dir.
93740         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
93741         AM_SYS_POSIX_TERMIOS.
93742         Reported by mkc@mathdogs.com.
93743         Also change use of $am_cv_sys_posix_termios
93744         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
93745         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
93746         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
93747         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
93748         in /proc/mounts until it finds one with matching device number.  This
93749         is unnecessary when the FILE argument *is* a mount point.  No stat call
93750         is necessary in that case.  So, disable the statvfs-testing code on
93751         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
93752         as RedHat bug# 84846.
93753         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
93754         to 1MB, so as not to render systems with no stack size limit (e.g.,
93755         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
93756         Include <unistd.h>.  On some systems,
93757         it is required for the definition of _SC_PAGESIZE.
93758
93759 2003-08-16  Jim Meyering  <jim@meyering.net>
93760
93761         Merge from coreutils.
93762         * lib/xstrtoimax.c: #else #if -> #elif.
93763         * lib/xstrtoumax.c: Likewise.
93764
93765 2003-08-16  Jim Meyering  <jim@meyering.net>
93766
93767         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
93768         * m4/utimes.m4: Removed.
93769         * m4/utimes-null.m4: Renamed from utimes.m4.
93770
93771         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
93772         to 1MB, so as not to render systems with no stack size limit (e.g.,
93773         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
93774         Include <unistd.h>.  On some systems,
93775         it is required for the definition of _SC_PAGESIZE.
93776
93777 2003-08-16  Jim Meyering  <jim@meyering.net>
93778         and Paul Eggert  <eggert@cs.ucla.edu>
93779
93780         Merges from coreutils, etc.
93781
93782         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
93783         using the latest version from cvs.  This avoids problems with #line
93784         directives using a vendor (Sun) compiler.
93785         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
93786         Don't set GETGROUPS_LIB here; now it's
93787         done via getgroups.m4's wrapper function.
93788         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
93789         rather than just in sh-util/configure.in, so that the
93790         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
93791         same.
93792         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
93793         AC_FUNC_GETLOADAVG where to find getloadavg.c.
93794         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
93795         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
93796         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
93797         Remove code that is now done by the newly-required macros.
93798         Append $(EXEEXT) to DF_PROG.
93799         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
93800         Do not invoke or require the following here,
93801         since prereq.m4 or some gnulib .m4 now does this for us:
93802         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
93803         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
93804         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
93805         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
93806         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
93807         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
93808         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
93809         AC_FUNC_OBSTACK.
93810         Do not replace the following functions, as this is now the job
93811         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
93812         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
93813         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
93814         atexit getpass, strdup, getpagesize.
93815         Replace 'raise'.
93816         Do not check for the following functions, as this is now the job
93817         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
93818         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
93819         setregid.
93820         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
93821         Check for sys/sysctl.h.
93822         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
93823         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
93824         of checking for ssize_t ourselves.
93825
93826         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
93827         Require every macro that gnulib/modules/* suggests for us.
93828         (jm_PREREQ_ADDEXT): New macro.
93829         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
93830         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
93831
93832         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
93833         (gl_PHYSMEM): Use it.
93834         Also check for `table' function.
93835         Check for new headers and functions.
93836         Add check for sys/sysmp.h.
93837         With suggestions from Kaveh Ghazi.
93838         Ignore headers that are present but cannot be compiled.  This
93839         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
93840         C 5.4.
93841
93842 2003-08-15  Paul Eggert  <eggert@twinsun.com>
93843
93844         Document merge from coreutils.
93845         * modules/userspec: Depend on posixver.
93846         * modules/strftime: Depend on tzset.
93847
93848 2003-08-15  Paul Eggert  <eggert@twinsun.com>
93849
93850         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
93851         rather than tab, after '#' in shell-script copyright notices.
93852         Suggested by Bruno Haible.
93853
93854 2003-08-15  Paul Eggert  <eggert@twinsun.com>
93855
93856         * config/srclist-update: Use three spaces, rather than tab, after '#'
93857         in shell-script copyright notices.  Suggested by Bruno Haible.
93858         Remove unnecessary parenthesization in regular expression.
93859
93860 2003-08-15  Jim Meyering  <jim@meyering.net>
93861
93862         Merge from coreutils.
93863         * lib/xgethostname.c: Include <stdlib.h>.
93864         (xghostname): Don't exit for anything other than memory-related
93865         failure; just return NULL.
93866         * lib/userspec.c: Include "posixver.h".
93867         (parse_user_spec): Accept `.' as a separator only
93868         in pre-POSIX-200112 mode.
93869         * lib/strtoimax.c: Use #elif rather than #else #if.
93870         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
93871         Remove function, now that we can rely on a working tzset function.
93872         [!_LIBC]: Ensure that the required autoconf test has been run.
93873         [!defined _NL_CURRENT && HAVE_STRFTIME]:
93874         Use underlying_strftime for %r.
93875         * lib/sha.c: Merge in some clean-up and optimization changes from
93876         glibc.
93877         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
93878         Ensure that it is a multiple of 64.
93879         Rearrange loop exit tests so as to avoid performing an
93880         additional fread after encountering an error or EOF.
93881         * lib/realloc.c: Update copyright date.
93882
93883 2003-08-15  Jim Meyering  <jim@meyering.net>
93884         and Paul Eggert  <eggert@twinsun.com>
93885
93886         Merge from coreutils.
93887         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
93888         member but strut utmpx does not.  Needed for AIX 4.3.3.
93889         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
93890
93891 2003-08-15  Jim Meyering  <jim@meyering.net>
93892         and Paul Eggert  <eggert@cs.ucla.edu>
93893
93894         Merges from coreutils, etc.
93895         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
93896         Require gl_FUNC_TZSET_CLOBBER.
93897         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
93898         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
93899         members.
93900
93901 2003-08-14  Paul Eggert  <eggert@twinsun.com>
93902
93903         Help the merge from coreutils.
93904         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
93905         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
93906         * m4/tzset.m4: Use it too.
93907
93908 2003-08-14  Paul Eggert  <eggert@twinsun.com>
93909
93910         * modules/tzset: New file.
93911
93912 2003-08-14  Jim Meyering  <jim@meyering.net>
93913
93914         Merges from coreutils.
93915         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
93916         variable names, rather than @FNMATCH_H@.
93917         * modules/alloca: Likewise for $(ALLOCA_H).
93918
93919         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
93920         the three copies of the literal target, `fnmatch.h'.
93921         * modules/alloca (alloca.h): Likewise.
93922
93923 2003-08-14  Jim Meyering  <jim@meyering.net>
93924
93925         Merge from coreutils.
93926         * m4/tzset.m4: New file.
93927         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
93928         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
93929         otherwise, AIX 5.1 systems would end up using the latter.
93930         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
93931         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
93932         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
93933         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
93934
93935 2003-08-14  Jim Meyering  <jim@meyering.net>
93936
93937         Merge from coreutils.
93938         * lib/obstack.h: Whitespace changes.
93939         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
93940         and xcalloc return values.
93941         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
93942         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
93943         hang on OSF/1 5.1 for DIR on both local and remote file systems.
93944         Reported by (and fix confirmed by) Nelson H. F. Beebe.
93945         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
93946         error from mntctl.
93947         Use mntctl's return value to drive the entry-processing loop, since
93948         we can't rely on the value of the vmt_length member in the last
93949         entry.  On some systems doing so could result in exhausting
93950         virtual memory.  Based in part on a patch from Mike Jetzer.
93951
93952 2003-08-14  Jim Meyering  <jim@meyering.net>
93953         and Paul Eggert  <eggert@twinsun.com>
93954
93955         Merges from coreutils, plus other fixes.
93956         * lib/physmem.c: Merge in portability changes from gcc/libiberty
93957         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
93958         for credits and details.  Thanks to Kaveh Ghazi for helping
93959         to keep these files in sync.
93960         (ARRAY_SIZE): Define it.
93961         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
93962         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
93963         (memcasecmp): Don't assume size_t fits in unsigned int.
93964         Remove casts and duplicate code.
93965         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
93966         (memcpy): Remove definition.
93967         Merge in some clean-up and optimization changes from glibc.
93968         [BLOCKSIZE]: Move definition to top of file.
93969         Ensure that it is a multiple of 64.
93970         Rearrange loop exit tests so as to avoid performing an
93971         additional fread after encountering an error or EOF.
93972         * lib/md5.h (md5_uintptr): Define.
93973         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
93974         return to the initial working directory.  Preserve errno
93975         for caller.
93976         * lib/idcache.c: Include "xalloc.h".
93977         (xmalloc, xrealloc): Remove decls.
93978         (getuser): Remove casts no longer required in C89.
93979         * lib/human.c: Include stdio.h, for sprintf.
93980         * lib/group-member.c: Include "xalloc.h".
93981         (xmalloc, xrealloc): Remove decls.
93982         (get_group_info): Remove casts no longer required in C89.
93983         * lib/getusershell.c (readname): Remove casts no longer required in
93984         C89.
93985         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
93986         * lib/getline.c: Whitespace fix, from coreutils.
93987
93988 2003-08-13  Paul Eggert  <eggert@twinsun.com>
93989
93990         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
93991         Check for isascii.
93992
93993         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
93994         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
93995         Undo previous (whitespace-only) change.
93996
93997 2003-08-13  Paul Eggert  <eggert@twinsun.com>
93998
93999         * lib/exclude.c: Include <ctype.h>
94000         (IN_CTYPE_DOMAIN): New macro.
94001         (is_space): New fn.
94002         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
94003         and empty lines.
94004
94005         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
94006         Undo previous (whitespace-only) change.
94007
94008 2003-08-13  Paul Eggert  <eggert@twinsun.com>
94009
94010         * config/srclist-update: Change update back to the old behavior,
94011         leaving whitespace alone.  Use one 'sed' command rather than a
94012         pipeline.
94013         (fixlicense): Now a variable, not a function.
94014         (remove_trailing_blanks): Remove.
94015         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
94016         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
94017         Undo previous (whitespace-only) change.
94018
94019 2003-08-12  Paul Eggert  <eggert@twinsun.com>
94020
94021         Merge from coreutils.
94022         * modules/euidaccess: Add lib_SOURCES, include for new
94023         file euidaccess.h
94024
94025 2003-08-12  Paul Eggert  <eggert@twinsun.com>
94026
94027         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
94028         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
94029         Normalize leading white space and remove trailing white space.
94030
94031         Merge from coreutils
94032         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
94033
94034         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
94035         0.12.1.  These files are now being upgraded automatically by
94036         ../config/srclist-update.
94037
94038 2003-08-12  Paul Eggert  <eggert@twinsun.com>
94039
94040         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
94041         Normalize leading white space and remove trailing white space.
94042         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
94043         notice, as per ../config/srclist-update.
94044
94045         Merge from coreutils.
94046         * lib/euidaccess.h: New file.
94047         * lib/euidaccess.c: Include it.
94048         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
94049         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
94050         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
94051
94052 2003-08-12  Paul Eggert  <eggert@twinsun.com>
94053
94054         * config/srclist-update: Add copyright notice.
94055         (remove_id_lines, remove_trailing_blanks): New constants.
94056         (fixfile): Use them to normalize spacing a bit in copied files.
94057         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
94058         Normalize leading white space and remove trailing white space.
94059
94060         * config/texinfo.tex: Sync with texinfo.
94061
94062         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
94063         strtoul.c from libc, to merge coreutils whitespace changes.
94064
94065         * config/srclist.txt: Get the following m4 files from gettext:
94066         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
94067         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
94068         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
94069         wint_t.m4.
94070
94071 2003-08-12  Karl Berry  <karl@gnu.org>
94072
94073         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
94074         been made.
94075
94076 2003-08-11  Paul Eggert  <eggert@twinsun.com>
94077
94078         * modules/gnu-source, m4/gnu-source.m4:
94079         Remove; we're assuming Autoconf 2.54 or later now.
94080         Suggested by Bruno Haible.
94081         * MODULES.html.sh (func_all_modules): Remove gnu-source.
94082
94083 2003-08-11  Bruno Haible  <bruno@clisp.org>
94084
94085         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
94086
94087 2003-08-11  Bruno Haible  <bruno@clisp.org>
94088
94089         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
94090         (vasnprintf): Use it instead of wcslen.
94091
94092 2003-08-11  Bruno Haible  <bruno@clisp.org>
94093
94094         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
94095         value to ensure that _Bool promotes to int. Use #define for _Bool when
94096         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
94097
94098 2003-08-10  Karl Berry  <karl@gnu.org>
94099
94100         * lib/regex.h: update from libc (whitespace fix).
94101
94102 2003-08-09  Paul Eggert  <eggert@twinsun.com>
94103
94104         Merge some files from coreutils.  These changes were
94105         originally made by Jim Meyering.
94106         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
94107         many older Unixes require this.
94108         * lib/alloca.c (alloca): Remove cast to argument of free;
94109         no longer needed in C89.
94110         * lib/alloca_.h, regex.h: Fix white space to match
94111         what GNU indent does.
94112
94113 2003-08-09  Paul Eggert  <eggert@twinsun.com>
94114
94115         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
94116         apparently Emacs's Unicode mode got confused before my 2003-08-05
94117         checkin.
94118
94119 2003-08-08  Paul Eggert  <eggert@twinsun.com>
94120
94121         * m4/extensions.m4: New file.
94122         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
94123         Require gl_USE_SYSTEM_EXTENSIONS.
94124         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
94125         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
94126
94127 2003-08-08  Paul Eggert  <eggert@twinsun.com>
94128
94129         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
94130         * modules/extensions, modules/gnu-source: New files.
94131         * modules/timespec, modules/unlocked-io: Depend on extensions.
94132
94133 2003-08-07  Paul Eggert  <eggert@twinsun.com>
94134
94135         * modules/restrict: New file.
94136         * MODULES.html.sh (func_all_modules): Add restrict.
94137         * modules/regex: Depend on restrict.
94138
94139 2003-08-07  Paul Eggert  <eggert@twinsun.com>
94140
94141         * m4/restrict.m4: New file.
94142         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
94143
94144 2003-08-07  Bruno Haible  <bruno@clisp.org>
94145
94146         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
94147         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
94148
94149 2003-08-07  Bruno Haible  <bruno@clisp.org>
94150
94151         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
94152         makes the module 'getndelim2' compatible with the module 'getline'.
94153
94154 2003-08-05  Paul Eggert  <eggert@twinsun.com>
94155
94156         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
94157         byte with "\201" to avoid glitches when editing that source file
94158         with multi-gnome-terminal.
94159
94160 2003-08-05  Paul Eggert  <eggert@twinsun.com>
94161
94162         * lib/bumpalloc.h: Remove.
94163
94164 2003-08-05  Paul Eggert  <eggert@twinsun.com>
94165
94166         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
94167         * modules/bumpalloc: Remove.
94168
94169 2003-08-04  Paul Eggert  <eggert@twinsun.com>
94170
94171         * lib/getloadavg.c: Change copyright notice and spacing to conform to
94172         GNU coding style.
94173
94174         Merge from coreutils.
94175         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
94176         1. From glibc.
94177         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
94178         from Karl Berry, implemented by Jim Meyering.
94179         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
94180         from Dmitry V. Levin.
94181         Remove anachronistic cast of xrealloc.
94182         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
94183         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
94184         type. Otherwise, it wouldn't compile with at least /bin/cc on
94185         ymp-cray-unicos9.0.2.X.
94186         Combine two mostly-identical uses of alloca into one.
94187         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
94188
94189 2003-08-04  Dave Love  <d.love@dl.ac.uk>
94190
94191         [From Emacs.]
94192
94193         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
94194         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
94195         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
94196         obsolete NLIST_NAME_UNION.
94197         [__GNU__]: Undef BSD and FSCALE.
94198         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
94199
94200 2003-08-03  Paul Eggert  <eggert@twinsun.com>
94201
94202         * lib/stdbool_.h (_Bool): Make it signed char, instead of
94203         an enum type, so that it's guaranteed to promote to int.  See:
94204         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
94205
94206 2003-08-03  Karl Berry  <karl@gnu.org>
94207
94208         * config/depcomp: update from automake.
94209
94210 2003-07-31  Paul Eggert  <eggert@twinsun.com>
94211
94212         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
94213         (strerror): Don't assume that a printable int fits in 14 bytes.
94214
94215 2003-07-31  Bruno Haible  <bruno@clisp.org>
94216
94217         * modules/getpass-gnu: New file.
94218         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
94219
94220 2003-07-31  Bruno Haible  <bruno@clisp.org>
94221
94222         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
94223
94224 2003-07-24  Karl Berry  <karl@gnu.org>
94225
94226         * config/missing: update from automake.
94227
94228 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
94229             Bruno Haible  <bruno@clisp.org>
94230
94231         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
94232         * lib/getline.c (getline, getdelim): Likewise.
94233         Remove _GNU_SOURCE define; now it's defined in config.h through
94234         m4/getline.m4.
94235
94236 2003-07-23  Karl Berry  <karl@gnu.org>
94237
94238         * config/config.sub: update from prep.
94239
94240 2003-07-22  Paul Eggert  <eggert@twinsun.com>
94241
94242         * modules/xalloc (Depends-on): Add exitfail.
94243         * modules/xmemcoll: Likewise.
94244
94245 2003-07-22  Paul Eggert  <eggert@twinsun.com>
94246
94247         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
94248         over-parenthesization in macros.
94249
94250         Sync with coreutils.
94251
94252         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
94253         required by C99.
94254
94255         Use `exit_failure' for xalloc and xmemcoll instead of their own
94256         private exit-failure variables.
94257         * lib/xalloc.h (xalloc_exit_failure): Remove.
94258         * lib/xmalloc.c: Likewise.  Include exitfail.h.
94259         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
94260         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
94261         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
94262         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
94263
94264 2003-07-20  Jim Meyering  <jim@meyering.net>
94265
94266         * modules/closeout (Depends-on): Add exitfail.
94267         Suggestion from Bruno Haible.
94268
94269 2003-07-19  Karl Berry  <karl@gnu.org>
94270
94271         * config/config.sub: update from prep.
94272
94273 2003-07-18  Paul Eggert  <eggert@twinsun.com>
94274
94275         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
94276         Remove.
94277         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
94278         to test that it can stand by itself.  Include "exitfail.h".
94279         Clients should set exit_failure instead.
94280         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
94281
94282 2003-07-18  Bruno Haible  <bruno@clisp.org>
94283
94284         * modules/getndelim2: New file.
94285         * modules/getline: Share files with module getndelim2.
94286         * modules/getnline: Depend on getndelim2 instead of sharing files with
94287         it. Add getnline.c to lib_SOURCES.
94288         * MODULES.html.sh (func_all_modules): Add getndelim2.
94289
94290 2003-07-18  Bruno Haible  <bruno@clisp.org>
94291
94292         * m4/getndelim2.m4: New file.
94293         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
94294         invoke gl_PREREQ_GETNDELIM2.
94295         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
94296         gl_PREREQ_GETNDELIM2.
94297         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
94298         gl_GETNDELIM2.
94299
94300 2003-07-18  Bruno Haible  <bruno@clisp.org>
94301
94302         * lib/getndelim2.h: New file.
94303         * lib/getndelim2.c: Make into a module of its own. Include config.h,
94304         getndelim2.h.
94305         (getndelim2): Make non-static. Change return type to ssize_t.
94306         * lib/getline.h: Change argument names.
94307         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
94308         * lib/getnline.c: Include getndelim2.h.
94309
94310 2003-07-18  Andreas Schwab  <schwab@suse.de>
94311
94312         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
94313
94314 2003-07-17  Karl Berry  <karl@gnu.org>
94315
94316         * config/config.sub: update from prep.
94317
94318 2003-07-17  Bruno Haible  <bruno@clisp.org>
94319
94320         * modules/getnline: New file.
94321         * modules/getline: Add lib/getndelim2.c to source file list.
94322         * MODULES.html.sh (func_all_modules): Add getnline.
94323
94324 2003-07-17  Bruno Haible  <bruno@clisp.org>
94325
94326         * m4/getnline.m4: New file.
94327
94328 2003-07-17  Bruno Haible  <bruno@clisp.org>
94329
94330         * m4/Makefile.am.in: Remove file.
94331         * m4/Makefile.am: Remove file.
94332         * m4/Makefile.in: Remove file.
94333
94334 2003-07-17  Bruno Haible  <bruno@clisp.org>
94335
94336         * lib/getnline.h: New file.
94337         * lib/getnline.c: New file.
94338         * lib/getndelim2.c: New file, extracted from getline.c.
94339         (getndelim2): Renamed from getdelim2, with added nmax argument.
94340         * lib/getline.c: Include getndelim2.c.
94341         (getdelim2): Moved out to getndelim2.c.
94342         (getline, getdelim): Update.
94343
94344 2003-07-17  Bruno Haible  <bruno@clisp.org>
94345
94346         * lib/Makefile.am: Remove file.
94347         * lib/Makefile.in: Remove file.
94348
94349 2003-07-17  Bruno Haible  <bruno@clisp.org>
94350
94351         * configure.in: Remove file.
94352         * Makefile.in: Remove file.
94353
94354 2003-07-17  Bruno Haible  <bruno@clisp.org>
94355
94356         * MODULES.html.sh: Put the </BODY> right before </HTML>.
94357
94358 2003-07-16  Karl Berry  <karl@gnu.org>
94359
94360         * config/srclist-update: was running fixlicense twice, which caused
94361                 texinfo.tex to be nullified for some reason.  Simplify,
94362                 $gplsrc is no longer needed as far as I can see?
94363
94364 2003-07-16  Jim Meyering  <jim@meyering.net>
94365
94366         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
94367
94368 2003-07-15  Paul Eggert  <eggert@twinsun.com>
94369
94370         * config/srclist.txt: Get the following files from gettext-runtime/intl
94371         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
94372         ref-del.sin.  From Bruno Haible.
94373         * config/srclist-update (fixfile): Change grep pattern again, since the
94374         previous fix didn't work (there was another trailing $).  Use
94375         '[$]' to escape the $s.
94376
94377 2003-07-15  Karl Berry  <karl@gnu.org>
94378
94379         * lib/vasnprintf.c: update from gettext.
94380
94381 2003-07-15  Karl Berry  <karl@gnu.org>
94382
94383         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
94384         gets expanded when surrounded by '$'.
94385
94386 2003-07-15  Jim Meyering  <jim@meyering.net>
94387
94388         * modules/save-cwd: Don't depend on error.  From Derek Price.
94389
94390 2003-07-15  Jim Meyering  <jim@meyering.net>
94391
94392         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
94393
94394 2003-07-14  Simon Josefsson  <jas@extundo.com>
94395
94396         * modules/mempcpy: New file.
94397         * MODULES.html.sh (func_all_modules): Add mempcpy.
94398
94399 2003-07-14  Simon Josefsson  <jas@extundo.com>
94400
94401         * m4/mempcpy.m4: New file.
94402
94403 2003-07-14  Simon Josefsson  <jas@extundo.com>
94404
94405         * lib/mempcpy.h: New file.
94406         * lib/mempcpy.c: New file.
94407
94408 2003-07-14  Paul Eggert  <eggert@twinsun.com>
94409
94410         * modules/getdate, modules/posixtm: Depend on mktime.
94411
94412 2003-07-14  Paul Eggert  <eggert@twinsun.com>
94413
94414         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
94415         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
94416         unicodeio.c, unicodeio.h, unlocked-io.h:
94417         Switch from LGPL to GPL.
94418
94419 2003-07-14  Paul Eggert  <eggert@twinsun.com>
94420
94421         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
94422         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
94423         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
94424         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
94425         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
94426         updated automatically by ../config/srclist-update.  This changes
94427         their license from LPGL to GPL.
94428
94429 2003-07-14  Paul Eggert  <eggert@twinsun.com>
94430
94431         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
94432         assumed to refer to the root of the most recent stable gettext version.
94433         * config/srclistvars.sh: Add defaults for eggert.
94434         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
94435         Match "This program" as well as "The program".  This is needed
94436         for gettext.
94437
94438 2003-07-14  Jim Meyering  <jim@meyering.net>
94439
94440         Don't emit diagnostics.  Let callers do that.
94441         * lib/save-cwd.c: Don't include "error.h".
94442         (save_cwd): Don't call error.  Ensure that errno is valid
94443         when returning nonzero.
94444
94445         * lib/save-cwd.h (restore_cwd): Update prototype.
94446         * lib/save-cwd.c (restore_cwd): Remove two parameters.
94447         Simplify.  Don't call error upon failure.  Let callers do that.
94448         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
94449         when auditing is enabled.  But don't bother updating the #if.
94450
94451 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
94452
94453         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
94454         it breaks C++ compilation.
94455         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
94456
94457 2003-07-10  Simon Josefsson  <jas@extundo.com>
94458
94459         * modules/strchrnul (Makefile.am): Add strchrnul.h.
94460
94461 2003-07-10  Jim Meyering  <jim@meyering.net>
94462
94463         * m4/clock_time.m4: Remove trailing blank.
94464         * m4/intmax_t.m4: Likewise.
94465
94466 2003-07-10  Jim Meyering  <jim@meyering.net>
94467
94468         * lib/vasnprintf.c: Remove trailing blanks.
94469         Make cpp indentation consistent.
94470
94471 2003-07-09  Paul Eggert  <eggert@twinsun.com>
94472
94473         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
94474         posixver.c, strftime.c, strnlen.c, strverscmp.c:
94475         Switch from LGPL to GPL.
94476
94477 2003-07-09  Paul Eggert  <eggert@twinsun.com>
94478
94479         * config/srclist.txt: Sort sublists.  Add
94480         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
94481         that differ from gnulib for one reason or another; we'd like this list
94482         to be smaller but for now let's document what we have.
94483
94484 2003-07-08  Paul Eggert  <eggert@twinsun.com>
94485
94486         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
94487         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
94488         and sweeter "eval x=$x".
94489         * config/srclist.txt: Get lib/argp* from glibc.
94490
94491 2003-07-07  Paul Eggert  <eggert@twinsun.com>
94492
94493         * lib/mktime.c: Fix some boundary cases and remove need for floating
94494         point.
94495
94496         Issue a compile-time diagnostic if time_t is floating point, or if
94497         two's complement arithmetic is not in effect, or if arithmetic
94498         right shift does not propagate the sign.  These assumptions were
94499         all in the original code but they weren't checked.
94500
94501         (TIME_T_MIDPOINT, verify): New macros.
94502         (__isleap): Remove; it has integer overflow problems.
94503         (leapyear): New function, without those problems.
94504         (ydhms_tm_diff): Remove; splitting into two parts.
94505         (ydhms_diff): New function, containing the arithmetic part of
94506         the old ydhms_tm_diff function.  Issue a compile-time
94507         diagnostic if we are not using C99 integer division.
94508         Avoid casts when possible.
94509         (guess_time_tm): New function, containing the checking part of
94510         the old ydhms_tm_diff function.  Return the new value, rather than
94511         the difference between it and the old.  Accept a new argument T
94512         so that *T specifies the old value.  Check for overflow in the result.
94513
94514         (__mktime_internal): Use a time_t offset, not a long int offset.
94515         This undoes the 2003-06-04 change, which is no longer needed now
94516         that we have better overflow checking.
94517         (localtime_offset): Likewise.
94518
94519         (__mktime_internal): Avoid harmful overflow on hosts where time_t
94520         and long are 64-bit but int is only 32-bit.
94521         (ydhms_diff): Use long int to store year1 and yday1.
94522         Issue a compile-time diagnostic if long int is not wide enough.
94523
94524         (__mktime_internal): Use long int to store adjusted year and yday.
94525         Use plain C rather than preprocessor commands, if that doesn't
94526         affect efficiency.
94527         Check for overflow (and try to repair) after each probe
94528         rather than checking only at the very end.  This avoids some bugs
94529         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
94530         does not equal GMT offset at maximum time).
94531         Use integer to check for overflow rather than floating point; this
94532         is more portable to non-IEEE hosts, and is a tad faster.
94533         When we detect that we are oscillating between two values,
94534         don't check whether tm_isdst has the requested value, since
94535         we already know the answer.  When tm_isdst has the wrong value,
94536         use a different heuristic to find the right one, based on the
94537         extreme values actually observed in practice in tz2003a,
94538         rather than the (overly optimistic) "previous 3 calendar quarters".
94539
94540         (not_equal_tm, print_tm, check_result): Use "const T" rather than
94541         "T const" to accommodate glibc style.
94542         (check_result): Use less-confusing report format.  "long" -> "long int.
94543         (main): Likewise.
94544         Don't loop if the iteration overflows time_t.
94545         Allow a negative step in the iteration.
94546
94547 2003-07-06  Karl Berry  <karl@gnu.org>
94548
94549         * config/depcomp: update from automake.
94550         * config/config.sub: update from prep.
94551
94552 2003-07-03  Karl Berry  <karl@gnu.org>
94553
94554         * config/config.guess: update from prep.
94555
94556 2003-07-01  Paul Eggert  <eggert@twinsun.com>
94557
94558         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
94559         xreadlink.c now includes it unconditionally.
94560
94561 2003-07-01  Paul Eggert  <eggert@twinsun.com>
94562
94563         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
94564         having it depend on HAVE_SYS_TYPES_H.
94565
94566 2003-07-01  Bruno Haible  <bruno@clisp.org>
94567
94568         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
94569         <sys/types.h> should be sufficient.
94570         Reported by Paul Eggert.
94571
94572 2003-06-26  Karl Berry  <karl@gnu.org>
94573
94574         * config/depcomp: update from automake.
94575
94576 2003-06-26  Bruno Haible  <bruno@clisp.org>
94577
94578         * modules/human: Depend on module stdbool.
94579
94580 2003-06-25  Bruno Haible  <bruno@clisp.org>
94581
94582         * modules/readlink: New file.
94583         * modules/xreadlink: Depend on it.
94584         * MODULES.html.sh (func_all_modules): Add readlink.
94585
94586 2003-06-25  Bruno Haible  <bruno@clisp.org>
94587
94588         * m4/readlink.m4: New file.
94589
94590 2003-06-25  Bruno Haible  <bruno@clisp.org>
94591
94592         * lib/readlink.c: New file.
94593
94594 2003-06-22  Karl Berry  <karl@gnu.org>
94595
94596         * config/srclist.txt: update mkinstalldirs from automake.
94597         * config/mkinstalldirs: update.
94598
94599 2003-06-22  Bruno Haible  <bruno@clisp.org>
94600
94601         Portability to mingw32.
94602         * m4/ssize_t.m4: New file, from GNU gettext.
94603         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
94604         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
94605
94606 2003-06-22  Bruno Haible  <bruno@clisp.org>
94607
94608         * modules/safe-read: Add m4/ssize_t.m4.
94609         * modules/xreadlink: Add m4/ssize_t.m4.
94610
94611 2003-06-20  Bruno Haible  <bruno@clisp.org>
94612
94613         Assume C89, so PARAMS isn't needed.
94614         * lib/unicodeio.h (PARAMS): Remove.
94615         * lib/unicodeio.c: Don't use PARAMS.
94616
94617 2003-06-18  Karl Berry  <karl@gnu.org>
94618
94619         * config/config.{guess,sub}: update from prep.
94620
94621 2003-06-18  Jim Meyering  <jim@meyering.net>
94622
94623         Merge changes from coreutils.
94624         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
94625         Remove explicit declarations of xmalloc and realloc.
94626         Include xalloc.h.
94627         (read_utmp): Remove anachronistic cast of xmalloc.
94628
94629 2003-06-17  Paul Eggert  <eggert@twinsun.com>
94630
94631         Assume C89, so PARAMS isn't needed.
94632         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
94633         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
94634         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
94635         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
94636         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
94637         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
94638         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
94639         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
94640         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
94641         lib/xstrtod.h, lib/xstrtol.h: Likewise.
94642         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
94643         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
94644         no longer needed. Anyway, config.h should always be included before any
94645         other file.
94646
94647 2003-06-11  Simon Josefsson  <jas@extundo.com>
94648
94649         * modules/sysexits: New file.
94650         * MODULES.html.sh (func_all_modules): Add sysexits.
94651
94652 2003-06-11  Simon Josefsson  <jas@extundo.com>
94653
94654         * lib/sysexit_.h: New file.
94655
94656 2003-06-11  Derek Price  <derek@ximbiot.com>
94657
94658         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
94659         necessary.
94660
94661 2003-06-11  Bruno Haible  <bruno@clisp.org>
94662
94663         * m4/sysexits.m4: New file.
94664
94665 2003-06-10  Simon Josefsson  <jas@extundo.com>
94666
94667         * lib/argp.h: New file, from glibc.
94668         * lib/argp-ba.c: New file, from glibc.
94669         * lib/argp-eexst.c: New file, from glibc.
94670         * lib/argp-fmtstream.c: New file, from glibc.
94671         * lib/argp-fmtstream.h: New file, from glibc.
94672         * lib/argp-fs-xinl.c: New file, from glibc.
94673         * lib/argp-help.c: New file, from glibc.
94674         * lib/argp-namefrob.h: New file, from glibc.
94675         * lib/argp-parse.c: New file, from glibc.
94676         * lib/argp-pv.c: New file, from glibc.
94677         * lib/argp-pvh.c: New file, from glibc.
94678         * lib/argp-xinl.c: New file, from glibc.
94679
94680 2003-06-10  Simon Josefsson  <jas@extundo.com>
94681
94682         * modules/strchrnul: New file.
94683
94684 2003-06-10  Simon Josefsson  <jas@extundo.com>
94685
94686         * modules/argp: New file.
94687
94688 2003-06-10  Simon Josefsson  <jas@extundo.com>
94689
94690         * m4/strchrnul.m4: New file.
94691
94692 2003-06-10  Simon Josefsson  <jas@extundo.com>
94693
94694         * lib/strchrnul.h: New file.
94695         * lib/strchrnul.c: New file.
94696
94697 2003-06-10  Bruno Haible  <bruno@clisp.org>
94698
94699         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
94700
94701 2003-06-07  Karl Berry  <karl@gnu.org>
94702
94703         * config/config.{guess,sub}: update from prep.
94704
94705 2003-06-07  Jim Meyering  <jim@meyering.net>
94706
94707         * modules/strtod: Use $(...) notation, not @...@ for
94708         AC_REPLACE'd variables.
94709         * modules/localcharset: Likewise.
94710
94711 2003-06-07  Jim Meyering  <jim@meyering.net>
94712
94713         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
94714         in place of my name in the copyright comment.
94715         Remove definition and uses of __P.
94716
94717         From coreutils.
94718         * lib/stat.c: Don't declare xmalloc explicitly.
94719         Instead, include "xalloc.h".
94720         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
94721         xrealloc, and xcalloc return values.
94722         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
94723         Improve comment.
94724         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
94725
94726 2003-06-07  Bruno Haible  <bruno@clisp.org>
94727
94728         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
94729         avoid AC_CONFIG_LINKS.
94730         * modules/fnmatch (Makefile.am): Use explicit creation rule for
94731         fnmatch.h, to avoid AC_CONFIG_LINKS.
94732         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
94733
94734 2003-06-07  Bruno Haible  <bruno@clisp.org>
94735
94736         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
94737         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
94738         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
94739         directory.
94740         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
94741         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
94742         directory.
94743
94744 2003-06-06  Jim Meyering  <jim@meyering.net>
94745
94746         Merge from coreutils.
94747         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
94748         Consolidate declarations and initializations of *_base* locals.
94749
94750         Merge from coreutils.
94751         This avoids a core dump on systems without GNU putenv,
94752         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
94753         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
94754         (unsetenv): New static function, from GNU libc.
94755         (rpl_putenv): Use it.
94756
94757         * lib/modechange.c: Remove trailing blanks.
94758
94759         Merge from coreutils.
94760         * lib/fsusage.c: Remove declaration of statfs.
94761         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
94762
94763         * lib/posixtm.c: Include <stdbool.h> unconditionally.
94764
94765 2003-06-06  Jim Meyering  <jim@meyering.net>
94766
94767         * lib/stdbool_.h: Renamed from stdbool.h.in.
94768
94769 2003-06-06  Jim Meyering  <jim@meyering.net>
94770             Bruno Haible  <bruno@clisp.org>
94771
94772         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
94773         Adjust Makefile.am snippet not to redirect directly to target.
94774         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
94775
94776 2003-06-05  Paul Eggert  <eggert@twinsun.com>
94777
94778         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
94779         mismatch, look in future quarters as well as past.  This fixes a
94780         bug when processing fall-backwards gaps immediately after a long
94781         period of daylight-saving time.
94782
94783         * lib/mktime.c: Assume freestanding C89 or better.
94784         (HAVE_LIMITS_H): Remove.  Assume it's 1.
94785         (__P): Remove; not used.
94786         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
94787         (mktime, not_equal_tm, print_tm, check_result,
94788         main): Use prototypes.  Use const * where appropriate.
94789         (main): Fix typo in testing code that uncovered by above changes.
94790         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
94791
94792 2003-06-04  Paul Eggert  <eggert@twinsun.com>
94793
94794         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
94795         locale.h, localeconv.  This merges changes from coreutils.
94796
94797         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
94798         It can be removed after the next Autoconf is released.
94799         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
94800         needed.
94801
94802 2003-06-04  Paul Eggert  <eggert@twinsun.com>
94803
94804         * lib/mktime.c: Fix Debian bug 177940
94805         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
94806         (localtime_offset): Now long int, not time_t, because we want it
94807         to be guaranteed to be signed.  All uses changed.
94808         (__mktime_internal): If overflow would occur when adding offset,
94809         don't add it.
94810
94811         Merge 'human' changes from coreutils.  Rewrite to support
94812         locale-specific notations like thousands separators.
94813         * lib/human.c: Simplify authorship notice.
94814         Include human.h immediately after config.h.
94815         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
94816         <limits.h>: Do not include, since human.h does.
94817         (SIZE_MAX, UINTMAX_MAX): New macros.
94818         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
94819         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
94820         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
94821         (power_letter): Renamed from suffixes.
94822         (generate_suffix_backwards): Remove.
94823         (adjust_value): Now takes int style (because of human.h changes)
94824         and long double value (for greater precision on some platforms).
94825         (group_number): New function.
94826         (human_readable): Use it.  Use integer options, not enum.
94827         Put the options before the sizes in the arg list.
94828         Support all the new options.
94829         The old human_readable function has been removed;
94830         use inttostr.h instead.
94831         (human_readable, default_block_size, humblock):
94832         Use uintmax_t, not int, for block sizes.
94833         (human_readable_inexact, block_size_types): Remove.
94834         (block_size_opts): New constant.
94835         (human_options): Renamed from human_block_size, with new signature
94836         that allows block sizes up to UINTMAX_MAX.  All callers changed.
94837         * lib/human.h: Add copyright and authorship notice.
94838         Include <limits.h> and <stdbool.h> unconditionally.
94839         (PARAMS): Remove.  All uses removed.
94840         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
94841         (enum human_inexact_style): Remove tag; now a nameless enum.
94842         (human_floor, human_ceiling, human_round_to_even): Now have
94843         values 2, 0, 1 rather than -1, 1, 0.
94844         (human_group_digits, human_suppress_point_zero, human_autoscale,
94845         human_base_1024, human_SI, human_B): New constants.
94846         (human_readable_inexact, human_block_size): Remove.
94847         (human_readable): Size args are now uintmax_t, not int.
94848         (human_options): New decl.
94849
94850         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
94851         unnecessary now that we assume C89 or better.  This change
94852         imported from coreutils.
94853
94854         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
94855         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
94856         in the 2003-05-30 sync from glibc.
94857
94858         .h files should stand alone, but we shouldn't include <sys/types.h>
94859         if we can get away with just <stddef.h>.
94860
94861         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
94862         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
94863         rather than <sys/types.h>, as we merely need size_t.
94864         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
94865         to get size_t.
94866         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
94867         Include <stdio.h>, to get FILE.
94868         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
94869         memcasecmp.h has included <stddef.h> and all we need is size_t.
94870         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
94871         our interface, instead of including <sys/types.h>
94872
94873 2003-06-04  Paul Eggert  <eggert@twinsun.com>
94874
94875         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
94876         now, as glibc mktime is buggy on non-glibc systems.
94877
94878 2003-06-03  Karl Berry  <karl@gnu.org>
94879
94880         * config/config.sub: update from prep.
94881
94882 2003-06-02  Paul Eggert  <eggert@twinsun.com>
94883
94884         [from coreutils]
94885         Fix some minor time-related bugs with POSIX time arguments.
94886         Some valid time stamps were being rejected (notably -1, and
94887         time stamps before 1900 on 64-bit hosts).  And some invalid
94888         time stamps were being accepted, e.g. September 31.
94889
94890         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
94891         that we can return (time_t) -1 successfully.
94892         * lib/posixtm.c: Likewise.
94893         [HAVE_STDBOOL_H]: Include <stdbool.h>.
94894         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
94895         (t): Remove static var.
94896         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
94897         of static var.  All uses changed.
94898         (year): Do not reject years before 1900; they can occur with
94899         64-bit time_t.
94900         (posix_time_parse): Do not check for out-of-range components;
94901         that is now the caller's responsibility, since our checks were
94902         only approximations.
94903         (posixtime): Use mktime to check for out-of-range components,
94904         since it knows them exactly.
94905         If mktime returns (time_t) -1, check whether an error actually occurred
94906         by invoking localtime on -1.
94907         (main) [TEST_POSIXTIME]: Check for input data errors, and report
94908         posixtime failures better.
94909         Improve the test data (in comments only).
94910
94911 2003-06-02  Karl Berry  <karl@gnu.org>
94912
94913         * config/mkinstalldirs (version): new variable.
94914         (--version): new option.
94915         (usage): improve message.
94916
94917 2003-05-30  Karl Berry  <karl@gnu.org>
94918
94919         * lib/mktime.c: update from libc.
94920
94921 2003-05-30  Bruno Haible  <bruno@clisp.org>
94922
94923         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
94924         * config/config.rpath: Upgrade to gettext-0.12.1.
94925
94926 2003-05-30  Bruno Haible  <bruno@clisp.org>
94927
94928         * m4/gettext.m4: Upgrade to gettext-0.12.1.
94929         * m4/nls.m4: New file, from gettext-0.12.1.
94930         * m4/po.m4: New file, from gettext-0.12.1.
94931         * m4/progtest.m4: Upgrade to gettext-0.12.1.
94932
94933 2003-05-30  Bruno Haible  <bruno@clisp.org>
94934
94935         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
94936         * lib/localcharset.h: Likewise.
94937         * lib/localcharset.c: Likewise.
94938
94939 2003-05-29  Karl Berry  <karl@gnu.org>
94940
94941         * config/config.rpath: update from gettext.
94942
94943 2003-05-28  Paul Eggert  <eggert@twinsun.com>
94944
94945         Assume the headers required for C89 freestanding compilers.
94946         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
94947         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
94948         * m4/human.m4 (gl_HUMAN): Likewise.
94949         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
94950         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
94951         * m4/userspec.m4 (gl_USERSPEC): Likewise.
94952         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
94953         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
94954         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
94955
94956 2003-05-28  Paul Eggert  <eggert@twinsun.com>
94957
94958         Assume the headers required for C89 freestanding compilers.
94959         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
94960         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
94961         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
94962         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
94963         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
94964         define, since <limits.h> is guaranteed to do that.
94965         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
94966         * lib/exclude.c: Include <stdbool.h> unconditionally.
94967         * lib/tempname.c: Include <stddef.h> unconditionally.
94968         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
94969         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
94970         <stddef.h> does that.
94971         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
94972         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
94973         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
94974         needed.
94975         * lib/xstrtol.c: Likewise.
94976         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
94977         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
94978
94979         * lib/addext.c (addext): Use assignment rather than cast, to avoid
94980         warnings on some platforms.
94981
94982         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
94983         arbitrarily.
94984
94985 2003-05-26  Jim Meyering  <jim@meyering.net>
94986
94987         Merge in a change from coreutils:
94988         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
94989         that is guaranteed to be `no'.  Use `no_such_member' to indicate
94990         that condition, rather than `-1' which is slightly misleading.
94991         Change the name of the cache variable to have the gl_ prefix.
94992         Prompted by a patch from Richard Dawe for DJGPP.
94993
94994 2003-05-24  Karl Berry  <karl@gnu.org>
94995
94996         * config/config.guess: update from prep.
94997
94998 2003-05-22  Karl Berry  <karl@gnu.org>
94999
95000         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
95001
95002 2003-05-20  Karl Berry  <karl@gnu.org>
95003
95004         * config/config.guess: update from prep.
95005
95006 2003-05-18  Karl Berry  <karl@gnu.org>
95007
95008         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
95009         might actually be set by the user.
95010
95011         * config/depcomp, install-sh, mdate-sh: update from automake.
95012
95013 2003-05-17  Bruno Haible  <bruno@clisp.org>
95014
95015         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
95016         invalid expansion for AC_EGREP_CPP.
95017         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
95018         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
95019         Suggested by Akim Demaille <akim@epita.fr> in
95020         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
95021
95022 2003-05-12  Jim Meyering  <jim@meyering.net>
95023
95024         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
95025         the space-padded-by-default conversion specifiers, %e, %k, %l.
95026
95027 2003-05-12  Bruno Haible  <bruno@clisp.org>
95028
95029         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
95030         the string is longer than 4 KB.
95031
95032 2003-05-11  Karl Berry  <karl@gnu.org>
95033
95034         * config/config.{guess,sub}: update from prep.
95035
95036 2003-05-09  Bruno Haible  <bruno@clisp.org>
95037
95038         * modules/error: Add m4/strerror_r.m4 to file list.
95039
95040 2003-05-03  Bruno Haible  <bruno@clisp.org>
95041
95042         Upgrade to Unicode-4.0.
95043         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
95044         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
95045         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
95046         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
95047         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
95048         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
95049         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
95050         Change width of U+E0100..U+E01EF from 1 to 0.
95051
95052 2003-04-25  Jim Meyering  <jim@meyering.net>
95053
95054         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
95055         of type size_t, not int.
95056
95057 2003-04-25  Bruno Haible  <bruno@clisp.org>
95058
95059         * lib/copy-file.c: Include <stddef.h>, for size_t.
95060
95061 2003-04-21  Paul Eggert  <eggert@twinsun.com>
95062
95063         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
95064         code which expansion is under static control.  Patch imported from
95065         Akim Demaille's patch to Bison; see
95066         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
95067
95068 2003-04-14  Bruno Haible  <bruno@clisp.org>
95069
95070         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
95071
95072 2003-04-11  Jim Meyering  <jim@meyering.net>
95073
95074         Merge changes from Coreutils.
95075
95076         2003-03-22  Jim Meyering  <jim@meyering.net>
95077
95078         * lib/strftime.c (widen): Cast alloca return value to proper type.
95079
95080         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
95081
95082         From GNU libc.
95083         * lib/strftime.c (my_strftime): Handle very large width
95084         specifications for numeric values correctly.  Improve checks for
95085         overflow.
95086
95087         2003-01-19  Jim Meyering  <jim@meyering.net>
95088
95089         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
95090         definitions.
95091         (nl_get_alt_digit) [! defined my_strftime]: Define.
95092         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
95093         _nl_get_alt_digit and _nl_get_walt_digit.
95094
95095         * lib/strftime.c (my_strftime): Merge in locale-related changes from
95096         libc. These changes have no effect outside of _LIBC.
95097
95098 2003-04-10  Bruno Haible  <bruno@clisp.org>
95099
95100         * modules/findprog: New file.
95101         * MODULES.html.sh (func_all_modules): Add it.
95102
95103 2003-04-10  Bruno Haible  <bruno@clisp.org>
95104
95105         * m4/findprog.m4: New file.
95106         * m4/eaccess.m4: New file.
95107
95108 2003-04-10  Bruno Haible  <bruno@clisp.org>
95109
95110         * lib/findprog.h: New file, from GNU gettext.
95111         * lib/findprog.c: New file, from GNU gettext.
95112
95113 2003-04-05  Jim Meyering  <jim@meyering.net>
95114
95115         Merge changes from Coreutils.
95116
95117         * lib/exclude.h (PARAMS): Remove definition and uses.
95118         * lib/exclude.c: Remove uses of `PARAMS'.
95119
95120         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
95121         Add test-cases for DOS filenames. Declare program_name.
95122         (main): Set up program_name.  Patch by Rich Dawe.
95123
95124         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
95125         error from mntctl.
95126         Use mntctl's return value to drive the entry-processing loop, since
95127         we can't rely on the value of the vmt_length member in the last
95128         entry.  On some systems doing so could result in exhausting
95129         virtual memory.  Based in part on a patch from Mike Jetzer.
95130
95131 2003-04-04  Bruno Haible  <bruno@clisp.org>
95132
95133         * modules/linebreak: New file.
95134         * MODULES.html.sh (func_all_modules): Add it.
95135
95136 2003-04-04  Bruno Haible  <bruno@clisp.org>
95137
95138         * m4/linebreak.m4: New file.
95139
95140 2003-04-04  Bruno Haible  <bruno@clisp.org>
95141
95142         * lib/linebreak.h: New file, from GNU gettext.
95143         * lib/linebreak.c: New file, from GNU gettext with slight
95144         modifications.
95145         * lib/lbrkprop.h: New file, from GNU gettext.
95146
95147 2003-04-03  Bruno Haible  <bruno@clisp.org>
95148
95149         * modules/utf8-ucs4: New file.
95150         * modules/utf16-ucs4: New file.
95151         * modules/ucs4-utf8: New file.
95152         * modules/ucs4-utf16: New file.
95153         * MODULES.html.sh (func_all_modules): Add them.
95154
95155 2003-04-03  Bruno Haible  <bruno@clisp.org>
95156
95157         * m4/utf-ucs4.m4: New file.
95158         * m4/ucs4-utf.m4: New file.
95159
95160 2003-04-03  Bruno Haible  <bruno@clisp.org>
95161
95162         * lib/utf8-ucs4.h: New file, from GNU gettext.
95163         * lib/utf16-ucs4.h: New file, from GNU gettext.
95164         * lib/ucs4-utf8.h: New file, from GNU gettext.
95165         * lib/ucs4-utf16.h: New file, from GNU gettext.
95166
95167 2003-04-02  Bruno Haible  <bruno@clisp.org>
95168
95169         * modules/binary-io: New file.
95170         * MODULES.html.sh (func_all_modules): Add it.
95171
95172 2003-04-02  Bruno Haible  <bruno@clisp.org>
95173
95174         * lib/binary-io.h: New file, from GNU gettext.
95175
95176 2003-04-01  Bruno Haible  <bruno@clisp.org>
95177
95178         * modules/pathname: New file.
95179         * MODULES.html.sh (func_all_modules): Add it.
95180
95181 2003-04-01  Bruno Haible  <bruno@clisp.org>
95182
95183         * lib/pathname.h: New file, from GNU gettext.
95184         * lib/concatpath.c: New file, from GNU gettext.
95185
95186 2003-03-30  Bruno Haible  <bruno@clisp.org>
95187
95188         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
95189
95190 2003-03-30  Bruno Haible  <bruno@clisp.org>
95191
95192         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
95193         function chown() doesn't exist.
95194
95195 2003-03-28  Bruno Haible  <bruno@clisp.org>
95196
95197         * modules/copy-file: New file.
95198         * MODULES.html.sh (func_all_modules): Add it.
95199
95200 2003-03-28  Bruno Haible  <bruno@clisp.org>
95201
95202         * m4/copy-file.m4: New file.
95203
95204 2003-03-28  Bruno Haible  <bruno@clisp.org>
95205
95206         * lib/copy-file.h: New file, from GNU gettext.
95207         * lib/copy-file.c: New file, from GNU gettext.
95208
95209 2003-03-18  Jim Meyering  <jim@meyering.net>
95210
95211         * lib/quote.c (quote_n): Fix typo in comment.
95212
95213 2003-03-18  Bruno Haible  <bruno@clisp.org>
95214
95215         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
95216         checking.
95217         * m4/onceonly_2_57.m4: Likewise.
95218
95219 2003-03-17  Bruno Haible  <bruno@clisp.org>
95220
95221         * m4/onceonly.m4: Require autoconf 2.54 or newer.
95222         (m4_quote): Remove macro.
95223         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
95224
95225 2003-03-14  Jim Meyering  <jim@meyering.net>
95226
95227         Merge changes from Coreutils.
95228         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
95229         to be const, in order to avoid warnings.
95230         (obstack_room): Likewise.
95231         (obstack_empty_p): Likewise.
95232
95233 2003-03-14  Bruno Haible  <bruno@clisp.org>
95234
95235         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
95236         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
95237
95238 2003-03-13  Paul Eggert  <eggert@twinsun.com>
95239
95240         Merge changes from Bison.
95241         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
95242         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
95243         when compiling Bison 1.875's `bitset bset = obstack_alloc
95244         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
95245         * lib/hash.c: Include <stdbool.h> unconditionally.
95246
95247 2003-03-13  Paul Eggert  <eggert@twinsun.com>
95248
95249         * m4/onceonly.m4 (m4_quote): New macro.
95250         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
95251         Quote AC_FOREACH variable-expansions properly.
95252
95253 2003-03-13  Paul Eggert  <eggert@twinsun.com>
95254
95255         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
95256
95257 2003-03-09  Paul Eggert  <eggert@twinsun.com>
95258
95259         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
95260         Reported by Bruce Becker; see:
95261         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
95262
95263 2003-03-03  Paul Eggert  <eggert@twinsun.com>
95264             Bruno Haible  <bruno@clisp.org>
95265
95266         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
95267         Reported by John Hughes, see
95268         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
95269
95270 2003-02-20  Bruno Haible  <bruno@clisp.org>
95271
95272         * MODULES.html.sh (func_all_modules): Add poll.
95273
95274 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
95275
95276         * modules/poll: New file.
95277
95278 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
95279
95280         * lib/poll_.h: New file.
95281         * lib/poll.c: New file.
95282
95283 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
95284
95285         * m4/poll.m4: New file.
95286
95287 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
95288
95289         * modules/mathl: New file.
95290
95291 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
95292
95293         * lib/mathl.h: New file.
95294         * lib/acosl.c: New file.
95295         * lib/asinl.c: New file.
95296         * lib/atanl.c: New file.
95297         * lib/ceill.c: New file.
95298         * lib/cosl.c: New file.
95299         * lib/expl.c: New file.
95300         * lib/floorl.c: New file.
95301         * lib/frexpl.c: New file.
95302         * lib/ldexpl.c: New file.
95303         * lib/logl.c: New file.
95304         * lib/sincosl.c: New file.
95305         * lib/sinl.c: New file.
95306         * lib/sqrtl.c: New file.
95307         * lib/tanl.c: New file.
95308         * lib/trigl.c: New file.
95309         * lib/trigl.h: New file.
95310
95311 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
95312
95313         * m4/mathl.m4: New file.
95314
95315 2003-02-18  Bruno Haible  <bruno@clisp.org>
95316
95317         * MODULES.html.sh (func_all_modules): Add mathl.
95318
95319 2003-02-17  Bruno Haible  <bruno@clisp.org>
95320
95321         * modules/mkdtemp: New module.
95322         * MODULES.html.sh (func_all_modules): Add it.
95323
95324 2003-02-17  Bruno Haible  <bruno@clisp.org>
95325
95326         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
95327
95328 2003-02-17  Bruno Haible  <bruno@clisp.org>
95329
95330         * lib/mkdtemp.h: New file, from GNU gettext.
95331         * lib/mkdtemp.c: New file, from GNU gettext.
95332
95333 2003-02-02  Jim Meyering  <jim@meyering.net>
95334
95335         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
95336         e.g. glibc-2.2.93.
95337
95338 2003-01-31  Bruno Haible  <bruno@clisp.org>
95339
95340         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
95341         'rpl_rename'.
95342         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
95343         'rpl_strnlen'.
95344         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
95345         'rpl_strtod'.
95346         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
95347         'rpl_utime'.
95348
95349 2003-01-31  Bruno Haible  <bruno@clisp.org>
95350
95351         * lib/rename.c: #undef rename before defining rpl_rename.
95352         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
95353
95354 2003-01-30  Bruno Haible  <bruno@clisp.org>
95355
95356         * modules/vasnprintf, modules/vasprintf: New modules.
95357         * MODULES.html.sh (func_all_modules): Add them.
95358
95359 2003-01-30  Bruno Haible  <bruno@clisp.org>
95360
95361         * m4/signed.m4: New file, from GNU gettext.
95362         * m4/longdouble.m4: New file, from GNU gettext.
95363         * m4/wchar_t.m4: New file, from GNU gettext.
95364         * m4/wint_t.m4: New file, from GNU gettext.
95365         * m4/vasnprintf.m4: New file.
95366         * m4/vasprintf.m4: New file.
95367
95368 2003-01-30  Bruno Haible  <bruno@clisp.org>
95369
95370         * lib/printf-args.h: New file, from GNU gettext.
95371         * lib/printf-args.c: New file, from GNU gettext.
95372         * lib/printf-parse.h: New file, from GNU gettext.
95373         * lib/printf-parse.c: New file, from GNU gettext.
95374         * lib/vasnprintf.h: New file, from GNU gettext.
95375         * lib/vasnprintf.c: New file, from GNU gettext.
95376         * lib/asnprintf.c: New file, from GNU gettext.
95377         * lib/vasprintf.h: New file, from GNU gettext with modifications.
95378         * lib/vasprintf.c: New file, from GNU gettext.
95379         * lib/asprintf.c: New file, from GNU gettext.
95380
95381 2003-01-29  Bruno Haible  <bruno@clisp.org>
95382
95383         * modules/stpncpy: New module.
95384         * MODULES.html.sh (func_all_modules): Add it.
95385
95386 2003-01-29  Bruno Haible  <bruno@clisp.org>
95387
95388         * m4/stpncpy.m4: New file.
95389
95390 2003-01-29  Bruno Haible  <bruno@clisp.org>
95391
95392         * lib/stpncpy.h: New file, from GNU gettext with modifications.
95393         * lib/stpncpy.c: New file, from GNU gettext with modifications.
95394
95395 2003-01-28  Bruno Haible  <bruno@clisp.org>
95396
95397         * modules/c-ctype: New module.
95398         * MODULES.html.sh (func_all_modules): Add it.
95399
95400 2003-01-28  Bruno Haible  <bruno@clisp.org>
95401
95402         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
95403         Paul Eggert.
95404         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
95405         Paul Eggert.
95406
95407 2003-01-27  Bruno Haible  <bruno@clisp.org>
95408
95409         * modules/xsetenv: New module.
95410         * MODULES.html.sh (func_all_modules): Add it.
95411
95412 2003-01-27  Bruno Haible  <bruno@clisp.org>
95413
95414         * lib/xsetenv.h: New file, from GNU gettext.
95415         * lib/xsetenv.c: New file, from GNU gettext.
95416
95417 2003-01-23  Jim Meyering  <jim@meyering.net>
95418
95419         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
95420         from working on systems without dirfd (at least Irix and OSF1/Tru64).
95421
95422 2003-01-23  Bruno Haible  <bruno@clisp.org>
95423
95424         * modules/minmax: New module.
95425         * MODULES.html.sh (func_all_modules): Add it.
95426
95427 2003-01-23  Bruno Haible  <bruno@clisp.org>
95428
95429         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
95430         Eggert.
95431
95432 2003-01-22  Bruno Haible  <bruno@clisp.org>
95433
95434         * modules/exit: New module.
95435         * MODULES.html.sh (func_all_modules): Add it.
95436
95437 2003-01-22  Bruno Haible  <bruno@clisp.org>
95438
95439         * lib/exit.h: New file, from GNU gettext.
95440
95441 2003-01-19  Bruno Haible  <bruno@clisp.org>
95442
95443         * gnulib-tool: Recognize option --extract-maintainer.
95444         (func_get_maintainer): New function.
95445         * modules/*: Add Maintainer entry.
95446
95447 2003-01-16  Jim Meyering  <jim@meyering.net>
95448
95449         * m4/regex.m4: The `regex' struct is both input and output.
95450         Initialize it before each use.  Patch by Tim Waugh.
95451
95452 2003-01-16  Bruno Haible  <bruno@clisp.org>
95453
95454         * MODULES.html.sh: Add a table of contents. Add the module name as
95455         leftmost column. Add hyperlinks.
95456
95457 2003-01-15  Bruno Haible  <bruno@clisp.org>
95458
95459         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
95460
95461 2003-01-15  Bruno Haible  <bruno@clisp.org>
95462
95463         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
95464         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
95465         suffix.
95466
95467 2003-01-15  Bruno Haible  <bruno@clisp.org>
95468
95469         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
95470
95471 2003-01-15  Bruno Haible  <bruno@clisp.org>
95472
95473         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
95474         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
95475
95476 2003-01-14  Jim Meyering  <jim@meyering.net>
95477
95478         * lib/same.c (same_name): Tweak a comment.
95479
95480 2003-01-14  Bruno Haible  <bruno@clisp.org>
95481
95482         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
95483         when a string comparison is sufficient.
95484
95485 2003-01-14  Bruno Haible  <bruno@clisp.org>
95486
95487         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
95488         'unsigned int'.
95489
95490 2003-01-14  Bruno Haible  <bruno@clisp.org>
95491
95492         * lib/hash-pjw.c: Add comment about low quality of this function.
95493
95494 2003-01-13  Bruno Haible  <bruno@clisp.org>
95495
95496         * modules/stpcpy: Distribute lib/stpcpy.h.
95497         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
95498
95499 2003-01-13  Bruno Haible  <bruno@clisp.org>
95500
95501         * modules/*: Add a description.
95502         * modules/strpbrk: Fix Makefile.am snippet.
95503         * modules/strtoimax: Fix dependencies.
95504         * modules/strtoumax: Likewise.
95505
95506 2003-01-13  Bruno Haible  <bruno@clisp.org>
95507
95508         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
95509         * modules/alloca (Makefile.am): All object files depend on alloca.h.
95510         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
95511
95512 2003-01-13  Bruno Haible  <bruno@clisp.org>
95513
95514         * gnulib-tool (func_create_testdir): Store config/* files in the main
95515         directory.
95516         * config.rpath: Move to ...
95517         * config/config.rpath: ... here.
95518         * modules/gettext: Contains config/config.rpath, not config.rpath.
95519         * modules/iconv: Likewise.
95520
95521 2003-01-12  Paul Eggert  <eggert@twinsun.com>
95522
95523         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
95524         to avoid collisions with libcurses and libreadline.
95525
95526         * m4/getstr.m4: Remove.
95527         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
95528
95529 2003-01-12  Paul Eggert  <eggert@twinsun.com>
95530
95531         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
95532         to avoid collisions with libcurses and libreadline.
95533
95534         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
95535         * lib/getstr.h, getstr.c: Remove.
95536         * lib/getline.c: Include "getline.h", to check interface.
95537         Move body of old getstr.c here: this defines MIN_CHUNK and
95538         declares getdelim2, which is renamed from getstr.
95539         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
95540
95541         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
95542         All uses changed.
95543         * lib/linebuffer.h: Likewise.
95544         (readline): Remove backward-compatibility macro.
95545
95546 2003-01-12  Paul Eggert  <eggert@twinsun.com>
95547
95548         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
95549         to avoid collisions with libcurses and libreadline.
95550         * getstr: Remove.
95551         * MODULES.html.sh: Remove getstr.
95552         * modules/getline: Depend on unlocked-io, not getstr.
95553
95554 2003-01-12  Jim Meyering  <jim@meyering.net>
95555
95556         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
95557
95558 2003-01-10  Bruno Haible  <bruno@clisp.org>
95559
95560         * modules/alloca: Change Makefile.am requirements. Simplify Include
95561         requirements. Add lib/alloca_.h to file list.
95562
95563 2003-01-10  Bruno Haible  <bruno@clisp.org>
95564
95565         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
95566
95567 2003-01-10  Bruno Haible  <bruno@clisp.org>
95568
95569         * lib/alloca_.h: New file.
95570         * lib/getdate.y: Unconditionally include alloca.h.
95571         * lib/makepath.c: Likewise.
95572         * lib/setenv.c: Likewise.
95573         * lib/userspec.c: Likewise.
95574
95575 2003-01-09  Karl Berry  <karl@gnu.org>
95576
95577         * MODULES.html.sh: include `dirname $0` in PATH, to find
95578         gnulib-tool.
95579
95580 2003-01-09  Bruno Haible  <bruno@clisp.org>
95581
95582         * modules/stdbool: Change configure.ac, Makefile.am requirements.
95583         Simplify Include requirements. Add lib/stdbool.h.in to file list.
95584
95585 2003-01-09  Bruno Haible  <bruno@clisp.org>
95586
95587         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
95588
95589 2003-01-09  Bruno Haible  <bruno@clisp.org>
95590
95591         * lib/stdbool.h.in: New file.
95592
95593 2003-01-09  Bruno Haible  <bruno@clisp.org>
95594
95595         * gnulib-tool (func_all_modules): Ignore files ending in ~.
95596         * MODULES.html.sh: Likewise.
95597
95598 2003-01-08  Jim Meyering  <jim@meyering.net>
95599
95600         * lib/full-write.c: Undefine and define-away `const' after inclusion
95601         of errno.h, not before.  Suggestion from Bruno Haible.
95602
95603 2003-01-08  Bruno Haible  <bruno@clisp.org>
95604
95605         * modules/full-read: Depend on full-write.
95606
95607 2003-01-08  Bruno Haible  <bruno@clisp.org>
95608
95609         * lib/safe-read.c: Include specification header first, to ensure its
95610         selfcontainedness.
95611         * lib/full-write.c: Likewise.
95612
95613 2003-01-07  Jim Meyering  <jim@meyering.net>
95614
95615         * lib/full-write.c: Rework so that it may serve to define full_read,
95616         too.
95617         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
95618
95619 2003-01-07  Bruno Haible  <bruno@clisp.org>
95620
95621         * lib/strtoimax.c: Include <stdint.h> as an alternative to
95622         <inttypes.h>.
95623         * lib/xstrtol.h: Likewise.
95624         * lib/xstrtoimax.c: Likewise.
95625         * lib/xstrtoumax.c: Likewise.
95626         * lib/human.h: Likewise.
95627
95628         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
95629         on systems that have <inttypes.h> but not <stdint.h>.
95630
95631 2003-01-07  Bruno Haible  <bruno@clisp.org>
95632
95633         * MODULES.html.sh: Add copyright notice.
95634         (missed_files): Omit CVS directory entries.
95635         (func_module): Make it work with sed-3.02.
95636         * MODULES.txt: Remove file.
95637
95638 2003-01-06  Jim Meyering  <jim@meyering.net>
95639
95640         * lib/version-etc.c: Update year in translatable copyright string.
95641
95642 2003-01-03  Karl Berry  <karl@gnu.org>
95643
95644         * config/config.{guess,sub}: update from prep.
95645
95646 2003-01-02  Karl Berry  <karl@gnu.org>
95647
95648         * doc/COPYING.DOC: belatedly updated to 1.2.
95649
95650 2003-01-01  Karl Berry  <karl@gnu.org>
95651
95652         * gnulib-tool (func_verify_module): report module name $module in
95653         error message, not $1.
95654         * gnulib-tool (create-testdir): don't complain if destdir couldn't
95655         be created, only if it doesn't exist.
95656         * gnulib-tool (last_checkin_date): don't expand the $Date here.
95657
95658 2002-12-31  Paul Eggert  <eggert@twinsun.com>
95659
95660         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
95661
95662 2002-12-31  Paul Eggert  <eggert@twinsun.com>
95663
95664         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
95665         memcmp if strcoll doesn't work.
95666
95667 2002-12-31  Bruno Haible  <bruno@clisp.org>
95668
95669         * lib/utime.c (utime_null): No need to call ftruncate if the file was
95670         nonempty.
95671
95672 2002-12-31  Bruno Haible  <bruno@clisp.org>
95673
95674         * lib/memcoll.c (STRCOLL): New macro.
95675         (memcoll): Use it.
95676
95677 2002-12-31  Bruno Haible  <bruno@clisp.org>
95678
95679         * lib/localcharset.h: New file.
95680         * lib/localcharset.c: Include it.
95681         * lib/unicodeio.c: Likewise.
95682
95683 2002-12-31  Bruno Haible  <bruno@clisp.org>
95684
95685         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
95686         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
95687
95688 2002-12-31  Bruno Haible  <bruno@clisp.org>
95689
95690         * lib/getline.h: Include <stddef.h>, for size_t.
95691
95692         * lib/unicodeio.h: Include <stddef.h>, for size_t.
95693         * lib/unicodeio.c: Don't include <stddef.h>.
95694
95695 2002-12-31  Bruno Haible  <bruno@clisp.org>
95696
95697         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
95698         HAVE_TM_ZONE.
95699
95700 2002-12-24  Karl Berry  <karl@gnu.org>
95701
95702         * config/config.guess: update from prep.
95703
95704 2002-12-24  Bruno Haible  <bruno@clisp.org>
95705
95706         General infrasructure.
95707         * m4/README: Rewritten.
95708         * m4/onceonly.m4: New file.
95709         * m4/onceonly_2_57.m4: New file.
95710
95711         Module atexit.
95712         * m4/atexit.m4: New file.
95713
95714         Module strtod.
95715         * m4/strtod.m4: New file.
95716
95717         Module strtol.
95718         * m4/strtol.m4: New file.
95719
95720         Module strtoul.
95721         * m4/strtoul.m4: New file.
95722
95723         Module memchr.
95724         * m4/memchr.m4: New file.
95725
95726         Module memcmp.
95727         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
95728         (jm_FUNC_MEMCMP): Invoke it.
95729
95730         Module memcpy.
95731         * m4/memcpy.m4: New file.
95732
95733         Module memmove.
95734         * m4/memmove.m4: New file.
95735
95736         Module memset.
95737         * m4/memset.m4: New file.
95738
95739         Module strcspn.
95740         * m4/strcspn.m4: New file.
95741
95742         Module strpbrk.
95743         * m4/strpbrk.m4: New file.
95744
95745         Module strstr.
95746         * m4/strstr.m4: New file.
95747
95748         Module strerror.
95749         * m4/strerror.m4: New file.
95750
95751         Module mktime.
95752         * m4/mktime.m4: Renamed from jm-mktime.m4.
95753         (gl_PREREQ_MKTIME): New macro.
95754         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
95755
95756         Module malloc.
95757         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
95758         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
95759         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
95760
95761         Module realloc.
95762         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
95763         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
95764         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
95765
95766         Module strftime.
95767         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
95768         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
95769         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
95770         gl_TM_GMTOFF.
95771         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
95772
95773         Module xalloc.
95774         * m4/xalloc.m4: New file.
95775
95776         Module alloca.
95777         * m4/alloca.m4: New file.
95778
95779         Module putenv.
95780         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
95781         (jm_FUNC_PUTENV): Invoke it.
95782
95783         Module setenv.
95784         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
95785         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
95786         when invoked twice.
95787         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
95788         gt_FUNC_SETENV.
95789
95790         Module memrchr.
95791         * m4/memrchr.m4: New file.
95792
95793         Module stpcpy.
95794         * m4/stpcpy.m4: New file.
95795
95796         Module strcase.
95797         * m4/strcase.m4: New file.
95798
95799         Module strdup.
95800         * m4/strdup.m4: New file.
95801
95802         Module strnlen.
95803         * m4/strnlen.m4: New file.
95804
95805         Module strndup.
95806         * m4/strndup.m4: New file.
95807
95808         Module xstrtod.
95809         * m4/xstrtod.m4: New file.
95810
95811         Module xstrtol.
95812         * m4/xstrtol.m4: New file.
95813
95814         Module getdate.
95815         * m4/getdate.m4: New file.
95816
95817         Module unlocked-io.
95818         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
95819         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
95820         * m4/jm-glibc-io.m4n: Remove file.
95821
95822         Module long-options.
95823         * m4/long-options.m4: New file.
95824
95825         Module md5.
95826         * m4/md5.m4: New file.
95827
95828         Module sha.
95829         * m4/sha.m4: New file.
95830
95831         Module getstr.
95832         * m4/getstr.m4: New file.
95833
95834         Module getline.
95835         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
95836         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
95837         <sys/types.h>, for size_t. Use the function name gnu_getline, not
95838         simply getline. Infoke gl_PREREQ_GETLINE.
95839
95840         Module obstack.
95841         * m4/obstack.m4: New file.
95842
95843         Module hash.
95844         * m4/hash.m4: New file.
95845
95846         Module readtokens.
95847         * m4/readtokens.m4: New file.
95848
95849         Module strverscmp.
95850         * m4/strverscmp.m4: New file.
95851
95852         Module stdbool.
95853         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
95854         OSF/1.
95855
95856         Module strtoll.
95857         * m4/strtoll.m4: New file.
95858
95859         Module strtoull.
95860         * m4/strtoull.m4: New file.
95861
95862         Module strtoimax.
95863         * m4/strtoimax.m4: New file.
95864
95865         Module strtoumax.
95866         * m4/strtoumax.m4: New file.
95867
95868         Module xstrtoimax.
95869         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
95870         jm_AC_PREREQ_XSTRTOIMAX.
95871         Moved the strtol prerequisites to strtol.m4.
95872         Moved the strtoll prerequisites to strtoll.m4.
95873         Moved the strtoimax prerequisites to strtoimax.m4.
95874
95875         Module xstrtoumax.
95876         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
95877         jm_AC_PREREQ_XSTRTOUMAX.
95878         Moved the strtoul prerequisites to strtoul.m4.
95879         Moved the strtoull prerequisites to strtoull.m4.
95880         Moved the strtoumax prerequisites to strtoumax.m4.
95881
95882         Module chown.
95883         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
95884         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
95885
95886         Module dup2.
95887         * m4/dup2.m4: New file.
95888
95889         Module ftruncate.
95890         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
95891         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
95892
95893         Module getgroups.
95894         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
95895         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
95896
95897         Module gettimeofday.
95898         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
95899         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
95900         gl_PREREQ_GETTIMEOFDAY.
95901
95902         Module mkdir.
95903         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
95904         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
95905
95906         Module mkstemp.
95907         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
95908         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
95909         jm_AC_TYPE_UINTMAX_T.
95910         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
95911
95912         Module stat.
95913         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
95914         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
95915
95916         Module lstat.
95917         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
95918         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
95919
95920         Module timespec.
95921         * m4/timespec.m4 (gl_TIMESPEC): New macro.
95922         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
95923         * m4/st_mtim.m4: Indentation.
95924
95925         Module nanosleep.
95926         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
95927         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
95928         gl_PREREQ_NANOSLEEP.
95929
95930         Module regex.
95931         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
95932         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
95933         (gl_REGEX): New macro.
95934
95935         Module rename.
95936         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
95937         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
95938
95939         Module rmdir.
95940         * m4/rmdir.m4: New file.
95941
95942         Module utime.
95943         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
95944         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
95945         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
95946
95947         Module dirname.
95948         * m4/dirname.m4: New file.
95949
95950         Module getopt.
95951         * m4/getopt.m4: New file.
95952
95953         Module unistd-safer.
95954         * m4/unistd-safer.m4: New file.
95955
95956         Module fnmatch.
95957         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
95958         declaration.
95959         (gl_PREREQ_FNMATCH_EXTRA): New macro.
95960         (gl_FUNC_FNMATCH_POSIX): New macro.
95961         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
95962         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
95963         simply fnmatch.
95964
95965         Module exclude.
95966         * m4/exclude.m4: New file.
95967
95968         Module human.
95969         * m4/human.m4: New file.
95970
95971         Module acl.
95972         * m4/acl.m4: Nop.
95973
95974         Module backupfile.
95975         * m4/backupfile.m4: New file.
95976         * m4/d-ino.m4: Indentation.
95977
95978         Module fsusage.
95979         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
95980         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
95981         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
95982
95983         Module dirfd.
95984         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
95985         requirements.
95986
95987         Module euidaccess.
95988         * m4/euidaccess.m4: New file.
95989
95990         Module file-type.
95991         * m4/file-type.m4: New file.
95992
95993         Module fileblocks.
95994         * m4/fileblocks.m4: New file.
95995
95996         Module filemode.
95997         * m4/filemode.m4: New file.
95998
95999         Module isdir.
96000         * m4/isdir.m4: New file.
96001
96002         Module lchown.
96003         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
96004         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
96005
96006         Module makepath.
96007         * m4/makepath.m4: New file.
96008
96009         Module modechange.
96010         * m4/modechange.m4: New file.
96011
96012         Module mountlist.
96013         * m4/mountlist.m4: New file.
96014         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
96015         Indentation.
96016
96017         Module path-concat.
96018         * m4/path-concat.m4: New file.
96019
96020         Module pathmax.
96021         * m4/pathmax.m4: New file.
96022
96023         Module same.
96024         * m4/same.m4: New file.
96025
96026         Module save-cwd.
96027         * m4/save-cwd.m4: New file.
96028
96029         Module savedir.
96030         * m4/savedir.m4: New file.
96031
96032         Module xgetcwd.
96033         * m4/xgetcwd.m4: New file.
96034         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
96035
96036         Module xreadlink.
96037         * m4/xreadlink.m4: New file.
96038
96039         Module safe-read.
96040         * m4/safe-read.m4: New file.
96041
96042         Module safe-write.
96043         * m4/safe-write.m4: New file.
96044
96045         Module closeout.
96046         * m4/closeout.m4: New file.
96047
96048         Module stdio-safer.
96049         * m4/stdio-safer.m4: New file.
96050
96051         Module getpass.
96052         * m4/getpass.m4: New file.
96053
96054         Module getugroups.
96055         * m4/getugroups.m4: New file.
96056
96057         Module group-member.
96058         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
96059         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
96060
96061         Module idcache.
96062         * m4/idcache.m4: New file.
96063
96064         Module userspec.
96065         * m4/userspec.m4: New file.
96066
96067         Module gettime.
96068         * m4/clock_time.m4: New file.
96069         * m4/gettime.m4: New file.
96070
96071         Module settime.
96072         * m4/settime.m4: New file.
96073
96074         Module posixtm.
96075         * m4/posixtm.m4: New file.
96076
96077         Module gethostname.
96078         * m4/gethostname.m4: New file.
96079
96080         Module canon-host.
96081         * m4/canon-host.m4: New file.
96082
96083         Module gettext.
96084         * m4/codeset.m4: New file, from gettext-0.11.5.
96085         * m4/gettext.m4: New file, from gettext-0.11.5.
96086         * m4/glibc21.m4: New file, from gettext-0.11.5.
96087         * m4/iconv.m4: New file, from gettext-0.11.5.
96088         * m4/intdiv0.m4: New file, from gettext-0.11.5.
96089         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
96090         * m4/inttypes.m4: New file, from gettext-0.11.5.
96091         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
96092         * m4/isc-posix.m4: New file, from gettext-0.11.5.
96093         * m4/lcmessage.m4: New file, from gettext-0.11.5.
96094         * m4/lib-ld.m4: New file, from gettext-0.11.5.
96095         * m4/lib-link.m4: New file, from gettext-0.11.5.
96096         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
96097         * m4/progtest.m4: New file, from gettext-0.11.5.
96098         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
96099         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
96100         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
96101
96102         Module localcharset.
96103         * m4/localcharset.m4: New file.
96104
96105         Module hard-locale.
96106         * m4/hard-locale.m4: New file.
96107
96108         Module mbswidth.
96109         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
96110         onceonly macros.
96111         * m4/mbrtowc.m4: Add comment.
96112
96113         Module memcasecmp.
96114         * m4/memcasecmp.m4: New file.
96115
96116         Module memcoll.
96117         * m4/memcoll.m4: New file.
96118
96119         Module unicodeio.
96120         * m4/unicodeio.m4: New file.
96121
96122         Module rpmatch.
96123         * m4/rpmatch.m4: New file.
96124
96125         Module yesno.
96126         * m4/yesno.m4: New file.
96127
96128         Module exitfail.
96129         * m4/exitfail.m4: New file.
96130
96131         Module c-stack.
96132         * m4/c-stack.m4 (gl_C_STACK): New macro.
96133         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
96134
96135         Module error.
96136         * m4/error.m4 (gl_ERROR): New macro.
96137         (jm_PREREQ_ERROR): Use onceonly macros.
96138
96139         Module fatal.
96140         * m4/fatal.m4: New file.
96141
96142         Module getloadavg.
96143         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
96144         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
96145
96146         Module getpagesize.
96147         * m4/getpagesize.m4: New file.
96148
96149         Module getusershell.
96150         * m4/getusershell.m4: New file.
96151
96152         Module physmem.
96153         * m4/physmem.m4: New file.
96154
96155         Module posixver.
96156         * m4/posixver.m4: New file.
96157
96158         Module quotearg.
96159         * m4/quotearg.m4: New file.
96160
96161         Module quote.
96162         * m4/quote.m4: New file.
96163
96164         Module readutmp.
96165         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
96166
96167         Module sig2str.
96168         * m4/sig2str.m4: New file.
96169
96170         Other.
96171         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
96172         ulonglong.m4.
96173         * m4/intmax_t.m4: New file.
96174         * m4/d-type.m4: Indentation.
96175         * m4/jm-macros.m4: Update.
96176         * m4/prereq.m4 (jm_PREREQ): Update.
96177         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
96178         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
96179         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
96180         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
96181         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
96182         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
96183         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
96184         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
96185         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
96186         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
96187         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
96188         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
96189         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
96190         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
96191         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
96192         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
96193         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
96194         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
96195         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
96196
96197 2002-12-24  Bruno Haible  <bruno@clisp.org>
96198
96199         * MODULES.txt: Update according to m4/ changes.
96200
96201         Module gettext.
96202         * config.rpath: New file, from gettext-0.11.5.
96203
96204         * modules/*: New module descriptions.
96205         * gnulib-tool: New file.
96206         * MODULES.html.sh: New file.
96207
96208 2002-12-21  Karl Berry  <karl@gnu.org>
96209
96210         * doc/fdl.texi: update to version 1.2.
96211
96212 2002-12-19  Karl Berry  <karl@gnu.org>
96213
96214         * config/config.guess: update from prep.
96215
96216 2002-12-18  Bruno Haible  <bruno@clisp.org>
96217
96218         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
96219         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
96220
96221 2002-12-17  Bruno Haible  <bruno@clisp.org>
96222
96223         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
96224         stdlib.h, string.h.
96225
96226 2002-12-17  Bruno Haible  <bruno@clisp.org>
96227
96228         * lib/canon-host.c (strdup): Remove unused declaration.
96229
96230         * lib/fsusage.c: Include full_read.h.
96231         (get_fs_usage): Use full_read instead of safe_read.
96232
96233         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
96234
96235 2002-12-12  Karl Berry  <karl@gnu.org>
96236
96237         * config/config.guess: update from prep.
96238
96239 2002-12-11  Bruno Haible  <bruno@clisp.org>
96240
96241         * m4/setenv.m4: New file, from gettext-0.11.5.
96242
96243 2002-12-11  Bruno Haible  <bruno@clisp.org>
96244
96245         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
96246         not unsetenv().
96247         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
96248         modifications:
96249
96250         2002-12-11  Bruno Haible  <bruno@clisp.org>
96251
96252                 * setenv.c (alloca): Fall back to malloc.
96253                 (freea): New macro.
96254                 (setenv): Use freea() to free memory allocated with alloca().
96255
96256         2002-11-13  Bruno Haible  <bruno@clisp.org>
96257
96258                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
96259                 function declarations.
96260                 * unsetenv.c (unsetenv): Likewise.
96261
96262         2002-03-04  Bruno Haible  <bruno@clisp.org>
96263
96264                 Portability to AIX 4.3.3.
96265                 * unsetenv.c: New file, extracted from setenv.c.
96266                 * setenv.c: Move the unsetenv() function to unsetenv.c.
96267
96268         2001-12-20  Bruno Haible  <bruno@clisp.org>
96269
96270                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
96271                 use malloc instead. For SunOS 4.
96272
96273         2001-12-11  Bruno Haible  <bruno@clisp.org>
96274
96275                 * setenv.c: Declare alloca.
96276                 (compar_fn_t): New typedef.
96277                 (KNOWN_VALUE, STORE_VALUE): Use it.
96278
96279         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
96280         setenv.h.
96281
96282 2002-12-10  Paul Eggert  <eggert@twinsun.com>
96283
96284         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
96285         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
96286         Choose values that are less likely to collide with system fnmatch
96287         options.
96288         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
96289         defined (e.g., a pure POSIX system).
96290         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
96291         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
96292
96293 2002-12-06  Paul Eggert  <eggert@twinsun.com>
96294
96295         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
96296         a pain in practice to deal with generated m4 files.  This change
96297         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
96298
96299         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
96300         and jm-glibc-io.m4, as they are no longer a special case.
96301         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
96302         kludge and the auto-generation stuff.  Check only whether the
96303         functions are declared, not whether they exist, since older hosts
96304         that don't declare the functions can't use the optimization anyway.
96305
96306 2002-12-06  Jim Meyering  <jim@meyering.net>
96307
96308         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
96309
96310         Merge in changes from libc's misc/error.c, in preparation
96311         for the merge of gnulib's changes back into libc.
96312
96313         * lib/error.c (_): Define only if not already defined.
96314         Move definition to follow all #include directives.
96315         Include unlocked-io.h only if !_LIBC.
96316         [_LIBC]: Include <libio/libioP.h>.
96317         [USE_IN_LIBIO]: Include <libio/iolibio.h>
96318         (fflush): Tweak definition to use INTUSE.
96319         (putc): Define.
96320
96321 2002-12-05  Paul Eggert  <eggert@twinsun.com>
96322
96323         * lib/alloca.c [defined emacs]: Include "lisp.h".
96324         (xalloc_die) [defined emacs]: New macro.
96325         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
96326         [! defined emacs]: Include <xalloc.h>.
96327         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
96328         (pointer): Typedef to POINTER_TYPE *.
96329         (malloc): Remove decl; we now always use xmalloc.
96330         (alloca): Use old-style definition, since Emacs needs this.
96331         Check for arithmetic overflow when computing combined size.
96332
96333 2002-12-04  Paul Eggert  <eggert@twinsun.com>
96334
96335         Do not generate unlocked-io.h automatically, since it's easier to
96336         maintain it by hand.
96337
96338         * lib/unlocked-io.h: New file, from GNU diffutils,
96339         but with proper copyright notice and attribution.
96340         * lib/gen-uio: Remove.
96341         * lib/Makefile.am: Add copyright notice.
96342         (libfetish_a_SOURCES): Add unlocked-io.h.
96343         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
96344         (DISTCLEANFILES, io_functions): Remove macros.
96345         (EXTRA_DIST): Remove gen_uio.
96346         (unlocked-io.h): Remove rule.
96347
96348 2002-12-04  Jim Meyering  <jim@meyering.net>
96349
96350         Reflect the fact that stat.c and lstat.c are no longer generated.
96351         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
96352         (DISTCLEANFILES): Likewise.
96353         (EXTRA_DIST): Likewise.
96354         (all_local): Don't depend on stat.c or lstat.c.
96355         (stat.c, lstat.c): Remove rules.
96356         (EXTRA_DIST): Remove xstat.in.
96357
96358         * lib/xstat.in: Remove file.  Contents moved into stat.c.
96359         * lib/stat.c: New file.  Contents mostly from xstat.in.
96360         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
96361         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
96362
96363         * lib/safe-read.c: Rework so that it may serve to define safe_write,
96364         too.
96365         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
96366
96367 2002-12-03  Jim Meyering  <jim@meyering.net>
96368
96369         * lib/safe-read.c, safe-write.c: Change variable names and comments,
96370         but not semantics, to minimize the differences between these two files.
96371         (safe_read): Change comment to mention SAFE_READ_ERROR.
96372
96373         * lib/safe-read.c (IS_EINTR): Define.
96374         (safe_read): Use IS_EINTR in place of in-function cpp directives.
96375
96376 2002-12-02  Jim Meyering  <jim@meyering.net>
96377
96378         * lib/safe-read.c (EINTR): Define.
96379         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
96380         (INT_MAX): Provide fallback.
96381         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
96382
96383         * lib/safe-read.h (SAFE_READ_ERROR): Define.
96384
96385 2002-12-02  Bruno Haible  <bruno@clisp.org>
96386
96387         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
96388         Define, taken from safe-read.c.
96389         (INT_MAX): Provide fallback.
96390         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
96391         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
96392
96393         * lib/safe-read.c (EINTR): Remove definition.
96394         (safe_read): Don't use EINTR if it is absent.
96395
96396 2002-12-01  Jim Meyering  <jim@meyering.net>
96397
96398         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
96399         zero.
96400         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
96401
96402 2002-11-27  Paul Eggert  <eggert@twinsun.com>
96403
96404         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
96405         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
96406         with `if (! (value < limit)) abort ();', for readability.
96407
96408 2002-11-26  Karl Berry  <karl@gnu.org>
96409
96410         * lib/strdup.c: copy from libc again, with jim's ok.
96411         * lib/.cppi-disable: re-add strdup.c
96412
96413 2002-11-25  Karl Berry  <karl@gnu.org>
96414
96415         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
96416         instead of "strtol.c".
96417
96418 2002-11-25  Karl Berry  <karl@gnu.org>
96419
96420         * config/install-sh: update from automake for variable quoting, $0 in
96421         error msgs, etc.
96422
96423         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
96424         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
96425         entry.
96426
96427 2002-11-25  Jim Meyering  <jim@meyering.net>
96428
96429         * lib/mktime.c: Sync from libc, now that it has the latest fix.
96430
96431 2002-11-24  Karl Berry  <karl@gnu.org>
96432
96433         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
96434         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
96435
96436 2002-11-24  Jim Meyering  <jim@meyering.net>
96437
96438         Update from coreutils:
96439
96440         * lib/mktime.c: Merge in changes from libc.
96441
96442         Avoid a link-time failure on some Linux systems.
96443         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
96444         (otherwise).
96445         (__mon_yday): Declare with the STATIC attribute.
96446         (__mktime_internal): Likewise.
96447         Based on a report from Greg Schafer.
96448
96449 2002-11-23  Jim Meyering  <jim@meyering.net>
96450
96451         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
96452         Use `unsigned', not `int', as type of index.
96453
96454         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
96455
96456         * lib/fsusage.c: Remove unneeded parentheses around operands of
96457         `defined'.
96458
96459 2002-11-22  Paul Eggert  <eggert@twinsun.com>
96460
96461         * lib/quotearg.h: Allow multiple inclusion by surrounding with
96462         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
96463         so that we can be included first.
96464         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
96465         * lib/quotearg.c: Include quotearg.h immediately after config.h.
96466         No need to include stddef.h or sys/types.h any more.
96467         Surround local include files with "", not "<>".
96468         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
96469         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
96470         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
96471         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
96472         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
96473         (ISPRINT): Remove; no longer needed now that we assume C89.
96474
96475         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
96476         Preserve errno.
96477
96478         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
96479         quotearg_char): Use SIZE_MAX rather than
96480         (size_t) -1 when we are talking about "infinity".
96481
96482         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
96483
96484 2002-11-22  Paul Eggert  <eggert@twinsun.com>
96485
96486         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
96487         hint that one should use `if (! x) abort ();' rather than `assert
96488         (x);', and anyway it's one less thing to worry about configuring.
96489         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
96490         hash_rehash, hash_insert): Use abort rather than assert.
96491
96492 2002-11-22  Bruno Haible  <bruno@clisp.org>
96493
96494         * lib/safe-read.h: Assume C89. Add comments.
96495         (safe_read): Change return type to size_t.
96496         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
96497         byte counts > SSIZE_MAX correctly.
96498         * lib/safe-write.h: New file.
96499         * lib/safe-write.c: New file.
96500         * lib/full-read.h: New file.
96501         * lib/full-read.c: New file.
96502         * lib/full-write.h: Assume C89. Add comments.
96503         * lib/full-write.c: Include safe-write.h.
96504         (full_write): Rewritten to use safe_write.
96505         Suggested by Jim Meyering and Paul Eggert.
96506
96507 2002-11-21  Jim Meyering  <jim@meyering.net>
96508
96509         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
96510
96511         Merge in changes from the coreutils.
96512
96513         2002-09-25  Paul Eggert  <eggert@twinsun.com>
96514         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
96515         <stdint.h>.
96516         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
96517         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
96518         int.  Work more efficiently if X is the same width as uintmax_t.
96519         Do not compare X to -1, to avoid bogus compiler warning.
96520         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
96521         Don't assume that f_frsize and f_bsize are the same type.
96522
96523         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
96524         warning on FreeBSD.
96525
96526         * lib/makepath.c (make_path): Restore umask *before* creating the final
96527         component.
96528         (make_path): Minor reformatting.
96529
96530         * lib/xmalloc.c: Adjust to work with new autoconf macros,
96531         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
96532         HAVE_MALLOC/HAVE_REALLOC.
96533
96534         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
96535         dummy ones.  At least on GNU/Linux systems, `auto' means something
96536         else.
96537         From Michael Stone.
96538
96539 2002-11-21  Bruno Haible  <bruno@clisp.org>
96540
96541         Remove case insensitive option matching.
96542         * lib/argmatch.h (argcasematch): Remove declaration.
96543         (ARGCASEMATCH): Remove macro.
96544         (__xargmatch_internal): Remove case_sensitive argument.
96545         (XARGMATCH): Update.
96546         (XARGCASEMATCH): Remove macro.
96547         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
96548         case_sensitive argument.
96549         (argcasematch): Remove function.
96550         (__xargmatch_internal): Remove case_sensitive argument.
96551         (main): Use XARGMATCH instead of XARGCASEMATCH.
96552
96553         * lib/xmalloc.c: Change compile-time error message. Add comment about
96554         required autoconf version.
96555
96556 2002-11-20  Paul Eggert  <eggert@twinsun.com>
96557
96558         Merge argmatch cleanups from Bison.  Assume C89.
96559
96560         * lib/argmatch.c: Include config.h here, not in argmatch.h.
96561         Include stdlib.h, for EXIT_FAILURE.
96562         Always include <string.h>, since we assume C89.
96563         (EXIT_FAILURE): Remove pre-C89 bug workaround.
96564         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
96565         Include <stddef.h> instead, since it's all we need for size_t.
96566         (PARAMS): Remove.  All uses removed.
96567         (ARRAY_CARDINALITY): Do not bother to #undef.
96568         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
96569         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
96570         Remove unnecessary parentheses.
96571         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
96572         Insert necessary parentheses.
96573         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
96574         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
96575
96576 2002-11-19  Bruno Haible  <bruno@clisp.org>
96577
96578         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
96579         * lib/mbswidth.h: Include <stddef.h>, for size_t.
96580
96581         * lib/mbswidth.h (PARAMS): Remove macro.
96582         (mbswidth, mbsnwidth): Use ANSI C function declarations.
96583         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
96584
96585         * lib/gcd.h (PARAMS): Remove macro.
96586         (gcd): Use ANSI C function declarations.
96587         * lib/gcd.c (gcd): Likewise.
96588
96589 2002-11-15  Bruno Haible  <bruno@clisp.org>
96590
96591         * lib/strcspn.c: Include <stddef.h>.
96592         (strcspn): Use ANSI C function declaration. Change return type to
96593         size_t. Use NULL.
96594         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
96595         (strpbrk): Use NULL.
96596         * lib/strpbrk.h (PARAMS): Remove macro.
96597         (strpbrk): Use ANSI C function declaration.
96598         * lib/strstr.c: Don't include <sys/types.h>.
96599         * lib/strstr.h (PARAMS): Remove macro.
96600         (strstr): Use ANSI C function declarations.
96601
96602 2002-11-14  Karl Berry  <karl@gnu.org>
96603
96604         * config/mkinstalldirs: `do' on separate line, instead of
96605         `for var; do'.
96606
96607 2002-11-06  Bruno Haible  <bruno@clisp.org>
96608
96609         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
96610         * lib/gcd.c (gcd): Likewise.
96611
96612 2002-11-05  Bruno Haible  <bruno@clisp.org>
96613
96614         * lib/gcd.h: New file, from gettext-0.11.5.
96615         * lib/gcd.c: New file, from gettext-0.11.5.
96616
96617 2002-11-05  Bruno Haible  <bruno@clisp.org>
96618
96619         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
96620         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
96621         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
96622         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
96623
96624         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
96625         <libintl.h>.
96626         * lib/makepath.c: Include gettext.h instead of <locale.h> and
96627         <libintl.h>.
96628
96629         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
96630         * lib/human.c: Include gettext.h instead of <libintl.h>.
96631         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
96632         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
96633         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
96634         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
96635         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
96636         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
96637         (textdomain): Remove definition.
96638         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
96639
96640         * lib/long-options.c: Remove include of <libintl.h> and definition of
96641         _.
96642         * lib/same.c: Remove include of <libintl.h> and definition of _.
96643
96644 2002-11-04  Owen Taylor  <otaylor@redhat.com>
96645
96646         * lib/config.charset: A few additions for Solaris.
96647
96648 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
96649
96650         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
96651         * lib/localcharset.c (locale_charset): Declare as extern "C".
96652
96653 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
96654
96655         * lib/config.charset: msdos in uk_UA uses CP1125.
96656
96657 2002-11-04  Bruno Haible  <bruno@clisp.org>
96658
96659         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
96660         * lib/strcase.h: New file, from GNU gettext-0.11.5.
96661         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
96662         * lib/strstr.h: New file, from GNU gettext-0.11.5.
96663         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
96664
96665 2002-11-04  Bruno Haible  <bruno@clisp.org>
96666
96667         * lib/localcharset.c (locale_charset): Don't return an empty string.
96668
96669 2002-11-04  Bruno Haible  <bruno@clisp.org>
96670
96671         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
96672         aliases.
96673
96674 2002-11-04  Bruno Haible  <bruno@clisp.org>
96675
96676         * lib/config.charset: Update for newest glibc. Add canonical names
96677         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
96678
96679 2002-11-04  Bruno Haible  <bruno@clisp.org>
96680
96681         * lib/config.charset: Add support for NetBSD.
96682
96683 2002-11-04  Bruno Haible  <bruno@clisp.org>
96684
96685         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
96686
96687 2002-11-01  Bruno Haible  <bruno@clisp.org>
96688
96689         * configure.in: Add AC_CONFIG_AUX_DIR call.
96690         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
96691         test/Makefile.
96692         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
96693
96694 2002-09-28  Karl Berry  <karl@gnu.org>
96695
96696         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
96697         installed automake until the next release, since changes have been
96698         made.
96699
96700 2002-09-25  Karl Berry  <karl@gnu.org>
96701
96702         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
96703         * lib/getopt*: copy from libc/posix.
96704         * lib/gettext.h: copy from gettext.
96705         * lib/.cppi-disable: add strdup.c, gettext.h.
96706
96707 2002-09-25  Karl Berry  <karl@gnu.org>
96708
96709         * config/srclist.txt: enable gettext.h check.
96710         * config/config.{guess,sub}: update from prep.
96711         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
96712                 from automake 1.6.3.
96713         See srclist*.
96714
96715 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
96716
96717         * regex.c (PATFETCH): Remove the translating fetch.
96718         (PATFETCH_RAW): Rename to PATFETCH.
96719         (set_image_of_range): New fun.
96720         (SET_RANGE_TABLE_WORK_AREA): Use it.
96721         (regex_compile): Don't translate the pattern chars so eagerly.
96722         Only do it when inserting an `exactn' bytecode or when handling
96723         a char-range.
96724         (mutually_exclusive_p): Avoid empty statement.
96725
96726 2002-07-06  Jim Meyering  <meyering@lucent.com>
96727
96728         * m4/README: Don't mention Makefile.am.in.
96729         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
96730
96731 2002-07-01  Jim Meyering  <meyering@lucent.com>
96732
96733         * lib/c-stack.c: Include sys/time.h.
96734         From Volker Borchert.
96735
96736 2002-06-26  Paul Eggert  <eggert@twinsun.com>
96737
96738         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
96739
96740 2002-06-26  Paul Eggert  <eggert@twinsun.com>
96741
96742         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
96743         New macro.  Use it uniformly instead of
96744         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
96745         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
96746         reported by Vin Shelton.
96747
96748 2002-06-22  Paul Eggert  <eggert@twinsun.com>
96749
96750         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
96751         Do not assume SA_SIGINFO behavior.
96752         Bug reported by Jim Meyering on NetBSD 1.5.2.
96753
96754 2002-06-22  Jim Meyering  <meyering@lucent.com>
96755
96756         * m4/c-stack.m4: New file, from diffutils-2.8.2.
96757         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
96758
96759         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
96760         now that configure.ac uses AC_GNU_SOURCE.
96761         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
96762         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
96763
96764         Update to latest tools.  Suggestions from Paul Eggert.
96765         * m4/stdbool.m4: New file, from diffutils-2.8.2.
96766         * m4/gnu-source.m4: Update from diffutils-2.8.2.
96767         * m4/fnmatch.m4: Likewise.
96768         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
96769         to AC_HEADER_STDBOOL
96770
96771 2002-06-22  Jim Meyering  <meyering@lucent.com>
96772
96773         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
96774         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
96775
96776 2002-06-22  Jim Meyering  <meyering@lucent.com>
96777
96778         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
96779
96780         * lib/exitfail.c, exitfail.h: Likewise.
96781         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
96782
96783         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
96784         of fnmatch.h.
96785         (EXTRA_DIST): Add fnmatch_loop.c.
96786         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
96787
96788         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
96789         * lib/fnmatch.c: Update from diffutils-2.8.2.
96790         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
96791         * lib/fnmatch.h: Remove file.
96792
96793 2002-06-21  Jim Meyering  <meyering@lucent.com>
96794
96795         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
96796         * m4/mbrtowc.m4: Likewise.
96797
96798         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
96799         * m4/mbswidth.m4: Reflect name change:
96800         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
96801         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
96802
96803         * m4/lib-link.m4: Update from gettext-0.11.2.
96804         * m4/gettext.m4: Likewise.
96805
96806         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
96807         From Alfred M. Szmidt.
96808
96809 2002-06-18  Paul Eggert  <eggert@twinsun.com>
96810
96811         * lib/file-type.h: Report an error if neither S_ISREG nor
96812         S_IFREG is defined, instead of using a test specific to glibc
96813         2.2.  This should be safe, since POSIX requires S_ISREG and
96814         Unix Version 7 had S_IFREG.  We don't need to check for
96815         <sys/types.h> since we don't use any symbols that it defines.
96816
96817 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
96818
96819         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
96820         $@-t, so that each temporary file name is unique and valid in the first
96821         8 characters, for operation under DOS.
96822
96823 2002-06-15  Paul Eggert  <eggert@twinsun.com>
96824
96825         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
96826
96827 2002-06-15  Jim Meyering  <meyering@lucent.com>
96828
96829         Work even with DJGPP 2.03, which lacks support for symlinks.
96830         From Richard Dawe.
96831         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
96832         is defined.
96833         * lib/lchown.c (S_ISLNK): Likewise.
96834
96835 2002-06-15  Jim Meyering  <meyering@lucent.com>
96836
96837         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
96838         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
96839         have been included before this file.
96840
96841 2002-06-14  Jim Meyering  <meyering@lucent.com>
96842
96843         * lib/file-type.h: Use the version from diffutils-2.8.2.
96844         * lib/file-type.c: Likewise.
96845
96846 2002-06-07  Jim Meyering  <meyering@lucent.com>
96847
96848         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
96849         They're needed at least for NetBSD 1.5.2.
96850         ($statxfs_includes): Include those same headers.
96851         ($statxfs_includes): Include sys/vfs.h if available.
96852         ($statxfs_includes): Likewise for sys/statvfs.h.
96853         Check for the following members in both structs statfs and statvfs:
96854         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
96855
96856 2002-06-01  Jim Meyering  <meyering@lucent.com>
96857
96858         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
96859         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
96860
96861 2002-05-28  Jim Meyering  <meyering@lucent.com>
96862
96863         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
96864         Reported by Volker Borchert.
96865
96866 2002-05-27  Jim Meyering  <meyering@lucent.com>
96867
96868         Fix a problem seen only on nonconforming systems whereby ls.c's
96869         use of localtime, and then of gettimeofday would cause trouble:
96870         the localtime call used to initialize rpl_gettimeofday's save
96871         mechanism would clobber ls's current local time information so
96872         that in any long listing the first file would always be listed
96873         with date 1970-01-01.  Analysis by Volker Borchert.
96874
96875         * lib/gettimeofday.c (localtime): Undefine.
96876         (rpl_localtime): New function.
96877
96878 2002-05-27  Jim Meyering  <meyering@lucent.com>
96879
96880         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
96881         localtime.
96882
96883         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
96884         use the replacement function; it wouldn't resolve at link time.
96885         Reported by Volker Borchert.
96886
96887 2002-05-22  Jim Meyering  <meyering@lucent.com>
96888
96889         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
96890         file-type.h.
96891         * lib/file-type.h: New file.
96892         * lib/file-type.c (file_type): New file/function.  Extracted from
96893         diffutils.
96894
96895 2002-04-30  Jim Meyering  <meyering@lucent.com>
96896
96897         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
96898
96899 2002-04-29  Paul Eggert  <eggert@twinsun.com>
96900
96901         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
96902
96903 2002-04-29  Paul Eggert  <eggert@twinsun.com>
96904
96905         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
96906         Do not check for alloca.h (no longer used) or stdbool.h (was never
96907         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
96908
96909 2002-04-29  Paul Eggert  <eggert@twinsun.com>
96910
96911         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
96912
96913 2002-04-29  Jim Meyering  <meyering@lucent.com>
96914
96915         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
96916         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
96917         Use AC_FUNC_STRNLEN here instead.
96918
96919         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
96920         With autoconf-2.53a, it's part of AC_PROG_CC.
96921
96922 2002-04-28  Paul Eggert  <eggert@twinsun.com>
96923
96924         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
96925         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
96926
96927 2002-04-28  Paul Eggert  <eggert@twinsun.com>
96928
96929         * lib/sig2str.h, lib/sig2str.c: New files.
96930         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
96931
96932 2002-04-28  Paul Eggert  <eggert@twinsun.com>
96933
96934         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
96935         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
96936         of 127, since 64 is the largest conceivable number for ancient
96937         nonstandard hosts.
96938         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
96939
96940 2002-04-28  Jim Meyering  <meyering@lucent.com>
96941
96942         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
96943
96944 2002-04-24  Jim Meyering  <meyering@lucent.com>
96945
96946         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
96947         (jm_PREREQ): Use it.
96948
96949         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
96950         mach/mach.h fcntl.h.
96951         Check for this function: setlocale.
96952
96953 2002-04-24  Jim Meyering  <meyering@lucent.com>
96954
96955         * lib/gettext.h: New file, from Gettext.
96956         * lib/Makefile.am (INCLUDES): Remove -I../intl.
96957         (libfetish_a_SOURCES): Add gettext.h.
96958
96959 2002-04-16  Jim Meyering  <meyering@lucent.com>
96960
96961         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
96962         ut_pid, ut_id, ut_exit.
96963
96964 2002-04-16  Jim Meyering  <meyering@lucent.com>
96965
96966         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
96967         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
96968         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
96969
96970 2002-04-12  Jim Meyering  <meyering@lucent.com>
96971
96972         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
96973         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
96974         existence of the getmntinfo function.  Needed for Darwin 5.3.
96975
96976         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
96977         This is necessary at least on Darwin 5.3.
96978
96979         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
96980         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
96981         strnlen.o in the library, and that makes some versions of ranlib
96982         object.
96983
96984 2002-04-12  Jim Meyering  <meyering@lucent.com>
96985
96986         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
96987
96988 2002-04-09  Jim Meyering  <meyering@lucent.com>
96989
96990         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
96991         to be more precise.  Rather than saying we're checking whether the
96992         function `works', say what we're testing.
96993         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
96994         Reported by Bruno Haible.
96995
96996 2002-03-10  Jim Meyering  <meyering@lucent.com>
96997
96998         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
96999         Suggestion from Santiago Vila.
97000
97001 2002-03-08  Jim Meyering  <meyering@lucent.com>
97002
97003         * lib/rename.c: Mention that this wrapper is needed also on
97004         mips-dec-ultrix4.4 systems.
97005
97006 2002-03-02  Jim Meyering  <meyering@lucent.com>
97007
97008         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
97009         not HAVE_CLOCK_SETTIME.
97010
97011 2002-02-27  Paul Eggert  <eggert@twinsun.com>
97012
97013         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
97014         Check for clock_settime.
97015
97016 2002-02-27  Paul Eggert  <eggert@twinsun.com>
97017
97018         * lib/nanosleep.h: Rename to....
97019         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
97020
97021         * lib/gettime.c: New file.
97022         * lib/settime.c: New file.
97023         * lib/stime.c: Remove.
97024
97025         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
97026         timespec.h.  Remove nanosleep.h.
97027
97028 2002-02-25  Paul Eggert  <eggert@twinsun.com>
97029
97030         * m4/acl.m4: New file.
97031         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
97032         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
97033
97034 2002-02-25  Paul Eggert  <eggert@twinsun.com>
97035
97036         * lib/acl.c, lib/acl.h: New files.
97037         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
97038
97039 2002-02-24  Jim Meyering  <meyering@lucent.com>
97040
97041         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
97042         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
97043         cause trouble.  Reported by Nelson Beebe.
97044
97045 2002-02-23  Paul Eggert  <eggert@twinsun.com>
97046
97047         * lib/path-concat.c (xpath_concat): Reorder code to pacify
97048         compilers that don't know that xalloc_die never returns.
97049
97050 2002-02-20  Jim Meyering  <meyering@lucent.com>
97051
97052         * lib/getdate.c: Regenerate using bison-1.33.
97053
97054 2002-02-17  Jim Meyering  <meyering@lucent.com>
97055
97056         * config/config.guess (main): Don't use `head -1'; it's no longer
97057         portable. Use `sed 1q' instead.
97058
97059 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
97060
97061         * m4/codeset.m4: Upgrade to gettext-0.11.
97062         * m4/gettext.m4: Upgrade to gettext-0.11.
97063         * m4/glibc21.m4: Upgrade to gettext-0.11.
97064         * m4/iconv.m4: Upgrade to gettext-0.11.
97065         * m4/isc-posix.m4: Upgrade to gettext-0.11.
97066         * m4/lcmessage.m4: Upgrade to gettext-0.11.
97067         * m4/lib-ld.m4: New file, from gettext-0.11.
97068         * m4/lib-link.m4: New file, from gettext-0.11.
97069         * m4/lib-prefix.m4: New file, from gettext-0.11.
97070         * m4/progtest.m4: Upgrade to gettext-0.11.
97071
97072 2002-02-15  Paul Eggert  <eggert@twinsun.com>
97073
97074         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
97075         (jm_PREREQ): Use it.
97076
97077 2002-02-15  Paul Eggert  <eggert@twinsun.com>
97078
97079         * lib/posixver.c, lib/posixver.h: New files.
97080         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
97081
97082 2002-02-02  Paul Eggert  <eggert@twinsun.com>
97083             Bruno Haible  <bruno@clisp.org>
97084
97085         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
97086         (fwrite_success_callback): New declaration.
97087         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
97088         print_unicode_char. Call failure callback instead of error.
97089         (fwrite_success_callback): New function.
97090         (exit_failure_callback): New function.
97091         (fallback_failure_callback): New function.
97092         (print_unicode_char): Call unicode_to_mb.
97093
97094 2002-01-26  Jim Meyering  <meyering@lucent.com>
97095
97096         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
97097         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
97098
97099 2002-01-26  Jim Meyering  <meyering@lucent.com>
97100
97101         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
97102
97103 2002-01-22  Paul Eggert  <eggert@twinsun.com>
97104
97105         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
97106
97107 2002-01-22  Jim Meyering  <meyering@lucent.com>
97108
97109         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
97110         Otherwise, some versions of automake would omit the rule that makes
97111         Makefile from Makefile.in.
97112
97113 2002-01-21  Paul Eggert  <eggert@twinsun.com>
97114
97115         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
97116         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
97117         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
97118         (memcoll): Set errno to zero if there is no error.
97119
97120         * lib/quotearg.c (quotearg_buffer_restyled):
97121         Fix bug with quoting buffers containing NUL when backslashing escapes.
97122         This bug was exposed by the other changes in this patch.
97123         (quotearg_n_options): New arg ARGSIZE.
97124         All callers changed.
97125         (quoting_options_from_style): New function.
97126         (quotearg_n_style): Use it.
97127         (quotearg_n_style_mem): New function.
97128
97129         * lib/quotearg.h (quotearg_n_style_mem): New function.
97130
97131 2002-01-19  Jim Meyering  <meyering@lucent.com>
97132
97133         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
97134         Remove useless quotes: DF_PROG="df".
97135         * m4/strnlen.m4: New file.
97136
97137 2002-01-16  Paul Eggert  <eggert@twinsun.com>
97138
97139         * lib/backupfile.c (ISDIGIT): Comment fix.
97140         * lib/getdate.y (ISDIGIT): Likewise.
97141         * lib/posixtm.c (ISDIGIT, year): Likewise.
97142         * lib/strverscmp.c (ISDIGIT): Likewise.
97143         * lib/userspec.c (ISDIGIT): Likewise.
97144
97145 2002-01-16  Jim Meyering  <meyering@lucent.com>
97146
97147         * lib/getdate.y: Add three semicolons, each just before a closing
97148         brace. Bison (as of version 1.31) no longer papers over that mistake.
97149
97150 2002-01-05  Jim Meyering  <meyering@lucent.com>
97151
97152         * lib/version-etc.c (version_etc_copyright): Update copyright year.
97153
97154 2001-12-19  Paul Eggert  <eggert@twinsun.com>
97155
97156         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
97157         not silently exit merely because the output buffer happens to
97158         have nothing pending.
97159
97160 2001-12-18  Paul Eggert  <eggert@twinsun.com>
97161
97162         See the big note in ../ChangeLog.
97163         * lib/human.c (suffixes): Prefer K to k for 1024.
97164         (generate_suffix_backwards): New function.
97165         (human_readable_inexact): Use it.
97166         * lib/xstrtol.c (__xstrtol): If there is no number but there
97167         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
97168         Accept 'K' as well as 'k'.
97169
97170 2001-12-15  Jim Meyering  <meyering@lucent.com>
97171
97172         * lib/regex.h (__restrict_arr): Update from libc.
97173
97174         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
97175         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
97176         (STREQ): Define.
97177
97178 2001-12-14  Jim Meyering  <meyering@lucent.com>
97179
97180         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
97181         Suggestion from Bruno Haible.
97182
97183 2001-12-10  Jim Meyering  <meyering@lucent.com>
97184
97185         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
97186         xrealloc, Instead, include "xalloc.h".
97187         (initbuffer): Don't cast xmalloc return value to char*.
97188         (readline): Reword comment.
97189         Don't cast xrealloc return value to char*
97190         Return NULL, not 0.
97191
97192 2001-12-09  Jim Meyering  <meyering@lucent.com>
97193
97194         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
97195         about `signed and unsigned type in conditional expression'.
97196         * lib/posixtm.c (posix_time_parse): Likewise.
97197
97198         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
97199
97200         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
97201         to avoid a pedantic warning.
97202
97203         * lib/getstr.c: Don't include assert.h.
97204         (getstr): Remove warning-evoking assertions.
97205         Return -1 if offset parameter is out of bounds.
97206         Change the type of a local from int to size_t.
97207
97208         * lib/strftime.c (my_strftime_localtime_r): Include this function
97209         definition in the `#if ! HAVE_TM_GMTOFF' block.
97210
97211         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
97212         Include xalloc.h instead.
97213
97214 2001-12-02  Jim Meyering  <meyering@lucent.com>
97215
97216         * lib/tempname.c: Don't declare getenv, thus reverting the change of
97217         2001-11-18.  It's no longer necessary, now that stdlib.h is always
97218         included.
97219
97220         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
97221         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
97222
97223 2001-11-30  Akim Demaille  <akim@epita.fr>
97224
97225         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
97226         before being defined.
97227
97228 2001-11-27  Paul Eggert  <eggert@twinsun.com>
97229
97230         * lib/quotearg.h (quotearg_n, quotearg_n_style):
97231         First arg is int, not unsigned.
97232         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
97233         (SIZE_MAX, UINT_MAX): New macros.
97234         (quotearg_n_options): Abort if N is negative.
97235         Avoid overflow check on hosts where size_t is 64 bits and int
97236         is 32 bits, as overflow is impossible there.
97237         Fix off-by-one typo that caused unnecessary reallocation.
97238
97239 2001-11-27  Jim Meyering  <meyering@lucent.com>
97240
97241         * lib/tempname.c: Merge with version from libc.
97242         * lib/regex.c: Likewise.
97243
97244         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
97245         systems for which STDC_HEADERS is 0, it was not included, resulting in
97246         a warning about an integer-to-pointer conversion problem with getenv.
97247         Reported by Volker Borchert.
97248
97249 2001-11-26  Jim Meyering  <meyering@lucent.com>
97250
97251         * lib/gtod.h: Remove file.
97252         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
97253         * lib/gettimeofday.c: Don't include gtod.h.
97254         (GTOD_init): Remove function.
97255         (rpl_gettimeofday): Do its job here instead, rather than aborting.
97256         Suggestion from Volker Borchert.
97257
97258 2001-11-23  Jim Meyering  <meyering@lucent.com>
97259
97260         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
97261         it.
97262         * lib/hash.c (struct hash_table): Define it here instead.
97263
97264 2001-11-22  Jim Meyering  <meyering@lucent.com>
97265
97266         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
97267
97268 2001-11-20  Jim Meyering  <meyering@lucent.com>
97269
97270         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
97271         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
97272
97273 2001-11-19  Jim Meyering  <meyering@lucent.com>
97274
97275         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
97276         directory.  Use "conftestXXXXXX" as the template.
97277         Suggestion from Paul Eggert.
97278
97279         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
97280         immediately, so the test doesn't mistakenly hit the max-open-files
97281         limit.
97282
97283 2001-11-18  Paul Eggert  <eggert@twinsun.com>
97284
97285         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
97286         (TEMPORARIES): New macro.
97287         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
97288         removes an artificial limitation (e.g. HP-UX 10.20, where
97289         TMP_MAX is 17576).
97290
97291 2001-11-18  Jim Meyering  <meyering@lucent.com>
97292
97293         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
97294
97295 2001-11-18  Jim Meyering  <meyering@lucent.com>
97296
97297         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
97298         on SunOS 4.
97299
97300         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
97301         files will be created before anything else.
97302
97303 2001-11-17  Paul Eggert  <eggert@twinsun.com>
97304
97305         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
97306         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
97307
97308 2001-11-17  Jim Meyering  <meyering@lucent.com>
97309
97310         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
97311         Prompted by a report from Bob Proulx.
97312
97313         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
97314         Instead, require UTILS_FUNC_MKSTEMP.
97315
97316 2001-11-17  Jim Meyering  <meyering@lucent.com>
97317
97318         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
97319         Now, that's done as part of AC_FUNC_STRTOD.
97320
97321 2001-11-17  Jim Meyering  <meyering@lucent.com>
97322
97323         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
97324         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
97325         rather than group writable.  Patch by Juan F. Codagnone.
97326
97327         * lib/readtokens.c: Remove explicit declarations of xmalloc and
97328         xrealloc, Instead, include "xalloc.h".
97329
97330         * lib/mountlist.c: Include unlocked-io.h after all system headers.
97331         Remove explicit declarations of xmalloc, xrealloc,
97332         and xstrdup.  Instead, include "xalloc.h".
97333
97334         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
97335         unlocked-io.h.
97336         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
97337         Likewise.
97338         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
97339
97340         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
97341         Reported by Padraig Brady.
97342
97343         * lib/mkstemp.c: #undef mkstemp.
97344         Include config.h.
97345         (rpl_mkstemp): Rename from mkstemp.
97346         Protoize.
97347
97348 2001-11-16  Jim Meyering  <meyering@lucent.com>
97349
97350         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
97351         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
97352         determine the amount of total physical memory, use pstat_getstatic.
97353         HPUX-11 doesn't define _SC_PHYS_PAGES.
97354         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
97355         If sysconf couldn't be used to determine the amount of available
97356         physical memory, use both pstat_getstatic and pstat_getdynamic.
97357         Based on a patch from Bob Proulx.
97358
97359 2001-11-10  Jim Meyering  <meyering@lucent.com>
97360
97361         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
97362         (jm_PREREQ): Use it.
97363
97364 2001-11-09  Jim Meyering  <meyering@lucent.com>
97365
97366         * m4/jm-macros.m4: Require autoconf-2.52f.
97367         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
97368         Use these AC_-prefixed names, not the AM_-prefixed ones.
97369
97370         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
97371
97372 2001-11-05  Jim Meyering  <meyering@lucent.com>
97373
97374         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
97375
97376 2001-11-04  Jim Meyering  <meyering@lucent.com>
97377
97378         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
97379         $DEFS.
97380
97381 2001-11-03  Jim Meyering  <meyering@lucent.com>
97382
97383         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
97384         of AC_DEFUN.
97385
97386         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
97387         know the name of the variable in the macro definition.
97388
97389 2001-11-03  Jim Meyering  <meyering@lucent.com>
97390
97391         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
97392         in argmatch_to_argument call.
97393
97394         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
97395         argument.
97396
97397         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
97398         e.g., a fault due to an attempt to free a NULL pointer.
97399
97400 2001-11-01  Jim Meyering  <meyering@lucent.com>
97401
97402         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
97403         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
97404
97405 2001-11-01  Jim Meyering  <meyering@lucent.com>
97406
97407         * lib/dirfd.c, lib/dirfd.h: New files.
97408         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
97409
97410         * lib/hash.c (hash_print) [TESTING]: Clean up.
97411
97412 2001-10-22  Paul Eggert  <eggert@twinsun.com>
97413
97414         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
97415         to avoid a warning if -Wall.
97416
97417 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
97418
97419         * README: New file
97420         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
97421         (per RMS's instructions, this is now the canonical source)
97422         * lgpl/, gpl/: New directories.
97423
97424 2001-10-21  Paul Eggert  <eggert@twinsun.com>
97425
97426         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
97427
97428 2001-10-21  Jim Meyering  <meyering@lucent.com>
97429
97430         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
97431         this code would end up calling gettext even in packages built
97432         with --disable-nls.
97433         * lib/getopt.c (_): Likewise.
97434         * lib/regex.c (_): Likewise.
97435
97436 2001-10-20  Paul Eggert  <eggert@twinsun.com>
97437
97438         * m4/error.m4 (jm_PREREQ_ERROR):
97439         Do not invoke AC_CHECK_FUNCS with strerror_r, as
97440         AC_FUNC_STRERROR_R does that.
97441         Check for strerror declaration.
97442
97443         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
97444         are supposed to have them these days.
97445         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
97446         Merge changes from latest Autoconf CVS.
97447         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
97448         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
97449         POSIX decided to standardize on the int flavor of strerror_r.
97450
97451 2001-10-20  Paul Eggert  <eggert@twinsun.com>
97452
97453         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
97454         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
97455         Use strerror_r that is only a macro, even if it is not a function.
97456         (strerror): Check for HAVE_DECL_STRERROR before declaring.
97457         (private_strerror): Use prototypes, not old-style function definition.
97458         (print_errno_message): New function.
97459         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
97460         char*-flavored one.
97461         (error_tail, error, error_at_line): Use it.
97462
97463 2001-10-11  Jim Meyering  <meyering@lucent.com>
97464
97465         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
97466         and quote_n (1, ... to avoid clobbering a buffer.
97467
97468 2001-10-05  Jim Meyering  <meyering@lucent.com>
97469
97470         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
97471         hash-pjw.h.
97472         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
97473         * lib/hash-pjw.h: New file.
97474
97475 2001-09-30  Jim Meyering  <meyering@lucent.com>
97476
97477         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
97478         `struct fsstat' has the `f_fstypename' member.
97479         Use that to define FS_TYPE, which is now used to make
97480         the getfsstat link test tighter.
97481
97482 2001-09-30  Jim Meyering  <meyering@lucent.com>
97483
97484         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
97485         Include <sys/ucred.h>, for Apple Darwin.
97486         Include sys/mount.h and sys/fs_types.h only if available.
97487         (FS_TYPE): Define.
97488         (read_filesystem_list): Use FS_TYPE.
97489
97490 2001-09-29  Paul Eggert  <eggert@twinsun.com>
97491
97492         * lib/exclude.c (excluded_filename): 0 -> false, since it's
97493         a boolean context.
97494
97495 2001-09-29  Jim Meyering  <meyering@lucent.com>
97496
97497         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
97498         [one-argument getmntent function]): Include stdio.h before mntent.h.
97499         SunOS 4.1.x needs it for the declaration of `FILE'.
97500         Patch by Volker Borchert.
97501
97502         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
97503         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
97504         sys/fs_types.h, and make the link-test for getfsstat guard #include
97505         directives with appropriate #if HAVE_*_H tests so that we can
97506         detect getfsstat on Apple Darwin1.3.7 systems.
97507         Reported by Nelson Beebe.
97508         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
97509
97510 2001-09-28  Paul Eggert  <eggert@twinsun.com>
97511
97512         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
97513         #defines strtoimax.  Also treat the other strto* functions
97514         like strtoimax.
97515
97516         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
97517         Check for strtoul and strtoumax,
97518         as those declarations are made even in the signed case.
97519         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
97520         Likewise, for strtol and strtoimax.
97521
97522 2001-09-28  Paul Eggert  <eggert@twinsun.com>
97523
97524         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
97525         #defines strtoimax.  Also treat the other strto* functions
97526         like strtoimax.
97527
97528         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
97529         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
97530         (strtoimax, strtoumax): Do not declare if already defined as a macro.
97531
97532 2001-09-26  Jim Meyering  <meyering@lucent.com>
97533
97534         Most macros in unlocked-io.h had the wrong number of arguments.
97535         * lib/gen-uio: New script.
97536         (USE_UNLOCKED_IO): Define to 1 if not already defined.
97537         * lib/unlocked-io.hin: Remove file.
97538         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
97539         rather than trying to embed it here.
97540         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
97541         Reported by Padraig Brady.
97542
97543 2001-09-25  Volker Borchert  <bt@teknon.de>
97544
97545         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
97546         `result'.
97547
97548 2001-09-24  Jim Meyering  <meyering@lucent.com>
97549
97550         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
97551
97552 2001-09-23  Jim Meyering  <meyering@lucent.com>
97553
97554         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
97555         instead of the mere test for existence of mntent.h.  The latter
97556         would get a false-positive on AIX 3.4 systems.
97557         In the outer getmntent if-block, don't die if neither of the getmntent
97558         tests succeeds.  Instead, just fall through and continue with the
97559         remaining tests.
97560
97561 2001-09-23  Jim Meyering  <meyering@lucent.com>
97562
97563         * lib/mountlist.c: Remove useless parentheses in #if directives.
97564         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
97565         the deprecated MOUNTED symbol is no longer defined in mntent.h.
97566
97567 2001-09-22  Jim Meyering  <meyering@lucent.com>
97568
97569         * m4/gettext.m4: New file.  From gettext.
97570         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
97571         * m4/progtest.m4: Likewise
97572         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
97573         * m4/glibc21.m4: Likewise.
97574
97575         * m4/libintl.m4: Remove.  No longer used.
97576
97577 2001-09-22  Jim Meyering  <meyering@lucent.com>
97578
97579         * lib/localcharset.c: Update from latest gettext.
97580         * lib/config.charset: Likewise.
97581
97582 2001-09-20  Jim Meyering  <meyering@lucent.com>
97583
97584         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
97585         strtoimax.
97586         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
97587         strtoumax.
97588
97589 2001-09-20  Jim Meyering  <meyering@lucent.com>
97590
97591         * lib/xstrtol.c (strtoimax): Guard declaration with
97592         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
97593         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
97594         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
97595         (strtoumax): Likewise, for completeness (it wasn't necessary).
97596
97597 2001-09-17  Paul Eggert  <eggert@twinsun.com>
97598
97599         * lib/strtoimax.c (HAVE_LONG_LONG):
97600         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
97601         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
97602         to work around bug in IBM C compiler.
97603
97604 2001-09-17  Jim Meyering  <meyering@lucent.com>
97605
97606         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
97607         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
97608         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
97609         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
97610         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
97611         whenever the right hand side need not be expanded by the shell.
97612
97613 2001-09-16  Paul Eggert  <eggert@twinsun.com>
97614
97615         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
97616         library.  It's not correct, as some older glibcs are buggy.
97617         fnmatch wasn't fixed until glibc 2.2.
97618
97619         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
97620         special shell magic here.
97621
97622 2001-09-16  Jim Meyering  <meyering@lucent.com>
97623
97624         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
97625         * m4/jm-macros.m4: Require it.
97626
97627 2001-09-16  Jim Meyering  <meyering@lucent.com>
97628
97629         * lib/mkdir.c: New file.
97630
97631 2001-09-15  Jim Meyering  <meyering@lucent.com>
97632
97633         * m4/jm-macros.m4: Check for help2man.
97634
97635 2001-09-11  Jim Meyering  <meyering@lucent.com>
97636
97637         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
97638         The body, by Paul Eggert, was moved here from configure.in.
97639         * m4/jm-macros.m4: Require UTILS_HOST_OS.
97640
97641 2001-09-04  Paul Eggert  <eggert@twinsun.com>
97642
97643         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
97644         (jm_PREREQ): Use it.
97645
97646 2001-09-04  Paul Eggert  <eggert@twinsun.com>
97647
97648         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
97649         Use ssize_t, not int, to store result of readlink.
97650         Check for ssize_t overflow as well as size_t overflow,
97651         as POSIX says the result of readlink is implementation-defined
97652         when ssize_t overflows.
97653         Remove unnecessary cast to char*.
97654         Use free+malloc instead of realloc, as the storage doesn't need
97655         to be preserved and it's clearer and can be more efficient that way.
97656         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
97657         * lib/xreadlink.h (xreadlink): Update prototype.
97658
97659 2001-09-04  Paul Eggert  <eggert@twinsun.com>
97660
97661         * lib/xgetcwd.c: Revert some of the previous change; intead,
97662         fix the HAVE_GETCWD_NULL code to behave more like the
97663         !HAVE_GETCWD_NULL code used to.
97664
97665         Include "xalloc.h".
97666         (xgetcwd): Do not return NULL when memory is exhausted; instead,
97667         invoke xalloc_die.
97668
97669 2001-09-03  Paul Eggert  <eggert@twinsun.com>
97670
97671         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
97672         sys/param.h, as pathmax.h includes them.
97673
97674 2001-09-03  Paul Eggert  <eggert@twinsun.com>
97675
97676         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
97677         (jm_PREREQ_XGETCWD): New macro.
97678
97679         * m4/getcwd.m4: New file.
97680
97681 2001-09-03  Paul Eggert  <eggert@twinsun.com>
97682
97683         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
97684         like the HAVE_GETCWD_NULL code.
97685         Include pathmax.h if not HAVE_GETCWD.
97686         Do not include xalloc.h.
97687         (INITIAL_BUFFER_SIZE): New symbol.
97688         Do not use xmalloc / xrealloc, since the caller is responsible for
97689         handling errors.  Preserve errno around `free' during failure.
97690         Do not overrun buffer when using getwd.
97691
97692 2001-09-03  Paul Eggert  <eggert@twinsun.com>
97693
97694         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
97695         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
97696         getcwd (NULL, 0).
97697
97698 2001-09-03  Paul Eggert  <eggert@twinsun.com>
97699
97700         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
97701         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
97702         spotted by Jim Meyering.
97703
97704 2001-09-03  Jim Meyering  <meyering@lucent.com>
97705
97706         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
97707         failure.
97708
97709 2001-09-02  Jim Meyering  <meyering@lucent.com>
97710
97711         * lib/error.c: Update from GNU libc.
97712
97713 2001-09-01  Jim Meyering  <meyering@lucent.com>
97714
97715         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
97716         Used by df.
97717
97718 2001-09-01  Jim Meyering  <meyering@lucent.com>
97719
97720         * lib/xreadlink.c: New file.
97721         * lib/xreadlink.h: New file.
97722         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
97723         xreadlink.h.
97724
97725         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
97726         doesn't conflict with sparc Solaris 7's definition in
97727         /usr/include/sys/int_types.h.
97728
97729         * lib/exclude.c: Use `""', not `<>' to #include non-system header
97730         files.
97731         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
97732         and strncasecmp as r-values.  Unixware didn't have declarations.
97733
97734 2001-08-31  Paul Eggert  <eggert@twinsun.com>
97735
97736         * lib/xstrtol.h: Add copyright notice.
97737         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
97738         LONGINT_INVALID_SUFFIX_CHAR.
97739
97740 2001-08-31  Paul Eggert  <eggert@twinsun.com>
97741
97742         * lib/xstrtol.c (strtoimax): New decl.
97743
97744 2001-08-31  Paul Eggert  <eggert@twinsun.com>
97745
97746         * lib/xgetcwd.c: Don't include pathmax.h.
97747         Include stdlib.h and unistd.h if available.
97748         Include xalloc.h.
97749         (xmalloc, xstrdup, free): Remove decls.
97750         (xgetcwd): Don't assume sizes fit in unsigned.
97751         Check for overflow when computing sizes.
97752         Simplify reallocation code.
97753
97754 2001-08-31  Paul Eggert  <eggert@twinsun.com>
97755
97756         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
97757         a directory's st_size can have an arbitrary value, so the old
97758         usage could waste an arbitrary amount of memory.  All uses
97759         changed.
97760         * lib/savedir.h: Update prototype.
97761
97762 2001-08-31  Paul Eggert  <eggert@twinsun.com>
97763
97764         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
97765
97766         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
97767         old strtoimax.c.
97768
97769         Also, make the following further changes to make this file's
97770         configuration more similar to that of strtol.c:
97771         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
97772         (strtoumax, uintmax_t, strtoull, strtol): Remove.
97773         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
97774         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
97775         changed to signed values.
97776
97777         And make the following changes as well:
97778         Fix copyright notice, as 1999 was missing.
97779         (verify): New macro.
97780         (strtoimax): Check sizes at compile-time, not run-time.
97781         Prefer strtol to strtoll if both work.
97782         (main): Remove; it was not that useful and was a pain to maintain.
97783
97784         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
97785
97786 2001-08-31  Jim Meyering  <meyering@lucent.com>
97787
97788         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
97789         Use an initial, malloc'd, buffer of length 128 rather than
97790         a statically allocated one of length 1024.
97791
97792 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97793
97794         Simplify code, partly by assuming autoconf 2.52 semantics.
97795
97796         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
97797
97798         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
97799         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
97800         All uses removed.
97801         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
97802         Move AC_REQUIRE to next-to-top level, to avoid confusion.
97803         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
97804         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
97805         jm_AC_HEADER_INTTYPES_H.
97806         * m4/jm-macros.m4 (jm_MACROS): Likewise.
97807
97808         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
97809
97810         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
97811         Quote first arg of AC_DEFUN.
97812         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
97813         since they are needed to parse the include file even if we need
97814         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
97815         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
97816         but with opposite signedness.
97817
97818 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97819
97820         Merge 'exclude' changes from tar 1.13.22.
97821         This fixes one or two unlikely storage allocation overflow bugs,
97822         but doesn't change user-visible behavior otherwise.
97823
97824 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97825
97826         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
97827         (jm_PREREQ_EXCLUDE): New macro.
97828
97829 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97830
97831         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
97832         tm to be declared.
97833
97834 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97835
97836         * lib/hash.c: Remove '2001' from copyright notice.
97837
97838 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97839
97840         * lib/full-write.h: New file.
97841         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
97842         * lib/full-write.c: Correct credits, as cccp.c no longer
97843         exists and anyway it was so heavily changed from the old cccp
97844         code as to be unrecognizable.  Include full-write.h.
97845         (full_write): Return size_t, with short writes meaning failure.
97846         All callers changed.  This fixes a bug with large buffers
97847         on 64-bit hosts.
97848         * lib/utime.c: Include full-write.h.
97849
97850 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97851
97852         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
97853         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
97854         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
97855         Include if available.
97856         (<xalloc.h>): Include
97857         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
97858         (verify): New macro.  Use it to verify that EXCLUDE macros do not
97859         collide with FNM macros.
97860         (struct patopts): New struct.
97861         (struct exclude): Use it, as exclude patterns now come with options.
97862         (new_exclude): Support above changes.
97863         (new_exclude, add_exclude_file):
97864         Initial size must now be a power of two to simplify overflow checking.
97865         (free_exclude, fnmatch_no_wildcards): New function.
97866         (excluded_filename): No longer requires options arg, as the options
97867         are determined by add_exclude.  Now returns bool, not int.
97868         (excluded_filename, add_exclude):
97869         Add support for the fancy new exclusion options.
97870         (add_exclude, add_exclude_file): Now takes int options arg.
97871         Check for arithmetic overflow when computing sizes.
97872         (add_exclude_file): xrealloc might modify errno, so don't
97873         realloc until after errno might be used.
97874
97875         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
97876         New macros.
97877         (free_exclude): New decl.
97878         (add_exclude, add_exclude_file): Now takes int options arg.
97879         (excluded_filename): No longer requires options arg, as the options
97880         are determined by add_exclude.  Now returns bool, not int.
97881
97882 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97883
97884         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
97885
97886 2001-08-27  Jim Meyering  <meyering@lucent.com>
97887
97888         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
97889
97890         * lib/version-etc.c (N_): Remove definition.
97891         Revert most of last change.
97892         Instead, simply don't mark the `Copyright...' string for translation.
97893         Based on advice from Paul Eggert.
97894
97895         * lib/strtoxmax.c: Tweak comment.
97896
97897 2001-08-26  Jim Meyering  <meyering@lucent.com>
97898
97899         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
97900
97901         * m4/xstrtoimax.m4: New file.
97902         * m4/xstrtoumax.m4: Add comments explaining why we
97903         AC_REPLACE_FUNCS(strtol).
97904
97905 2001-08-26  Jim Meyering  <meyering@lucent.com>
97906
97907         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
97908         of copyright with `%s' so translators don't get an untranslated
97909         message in 2002.
97910         (COPYRIGHT_YEAR): Define.
97911         (version_etc): Use fprintf rather than fputs.
97912         Suggestion from Ulrich Drepper.
97913
97914         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
97915
97916         * lib/strtoll.c: New file, from GNU libc.
97917         * lib/xstrtoimax.c: New file.
97918
97919         * lib/xstrtol.h: Add xstrtoimax.
97920         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
97921         * lib/strtoimax.c: New file.  Likewise, but first define
97922         STRTOUXMAX_SIGNED.
97923
97924         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
97925         ...
97926         * lib/strtoxmax.c: ... then renamed to this.
97927
97928 2001-08-18  Paul Eggert  <eggert@twinsun.com>
97929
97930         * m4/inttypes.m4: Add AC_PREREQ(2.13).
97931         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
97932         (jm_AC_TYPE_INTMAX_T): New macro.
97933         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
97934
97935         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
97936
97937         * m4/longlong.m4: Renamed from ulonglong.m4.
97938         * m4/inttypes.m4: Renamed from inttypes_h.m4.
97939         * m4/uintmax_t.m4: Removed.
97940
97941 2001-08-13  Paul Eggert  <eggert@twinsun.com>
97942
97943         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
97944         Port to Solaris 8, where 'sed' requires a space after the 'r'
97945         command, and where sh dislikes "$/".  Clean up the spacing a bit.
97946         Redirect output to $tmp just once.
97947
97948 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
97949
97950         * lib/addext.c (<errno.h>): Include.
97951         (errno): Declare if not defined.
97952         (addext): Work correctly when pathconf returns -1 and leaves
97953         errno alone because there is no limit.  Also, work even if
97954         pathconf returns a value greater than SIZE_MAX.
97955
97956 2001-08-12  Jim Meyering  <meyering@lucent.com>
97957
97958         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
97959         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
97960         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
97961         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
97962         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
97963         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
97964         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
97965         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
97966         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
97967         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
97968         utime.m4, utimes.m4, xstrtoumax.m4:
97969         Quote the first argument in each use of AC_DEFUN.
97970
97971 2001-08-12  Jim Meyering  <meyering@lucent.com>
97972
97973         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
97974         Simply `return getcwd (NULL, 0);'.
97975         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
97976         Use 1300 as initial value for length, not PATH_MAX.
97977
97978         * lib/pathmax.h: Clean up cpp syntax.
97979
97980 2001-08-12  Jim Meyering  <meyering@lucent.com>
97981
97982         * lib/gettimeofday.c: New file.
97983         * lib/gtod.h: New file.
97984         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
97985
97986 2001-08-05  Jim Meyering  <meyering@lucent.com>
97987
97988         * m4/jm-macros.m4: Require autoconf-2.52.
97989
97990 2001-08-04  Jim Meyering  <meyering@lucent.com>
97991
97992         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
97993         stmt, to get in sync with glibc.
97994
97995 2001-08-03  Paul Eggert  <eggert@twinsun.com>
97996
97997         The following changes are from gettext 0.10.39 as maintained by
97998         Bruno Haible.
97999
98000         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
98001         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
98002         with inverted sense.  All uses changed.
98003
98004         * lib/mbswidth.c: Don't include <limits.h>.
98005         Include <stdlib.h> and <string.h> unconditionally.
98006         (iswcntrl, mbsinit, ISCNTRL): New macros.
98007         (mbsnwidth): Use K&R style function declarations.
98008         Don't bother checking for MB_LEN_MAX == 1, since the compiler
98009         can optimize it when MB_CUR_MAX == 1.
98010         The width of control characters is zero, not 1.
98011
98012 2001-08-03  Paul Eggert  <eggert@twinsun.com>
98013
98014         The following changes are from gettext 0.10.39 as maintained by
98015         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
98016
98017         * m4/codeset.m4: Upgrade to serial AM1.
98018         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
98019         all uses changed.  Quote first arg of AC_DEFUN.
98020         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
98021
98022         * m4/iconv.m4: Upgrade to serial AM2.
98023         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
98024         Add --with-libconv-prefix.
98025         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
98026         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
98027         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
98028         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
98029         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
98030
98031         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
98032         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
98033         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
98034         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
98035         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
98036         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
98037         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
98038         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
98039         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
98040
98041         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
98042         string.h any more.
98043
98044         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
98045         not the default value.
98046
98047         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
98048         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
98049         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
98050         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
98051         Also check for iswcntrl, used for wcwidth fallback.
98052         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
98053         to Autoconf 2.13.
98054
98055 2001-08-03  Jim Meyering  <meyering@lucent.com>
98056
98057         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
98058         as it was in the original.  Reported by Paul Eggert.
98059
98060 2001-07-16  Jim Meyering  <meyering@lucent.com>
98061
98062         * m4/gettimeofday.m4: New file.
98063         Prompted by a report from Bernhard Baehr.
98064
98065 2001-07-15  Jim Meyering  <meyering@lucent.com>
98066
98067         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
98068         stuff. Now it's in ../Makefile.cfg.
98069
98070 2001-07-15  Jim Meyering  <meyering@lucent.com>
98071
98072         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
98073         (BUILT_SOURCES): Add unlocked-io.h.
98074         (io_functions): Define.
98075         (unlocked-io.h): New rule.
98076         (DISTCLEANFILES): Add unlocked-io.h.
98077         (all-local): Depend on unlocked-io.h, to ensure it is created.
98078
98079         * lib/unlocked-io.hin: New file
98080
98081         * lib/regex.c: Update from glibc.
98082
98083 2001-07-05  Jim Meyering  <meyering@lucent.com>
98084
98085         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
98086         recommendation.
98087         (libfetish_a_SOURCES): Put all .h files here instead.
98088         Remove a thus-exposed (better checks in automake) duplicate and
98089         two unnecessary .h files.
98090
98091 2001-07-04  Jim Meyering  <meyering@lucent.com>
98092
98093         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
98094         that generates jm-glibc-io.m4 so that it doesn't trigger any make
98095         distcheck failure.
98096
98097 2001-07-02  Jim Meyering  <meyering@lucent.com>
98098
98099         The following changes were prompted by suggestions from Bruno Haible.
98100
98101         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
98102         is now generated.
98103         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
98104         definition of EXTRA_DIST.
98105         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
98106         ensure that the generated file is created/updated whenever the list
98107         of $(unlocked_functions) is changed.
98108         (jm-glibc-io.m4): New rule.
98109         (unlocked-io.h): New rule -- currently unused.
98110
98111 2001-06-24  Jim Meyering  <meyering@lucent.com>
98112
98113         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
98114         unmatched right bracket, rather than kludging it with an extra,
98115         falsely-matching quote in a comment.  Patch by Akim Demaille.
98116
98117 2001-06-11  Jim Meyering  <meyering@lucent.com>
98118
98119         * lib/regex.c: Update from GNU libc.
98120
98121 2001-05-27  Jim Meyering  <meyering@lucent.com>
98122
98123         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
98124         Check for ut_type in struct utmp.
98125
98126 2001-05-27  Jim Meyering  <meyering@lucent.com>
98127
98128         * lib/readutmp.h (UT_TYPE): Define.
98129
98130 2001-05-24  Jim Meyering  <meyering@lucent.com>
98131
98132         * lib/argmatch.c: Include "quote.h".
98133         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
98134         quote function.  Reported by Göran Uddeborg.
98135
98136 2001-05-22  Jim Meyering  <meyering@lucent.com>
98137
98138         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
98139         now that we use the package-supplied version unconditionally.
98140         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
98141
98142 2001-05-21  Jim Meyering  <meyering@lucent.com>
98143
98144         * m4/regex.m4: Change a couple backticks to single quotes to avoid
98145         shell syntax errors.
98146
98147 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
98148
98149         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
98150
98151 2001-05-20  Paul Eggert  <eggert@twinsun.com>
98152
98153         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
98154         Don't bother to check library strftime, since
98155         we'll be using our own my_strftime function anyway.
98156         Define my_strftime instead of strftime.
98157
98158 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
98159
98160         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
98161         which is not yet declared.
98162
98163 2001-05-15  Jim Meyering  <meyering@lucent.com>
98164
98165         * m4/regex.m4: Use proper quoting so brackets appear in the test
98166         program.
98167         Reported by, and with help from, Bruno Haible.
98168
98169 2001-05-13  Jim Meyering  <meyering@lucent.com>
98170
98171         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
98172         undefined.
98173
98174 2001-05-11  Paul Eggert  <eggert@twinsun.com>
98175
98176         dirname code cleanup.  base_name now behaves more compatibly
98177         with POSIX basename when given file names that have trailing
98178         slashes, and similarly for dir_name.  Add new primitives
98179         base_len and dir_len.  Put the directory-name-related decls
98180         into dirname.h.
98181
98182         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
98183         * lib/backupfile.c (base_name): Likewise.
98184         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
98185         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
98186         * lib/makepath.c (strip_trailing_slashes): Likewise.
98187         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
98188         ISSLASH): Likewise.
98189         * lib/rename.c (strip_trailing_slashes): Likewise.
98190         * lib/same.c (base_name): Likewise.
98191         * lib/stripslash.c (ISSLASH): Likewise.
98192
98193         * lib/addext.c: Include <dirname.h> after size_t is defined.
98194         * lib/backupfile.c: Likewise.
98195
98196         * lib/addext.c (addext): Use base_len to trim redundant
98197         trailing slashes instead of doing it ourselves.
98198         But do not trim the last slash if it is not redundant.
98199
98200         * lib/backupfile.c (find_backup_file_name,
98201         max_backup_version): Use base_len instead of rolling it ourselves.
98202         Handle the case of "" and (on DOS) "C:" correctly.
98203
98204         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
98205         needed. Include <string.h>, <dirname.h>.
98206         (base_name): Allow file names ending in slashes, other than names
98207         that are all slashes.  In this case, return the basename followed
98208         by the slashes.  This is more general, and can be used in places
98209         where the original base_name purposely had an assertion failure.
98210         (base_len): New function.
98211
98212         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
98213         Do not include <assert.h>; no longer needed.
98214         Include xalloc.h.
98215         (memrchr): Remove decl.
98216         (dir_name_r): Remove.
98217         (dir_len): Renamed from dirlen.  All callers changed.
98218         Rewrite in terms of base_name, for simplicity and consistency.
98219         (dir_name): Never return NULL.  All callers changed.
98220         Do not include <stdlib.h> in test program; no longer needed.
98221         return 0; is fine for test program.
98222
98223         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
98224         New macros.
98225         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
98226
98227         * lib/path-concat.c (path_concat): Use base_len to compute
98228         base length, not strlen; this means we cannot rely on memcpy
98229         to null-terminate.
98230
98231         * lib/same.c (STREQ): Remove.
98232         (same_name): Handle the case where the basename ends in trailing '/'.
98233
98234         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
98235         a slash was stripped.  Do not strip the last slash after a
98236         file system prefix.
98237
98238 2001-05-11  Paul Eggert  <eggert@twinsun.com>
98239
98240         * lib/Makefile.am (libfetish_a_SOURCES):
98241         Add strftime.c, since we now compile it on all hosts.
98242
98243         * lib/strftime.c (my_strftime):
98244         Define to nstrftime if emacs, but only if my_strftime is not defined.
98245         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
98246         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
98247         Add one more extra argument: a nanoseconds value.
98248         All uses changed.
98249         (ns): New macro.
98250         (my_strftime function): Add %N format.
98251         (emacs_strftimeu): Renamed from emacs_strftime,
98252         with extra ut argument.
98253
98254 2001-05-09  Paul Eggert  <eggert@twinsun.com>
98255
98256         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
98257
98258 2001-04-21  Jim Meyering  <meyering@lucent.com>
98259
98260         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
98261         doesn't interfere.
98262
98263 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
98264
98265         * m4/ftruncate.m4: Check for chsize.
98266         Link with ftruncate.o unconditionally if ftruncate is missing.
98267         This was required when cross-compiling to i586-mingw32msvc.
98268
98269 2001-04-08  Jim Meyering  <meyering@lucent.com>
98270
98271         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
98272         recomputed; that's necessary when the offset spans a DST transition.
98273         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
98274
98275 2001-04-02  Jim Meyering  <meyering@lucent.com>
98276
98277         * lib/regex.h, regex.c: Update from GNU libc.
98278
98279 2001-03-24  Jim Meyering  <meyering@lucent.com>
98280
98281         * m4/jm-macros.m4: Require autoconf-2.49d.
98282
98283 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
98284
98285         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
98286
98287 2001-03-19  Paul Eggert  <eggert@twinsun.com>
98288
98289         * lib/version-etc.c (version_etc_copyright): Update to 2001.
98290
98291 2001-03-17  Jim Meyering  <meyering@lucent.com>
98292
98293         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
98294         now that the version in autoconf is equivalent.
98295         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
98296
98297         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
98298         Suggestion from Akim Demaille.
98299
98300         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
98301         (jm_PREREQ_TEMPNAME): New function.
98302
98303 2001-03-16  Paul Eggert  <eggert@twinsun.com>
98304
98305         * lib/tempname.c (uint64_t): Define to uintmax_t if
98306         not defined, and if UINT64_MAX is not defined.
98307         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
98308         Reported by John David Anglin.
98309
98310 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
98311
98312         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
98313         resolve alias if codeset is empty.
98314         * lib/config.charset (BeOS): Use wildcard syntax.
98315
98316 2001-03-13  Jim Meyering  <meyering@lucent.com>
98317
98318         * lib/path-concat.c (path_concat)
98319         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
98320         concatenating e.g., `C:' and `foo'.
98321         From Bruno Haible.
98322
98323 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
98324
98325         * lib/localcharset.c (locale_charset): Don't use
98326         setlocale(LC_CTYPE,NULL). Don't return NULL.
98327         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
98328
98329 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
98330
98331         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
98332         support for DOS/DJGPP.
98333
98334 2001-03-01  Paul Eggert  <eggert@twinsun.com>
98335
98336         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
98337         lacks mkstemp.  Compile our own tempname.c if we compile our own
98338         mkstemp.c, as mkstemp relies on tempname.
98339
98340 2001-03-01  Jim Meyering  <meyering@lucent.com>
98341
98342         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
98343         AH_VERBATIM really does output its argument verbatim.
98344
98345 2001-02-28  Paul Eggert  <eggert@twinsun.com>
98346
98347         * lib/Makefile.am (libfetish_a_SOURCES):
98348         Add dup-safer.c, fopen-safer.c.
98349         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
98350
98351         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
98352         * lib/unistd-safer.h: New files.
98353
98354 2001-02-25  Paul Eggert  <eggert@twinsun.com>
98355
98356         The mkstemp replacement is taken from glibc 2.2.2, with some
98357         portability fixes for use outside glibc, as follows:
98358
98359         * lib/tempname.c (struct_stat64): New macro.
98360         (direxists, __gen_tempname): Use it.
98361         This avoids a portability problem with Solaris 8.
98362
98363         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
98364         (<stddef.h>, <stdint.h>, <string.h>):
98365         Include only if STDC_HEADERS || _LIBC.
98366         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
98367         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
98368         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
98369         (__set_errno): Define this macro if <errno.h> doesn't.
98370         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
98371         Define these macros if <stdio.h> doesn't.
98372         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
98373         Define these macros if <sys/stat.h>
98374         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
98375         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
98376         __xstat64): Define if not _LIBC.
98377         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
98378         (__gen_tempname): Invoke gettimeofday only if
98379         HAVE_GETTIMEOFDAY || _LIBC;
98380         otherwise, fall back on plain "time".
98381         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
98382
98383         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
98384
98385         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
98386
98387 2001-02-18  Paul Eggert  <eggert@twinsun.com>
98388
98389         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
98390
98391 2001-02-17  Paul Eggert  <eggert@twinsun.com>
98392
98393         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
98394         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
98395         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
98396         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
98397
98398 2001-02-17  Paul Eggert  <eggert@twinsun.com>
98399
98400         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
98401         Remove workaround macros for hosts that have mbrtowc but not
98402         mbstate_t, as we now insist on proper declarations for both
98403         before using mbrtowc.
98404
98405 2001-02-17  Jim Meyering  <meyering@lucent.com>
98406
98407         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
98408         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
98409         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
98410         UnixWare 7.1.1.
98411
98412         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
98413         rather than AC_CACHE_VAL.
98414
98415 2001-02-17  Jim Meyering  <meyering@lucent.com>
98416
98417         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
98418         around included file name.
98419
98420         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
98421
98422         * lib/strftime.c: Update from GNU libc (the only changes were to
98423         comments).
98424
98425 2001-02-17  Jim Meyering  <meyering@lucent.com>
98426
98427         * lib/regex.c: Update from libc.
98428
98429 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
98430
98431         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
98432         clash.
98433
98434 2001-02-16  Paul Eggert  <eggert@twinsun.com>
98435
98436         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
98437         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
98438         Reported by Mark Hounschell via Paul Eggert.
98439
98440 2001-02-07  Jim Meyering  <meyering@lucent.com>
98441
98442         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
98443
98444 2001-02-05  Jim Meyering  <meyering@lucent.com>
98445
98446         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
98447         it includes the patch required for `large file' support with at least
98448         HP-UX's 10.20 /bin/cc.
98449
98450 2001-02-03  Jim Meyering  <meyering@lucent.com>
98451
98452         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
98453         AS_IF, now that it works once again (mysteriously).
98454         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
98455
98456 2001-01-30  Jim Meyering  <meyering@lucent.com>
98457
98458         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
98459         * m4/chown.m4: Rename conftestchown to conftest.chown.
98460         * m4/rename.m4: s/conftestdir/conftest.d1/ and
98461         s/conftestdir2/conftest.d2/.
98462         * m4/utimes.m4: s/conftestdata/conftest.data/
98463         Inspired by Pavel Roskin's change in autoconf.
98464
98465 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
98466
98467         * lib/config.charset: Update for FreeBSD 4.2.
98468
98469 2001-01-27  Jim Meyering  <meyering@lucent.com>
98470
98471         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
98472         a use of AS_IF.
98473         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
98474
98475 2001-01-26  Jim Meyering  <meyering@lucent.com>
98476
98477         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
98478         quotearg.c includes it.
98479
98480 2001-01-26  Jim Meyering  <meyering@lucent.com>
98481
98482         * lib/quotearg.c: Include stddef.h.
98483         * lib/quote.c: Include stddef.h.
98484         Reported by Axel Kittenberger.
98485
98486         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
98487         line in double quotes so that it evokes a better diagnostic.
98488         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
98489         Reported by Axel Kittenberger.
98490
98491 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
98492
98493         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
98494         as if it was a `charset'.
98495
98496 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
98497
98498         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
98499         has const.
98500
98501 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
98502
98503         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
98504         to avoid a warning.  Add back 'const' to inptr.
98505
98506 2001-01-20  Jim Meyering  <meyering@lucent.com>
98507
98508         Be sure that headers are checked before used in code compiled
98509         for the type checks.
98510         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
98511         In place of that, invoke jm_CHECK_ALL_TYPES.
98512         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
98513         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
98514         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
98515         The check for ssize_t was mistakenly run before the test for unistd.h.
98516
98517         The configure-time check for stdbool.h was missing.
98518         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
98519         (jm_PREREQ_HASH): New function.
98520
98521 2001-01-17  Jim Meyering  <meyering@lucent.com>
98522
98523         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
98524         for autoconf-2.49c.
98525         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
98526
98527 2001-01-16  Jim Meyering  <meyering@lucent.com>
98528
98529         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
98530         From Bruno Haible.
98531
98532 2001-01-14  Jim Meyering  <meyering@lucent.com>
98533
98534         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
98535         foo and bar.  Create conftestdir/ in the script, not in the C code.
98536         Remove directories in the script, not in the C code.
98537         Remove conftestdir{,2} before trying to create the directory.
98538         Make the entire configure script fail if the mkdir fails.
98539
98540 2001-01-14  Jim Meyering  <meyering@lucent.com>
98541
98542         * lib/rename.c: New file.  From Volker Borchert.
98543         Include stdlib.h, string.h or strings.h, and xalloc.h.
98544         Use strip_trailing_slashes rather than open-coding it.
98545
98546 2001-01-03  Paul Eggert  <eggert@twinsun.com>
98547
98548         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
98549
98550 2001-01-03  Jim Meyering  <meyering@lucent.com>
98551
98552         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
98553         of local `inptr' to avoid warning with some system declarations of
98554         iconv.
98555
98556 2001-01-02  Volker Borchert  <bt@teknon.de>
98557
98558         * m4/rename.m4: New file.
98559         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
98560
98561 2001-01-01  Jim Meyering  <meyering@lucent.com>
98562
98563         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
98564         even on systems with utmpx.h.  It's necessary for the declaration of
98565         utmp's ut_user member.  Reported by Andreas Jaeger.
98566
98567         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
98568         available. They are required for the declarations of getgrgid and
98569         getpwuid resp.
98570         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
98571         Reported by Andreas Jaeger.
98572
98573 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
98574
98575         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
98576         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
98577         so `make install' also works in VPATH builds.
98578
98579 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
98580
98581         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
98582         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
98583         can be used in subdirectories.
98584
98585 2000-12-29  Paul Eggert  <eggert@twinsun.com>
98586
98587         * lib/modechange.c: Do not assume that mode_t uses the
98588         traditional octal encoding.  E.g. "chmod 1 FOO" should set
98589         the other-execute bit of FOO even if S_IXOTH != 1.
98590
98591         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
98592         WOTH, XOTH, ALLM): New macros.
98593         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
98594          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
98595         Use them.
98596         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
98597         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
98598         (mode_compile):
98599         No need to use uintmax_t; unsigned long is long enough.
98600         Don't bother to get suffix since we don't use it.
98601
98602 2000-12-26  Jim Meyering  <meyering@lucent.com>
98603
98604         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
98605         better with autoheader.
98606
98607 2000-12-24  Jim Meyering  <meyering@lucent.com>
98608
98609         * lib/hash.c (is_prime): Return explicit boolean values.
98610         (hash_get_first): Return NULL to appease Irix5.6's 89.
98611         Reported by Nelson Beebe.
98612
98613 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
98614
98615         * lib/localcharset.c (locale_charset): Add support for Win32.
98616
98617 2000-12-18  Paul Eggert  <eggert@twinsun.com>
98618
98619         * lib/physmem.h, lib/physmem.c: New files.
98620
98621         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
98622         (noinst_HEADERS): Add physmem.h.
98623
98624         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
98625         't' for compatibility with Solaris 8 sort.
98626
98627 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
98628
98629         * lib/config.charset: Add support for BeOS.
98630
98631 2000-12-17  Jim Meyering  <meyering@lucent.com>
98632
98633         * m4/dos.m4 (jm_AC_DOS): New file and macro.
98634         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
98635
98636 2000-12-16  Jim Meyering  <meyering@lucent.com>
98637
98638         This bug had a serious impact on chown: `chown N:M FILE' (for integer
98639         N and M) would have treated it like `chown N:N FILE'.
98640
98641         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
98642
98643 2000-12-16  Jim Meyering  <meyering@lucent.com>
98644
98645         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
98646         SHELLS_FILE to a file name that's useful on djgpp systems.
98647         Include stdlib.h.
98648         (ADDITIONAL_DEFAULT_SHELLS): Define.
98649         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
98650         Based mostly on a patch from Prashant TR.
98651
98652 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
98653
98654         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
98655         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
98656         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
98657
98658 2000-12-08  Andreas Schwab  <schwab@suse.de>
98659
98660         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
98661         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
98662
98663 2000-12-07  Jim Meyering  <meyering@lucent.com>
98664
98665         * lib/stripslash.c (ISSLASH): Define.
98666         (strip_trailing_slashes): Use ISSLASH rather than comparing against
98667         `/'.
98668         From Prashant TR.
98669
98670         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
98671         (dir_name_r): Declare this function as static.
98672         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
98673         manifest itself on a name containing a mix of slashes and
98674         backslashes.
98675         Make this function work with names starting with a DOS-style
98676         drive letter and colon prefix.
98677         (dir_name): Append `.' if necessary.
98678         Based mostly on patches from Prashant TR and Eli Zaretskii.
98679
98680         * lib/dirname.h (dir_name_r): Remove prototype.
98681
98682 2000-12-06  Paul Eggert  <eggert@twinsun.com>
98683
98684         * m4/off_t-format.m4: Remove this file.
98685         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
98686
98687 2000-12-06  Jim Meyering  <meyering@lucent.com>
98688
98689         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
98690         replacement strtoull, we may well need the replacement strtoul, too.
98691         Check for declarations of strtoul and strtoull.
98692         Check for strtol.  Mainly as a cue to cause automake to include
98693         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
98694         Check for limits.h -- strtol.c needs it.
98695
98696 2000-12-05  Jim Meyering  <meyering@lucent.com>
98697
98698         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
98699
98700 2000-12-04  Jim Meyering  <meyering@lucent.com>
98701
98702         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
98703         Also include memory.h, stdlib.h, unistd.h if appropriate.
98704         Reported by Andreas Jaeger (conflicting declaration of malloc).
98705
98706 2000-12-02  Jim Meyering  <meyering@lucent.com>
98707
98708         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
98709         * m4/jm-macros.m4 (jm_MACROS): require it.
98710
98711 2000-12-02  Jim Meyering  <meyering@lucent.com>
98712
98713         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
98714
98715 2000-12-01  Paul Eggert  <eggert@twinsun.com>
98716
98717         * lib/memrchr.c: Include <config.h> before any system include file.
98718
98719 2000-11-30  Jim Meyering  <meyering@lucent.com>
98720
98721         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
98722
98723 2000-11-30  Jim Meyering  <meyering@lucent.com>
98724
98725         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
98726
98727 2000-11-29  Paul Eggert  <eggert@twinsun.com>
98728
98729         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
98730
98731 2000-11-26  Jim Meyering  <meyering@lucent.com>
98732
98733         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
98734
98735 2000-11-22  Paul Eggert  <eggert@twinsun.com>
98736
98737         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
98738         size of (size_t) -1; it's not portable.
98739
98740 2000-11-17  Jim Meyering  <meyering@lucent.com>
98741
98742         * lib/strstr.c: Update from GNU libc.
98743
98744 2000-11-17  Akim Demaille  <akim@epita.fr>
98745
98746         * lib/obstack.h: Formatting changes.
98747         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
98748         prevent type checking.
98749         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
98750         cast the value to (void *): assigning a `foo *' to a `void *'
98751         variable is valid.
98752         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
98753
98754 2000-11-16  Jim Meyering  <meyering@lucent.com>
98755
98756         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
98757
98758 2000-11-11  Jim Meyering  <meyering@lucent.com>
98759
98760         * lib/error.c: Add a couple #includes, merging from GNU libc version.
98761
98762 2000-11-10  Jim Meyering  <meyering@lucent.com>
98763
98764         * lib/obstack.h: Update from GNU libc.
98765         * lib/obstack.c: Likewise.
98766
98767 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
98768
98769         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
98770
98771 2000-11-06  Paul Eggert  <eggert@twinsun.com>
98772
98773         * lib/getusershell.c (setusershell): Use rewind rather than
98774         fseek/fseeko, to avoid configuration hassles with fseeko.
98775         Don't bother opening SHELLS_FILE if shellstream is NULL;
98776         it's not necessary.
98777
98778 2000-11-05  Jim Meyering  <meyering@lucent.com>
98779
98780         * lib/makepath.h (make_dir): Declare.
98781         * lib/makepath.c (make_dir): Remove `static' attribute.
98782         Tweak a comment.
98783
98784 2000-11-04  Jim Meyering  <meyering@lucent.com>
98785
98786         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
98787
98788 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
98789
98790         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
98791         last one in a bucket, advance to the next bucket.
98792
98793 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
98794
98795         * lib/fnmatch.c: Do not comment out all the code if we are using
98796         the GNU C library, because in some cases we are replacing buggy
98797         code in the GNU C library itself.
98798
98799 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
98800
98801         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
98802         (regex_compile): Catch bogus \(\1\).
98803
98804 2000-10-30  Paul Eggert  <eggert@twinsun.com>
98805
98806         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
98807         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
98808         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
98809
98810 2000-10-30  Paul Eggert  <eggert@twinsun.com>
98811
98812         * lib/error.h, getline.h, modechange.h:
98813         Remove "2000" from Copyright line, as the file hasn't been
98814         changed this year other than in the copyright notice.
98815
98816         * lib/xalloc.h: Add "2000" to Copyright line, as this file
98817         was changed this year.
98818
98819 2000-10-29  Jim Meyering  <meyering@lucent.com>
98820
98821         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
98822         renaming.
98823         * m4/ls-mntd-fs.m4: Likewise
98824
98825 2000-10-29  Jim Meyering  <meyering@lucent.com>
98826
98827         * lib/xstat.in: Fix grammar in comment.
98828
98829 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
98830
98831         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
98832         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
98833         doesn't define __restrict_arr.
98834
98835 2000-10-28  Jim Meyering  <meyering@lucent.com>
98836
98837         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
98838         (jm_PREREQ_MEMCHR): New function.
98839
98840 2000-10-28  Jim Meyering  <meyering@lucent.com>
98841
98842         * lib/memchr.c: Update from libc.
98843         Adjust for portability:
98844         [HAVE_STDLIB_H]: Include stdlib.h.
98845         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
98846         Undef __memchr, too.
98847         [!weak_alias]: Define __memchr to memchr.
98848
98849         * lib/regex.c: Update from libc.
98850         * lib/regex.h: Likewise.
98851         * lib/getopt1.c: Likewise.
98852         * lib/memcmp.c: Likewise.
98853
98854         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
98855         Avoid using fseek, when possible -- it's broken by design.
98856         Patch by Ulrich Drepper.
98857
98858 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
98859
98860         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
98861         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
98862         Giving in to popular pressure to shut up the compiler with casts.
98863
98864 2000-10-26  Jim Meyering  <meyering@lucent.com>
98865
98866         * lib/strftime.c: Update from libc.
98867
98868 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
98869
98870         * regex.c: More `unsigned char' -> `re_char' changes.
98871         Also change several `int' into `re_wchar_t'.
98872         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
98873         (PUSH_FAILURE_POINTER): Don't cast any more.
98874         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
98875         We want GCC to complain, since this piece of code makes
98876         re_match non-reentrant, which *should* be fixed.
98877         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
98878         (EXTEND_BUFFER): Use RETALLOC.
98879         (SET_LIST_BIT): Don't cast.
98880         (re_wchar_t): New type.
98881         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
98882         that those two functions will always properly return.
98883         (IMMEDIATE_QUIT_CHECK): Cast to void.
98884         (analyse_first): Use recursion rather than an explicit stack.
98885         (re_compile_fastmap): Can't fail anymore.
98886         (re_search_2): Don't check re_compile_fastmap for failure.
98887         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
98888         Now also sets the new value (passed in a new argument).
98889         (re_match_2_internal): Use it.
98890         Also, use a new var `reg' of type size_t when looping through regs
98891         rather than reuse the inappropriate `mcnt'.
98892
98893 2000-10-25  Jim Meyering  <meyering@lucent.com>
98894
98895         * lib/obstack.c: Update from libc.
98896
98897 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
98898
98899         * regex.c (regex_compile): Change the way of handling a range from
98900         a char less than 256 to a char not less than 256.
98901
98902 2000-10-24  Andrew Innes  <andrewi@gnu.org>
98903
98904         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
98905         NT-Emacs only.
98906         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
98907         so that re_search functions only quit when callers expect them to.
98908
98909 2000-10-23  Jim Meyering  <meyering@lucent.com>
98910
98911         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
98912         wrong.  That set_locale call must not have any side effects.
98913         From Paul Eggert.
98914
98915 2000-10-22  Jim Meyering  <meyering@lucent.com>
98916
98917         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
98918         [CYCLIC]: Remove now-unused definition.
98919
98920         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
98921         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
98922         Suggestion from Ulrich Drepper.
98923
98924 2000-10-21  Jim Meyering  <meyering@lucent.com>
98925
98926         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
98927         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
98928         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
98929
98930 2000-10-21  Jim Meyering  <meyering@lucent.com>
98931
98932         * lib/dirname.c (memrchr): Declare if necessary.
98933         (dir_name): Remove the restriction that there be no
98934         trailing slashes.  Now, this code skips past them, effectively
98935         ignoring them.
98936         [TEST_DIRNAME] (main): New unit tests.
98937
98938         * lib/memrchr.c: New file from GNU libc.
98939         Undef __memrchr, too.
98940         [!weak_alias]: Define __memrchr to memrchr.
98941         Guard weak_alias use with `#ifdef weak_alias'.
98942
98943 2000-10-21  Jim Meyering  <meyering@lucent.com>
98944
98945         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
98946         (dir_name): Use dir_name_r.
98947         * lib/dirname.h (dir_name_r): Declare it.
98948
98949 2000-10-17  Jim Meyering  <meyering@lucent.com>
98950
98951         * lib/quote.h (PARAMS): Define and use.
98952         Reported by Akim Demaille.
98953
98954         * lib/getopt.c: Update from libc.
98955
98956 2000-10-16  Jim Meyering  <meyering@lucent.com>
98957
98958         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
98959         setlocale.
98960         From Jan Fedak.
98961
98962 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
98963
98964         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
98965
98966 2000-09-25  Jim Meyering  <meyering@lucent.com>
98967
98968         * lib/md5.h (rol): Define (from GnuPG).
98969
98970         * lib/sha.c: Give credit (GnuPG) where due.
98971         (M): Use rol rather than open-coding it.
98972         Add a FIXME comment.
98973
98974 2000-09-21  Jim Meyering  <meyering@lucent.com>
98975
98976         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
98977         Reported by Michael Stone.
98978
98979 2000-09-20  Jim Meyering  <meyering@lucent.com>
98980
98981         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
98982         (noinst_HEADERS): Add sha.h.
98983         Based on code from Scott G. Miller and from GnuPG.
98984
98985 2000-09-18  Jim Meyering  <meyering@lucent.com>
98986
98987         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
98988         LIBS. Otherwise, everyone ends up linking with -lelf for some
98989         configurations.
98990         Reported by Mike Stone.
98991
98992 2000-09-15  Jim Meyering  <meyering@lucent.com>
98993
98994         * lib/regex.c: Update from libc.
98995
98996 2000-09-10  Jim Meyering  <meyering@lucent.com>
98997
98998         * lib/getopt.c (_getopt_internal): Update from glibc.
98999
99000 2000-09-09  Jim Meyering  <meyering@lucent.com>
99001
99002         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
99003         think it should be used as a general replacement for isascii.
99004         * lib/fnmatch.c: Likewise.
99005         * lib/mbswidth.c: Likewise
99006         * lib/regex.c: Likewise.
99007
99008         Don't use atoi.
99009         * lib/userspec.c: Include sys/param.h and limits.h.
99010         Include xstrtol.h.
99011         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
99012         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
99013         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
99014         UID, GID.  Check range.
99015
99016 2000-09-06  Jim Meyering  <meyering@lucent.com>
99017
99018         * lib/getopt.c (_getopt_internal): Update from glibc.
99019
99020 2000-08-30  Jim Meyering  <meyering@lucent.com>
99021
99022         * lib/strftime.c: Merge in changes from GNU libc.
99023
99024 2000-08-26  Jim Meyering  <meyering@lucent.com>
99025
99026         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
99027         * m4/fpending.m4: New file.
99028
99029 2000-08-26  Jim Meyering  <meyering@lucent.com>
99030
99031         * lib/closeout.c: Include "__fpending.h".
99032         (close_stdout_status): Return right away if there's nothing to flush.
99033
99034         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
99035         * lib/__fpending.c: New file.
99036         * lib/__fpending.h: New file.
99037
99038 2000-08-20  Jim Meyering  <meyering@lucent.com>
99039
99040         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
99041         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
99042         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
99043
99044 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
99045
99046         Improve fileutils installation on systems where running
99047         programs (like install) can't be unlinked.
99048         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
99049         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
99050
99051 2000-08-07  Paul Eggert  <eggert@twinsun.com>
99052
99053         Standardize on "memory exhausted" instead of "Memory exhausted"
99054         or "virtual memory exhausted".
99055         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
99056         "virtual memory exhausted".
99057         * lib/same.c (same_name): Invoke xalloc_die instead of printing
99058         our own message.
99059         * lib/userspec.c (parse_user_spec): Likewise.
99060         * lib/bumpalloc.h: comment fix
99061         * lib/same.c, userspec.c: Include xalloc.h.
99062
99063         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
99064         not char *const and pointing to a constant array.
99065         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
99066         (xrealloc): Comment fix.
99067
99068         * lib/userspec.c (parse_user_spec):
99069         Don't translate a message until just before returning,
99070         to avoid unnecessary translation.
99071
99072 2000-08-07  Jim Meyering  <meyering@lucent.com>
99073
99074         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
99075         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
99076         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
99077         getgroups.c, gethostname.c, getopt.h, group-member.c,
99078         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
99079         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
99080         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
99081         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
99082         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
99083         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
99084         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
99085         yesno.c: Back out Copyright date changes for each file with no change
99086         this year.  This eases coordination with other programs using the same
99087         source code modules.  From Paul Eggert.
99088
99089 2000-08-06  Paul Eggert  <eggert@twinsun.com>
99090
99091         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
99092         not char, for compatibility with glibc 2.1.3 strftime.c.
99093
99094 2000-08-03  Greg McGary  <greg@mcgary.org>
99095
99096         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
99097         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
99098         (EXTEND_BUFFER): Use them.
99099
99100 2000-08-01  Jim Meyering  <meyering@lucent.com>
99101
99102         * lib/dirname.c (ISSLASH): Define.
99103         (BACKSLASH_IS_PATH_SEPARATOR): Define.
99104         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
99105         both `\' and `/' may be use as path separators.
99106         Based on a patch from Prashant TR.
99107
99108 2000-07-31  Paul Eggert  <eggert@twinsun.com>
99109
99110         * lib/quotearg.c (quotearg_n_options): Don't make the initial
99111         slot vector a constant, since it might get modified.
99112
99113 2000-07-31  Jim Meyering  <meyering@lucent.com>
99114
99115         * lib/xmalloc.c: Use `virtual memory exhausted', not
99116         `Memory exhausted'.
99117         * lib/obstack.c (print_and_abort): Likewise.
99118
99119 2000-07-30  Paul Eggert  <eggert@twinsun.com>
99120
99121         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
99122         buffer, so that the caller can always quote one small
99123         component of a "memory exhausted" message in slot 0.
99124         From a suggestion by Jim Meyering.
99125
99126 2000-07-30  Jim Meyering  <meyering@lucent.com>
99127
99128         * lib/makepath.c (make_path): Quote the other instance, too.
99129
99130         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
99131         (STATIC_BUF_SIZE): Define.
99132         (quotearg_n_options): Use only statically allocated storage when
99133         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
99134         than STATIC_BUF_SIZE.
99135
99136 2000-07-29  Jim Meyering  <meyering@lucent.com>
99137
99138         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
99139         * lib/dirname.c (dir_name): Likewise.
99140
99141         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
99142         `/'.
99143
99144         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
99145         (dir_name): Assert that there are no trailing slashes.
99146
99147 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
99148
99149         * lib/mbswidth.h (mbswidth): Add a flags argument.
99150         (mbswidth): New declaration.
99151         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
99152         * lib/mbswidth.c (mbswidth): Add a flags argument.
99153         (mbsnwidth): New function.
99154
99155 2000-07-24  Jim Meyering  <meyering@lucent.com>
99156
99157         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
99158
99159 2000-07-23  Paul Eggert  <eggert@twinsun.com>
99160
99161         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
99162
99163 2000-07-23  Paul Eggert  <eggert@twinsun.com>
99164
99165         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
99166         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
99167         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
99168         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
99169         invoke multibyte primitives.
99170
99171 2000-07-23  Paul Eggert  <eggert@twinsun.com>
99172
99173         * lib/quotearg.c:
99174         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
99175         so that mbstate_t is always defined.
99176
99177         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
99178         be 1 in at least one GCC installation, and this configuration
99179         error is likely to be common.  Ignoring MB_LEN_MAX hurts
99180         performance on hosts that have mbrtowc but have only unibyte
99181         locales, but I assume these hosts are rare.
99182
99183 2000-07-23  Paul Eggert  <eggert@twinsun.com>
99184
99185         * lib/mbswidth.c (_XOPEN_SOURCE):
99186         Don't define; this causes problems on Solaris 7.
99187         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
99188
99189 2000-07-23  Jim Meyering  <meyering@lucent.com>
99190
99191         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
99192         too: getgrgid, getpwuid, getuid.
99193
99194 2000-07-23  Jim Meyering  <meyering@lucent.com>
99195
99196         * lib/basename.c (base_name): Add an assertion.
99197
99198 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
99199
99200         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
99201         shadow its mbsinit function.
99202
99203 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
99204
99205         * lib/mbswidth.h: New file.
99206         * lib/mbswidth.c: New file.
99207         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
99208         (noinst_HEADERS): Add mbswidth.h.
99209
99210 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
99211
99212         * lib/config.charset: Add support for FreeBSD. Improve support for
99213         HP-UX and IRIX 6.
99214
99215 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
99216
99217         * m4/mbswidth.m4: New file.
99218         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
99219
99220 2000-07-15  Jim Meyering  <meyering@lucent.com>
99221
99222         * lib/makepath.c: Include quote.h.
99223         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
99224         corresponding argument in a `quote (...)' call.
99225         Give better diagnostics.
99226
99227         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
99228         (noinst_HEADERS): Add quote.h.
99229
99230         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
99231         from tar's src/misc.c.
99232         * lib/quote.h: New file.  Prototypes for same.
99233
99234 2000-07-14  Paul Eggert  <eggert@twinsun.com>
99235
99236         From a suggestion by Bruno Haible.
99237         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
99238         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
99239         to decide whether to define the BeOS workaround macro;
99240         this adjusts to the change to AC_MBSTATE_T.
99241
99242 2000-07-14  Jim Meyering  <meyering@lucent.com>
99243
99244         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
99245         jm_AC_TYPE_UINTMAX_T.
99246
99247 2000-07-13  Paul Eggert  <eggert@twinsun.com>
99248
99249         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
99250
99251         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
99252         quotearg_buffer_restyled): Add support for
99253         clocale_quoting_style.  Undo previous change to
99254         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
99255         and "{RIGHT QUOTATION MARK}" msgids.
99256
99257 2000-07-10  Paul Eggert  <eggert@twinsun.com>
99258
99259         From a suggestion by Bruno Haible.
99260         * m4/mbstate_t.m4 (AC_MBSTATE_T):
99261         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
99262         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
99263         and mbstate_t, to a single-part test that simply defines mbstate_t.
99264         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
99265         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
99266
99267 2000-07-10  Jim Meyering  <meyering@lucent.com>
99268
99269         * m4/strerror_r.m4: Mirror the correction made in autoconf.
99270
99271         * m4/gnu-source.m4: Output to confdefs.h directly.
99272         Suggestion from Akim Demaille.
99273
99274 2000-07-09  Paul Eggert  <eggert@twinsun.com>
99275
99276         The old behavior of quoting `like this' doesn't look good with
99277         newer, ISO-style fonts.  See:
99278         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
99279
99280         Instead, quote "like this" by default.  Let the translator
99281         tailor the locale-specific quoting behavior by providing
99282         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
99283
99284         * lib/quotearg.c (N_): New macro.
99285         (gettext_default): New function.
99286         (quotearg_buffer_restyled): Use
99287         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
99288         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
99289
99290 2000-07-09  Jim Meyering  <meyering@lucent.com>
99291
99292         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
99293         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
99294
99295         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
99296         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
99297
99298 2000-07-09  Jim Meyering  <meyering@lucent.com>
99299
99300         * lib/Most files: Update copyright dates to include 2000.
99301
99302 2000-07-08  Jim Meyering  <meyering@lucent.com>
99303
99304         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
99305         if not defined.
99306         (xgethostname): Remove now-unnecessary #ifdef.
99307         Move declaration of `err' into loop where it's used.
99308
99309 2000-07-05  Paul Eggert  <eggert@twinsun.com>
99310         and Bruno Haible  <haible@clisp.cons.org>
99311
99312         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
99313         only if the test for an object-type mbstate_t fails.  This
99314         prevents us from mistakenly reporting that mbstate_t is a
99315         system object type after we "#define mbstate_t int" to work
99316         around its lack.
99317
99318 2000-07-05  Paul Eggert  <eggert@twinsun.com>
99319         and Bruno Haible  <haible@clisp.cons.org>
99320
99321         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
99322
99323 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
99324
99325         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
99326         to strerror_r.
99327         Include <ctype.h> for use of isalpha.
99328
99329 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
99330
99331         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
99332         by allocating a larger buffer. Test the gethostname return value for
99333         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
99334         returns an error and ENAMETOOLONG isn't defined.
99335
99336 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
99337
99338         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
99339         dimension.
99340
99341 2000-07-04  Jim Meyering  <meyering@lucent.com>
99342
99343         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
99344         of the deprecated AC_CHECKING.
99345
99346 2000-07-04  Jim Meyering  <meyering@lucent.com>
99347
99348         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
99349         Reported by Bruno Haible.
99350
99351 2000-07-04  Jim Meyering  <meyering@lucent.com>
99352
99353         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
99354         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
99355         lacks mbrtowc.
99356
99357 2000-07-03  Paul Eggert  <eggert@twinsun.com>
99358
99359         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
99360         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
99361
99362 2000-07-03  Paul Eggert  <eggert@twinsun.com>
99363         and Bruno Haible  <haible@clisp.cons.org>
99364
99365         * lib/quotearg.c (mbrtowc):
99366         Assign to *pwc, and return 1 only if result is nonzero.
99367         (iswprint): Use ISPRINT when substituting our own mbrtowc.
99368
99369 2000-07-03  Jim Meyering  <meyering@lucent.com>
99370
99371         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
99372
99373 2000-07-03  Jim Meyering  <meyering@lucent.com>
99374
99375         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
99376         This is necessary to get a definition of e.g., UTMP_FILE on
99377         HP-UX 10.20.
99378         From Bob Proulx.
99379
99380 2000-07-02  Jim Meyering  <meyering@lucent.com>
99381
99382         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
99383
99384         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
99385         AC_LIBOBJ(function_name).
99386         * m4/chown.m4: Likewise.
99387         * m4/fnmatch.m4: Likewise.
99388         * m4/ftruncate.m4: Likewise.
99389         * m4/getgroups.m4: Likewise.
99390         * m4/getline.m4: Likewise.
99391         * m4/group-member.m4: Likewise.
99392         * m4/jm-macros.m4: Likewise.
99393         * m4/lstat.m4: Likewise.
99394         * m4/malloc.m4: Likewise.
99395         * m4/memcmp.m4: Likewise.
99396         * m4/nanosleep.m4: Likewise.
99397         * m4/putenv.m4: Likewise.
99398         * m4/realloc.m4: Likewise.
99399         * m4/regex.m4: Likewise.
99400         * m4/stat.m4: Likewise.
99401         * m4/strftime.m4: Likewise.
99402
99403 2000-07-02  Jim Meyering  <meyering@lucent.com>
99404
99405         * lib/quotearg.c (mbstate_t): Don't define here.
99406
99407 2000-07-02  Jim Meyering  <meyering@lucent.com>
99408
99409         * lib/nanosleep.c (SIGCONT): Define if not already defined.
99410
99411 2000-07-01  Jim Meyering  <meyering@lucent.com>
99412
99413         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
99414
99415 2000-07-01  Jim Meyering  <meyering@lucent.com>
99416
99417         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
99418         problem.
99419
99420 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
99421
99422         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
99423         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
99424
99425 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
99426
99427         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
99428         per change in ../m4/ls-mntd-fs.m4.
99429         (read_filesystem_list): Ignore symbolic links.
99430
99431 2000-06-29  Jim Meyering  <meyering@lucent.com>
99432
99433         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
99434         for declaration of strcmp.
99435
99436         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
99437
99438         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
99439         Avoid warning by casting result to `char *' to remove `const'.
99440
99441 2000-06-28  Jim Meyering  <meyering@lucent.com>
99442
99443         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
99444         included by quotearg.c, for which we perform this test.  From
99445         Bruno Haible.
99446
99447 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
99448
99449         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
99450         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
99451         <utmpx.h> exists, put readutmp.o into LIBOBJS.
99452
99453 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
99454
99455         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
99456
99457 2000-06-26  Paul Eggert  <eggert@twinsun.com>
99458
99459         savedir now sets errno on failure and invokes xmalloc to get memory.
99460         Fix a couple of other minor bugs while we're at it.
99461
99462         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
99463         (NAMLEN): Remove macro.
99464         (malloc, realloc): Remove decls.
99465         (stpcpy): Likewise.
99466         ("xalloc.h"): Include.
99467         (NAME_SIZE_DEFAULT): New macro.
99468         (savedir): Use xmalloc / xrealloc to allocate memory.
99469         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
99470         Skip "" directory entries.
99471         Use strlen to calculate directory entry length, since the old method
99472         is rarely used these days and isn't worth supporting.
99473         Don't use a pointer after freeing it.
99474         Check for integer overflow when calculating allocation size.
99475         Use memcpy to copy entries, instead of stpcpy.
99476         Set errno properly when returning NULL.
99477         Check for readdir error.
99478
99479 2000-06-26  Jim Meyering  <meyering@lucent.com>
99480
99481         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
99482
99483 2000-06-25  Jim Meyering  <meyering@lucent.com>
99484
99485         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
99486         Linux header bug when _XOPEN_SOURCE is defined to 500.
99487
99488 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
99489
99490         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
99491         deficiency.
99492
99493 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
99494
99495         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
99496         Include xalloc.h.
99497         Don't include <stdlib.h>.  Don't declare malloc, realloc.
99498
99499 2000-06-24  Jim Meyering  <meyering@lucent.com>
99500
99501         * m4/strerror_r.m4: Revive this file -- to try out an experimental
99502         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
99503         for which strerror does return char*, but which lacks a conveniently
99504         accessible declaration of the function.  If the compile-test says
99505         strerror_r doesn't work, then resort to a `run'-test that works on
99506         BeOS and segfaults on DEC Unix.
99507
99508 2000-06-24  Jim Meyering  <meyering@lucent.com>
99509
99510         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
99511
99512 2000-06-23  Paul Eggert  <eggert@twinsun.com>
99513
99514         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
99515         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
99516
99517 2000-06-23  Paul Eggert  <eggert@twinsun.com>
99518
99519         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
99520         (mbrtowc, mbstate_t): Define substitutes if
99521         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
99522         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
99523         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
99524
99525 2000-06-23  Jim Meyering  <meyering@lucent.com>
99526
99527         * m4/afs.m4: Add missing AC_MSG_RESULT.
99528         Reported by Bruno Haible.
99529
99530         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
99531         Suggestion from Bruno Haible.
99532
99533 2000-06-23  Jim Meyering  <meyering@lucent.com>
99534
99535         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
99536
99537 2000-06-21  Jim Meyering  <meyering@lucent.com>
99538
99539         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
99540
99541 2000-06-21  Jim Meyering  <meyering@lucent.com>
99542
99543         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
99544         (noinst_HEADERS): Add getstr.h.
99545
99546         * lib/getline.c (getstr): Move into a separate file.
99547         * lib/getstr.c (getstr): New file, extracted from getline.c, with
99548         the following changes: new parameter, delim2; both delim[12]
99549         parameters have type `int', not `char'.  The latter would lose
99550         with 8-bit delimiters.
99551         * lib/getstr.h: New file.
99552
99553 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
99554
99555         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
99556         than 1024, return a memory chunk of least possible size, instead
99557         of size PATH_MAX + 2. In the loop, increment the size proportionally.
99558         Use free/xmalloc instead of xrealloc to avoid copying for very long
99559         paths.
99560
99561 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
99562
99563         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
99564         the empty string.
99565
99566 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
99567
99568         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
99569         address, not strdup.  Include <stdlib.h> and don't declare free().
99570
99571 2000-06-19  Jim Meyering  <meyering@lucent.com>
99572
99573         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
99574
99575 2000-06-18  Jim Meyering  <meyering@lucent.com>
99576
99577         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
99578
99579         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
99580         `checking whether...' message to be consistent with that of the
99581         lstat test.
99582
99583 2000-06-18  Jim Meyering  <meyering@lucent.com>
99584
99585         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
99586         Besides, these days every porting target provides a mkdir function.
99587
99588         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
99589         needed. (this snippet comes from src/system.h).
99590
99591 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
99592
99593         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
99594
99595 2000-06-15  Paul Eggert  <eggert@twinsun.com>
99596
99597         * lib/human.c (adjust_value): New function.
99598         (human_readable_inexact): Apply rounding style even when
99599         printing approximate values.
99600
99601 2000-06-14  Paul Eggert  <eggert@twinsun.com>
99602
99603         * lib/human.c (human_readable_inexact): Allow an input block
99604         size that is not a multiple of the output block size, and vice versa.
99605         Reported by Piergiorgio Sartor.
99606
99607 2000-06-14  Paul Eggert  <eggert@twinsun.com>
99608
99609         * lib/getdate.y (get_date): Apply relative times after time
99610         zone indicator, not before.  Reported by Todd A. Jacobs.
99611
99612 2000-06-13  Jim Meyering  <meyering@lucent.com>
99613
99614         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
99615
99616         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
99617
99618 2000-06-12  Paul Eggert  <eggert@twinsun.com>
99619
99620         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
99621
99622 2000-06-12  Jim Meyering  <meyering@lucent.com>
99623
99624         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
99625         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
99626         optional argument.
99627         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
99628         the optional argument, `lib'.
99629
99630 2000-06-08  Jim Meyering  <meyering@lucent.com>
99631
99632         * m4/largefile.m4: Remove file (now that it's part of autoconf).
99633
99634 2000-06-04  Paul Eggert  <eggert@twinsun.com>
99635
99636         Rewrite largefile configuration so that we don't need to run
99637         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
99638         AC_CANONICAL_HOST in configure.in -- jmm]
99639
99640         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
99641         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
99642         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
99643         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
99644         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
99645         All uses changed.
99646         Instead of inspecting the output of getconf, try to compile the
99647         test program without and with the macro definition.
99648         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
99649         for getconf.  Instead, check for the needed flags by compiling
99650         test programs.
99651
99652 2000-06-04  Paul Eggert  <eggert@twinsun.com>
99653
99654         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
99655
99656 2000-06-04  Jim Meyering  <meyering@lucent.com>
99657
99658         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
99659         SunOS 4.1.4 for which gid_t is an unsigned type.
99660
99661 2000-06-03  Jim Meyering  <meyering@lucent.com>
99662
99663         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
99664         now that autoconf requires that.
99665
99666         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
99667         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
99668         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
99669
99670 2000-06-03  Jim Meyering  <meyering@lucent.com>
99671
99672         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
99673
99674 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
99675
99676         * m4/glibc21.m4: New file.
99677         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
99678
99679 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
99680
99681         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
99682         newer, don't install charset.alias.
99683         * lib/config.charset: Change the Linux/glibc rules so they become empty
99684         on glibc-2.1 or newer.
99685
99686 2000-06-02  Jim Meyering  <meyering@lucent.com>
99687
99688         * lib/mountlist.c: Back out last change.  Instead, do this...
99689         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
99690         me_dummy member using the same `ignore'-testing code.
99691         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
99692         fs_type strings.
99693         From Mark D. Roth.
99694
99695 2000-05-29  Jim Meyering  <meyering@lucent.com>
99696
99697         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
99698         mounts with the `ignore' attribute.  Based on a patch from
99699         Mark D. Roth.
99700
99701 2000-05-28  Jim Meyering  <meyering@lucent.com>
99702
99703         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
99704         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
99705         * m4/stat.m4: Likewise.
99706         * m4/lstat.m4: Likewise.
99707         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
99708
99709         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
99710         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
99711
99712 2000-05-26  Jim Meyering  <meyering@lucent.com>
99713
99714         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
99715
99716 2000-05-24  Jim Meyering  <meyering@lucent.com>
99717
99718         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
99719         autoconf requires that.
99720         * m4/lib-check.m4: Likewise.
99721         * m4/jm-macros.m4: Likewise.
99722         * m4/strftime.m4: Likewise.
99723
99724         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
99725         AC_CHECK_DECLS, now that autoconf requires that.
99726
99727 2000-05-22  Jim Meyering  <meyering@lucent.com>
99728
99729         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
99730         * m4/lstat.m4: Likewise.
99731
99732 2000-05-22  Jim Meyering  <meyering@lucent.com>
99733
99734         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
99735
99736 2000-05-20  Jim Meyering  <meyering@lucent.com>
99737
99738         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
99739         (jm_PREREQ): Use it.
99740
99741 2000-05-18  Jim Meyering  <meyering@lucent.com>
99742
99743         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
99744         back, too, since it may have been modified by allocate_entry.
99745         (hash_delete): Rewrite to use neither the assignment operator
99746         nor the comma operator in an if-expression.
99747
99748 2000-05-15  Paul Eggert  <eggert@twinsun.com>
99749
99750         * lib/closeout.c:
99751         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
99752         Remove; no longer needed.
99753         "quotearg.h": Add include.
99754         (file_name): Do not bother to explicitly initialize to NULL; it's less
99755         efficient on some hosts.
99756         (close_stdout_status): Remove test as to whether stdout was already
99757         closed; it breaks for the case "echo x | sort >&-".
99758         Quote file name colons.
99759         Do not assume that _("write error") lacks format strings.
99760
99761 2000-05-15  Jim Meyering  <meyering@lucent.com>
99762
99763         * lib/version-etc.c (version_etc_copyright): Update the copyright
99764         string used in all --version output.
99765
99766 2000-05-14  Jim Meyering  <meyering@lucent.com>
99767
99768         * lib/closeout.c (close_stdout_set_file_name): New function.
99769         (close_stdout_status): Use new file-scoped global.
99770         Return right away if fstat says the stdout file descriptor is invalid.
99771         * lib/closeout.h (close_stdout_set_file_name): Declare.
99772
99773 2000-05-10  Jim Meyering  <meyering@lucent.com>
99774
99775         * lib/closeout.c [default_exit_status]: New file-scoped variable.
99776         (close_stdout_set_status): New function.
99777         * lib/closeout.h (close_stdout_set_status): Declare.
99778
99779 2000-05-09  Jim Meyering  <meyering@lucent.com>
99780
99781         * m4/gettext.m4: Rename this...
99782         * m4/libintl.m4: ...to this.
99783
99784 2000-05-08  Jim Meyering  <meyering@lucent.com>
99785
99786         * lib/long-options.c: Don't include closeout.h.
99787         (parse_long_options): Don't call close_stdout for --version.
99788
99789 2000-05-06  Paul Eggert  <eggert@twinsun.com>
99790
99791         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
99792         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
99793         2.1.3 bug.  This avoids a clash when files like regex.c define
99794         _GNU_SOURCE.
99795
99796 2000-05-06  Jim Meyering  <meyering@lucent.com>
99797
99798         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
99799         (AC_REPLACE_FUNCS): Add strnlen.
99800
99801         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
99802         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
99803
99804         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
99805         AC_SEARCH_LIBS call for nanosleep.
99806         (LIB_NANOSLEEP): Set and AC_SUBST.
99807
99808 2000-05-06  Jim Meyering  <meyering@lucent.com>
99809
99810         * lib/strnlen.c: Undefine __strnlen and strnlen.
99811         [!weak_alias]: Define __strnlen to strnlen.
99812
99813         * lib/atexit.c: New file, from libiberty.
99814
99815 2000-05-06  Jim Meyering  <meyering@lucent.com>
99816
99817         * lib/closeout.c (close_stdout_status): Also check for errors on the
99818         stderr stream.
99819
99820 2000-05-05  Jim Meyering  <meyering@lucent.com>
99821
99822         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
99823         AC_SEARCH_LIBS call for clock_gettime.
99824         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
99825
99826         * m4/search-libs.m4: Update from autoconf.
99827
99828         su doesn't work on Solaris 2.6.
99829         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
99830         <shadow.h>.  Reported by Dragos Harabor.
99831
99832 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
99833
99834         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
99835         memcpy instead of xmalloc, xrealloc, path_concat.
99836         (locale_charset): Treat empty environment variables as absent.
99837         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
99838
99839 2000-05-04  Jim Meyering  <meyering@lucent.com>
99840
99841         * lib/getopt.c: Update from glibc.
99842         * lib/obstack.c: Likewise.
99843         * lib/obstack.h: Likewise.
99844         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
99845         file
99846
99847         * lib/regex.h: Likewise.
99848         * lib/strndup.c: Likewise.
99849         * lib/strnlen.c: New file, from glibc.
99850
99851 2000-05-03  Jim Meyering  <meyering@lucent.com>
99852
99853         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
99854
99855 2000-05-02  Paul Eggert  <eggert@twinsun.com>
99856
99857         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
99858         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
99859         compile-time test, rather than inspecting host and OS, to
99860         decide whether to define _LARGEFILE_SOURCE.
99861
99862 2000-05-01  Jim Meyering  <meyering@lucent.com>
99863
99864         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
99865
99866         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
99867         Based on a patch from Bruno Haible.
99868
99869 2000-05-01  Jim Meyering  <meyering@lucent.com>
99870
99871         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
99872
99873 2000-04-29  Jim Meyering  <meyering@lucent.com>
99874
99875         * lib/path-concat.c: Declare strdup only if it's not defined.
99876         * lib/canon-host.c: Likewise.
99877
99878 2000-04-28  Jim Meyering  <meyering@lucent.com>
99879
99880         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
99881         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
99882         is included first, then limits.h is included by locale.h by libintl.h.
99883         From John David Anglin.
99884
99885 2000-04-25  Jim Meyering  <meyering@lucent.com>
99886
99887         * lib/makepath.c (S_IRWXUGO): Define.
99888         (make_path): Always perform explicit chmod if MODE specifies any
99889         of the `special' permission bits.  Prompted by a bug report against
99890         install from Mate Wierdl and Joost van Baal.
99891
99892 2000-04-18  Jim Meyering  <meyering@lucent.com>
99893
99894         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
99895         (jm_PREREQ): Use it.
99896
99897 2000-04-18  Jim Meyering  <meyering@lucent.com>
99898
99899         * lib/README: New file.
99900
99901         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
99902         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
99903
99904 2000-04-17  Jim Meyering  <meyering@lucent.com>
99905
99906         Get it right :-)
99907         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
99908         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
99909         Suggestion from Akim Demaille.
99910
99911 2000-04-17  Jim Meyering  <meyering@lucent.com>
99912
99913         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
99914         the definition of it to rpl_strftime also defined-away the system's
99915         declaration.
99916
99917 2000-04-15  Jim Meyering  <meyering@lucent.com>
99918
99919         Use `C' to denote so-called `contiguous' files, the same way
99920         that tar does.
99921         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
99922         (ftypelet): Use S_ISCTG.
99923         From Michael Deutschmann.
99924
99925 2000-04-14  Jim Meyering  <meyering@lucent.com>
99926
99927         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
99928         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
99929         clobbered.
99930
99931 2000-04-14  Jim Meyering  <meyering@lucent.com>
99932
99933         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
99934
99935 2000-04-13  Jim Meyering  <meyering@lucent.com>
99936
99937         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
99938         AH_VERBATIM to insert required #ifndef into config.h.in.
99939         Suggestion from Akim Demaille.
99940
99941 2000-04-12  Jim Meyering  <meyering@lucent.com>
99942
99943         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
99944         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
99945         Christian Krackowizer.
99946
99947         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
99948         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
99949         (AC_SYS_LARGEFILE): Require.
99950         (AM_C_PROTOTYPES): Require.
99951
99952 2000-04-08  Jim Meyering  <meyering@lucent.com>
99953
99954         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
99955         names don't conflict.  Reported by Eli Zaretskii.
99956
99957 2000-04-07  Jim Meyering  <meyering@lucent.com>
99958
99959         * lib/putenv.c: Move inclusion of errno.h so it follows that of
99960         sys/types.h, to work around system header problems on AIX 3.2.5.
99961         From Bruno Haible.
99962
99963 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
99964
99965         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
99966         bug.  Deal with the different error behavior of Irix iconv.
99967
99968 2000-04-05  Paul Eggert  <eggert@twinsun.com>
99969
99970         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
99971         IRIX if the installer said otherwise.
99972
99973 2000-04-05  Jim Meyering  <meyering@lucent.com>
99974
99975         Portability tweaks required for ultrix4.3.
99976         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
99977         (jm_CHECK_DECLS): Add getutent to the list of functions.
99978         (_jm_DECL_HEADERS): Add utmpx.h.
99979         From John David Anglin.
99980
99981         * m4/strftime.m4: Back out the 2000-04-02 change.
99982         Instead of that change, simply undefine putenv in the test program.
99983
99984 2000-04-05  Jim Meyering  <meyering@lucent.com>
99985
99986         Portability tweaks required for ultrix4.3.
99987         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
99988         getutent.
99989         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
99990         * lib/canon-host.c: Declare strdup.
99991         * lib/path-concat.c: Likewise.
99992         From John David Anglin.
99993
99994 2000-04-04  Jim Meyering  <meyering@lucent.com>
99995
99996         Be more DOS 8.3-friendly.
99997         * lib/ref-add.sin: Renamed from ref-add.sed.in.
99998         * lib/ref-del.sin: Renamed from ref-del.sed.in.
99999         * lib/Makefile.am: Reflect renaming.
100000         Reported by Eli Zaretskii.
100001
100002         Use a temporary file name that won't clash with `charset.alias'
100003         in the DOS 8.3 name space.
100004         * lib/Makefile.am (charset_tmp): Define.
100005         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
100006         (uninstall-local): Likewise.
100007         Reported by Eli Zaretskii.
100008
100009 2000-04-03  Jim Meyering  <meyering@lucent.com>
100010
100011         * m4/gettext.m4: Fix typo in comment.
100012
100013         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
100014         textutils/configure.in).  Suggestion from Paul Eggert.
100015         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
100016
100017 2000-04-02  Paul Eggert  <eggert@twinsun.com>
100018
100019         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
100020         variable in the shell rather than using putenv, which isn't
100021         portable.  This avoids the configure-time inter-test dependency
100022         on the potentially-renamed putenv function.
100023
100024 2000-03-30  Paul Eggert  <eggert@twinsun.com>
100025
100026         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
100027         before checking struct stat.st_blksize, so that
100028         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
100029
100030 2000-03-29  Paul Eggert  <eggert@twinsun.com>
100031
100032         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
100033         since strftime.c uses HAVE_STRFTIME to decide whether to use
100034         the underlying strftime.
100035
100036 2000-03-29  Paul Eggert  <eggert@twinsun.com>
100037
100038         * lib/time/strftime.c (my_strftime): Make sure we call the system
100039         strftime, not ourselves, when invoking the underlying strftime.
100040
100041 2000-03-24  Jim Meyering  <meyering@lucent.com>
100042
100043         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
100044         (charset_alias): Define.
100045         (install-exec-local): Factor out common code.
100046         (uninstall-local): Split lines longer than 80.
100047         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
100048         (SUFFIXES): Define.
100049         (.sed.in.sed): New rule.  Don't redirect directly to $@.
100050         (CLEANFILES): Add ref-add.sed and ref-del.sed.
100051
100052 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
100053
100054         * lib/config.charset: Output a line containing "Packages using this
100055         file".
100056         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
100057         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
100058         ref-del.sed): New rules.
100059
100060 2000-03-17  Jim Meyering  <meyering@lucent.com>
100061
100062         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
100063         Otherwise, include <strings.h>
100064
100065 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
100066
100067         * lib/unicodeio.c (utf8_wctomb): New function.
100068         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
100069         format instead of in UCS-4 with platform dependent endianness.
100070
100071 2000-03-10  Jim Meyering  <meyering@lucent.com>
100072
100073         * m4/lib-check.m4: Look for getspnam in -lgen, too.
100074         From Marco Franzen.
100075
100076 2000-03-07  Paul Eggert  <eggert@twinsun.com>
100077
100078         * lib/savedir.c (savedir): Work even if directory size is
100079         negative; this can happen with some screwy NFS configurations.
100080
100081 2000-03-06  Jim Meyering  <meyering@lucent.com>
100082
100083         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
100084         if it's NULL (because we ran out of memory).  From Bruno Haible.
100085
100086 2000-03-05  Jim Meyering  <meyering@lucent.com>
100087
100088         * lib/localcharset.c ("path-concat.h"): Include.
100089         (get_charset_aliases): Use path_concat instead of ANSI string
100090         concatenation.
100091
100092         * lib/unicodeio.h (PARAMS): Define.
100093         Use it to guard prototype.
100094
100095 2000-03-04  Jim Meyering  <meyering@lucent.com>
100096
100097         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
100098         for lib/localcharset.c.
100099
100100 2000-03-04  Jim Meyering  <meyering@lucent.com>
100101
100102         * lib/Makefile.am (install-exec-local): Create $(libdir) before
100103         installing into it.
100104         (uninstall-local): Uncomment this rule so `make distcheck' works
100105         once again.
100106
100107         * lib/unicodeio.c (<errno.h>): Include it.
100108         (errno): Declare if not defined.
100109
100110         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
100111
100112         * lib/config.charset: New version, incorporating remarks from a linux
100113         i18n mailing list.  From Bruno Haible.
100114
100115 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
100116
100117         * m4/codeset.m4: New file.
100118         * m4/iconv.m4: New file.
100119         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
100120
100121 2000-03-03  Jim Meyering  <meyering@lucent.com>
100122
100123         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
100124
100125 2000-03-02  Jim Meyering  <meyering@lucent.com>
100126
100127         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
100128         the messages come out on separate lines.
100129
100130         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
100131         rather than jm_CHECK_DECLARATIONS.
100132         * m4/decl.m4: Remove now-unused file.
100133
100134         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
100135         geteuid.
100136
100137 2000-03-02  Jim Meyering  <meyering@lucent.com>
100138
100139         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
100140
100141 2000-03-01  Jim Meyering  <meyering@lucent.com>
100142
100143         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
100144         * lib/unicodeio.c: Likewise.
100145
100146 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
100147
100148         * lib/config.charset: New file.
100149         * lib/localcharset.c: New file.
100150         * lib/unicodeio.h, lib/unicodeio.c: New files.
100151         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
100152         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
100153         (noinst_HEADERS): Add unicodeio.h.
100154         (all-local, install-exec-local, charset.alias): New targets.
100155
100156 2000-02-28  Paul Eggert  <eggert@twinsun.com>
100157
100158         * lib/quotearg.c (ALERT_CHAR): New macro.
100159         (quotearg_buffer_restyled): Use it.
100160
100161 2000-02-27  Jim Meyering  <meyering@lucent.com>
100162
100163         * m4/check-decl.m4: Add getenv to the list.
100164
100165 2000-02-27  Jim Meyering  <meyering@lucent.com>
100166
100167         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
100168         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
100169
100170         * lib/backupfile.c: Guard inclusion of stdlib.h with
100171         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
100172         Declare malloc if needed.
100173
100174         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
100175         `#ifndef HAVE_DECL..'
100176         now that autoconf always defines the HAVE_DECL_ symbols.
100177         * lib/human.c: Likewise.
100178         * lib/same.c: Likewise.
100179         * lib/strtoumax.c: Likewise.
100180
100181         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
100182         declaration check was not run.
100183         * lib/hash.c: Likewise.
100184         * lib/human.c: Likewise.
100185         * lib/same.c: Likewise.
100186         * lib/strtoumax.c: Likewise.
100187
100188         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
100189         `.', then first look up the entire `.'-containing string as a login
100190         name.
100191
100192 2000-02-23  Jim Meyering  <meyering@lucent.com>
100193
100194         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
100195         in place of my hack.
100196
100197 2000-02-18  Paul Eggert  <eggert@twinsun.com>
100198
100199         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
100200         (textint): New typedef.
100201         (parser_control): Member year changed from int to textint.
100202         All uses changed.
100203         (YYSTYPE): Removed; replaced by %union with int and textint members.
100204         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
100205         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
100206         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
100207         (tSNUMBER, tUNUMBER): Now of type <textintval>.
100208         (date, number, to_year): Use width of number in digits, not its value,
100209         to determine whether it's a 2-digit year, or a 2-digit time.
100210         (yylex): Store number of digits of numeric tokens.
100211         Reported by John Kendall.
100212
100213         (parser_control): Changed from struct parser_control to typedef (for
100214         consistency).  All uses changed.
100215
100216         (tID): Removed; not used.
100217         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
100218
100219 2000-02-14  Paul Eggert  <eggert@twinsun.com>
100220
100221         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
100222         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
100223
100224 2000-02-12  Jim Meyering  <meyering@lucent.com>
100225
100226         * lib/userspec.c (ISDIGIT): Define it.
100227         (isdigit): Remove definition.
100228         (is_number): Use ISDIGIT, not isdigit.
100229         <libintl.h>: Include.
100230         (_ and N_): Define.
100231         (parse_user_spec): Mark translatable strings.
100232
100233 2000-02-10  Jim Meyering  <meyering@lucent.com>
100234
100235         With these changes, nanosleep.[ch] are finally enough like the other
100236         lib/* replacement files to compile on a few more losing systems.
100237
100238         * lib/nanosleep.h: Don't include config.h.
100239         Remove prototype from declaration of nanosleep.
100240         (PARAMS): Remove now-unneeded definition.
100241         * lib/nanosleep.c: #undef nanosleep.
100242         (rpl_nanosleep): Rename from nanosleep.
100243
100244 2000-02-10  Jim Meyering  <meyering@lucent.com>
100245
100246         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
100247         gnu_nanosleep to rpl_nanosleep.
100248
100249 2000-02-09  Jim Meyering  <meyering@lucent.com>
100250
100251         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
100252         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
100253
100254 2000-02-08  Akim Demaille  <akim@epita.fr>
100255
100256         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
100257         `[' and `]' and remove uses of `changequote'.
100258         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
100259         (AC_SYS_LARGEFILE): Likewise.
100260         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
100261         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
100262         of changequote.
100263         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
100264         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
100265         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
100266         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
100267
100268 2000-02-05  Jim Meyering  <meyering@lucent.com>
100269
100270         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
100271         Remove explicit use of AC_HEADER_TIME.  It is required by
100272         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
100273         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
100274         in autoconf whereby the expansion of the latter ended up preceding
100275         the expansion of its prerequisite, AC_HEADER_TIME.
100276         Reported by Volker Borchert.
100277
100278 2000-02-03  Jim Meyering  <meyering@lucent.com>
100279
100280         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
100281
100282 2000-02-03  Jim Meyering  <meyering@lucent.com>
100283
100284         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
100285         rather than with `#if HAVE_UTMPNAME'.
100286
100287 2000-02-02  Jim Meyering  <meyering@lucent.com>
100288
100289         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
100290         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
100291         Reported by Eli Zaretskii.
100292
100293 2000-02-01  Jim Meyering  <meyering@lucent.com>
100294
100295         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
100296
100297 2000-01-31  Jim Meyering  <meyering@lucent.com>
100298
100299         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
100300         functions.  Add the time.h and sys/time.h headers along with the
100301         AC_REQUIRE'ment of AC_HEADER_TIME.
100302
100303 2000-01-31  Jim Meyering  <meyering@lucent.com>
100304
100305         * lib/nanosleep.h (nanosleep): Guard declaration with
100306         `#if ! HAVE_DECL_NANOSLEEP'.
100307         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
100308         the declaration in that vendor's sys/timers.h.
100309         Reported by Christian Krackowizer.
100310
100311         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
100312         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
100313         (ISPRINT): Likewise.
100314         Reported by Tom Tromey.
100315
100316 2000-01-30  Jim Meyering  <meyering@lucent.com>
100317
100318         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
100319
100320         * m4/prereq.m4 (utmp_includes): Define.
100321         Check for ut_user and ut_name members in both struct utmpx
100322         and struct utmp.
100323
100324 2000-01-30  Jim Meyering  <meyering@lucent.com>
100325
100326         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
100327         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
100328         header files where only utmpx.ut_user is declared.
100329
100330         * lib/readutmp.h (UT_USER): Define.
100331
100332 2000-01-29  Jim Meyering  <meyering@lucent.com>
100333
100334         * m4/lib-check.m4: New file containing library-related checks from
100335         fileutils and sh-utils (textutils had none).
100336
100337 2000-01-28  Jim Meyering  <meyering@lucent.com>
100338
100339         * m4/perl.m4: Change format of warning message to look more like that
100340         from the missing script.  Suggestion from François Pinard.
100341
100342 2000-01-25  Jim Meyering  <meyering@lucent.com>
100343
100344         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
100345         well as time.h in the compile check.
100346         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
100347         Fix typo in cross-compiling case: s/yes/no/.
100348
100349 2000-01-23  Jim Meyering  <meyering@lucent.com>
100350
100351         * m4/jm-macros.m4: Move df-related tests here from
100352         fileutils/configure.in
100353
100354         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
100355         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
100356
100357         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
100358         s/space/ac_fsusage_space/.
100359         (jm_FILE_SYSTEM_USAGE): Take two parameters.
100360
100361         * m4/ftruncate.m4: New file (derived from part of
100362         fileutils/configure.in).
100363         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
100364         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
100365
100366         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
100367         AC_SUBST these here, rather than just in sh-util/configure.in, so
100368         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
100369         all the same.
100370         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
100371         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
100372         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
100373         (AC_SUBST(POW_LIBM)): Likewise.
100374         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
100375
100376 2000-01-23  Jim Meyering  <meyering@lucent.com>
100377
100378         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
100379         obstack.c.
100380
100381 2000-01-22  Jim Meyering  <meyering@lucent.com>
100382
100383         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
100384
100385         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
100386
100387         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
100388         configure.in
100389         (AC_CHECK_HEADERS): Likewise for sh-utils.
100390         (AC_CHECK_HEADERS): Likewise for textutils.
100391         Merge the three lists of headers.
100392
100393         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
100394         from fileutils' configure.in.
100395
100396         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
100397         code. Moved tests into their own function (_jm_DECL_HEADERS) in
100398         check-decl.m4.
100399
100400         * m4/check-decl.m4: Use #if rather than #ifdef.
100401         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
100402         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
100403         (_jm_DECL_HEADERS): Define new function.
100404         (jm_CHECK_DECLARATIONS): Require it.
100405
100406 2000-01-22  Jim Meyering  <meyering@lucent.com>
100407
100408         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
100409         [! HAVE_DECL_STRTOULL]: Declare strtoull.
100410         Required for some AIX systems.  Reported by Christian Krackowizer.
100411         [TESTING] (main): New function.
100412
100413         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
100414         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
100415         letters.
100416
100417         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
100418         iswprint.
100419
100420         * lib/strverscmp.c (ISDIGIT): Define.
100421         (strverscmp): Use ISDIGIT, not isdigit.
100422
100423 2000-01-19  Jim Meyering  <meyering@lucent.com>
100424
100425         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
100426         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
100427         defines `struct timespec' in <sys/time.h>
100428
100429         * m4/c-bs-a.m4: Remove uses of changequote altogether.
100430         Thanks to Akim for explaining.
100431
100432 2000-01-17  Paul Eggert  <eggert@twinsun.com>
100433
100434         * lib/nanosleep.c (nanosleep):
100435         Don't use SA_INTERRUPT to decide whether to call sigaction, as
100436         POSIX.1 doesn't require SA_INTERRUPT and some systems
100437         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
100438         it's been part of POSIX.1 since day 1 (in 1988).
100439
100440 2000-01-17  Jim Meyering  <meyering@lucent.com>
100441
100442         * lib/interlock: Remove unused file.  Reported by François Pinard.
100443
100444 2000-01-16  Paul Eggert  <eggert@twinsun.com>
100445
100446         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
100447         alert, backslash, formfeed, and vertical tab unnecessarily in
100448         shell quoting style.
100449
100450 2000-01-16  Jim Meyering  <meyering@lucent.com>
100451
100452         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
100453         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
100454         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
100455         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
100456
100457 2000-01-16  Jim Meyering  <meyering@lucent.com>
100458
100459         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
100460         because the latter didn't work.
100461
100462 2000-01-15  Jim Meyering  <meyering@lucent.com>
100463
100464         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
100465         (AC_REPLACE_FUNCS): Add memcpy and memset.
100466         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
100467         Add strpbrk.
100468         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
100469
100470 2000-01-12  Jim Meyering  <meyering@lucent.com>
100471
100472         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
100473         (jm_PREREQ): Use it.
100474         (jm_PREREQ_READUTMP): New macro.
100475         (jm_PREREQ): Use it.
100476
100477 2000-01-11  Paul Eggert  <eggert@twinsun.com>
100478
100479         Quote multibyte characters correctly.
100480         * m4/c-bs-a.m4: New file.
100481         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
100482         (jm_PREREQ): Use it.
100483
100484 2000-01-11  Paul Eggert  <eggert@twinsun.com>
100485
100486         * m4/uintmax_t.m4: Port to autoconf 2.13.
100487
100488 2000-01-08  Jim Meyering  <meyering@ascend.com>
100489
100490         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
100491         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
100492
100493 2000-01-04  Jim Meyering  <meyering@ascend.com>
100494
100495         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
100496         jm_STRUCT_DIRENT_D_TYPE.
100497         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
100498         jm_STRUCT_DIRENT_D_INO.
100499         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
100500         jm_STRUCT_UTIMBUF.
100501         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
100502         renamings.
100503         * m4/utime.m4: Likewise.
100504
100505         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
100506         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
100507
100508 2000-01-03  Paul Eggert  <eggert@twinsun.com>
100509
100510         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
100511         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
100512
100513 2000-01-02  Jim Meyering  <meyering@ascend.com>
100514
100515         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
100516         remember if this is necessary.
100517
100518 1999-12-26  Jim Meyering  <meyering@ascend.com>
100519
100520         * m4/jm-macros.m4: Use it here.
100521         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
100522
100523 1999-12-23  Jim Meyering  <meyering@ascend.com>
100524
100525         * m4/jm-macros.m4: Check for clock_gettime (moved from
100526         fileutils/configure.in)
100527         Check for gettimeofday.
100528
100529 1999-12-20  Jim Meyering  <meyering@ascend.com>
100530
100531         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
100532         autoconf-2.14a-1999-12-20.
100533
100534 1999-12-19  Jim Meyering  <meyering@ascend.com>
100535
100536         * m4/lstat-slash.m4: New file.
100537         * m4/jm-macros.m4: Use the new macro:
100538         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
100539
100540 1999-12-07  Jim Meyering  <meyering@ascend.com>
100541
100542         * m4/perl.m4: Require that File::Compare be available, too.
100543         Too many systems seem to lack it.
100544
100545         * m4/strftime.m4: Add checks for most of the cpp macros tested in
100546         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
100547
100548 1999-11-18  Paul Eggert  <eggert@twinsun.com>
100549
100550         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
100551         problem with the QNX 4.25 shell, which doesn't propagate exit
100552         status of failed commands inside shell assignments.
100553
100554 1999-11-17  Jim Meyering  <meyering@ascend.com>
100555
100556         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
100557
100558 1999-11-07  Jim Meyering  <meyering@ascend.com>
100559
100560         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
100561
100562 1999-11-06  Jim Meyering  <meyering@ascend.com>
100563
100564         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
100565         * m4/jm-macros.m4 (jm_MACROS): Use it here.
100566
100567 1999-11-05  Jim Meyering  <meyering@ascend.com>
100568
100569         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
100570         configure.in of textutils, fileutils, and sh-utils into this one
100571         (shared between those packages) file.
100572         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
100573         AC_STRUCT_ST_BLKSIZE.
100574
100575 1999-11-03  Jim Meyering  <meyering@ascend.com>
100576
100577         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
100578         of AC_CHECK_TYPE checks includes unistd.h.
100579         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
100580         Suggestion from Akim Demaille.
100581
100582 1999-10-30  Jim Meyering  <meyering@ascend.com>
100583
100584         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
100585         m4-quoted string.
100586         * m4/ls-mntd-fs.m4: Likewise.
100587         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
100588         * m4/jm-winsz1.m4: Likewise.
100589
100590         * m4/const.m4: Remove file, since the fix made it into the experimental
100591         version of autoconf.
100592         * m4/mktime.m4: Likewise.
100593
100594         * m4/check-type.m4: Remove file, now that the latest version of
100595         AC_CHECK_TYPE takes a third arg to specify additional #includes.
100596
100597         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
100598         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
100599         AC_CHECK_TYPE.
100600
100601 1999-10-04  Jim Meyering  <meyering@ascend.com>
100602
100603         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
100604
100605 1999-09-22  Paul Eggert  <eggert@twinsun.com>
100606
100607         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
100608         2.95.1 bug with HP-UX 10.20.
100609
100610 1999-09-17  Jim Meyering  <meyering@ascend.com>
100611
100612         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
100613         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
100614         due to missing strdup (against sh-utils-2.0).
100615
100616 1999-08-29  Jim Meyering  <meyering@ascend.com>
100617
100618         * m4/jm-macros.m4: Require jm_BISON.
100619         * m4/bison.m4: New file.
100620
100621 1999-08-17  Paul Eggert  <eggert@twinsun.com>
100622
100623         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
100624         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
100625
100626 1999-08-05  Jim Meyering  <meyering@ascend.com>
100627
100628         * m4/getline.m4: Rename test file from conftestdata to conftest.data
100629         to avoid conflicts with `conftest' on 8+3 filesystems.
100630         Suggestion from Eli Zaretskii.
100631
100632 1999-08-04  Jim Meyering  <meyering@ascend.com>
100633
100634         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
100635         fileutils and sh-utils (textutils's getline test was inadequate).
100636         (AM_FUNC_GETLINE): Run this test.
100637         (AC_CHECK_FUNCS): Check for getdelim.
100638         Reported by Bob Proulx.
100639
100640 1999-08-02  Jim Meyering  <meyering@ascend.com>
100641
100642         * m4/jm-macros.m4: Add a comment.
100643
100644 1999-08-01  Paul Eggert  <eggert@twinsun.com>
100645
100646         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
100647         <inttypes.h> defines strtoumax as a macro (and not as a
100648         function).
100649
100650 1999-08-01  Paul Eggert  <eggert@twinsun.com>
100651
100652         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
100653         that we can shift, multiply and divide unsigned long long
100654         values; Ultrix cc can't do it.
100655
100656 1999-08-01  Paul Eggert  <eggert@twinsun.com>
100657
100658         * m4/mktime.m4: New file, which is a preview of what should appear
100659         in the next public autoconf release.
100660
100661 1999-08-01  Paul Eggert  <eggert@twinsun.com>
100662
100663         * m4/lfs.m4: Remove this file.
100664         * m4/largefile.m4: New file.  It contains the old contents of
100665         lfs.m4, except that all names with prefix AC_LFS have been
100666         changed to use the prefix AC_SYS_LARGEFILE instead, to be
100667         compatible with future autoconf versions.  Also, some minor m4
100668         quoting problems have been fixed.
100669
100670 1999-08-01  Paul Eggert  <eggert@twinsun.com>
100671
100672         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
100673         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
100674         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
100675         and simplify the shell code.
100676
100677 1999-08-01  Jim Meyering  <meyering@ascend.com>
100678
100679         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
100680         m4.
100681
100682 1999-07-20  Jim Meyering  <meyering@ascend.com>
100683
100684         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
100685
100686 1999-07-15  Jim Meyering  <meyering@ascend.com>
100687
100688         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
100689
100690 1999-05-22  Jim Meyering  <meyering@ascend.com>
100691
100692         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
100693
100694 1999-05-20  Jim Meyering  <meyering@ascend.com>
100695
100696         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
100697         Add a colon after each `then' in case $4 is empty.
100698
100699 1999-05-16  Jim Meyering  <meyering@ascend.com>
100700
100701         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
100702
100703 1999-05-10  Jim Meyering  <meyering@ascend.com>
100704
100705         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
100706
100707         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
100708         AC_FUNC_MKTIME.
100709
100710 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
100711
100712         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
100713
100714 1999-05-04  Paul Eggert  <eggert@twinsun.com>
100715
100716         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
100717         not CPPFLAGS, so that linking works correctly in IRIX.
100718
100719 1999-04-30  Paul Eggert  <eggert@twinsun.com>
100720
100721         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
100722
100723 1999-04-20  Paul Eggert  <eggert@twinsun.com>
100724
100725         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
100726         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
100727         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
100728         jm_AC_TYPE_UNSIGNED_LONG_LONG.
100729         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
100730
100731         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
100732
100733 1999-04-20  Jim Meyering  <meyering@ascend.com>
100734
100735         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
100736         AC_REPLACE xstroull if necessary.  From Paul Eggert.
100737         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
100738
100739 1999-04-18  Jim Meyering  <meyering@ascend.com>
100740
100741         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
100742         * m4/jm-macros.m4: Use it.
100743
100744 1999-04-06  Jim Meyering  <meyering@ascend.com>
100745
100746         * m4/strftime.m4: Remove test for %f.
100747
100748 1999-03-29  Jim Meyering  <meyering@ascend.com>
100749
100750         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
100751         superset of the AC_TYPE_* checks in the textutils, fileutils,
100752         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
100753         AC_TYPE_PID_T.
100754
100755 1999-03-28  Jim Meyering  <meyering@ascend.com>
100756
100757         * m4/jm-macros.m4: Define GNU_PACKAGE here.
100758         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
100759         replaced e.g., in the *.sh files of the sh-utils.
100760
100761 1999-03-20  Jim Meyering  <meyering@ascend.com>
100762
100763         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
100764         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
100765         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
100766
100767 1999-03-19  Jim Meyering  <meyering@ascend.com>
100768
100769         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
100770
100771 1999-03-12  Jim Meyering  <meyering@ascend.com>
100772
100773         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
100774
100775 1999-03-07  Jim Meyering  <meyering@ascend.com>
100776
100777         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
100778         declared.
100779
100780 1999-02-17  Jim Meyering  <meyering@ascend.com>
100781
100782         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
100783         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
100784
100785 1999-02-07  Jim Meyering  <meyering@ascend.com>
100786
100787         * m4/group-member.m4: New file -- extracted from sh-utils'
100788         configure.in.
100789
100790         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
100791         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
100792
100793 1999-02-06  Jim Meyering  <meyering@ascend.com>
100794
100795         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
100796         * m4/fnmatch.m4: Likewise.
100797         * m4/getgroups.m4: Likewise.
100798         * m4/lstat.m4: Likewise.
100799         * m4/malloc.m4: Likewise.
100800         * m4/putenv.m4: Likewise.
100801         * m4/realloc.m4: Likewise.
100802         * m4/regex.m4: Likewise.
100803         * m4/stat.m4: Likewise.
100804         * m4/strftime.m4: Likewise.
100805         Suggestion from Alain Magloire.
100806
100807         * m4/chown.m4: Use `.$ac_objext', not `.o'.
100808         * m4/fnmatch.m4: Likewise.
100809         * m4/getgroups.m4: Likewise.
100810         * m4/getline.m4: Likewise.
100811         * m4/lstat.m4: Likewise.
100812         * m4/malloc.m4: Likewise.
100813         * m4/memcmp.m4: Likewise.
100814         * m4/putenv.m4: Likewise.
100815         * m4/realloc.m4: Likewise.
100816         * m4/regex.m4: Likewise.
100817         * m4/stat.m4: Likewise.
100818         * m4/strftime.m4: Likewise.
100819         Suggestion from Alain Magloire.
100820
100821         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
100822         an argument.
100823
100824         * m4/regex.m4: Add a run-time Test for proper operation of
100825         re_compile_pattern.
100826
100827 1999-01-31  Jim Meyering  <meyering@ascend.com>
100828
100829         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
100830
100831 1999-01-30  Jim Meyering  <meyering@ascend.com>
100832
100833         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
100834
100835         * m4/jm-mktime.m4: Make this a wrapper around the official
100836         AM_FUNC_MKTIME rather than my private copy, now that the official one
100837         is up to date.
100838         * m4/mktime.m4: Remove file.
100839
100840         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
100841         * m4/uptime.m4: Likewise.
100842         * m4/uintmax_t.m4: Likewise.
100843
100844 1999-01-28  Jim Meyering  <meyering@ascend.com>
100845
100846         * m4/jm-macros.m4: Use jm_AFS.
100847         * m4/afs.m4: New file (from fileutils' configure.in).
100848
100849         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
100850         * m4/chown.m4: Likewise.
100851         * m4/d-ino.m4: Likewise.
100852         * m4/d-type.m4: Likewise.
100853         * m4/fnmatch.m4: Likewise.
100854         * m4/getgroups.m4: Likewise.
100855         * m4/gettext.m4: Likewise.
100856         * m4/jm-mktime.m4: Likewise.
100857         * m4/jm-winsz2.m4: Likewise.
100858         * m4/lcmessage.m4: Likewise.
100859         * m4/ls-mntd-fs.m4: Likewise.
100860         * m4/malloc.m4: Likewise.
100861         * m4/memcmp.m4: Likewise.
100862         * m4/putenv.m4: Likewise.
100863         * m4/realloc.m4: Likewise.
100864         * m4/st_mtim.m4: Likewise.
100865         * m4/strftime.m4: Likewise.
100866
100867 1999-01-16  Jim Meyering  <meyering@ascend.com>
100868
100869         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
100870         (ARGMATCH_DIE_DECL): Define.
100871
100872 1999-01-12  Jim Meyering  <meyering@ascend.com>
100873
100874         * m4/Makefile.am.in: Rewrite to avoid using fmt.
100875         Reported by Lars Hecking.
100876
100877 1999-01-10  Jim Meyering  <meyering@ascend.com>
100878
100879         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
100880         gross kludge.
100881         * m4/inttypes_h.m4: Likewise.
100882         * m4/lstat.m4: Likewise.
100883         * m4/malloc.m4: Likewise.
100884         * m4/readdir.m4: Likewise.
100885         * m4/realloc.m4: Likewise.
100886         * m4/st_dm_mode.m4: Likewise.
100887         * m4/stat.m4: Likewise.
100888         * m4/utimbuf.m4: Likewise.
100889         * m4/utimes.m4: Likewise.
100890
100891         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
100892         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
100893         comments in config.h.in are meaningful.
100894
100895         * m4/jm-macros.m4: Require autoconf-2.13 here.
100896
100897         * m4/regex.m4: By default, don't use the included regex.c on systems
100898         with glibc 2.  Suggestion from Uli Drepper.
100899
100900 1999-01-02  Jim Meyering  <meyering@ascend.com>
100901
100902         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
100903
100904 1998-12-18  Jim Meyering  <meyering@ascend.com>
100905
100906         * m4/Makefile.am.in (Makefile.am): Simplify rule.
100907         Based on a suggestion from Lars Hecking.
100908
100909 1998-11-16  Paul Eggert  <eggert@twinsun.com>
100910
100911         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
100912
100913 1998-11-16  Jim Meyering  <meyering@ascend.com>
100914
100915         * m4/lfs.m4: Double-quote the `uname...` expression.
100916
100917 1998-11-14  Jim Meyering  <meyering@ascend.com>
100918
100919         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
100920         * m4/stat.m4: Likewise.
100921
100922 1998-11-03  Jim Meyering  <meyering@ascend.com>
100923
100924         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
100925         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
100926
100927 1998-10-18  Jim Meyering  <meyering@ascend.com>
100928
100929         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
100930
100931 1998-10-17  Jim Meyering  <meyering@ascend.com>
100932
100933         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
100934         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
100935         calls for those previously hard-coded headers.  Instead, take a new
100936         parameter.
100937         (jm_CHECK_DECLARATIONS): Reflect interface change.
100938         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
100939         (jm_CHECK_DECL_LOCALTIME_R): New macro.
100940
100941         * m4/mktime.m4: Test for spring-forward gap before long-running test.
100942
100943 1998-10-14  Jim Meyering  <meyering@ascend.com>
100944
100945         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
100946         instead of "TZ=America/Vancouver".  From Paul Eggert.
100947
100948 1998-10-11  Jim Meyering  <meyering@ascend.com>
100949
100950         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
100951         This adds a test for a recently added compatibility fix for mktime.c.
100952         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
100953
100954 1998-09-27  Jim Meyering  <meyering@ascend.com>
100955
100956         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
100957
100958         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
100959         ../configure.in, including a change from Gordon Matzigkeit to allow
100960         cross-compiling for the Hurd.
100961
100962         * m4/glibc.m4: New file/macro to test for the GNU C Library
100963         versions 1 and 2.  From Gordon Matzigkeit.
100964         Indent.
100965
100966 1998-09-21  Jim Meyering  <meyering@ascend.com>
100967
100968         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
100969
100970 1998-08-18  Paul Eggert  <eggert@twinsun.com>
100971
100972         Port nanosecond-resolution times to UnixWare 2.1.2 and
100973         pedantic Solaris 2.6.
100974
100975         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
100976         AC_STRUCT_ST_MTIM.
100977         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
100978         Generate name of ns member, instead of just 1 or undef.
100979         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
100980
100981 1998-08-15  Jim Meyering  <meyering@ascend.com>
100982
100983         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
100984         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
100985         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
100986         instead of jm_TYPE_SSIZE_T.
100987
100988 1998-08-12  Jim Meyering  <meyering@ascend.com>
100989
100990         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
100991
100992 1998-08-02  Jim Meyering  <meyering@ascend.com>
100993
100994         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
100995         in acconfig.h manually.
100996
100997 1998-07-31  Paul Eggert  <eggert@twinsun.com>
100998
100999         * m4/st_mtim.m4: New file.
101000
101001 1998-07-28  Jim Meyering  <meyering@ascend.com>
101002
101003         * m4/utimes.m4: Undef stat.
101004
101005 1998-07-25  Jim Meyering  <meyering@ascend.com>
101006
101007         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
101008         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
101009
101010 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
101011
101012         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
101013         uid and gid actually remain unchanged.
101014
101015 1998-07-07  Jim Meyering  <meyering@ascend.com>
101016
101017         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
101018
101019 1998-07-04  Jim Meyering  <meyering@ascend.com>
101020
101021         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
101022         to prove that this macro can be used in packages without regex.c.
101023
101024 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
101025
101026         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
101027         is to be used.
101028
101029 1998-07-03  Jim Meyering  <meyering@ascend.com>
101030
101031         * m4/gettext.m4: Add -lintl if it's found to be necessary.
101032
101033         * m4/gettext.m4: New file -- from gettext-0.10.35.
101034         * m4/lcmessage.m4: Likewise.
101035         * m4/progtest.m4: Likewise.
101036
101037         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
101038         * m4/jm-macros.m4: Require the new macro.
101039
101040 1998-06-29  Jim Meyering  <meyering@ascend.com>
101041
101042         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
101043         for the definition of NGROUPS (used in a system header included
101044         by sys/mount.h).
101045
101046 1998-06-28  Jim Meyering  <meyering@ascend.com>
101047
101048         * m4/ls-mntd-fs.m4: New file.
101049         * m4/fstypename.m4: New file.
101050
101051         * m4/jm-macros.m4: Require the new macro.
101052         * m4/jm-glibc-io.m4: New file.
101053
101054 1998-05-19  Jim Meyering  <meyering@ascend.com>
101055
101056         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
101057         * m4/lchown.m4: New file.
101058
101059         * m4/Makefile.am.in: New file.
101060         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
101061
101062 1998-05-14  Jim Meyering  <meyering@ascend.com>
101063
101064         * m4/Makefile.am (EXTRA_DIST): Add them.
101065         * m4/jm-macros.m4: New file.
101066         * m4/utimbuf.m4: New file.
101067
101068 1998-05-12  Jim Meyering  <meyering@ascend.com>
101069
101070         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
101071
101072 1998-05-11  Jim Meyering  <meyering@ascend.com>
101073
101074         * m4/isc-posix.m4: New file.
101075
101076 1998-05-10  Jim Meyering  <meyering@ascend.com>
101077
101078         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
101079
101080 1998-05-09  Jim Meyering  <meyering@ascend.com>
101081
101082         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
101083         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
101084         with automake.
101085
101086         * m4/ssize_t.m4: New file.
101087         * m4/mktime.m4: Remove file -- the new automake has this now.
101088
101089 1998-04-26  Jim Meyering  <meyering@ascend.com>
101090
101091         * m4/assert.m4: New file.
101092         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
101093
101094 1998-04-05  Jim Meyering  <meyering@ascend.com>
101095
101096         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
101097         (jm_PREREQ): Use it here.
101098
101099 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
101100
101101         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
101102         in acconfig.h.
101103
101104 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
101105
101106         * m4/prereq.m4: New file.
101107         * m4/error.m4: New file.
101108         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
101109
101110 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
101111
101112         * m4/getline.m4: Don't set am_cv_func_working_getline before the
101113         cache-check for the same variable -- that defeated the purpose of
101114         the test; the test program was never run.  This was a problem only
101115         on systems with losing getline functions -- HP-UX 10.20 is one.
101116         Reported by Bjorn Helgaas.
101117
101118 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
101119
101120         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
101121
101122 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
101123
101124         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
101125
101126         * m4/const.m4: New file.  Use an initializer in this declaration
101127         typedef int charset[2]; const charset x;
101128         Reported by Bob Glickstein.
101129
101130 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
101131
101132         * m4/chown.m4: Fix reversed types on -1 args to chown.
101133         From Kaveh Ghazi.
101134
101135 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
101136
101137         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
101138         Add lseek and memchr.
101139
101140         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
101141         T.E.Dickey <dickey@clark.net> said that some older preprocessors
101142         have a 20-character limit on names.
101143
101144 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
101145
101146         * m4/inttypes_h.m4: New file.
101147         * m4/uintmax_t.m4: New file.
101148         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
101149
101150
101151         -----
101152
101153         Local Variables:
101154         coding: utf-8
101155         End:
101156
101157         Copyright (C) 1997-2014 Free Software Foundation, Inc.
101158
101159         Copying and distribution of this file, with or without
101160         modification, are permitted provided the copyright notice
101161         and this notice are preserved.